$ account anuraghazra
This repository is a serverless application that dynamically generates SVG cards (stats, top languages, pinned repos, gist stats, WakaTime stats) for GitHub profile READMEs. It is designed to be deployed on Vercel and uses the GitHub GraphQL API and WakaTime REST API as data sources. The architecture consists of stateless API endpoints that fetch data, apply caching and access control, and render SVG images using a custom Card class and layout system. The codebase is well-structured with extensive unit tests, benchmarks, and a theme system supporting 60+ color themes. However, the project is explicitly deprecated and no longer maintained, with the README pointing to a successor. Despite this, the code demonstrates solid engineering practices, including a reusable retry mechanism with token rotation, an internationalization module, and a flexible SVG layout engine. The main entry points are the API handlers in `api/` and the card renderers in `src/cards/`.