XOOCIES banner

XOOCIES

1 devlog
1h 54m 53s

xoocies is a minimalist vs code extension built to bridge your coding sessions with hack club rewards. instead of switching tabs to check your progress, it pings the hackatime api to grab your raw activity data and calculates your cookies in real-…

xoocies is a minimalist vs code extension built to bridge your coding sessions with hack club rewards. instead of switching tabs to check your progress, it pings the hackatime api to grab your raw activity data and calculates your cookies in real-time.
it applies the 10-cookies per hour rule to your active development seconds and displays the total directly in your status bar. no manual math. no dashboard refreshing. just pure dev stats synced where you actually work.

This project uses AI

strictly utilized ai for minor syntax cross-checks and refining the api response handling. architecture are independent developments driven by documentation deep dives and iterative testing.

Demo Repository

Loading README...

aashixhmaurya

xoocies Extension

The project began as an attempt to track coding time locally, but it quickly became clear that local tracking wouldn’t stay in sync with the official Hackatime dashboard. To ensure the “Cookie” count was accurate, I pivoted to a server-side integration. The main challenge was identifying the correct endpoint; standard WakaTime paths didn’t return the specific data needed for the Hack Club environment. After debugging various 404 responses and analyzing the server’s JSON structure, I successfully mapped the status-bar endpoint to the extension. The result is a lightweight, real-time tracker that handles authentication and data parsing in the background, providing a seamless visual indicator of progress directly in the VS Code UI 🍪.

  • Target Endpoint: Instead of a broad summary, the code hits a specific Hack Club endpoint: /api/hackatime/v1/users/current/statusbar/today. This ensures the data fetched is identical to what the official Hackatime extension displays.
  • Cookie Calculation Formula: To stay consistent with the 10 cookies per hour rule, the logic applies this formula: Cookies = floor((Total_Seconds / 3600) * 10) This ensures the count increments exactly every 6 minutes of active coding.
  • Error Handling: Implemented checks for HTTP status codes (like 404 or 401) and JSON parsing guards to prevent the extension from crashing if the server is offline or the data format changes.

Download Extesion

Setup⚙️

  • Grab your API Key from here: Hackatime access
  • In VS Code, open Settings (Ctrl+,) and search for “xoocies”
  • Paste your key into the Xoocies: Api Key field and you’re good to go!

Once the key is saved, your cookie count will pop up in the status bar instantly. No need to restart or mess with anything else—just keep code

Attachment
Attachment
Attachment
Attachment
Attachment
Attachment
0