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

@tttinkl/codemaps-viewer

v0.2.0

Published

Local viewer + parser-backed validator for task-driven call-path-slice codemaps. Ships the `codemap-viewer` CLI with `serve` and `validate` subcommands.

Downloads

214

Readme

@tttinkl/codemaps-viewer

Local viewer + parser-backed validator for codemaps — task-driven call-path-slice documentation files (.codemaps/<slug>.md).

Ships the codemap-viewer CLI with two subcommands: a local web viewer (Cytoscape graph + source preview) and a validate mode that emits machine-readable diagnostics for SKILL / CI repair loops.

Part of the codemaps-skill project.

Install

Run on demand with no install:

npx -y @tttinkl/codemaps-viewer            # → starts the viewer at :4676
npx -y @tttinkl/codemaps-viewer validate FILE

Or install globally:

pnpm add -g @tttinkl/codemaps-viewer
codemap-viewer --help

Requires Node ≥ 20.

Subcommands

serve (default)

Start the local viewer over HTTP. Defaults to scanning ./.codemaps on port 4676 (auto-increments on EADDRINUSE).

codemap-viewer                                  # ./.codemaps, port 4676
codemap-viewer serve --dir docs/codemaps        # custom directory
codemap-viewer serve --port 5000                # custom port

Open http://localhost:4676 to browse the codemaps in your project.

v0.2 live freshness: the viewer auto-detects when referenced source files change. The browser opens a Server-Sent Events stream to /api/freshness/stream; once a source file is edited, the badge on the list row and detail page flips to stale-changed (or stale-missing on delete) within ~1 second — no manual refresh. The watcher fails silently if it cannot start (e.g. inotify limits), degrading to the v0.1.x request-time computation. Ctrl+C triggers a graceful shutdown that stops the watcher before exiting.

validate <file|->

Parse a codemap file (or stdin) against the @tttinkl/codemaps-parser schema and print a single diagnostic on failure.

codemap-viewer validate .codemaps/login-flow.md
echo "$markdown" | codemap-viewer validate -

Exit codes: 0 valid · 1 schema violation · 2 IO / usage error.

Diagnostic output (stderr, on exit 1):

.codemaps/foo.md:22:1 - error: Invalid codemap: duplicate code node id "1a" in section 1 (also defined as "1a")

22 | - **1a** dup — `b.ts:1`
   | ^

hint: pick the next unused letter (a..z) within this section

Designed for the SKILL repair loop: the LLM that generated the file pipes its in-memory markdown via stdin, parses the diagnostic line-by-line, edits, and re-validates — typically converging in 1–2 attempts.

License

MIT © lisilu