npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dsh-hackatime

v0.3.10

Published

Track your DeepSeek Harness coding time on Hackatime (WakaTime-compatible heartbeats).

Readme

dsh-hackatime

A DeepSeek Harness (DSH) plugin that counts the time you spend in the agent as coding time on Hackatime.

If you use DeepSeek Harness as your daily driver but your Hackatime leaderboard only sees your editor time, this plugin is for you. It sends WakaTime-style heartbeats for the files the agent reads and writes, so your agent-driven work counts too.

How it works

The plugin subscribes to DSH's session/event stream and posts one heartbeat to the Hackatime API whenever you send a message, the agent calls a tool on a file, a tool call returns, or the assistant emits a message with token usage. Heartbeats are sent at most once per rateLimitSeconds (default 30, matching WakaTime's convention) for each distinct file, queued when offline, and retried with backoff. A permanent server rejection (HTTP 400/422) drops the heartbeat instead of retrying forever.

Every constant is taken from the Hackatime server source, not guessed:

  • POST {api_url}/users/current/heartbeats with Authorization: Bearer <api_key>
  • time is Unix epoch seconds (the server rejects anything outside 1000000000–2000000000)
  • category is always coding, editor is DeepSeek Harness (never a browser name, so the time stays leaderboard-eligible)
  • project is never the </> sentinel WakaTime uses for "unchanged"

Install

You need DSH 0.1.6 or newer (the plugin settings card uses the plugins.bundle.config slot; on older versions it falls back to the settings.plugin.item slot, and if neither exists it stays silent while the config keys still work through the profile's cordis.patch.yml).

dsh plugin --profile <name> add dsh-hackatime

Then restart DSH. Bundle installs are picked up at startup.

Configure

The plugin works with zero configuration if you already have a WakaTime-compatible setup: it reads ~/.wakatime.cfg's [settings] section for api_url and api_key, and only re-reads the file when it changes on disk.

If you don't have one, get an API key at https://hackatime.hackclub.com/settings and either add it to ~/.wakatime.cfg:

[settings]
api_url = https://hackatime.hackclub.com/api/hackatime/v1
api_key = your-key-here

or open Settings → Plugins → Hackatime in DSH and fill in the fields.

| Field | Default | Meaning | | --- | --- | --- | | enabled | true | Master switch. | | apiKey | (from ~/.wakatime.cfg) | Hackatime API key. Never logged. | | apiUrl | https://hackatime.hackclub.com/api/hackatime/v1 | API base URL. Point this at a self-hosted server if you run one. | | project | (workspace folder name) | Project name override. A .wakatime-project file in the workspace root wins over this. | | machine | (hostname) | Machine name override. | | rateLimitSeconds | 30 | Minimum gap between two heartbeats for the same file. | | sendEntityPath | true | Send the full file path as entity. Turn this off for privacy; the workspace folder name is sent instead. | | sendAiUsage | true | Send ai_model, ai_input_tokens and ai_output_tokens on heartbeats that carry them. | | debug | false | Log every heartbeat to the host console. | | autoUpdate | true | Install the newest published dsh-hackatime automatically. Turn it off to update manually from the settings tab. |

The settings tab

Settings → Plugins → Hackatime shows live tracking, not just a form:

  • Connection — whether the server is reachable, how many heartbeats have landed, and a link to your dashboard.
  • Currently tracking — the project, file, model and session the plugin is timing right now, with a Live/Idle pill. This is the answer to "is it actually tracking me?".
  • Settings — every field above, autofilled from your stored config and editable inline.
  • How to use it — the setup walkthrough, on the page.

When a newer version is published, the tab shows a banner (v1.2.3 is available) with an Update now button. With autoUpdate on, the host installs it on its own.

What gets recorded

| Event | Heartbeat | | --- | --- | | You send a message | one, is_write: false | | The agent calls a tool on a file | one, is_write set for write tools | | A tool call returns | one, is_write inherited from the call | | The assistant emits a message with token usage | one, tagged with AI usage |

Write tools are detected by name: write, edit, str_replace, apply_patch, create_file, and similar. Read tools (read, glob, grep) only generate a heartbeat through their tool result, so a file you merely list doesn't look like an edit.

The language is inferred from the file extension (Dockerfile → Dockerfile, .js → JavaScript, and so on). Unknown extensions are left unset, and the server's own LanguageUtils fills them in as Unknown.

Privacy

The API key is stored in your plugin config with the secret role and is never logged. File paths are sent as the entity field by default; turn Send file paths off to send only the workspace folder name. No analytics, telemetry, or third-party calls are made by this plugin beyond the heartbeats you configure it to send.

Uninstall

dsh plugin --profile <name> remove dsh-hackatime

License

MIT