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

dimies

v0.1.2

Published

Integrate Dimies (conversation analytics for AI agents) into any codebase in one command — human- and AI-coding-agent-friendly.

Downloads

25

Readme

dimies

Integrate Dimies — conversation analytics for AI agents — into any codebase in one command.

npx dimies init --key dm_live_…     # scaffold a tracking helper (Node or Python)
npx dimies test --key dm_live_…     # send a test conversation, verify end-to-end
npx dimies prompt                    # print an integration prompt for AI coding agents
npx dimies spec                      # print the machine-readable spec (llms.txt)

The fastest path: let your coding agent do it

npx dimies prompt | pbcopy

Paste into Claude Code (or Cursor, etc.) inside the repo you want instrumented. The agent fetches llms.txt from your Dimies instance and wires everything: fire-and-forget conversation tracking, trace spans around LLM/tool calls, env vars in .env.example.

What init does

  • Detects Node (TS/JS) or Python
  • Writes a zero-dependency dimies.ts / dimies.js / dimies.py helper exporting trackConversation(...) / track_conversation(...) — fire-and-forget, never throws, never blocks your response path
  • Adds DIMIES_API_KEY / DIMIES_URL to .env.example (never hardcodes your key)

Flags

| Flag | Meaning | |---|---| | --key dm_live_… | Dimies API key (or env DIMIES_API_KEY) | | --url https://… | Your Dimies instance URL (or env DIMIES_URL) | | --dir path | Target directory for init (default .) | | --lang node\|python | Override language detection |

Tracing

Pass a trace array of spans to trackConversation(...) to get a Langfuse-style execution tree on each conversation. Give every span a stable id, and set input/output to the payload — for an llm span, the prompt and the completion; for a tool span, the args and the result:

trackConversation({
  conversation_id: chat.id,
  messages,
  trace: [
    { id: "llm-1", name: "vera.llm", type: "llm",
      model: "gpt-4o", tokens_in: 1240, tokens_out: 85,
      cost: 0.0017,            // optional — exact spend; omit and Dimies estimates it
      input: prompt, output: completion },
  ],
});

Field names are exact — prompt/completion/response are silently dropped, so a span sent that way shows "No payload recorded". Merge is field-level and keyed by id: resend the same id to update a span (e.g. { id: "llm-1", status: "error" }) and only the fields you include change — the rest is preserved.

Cost accuracy: set model, tokens_in, tokens_out on llm spans and the Costs dashboard prices them at list rates. For exact spend (negotiated rates, caching), also send cost in USD from your provider's usage — it's used verbatim instead of the estimate.

Full span schema: <your-instance>/llms.txt.

MIT.