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

@doc-karta/karta

v0.1.2

Published

doc-karta CLI + dev server + graph UI

Downloads

57

Readme

@doc-karta/karta

A living, graph-based documentation viewer for monorepos.

Your docs are MDX files with typed frontmatter. A fast Rust core crawls them into a single registry.json, and a React canvas renders the page → component → BFF → service-API dependency graph. A broken reference is a build error — not a wiki page that quietly went stale.

Part of doc-karta. This package is the CLI + dev server + UI; the native karta-core binary ships prebuilt per platform as an optional dependency (no Rust toolchain, no postinstall download).

Install

npm install -g @doc-karta/karta

The native core ships prebuilt for macOS (arm64/x64), Linux (x64/arm64), and Windows (x64) via npm optionalDependencies — nothing to compile.

Usage

karta init           # scaffold .docviz/config.ts (+ example if you have no docs yet)
karta dev [dir]      # serve the UI + watch [dir]; the graph hot-reloads on save
karta build [dir]    # crawl [dir] into a static site (default out: karta-dist/)
karta scan [dir]     # fail if any doc contains a likely secret (also gates build)
  • init is idempotent (never overwrites) and zero-config: it scans for existing docs/*.mdx and narrows the include globs to where your docs live; if you have none yet it writes a self-contained page→component example so your first graph is never empty.
  • dev serves the prebuilt UI and pushes updates over a WebSocket — edit any .mdx and the graph hot-reloads with no refresh; a broken reference shows inline and the last good graph stays.
  • build emits a self-contained static site (UI + crawled registry.json) you can host anywhere: npx serve karta-dist.

Anatomy of a doc

A doc is plain MDX with typed YAML frontmatter. Each calls entry references another node by its bare id; the crawler resolves those into graph edges, and a reference to a node that doesn't exist fails the crawl.

---
docviz_version: "1.0"
id: dashboard-page
type: page
title: Dashboard
status: stable
audience: [business, tech]
calls:
  - bff: get-portfolio
  - bff: get-prices
---

# Dashboard

The authenticated landing screen, fed by the portfolio and prices BFFs.

Secrets scanning

Every karta build first scans the raw .mdx sources and fails the build (errors, not warnings) if it finds a likely secret — credentialed URLs (scheme://user:pass@host), AWS access keys (AKIA…/ASIA…), JWTs, or base64 blobs over 50 chars. Findings are redacted in the output so a CI log never reprints the secret. Run it standalone with karta scan [dir].

For an intentional example, add <!-- karta-allow-secret --> on the line — or the line directly above — to suppress that finding.

Documentation

Full docs, the registry format contract, and the development guide live in the doc-karta repository.

License

MIT © Sean Cabalse