Create an SVG with dynamic content from Wakatime with a Vercel serverless function that generates an SVG image containing the last 7 days of your WakaTime coding activity.

or
<img src="https://go-vercel-waka-svg.vercel.app/api?type=waka">
First of all make sure the env variable WAKA_API_KEY
is set.
cp .envrc.example .envrc
Run the app:
go run ./cmd/main.go
Example request:
curl localhost:8080/api?type=waka
Install vercel:
npm i -g vercel
Deploy the current directory:
vercel
Deploy to production:
vercel --prod
Important
Do not forget to set the env var of your github token in vercel!