The SvelteKit GitHub contributions API scrapes the data from GitHub and returns the GitHub contributions data as JSON.
If you want to use the API in a real project, host it yourself on Vercel which takes a minute but gives you peace of mind in case it ever goes down.
You can watch the video how I made this API on YouTube if you want to learn more about web scraping with SvelteKit.
https://github.com/joysofcode/github-contributions-api.git
pnpm i
pnpm run dev