Toolkit ยท Embed in your own site
A "now coding" / "now gaming" badge you can drop into your own portfolio site โ like a Discord Rich Presence status, but for your personal homepage. A small agent on your PC reports what you're doing; a badge component on your site shows it live.
Three small pieces, each doing one job.
Checks your active window every few seconds, maps it to a friendly label like "Coding in VS Code" or "Playing CS2", and posts that to your site's API.
Receives the agent's update (protected by a shared secret so only your agent can post), stores it, and auto-expires it to "Offline" if the agent stops reporting.
Polls the API and renders a small pill in the corner of your site โ an icon, your current activity, and a live duration timer.
The badge in the bottom-right corner of this page is running on fake, hardcoded data โ this page isn't connected to a real PC. Wiring it up to your actual live status is a config change away, documented in the repo.
app/api/status/route.ts.<ActivityBadge /> into your layout.