overview
FastAPI reader for public TUF DSA progress. Live at tuf-stats.tashif.codes. Source is tashifkhan/TUF-Stats-API.
CodeTrace category is dsa, with LeetCode.
TUF’s older shared-profile URL 404s. This service hits https://backend-go.takeuforward.org/api/v1/progress/dsa/{username}.
Docs map#
- Overview
- Dashboard
- Canonical endpoints
- Envelope and schemas
- Platform notes
- Architecture
- DSA progress API
- Request path
What it returns#
DSA sheet totals, topic bars, heatmap from 2023 onward (TUF rejects earlier years), badges if the profile has them. Contests and rating exist as empty canonical sections so the CodeTrace loop does not special-case the platform.
Live access#
- Site: tuf-stats.tashif.codes
- Playground: playground
- OpenAPI: docs
- Sample JSON: striver/profile
- Repo: tashifkhan/TUF-Stats-API
Run it locally#
cd TUF
uv sync
uv run python -m uvicorn app:app --reload --port 8007
Optional:
TUF_REDIS_URL=redis://localhost:6379/0
TUF_API_CACHE_TTL_SECONDS=3600
TUF_FIRST_HEATMAP_YEAR=2023