← All projects
TypeScript · ★ 2

CP Badges.

Edge API serving competitive-programming rating badges for READMEs and portfolios.

About

Rewritten as a zero-dependency TypeScript Edge Function for Vercel (v2.0.0, no runtime dependencies).

Endpoints cover Codeforces, CodeChef, AtCoder, TopCoder, Yukicoder, and LeetCode, keyed by username, plus usage at GET / and GET /health. Badge color tracks each rating band of the platform it represents; unknown users render a grey unknown badge instead of breaking the README.

Responses are cached at the edge (s-maxage=3600) so profiles stay fast without hammering upstreams.

Live examples

Rendered right now by the API above — click any badge to open the profile:

Codeforces CodeChef AtCoder TopCoder LeetCode YukiCoder

Stack

TypeScriptVercel EdgeSVG badges
*Have a thought? Let's connect →