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#

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#

Run it locally#

bash
cd TUF
uv sync
uv run python -m uvicorn app:app --reload --port 8007

Optional:

dotenv
TUF_REDIS_URL=redis://localhost:6379/0
TUF_API_CACHE_TTL_SECONDS=3600
TUF_FIRST_HEATMAP_YEAR=2023