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

@cascivo/docspack

v0.2.5

Published

cascivo's documentation as a docspack package — `docspack sync` once, then `docspack ask` answers offline from the version you installed

Downloads

661

Readme

npm downloads license types

npm · cascivo.com · Docs · Storybook · GitHub


cascivo's documentation as a docspack package: pre-chunked Markdown plus a manifest, indexed locally into SQLite so an agent can search the docs offline, scoped to the version your lockfile installed.

@cascivo/docs ships the same documentation as whole files to read. This package ships it as a search index to query. Install whichever matches how your agent works — or both.

Use it

pnpm add -D @cascivo/docspack docspack
npx docspack sync
npx docspack ask "how do I make a destructive button"

sync indexes every docspack package in your lockfile into ~/.docspack/store.db. After that ask, search and list make no network requests at all.

Give an agent access

One line in AGENTS.md or CLAUDE.md is the whole setup — no MCP server, no per-client configuration, nothing resident when nobody is asking:

Run `docspack ask "<question>"` for documentation on this project's
dependencies. It answers from the installed versions.

For clients that prefer a declared tool, npx docspack mcp serves the same index over MCP.

What is in it

| Source | Chunks | | -------------------- | ------------------------------------------------------------------ | | Component references | every component, chart, block, layout, section, flow and editor | | Concept guides | theming, tokens, headless primitives, testing, framework setup | | Overview | install, the two consumption paths, CSS layer and reactivity rules |

Each chunk carries the tags, variants, states and prop names from registry.json, so a query naming a variant ("a destructive button") or an intent ("collapsible sections") reaches the component that implements it. Each one also repeats its import line, so a retrieved fragment of a props table still tells the agent where the component comes from.

Ask well

Answers are capped at three chunks and ~3,000 tokens, so several narrow questions beat one broad one:

npx docspack ask "which CSS layer do my overrides go in"   # good
npx docspack ask "css"                                     # too broad
npx docspack list                                          # what is indexed

Versioning

The package version tracks this package, not the component library. Every chunk names the cascivo registry version it was generated from, and @cascivo/react's version is recorded in the overview chunk — so an answer always states which release it describes. Keep the package updated alongside @cascivo/react and re-run docspack sync.

Building it

The payload is a build artifact, generated from the same apps/site/public/ surface that pnpm regen produces, so it cannot lag the source:

pnpm --filter @cascivo/docspack build     # write .llms/ and llms.txt
pnpm --filter @cascivo/docspack doctor    # docspack doctor --strict
pnpm --filter @cascivo/docspack test      # doctor + a retrieval eval

Install

pnpm add @cascivo/docspack

cascivo.com · Docs · Storybook · GitHub · AI agents: read llms.txt (install steps + component index, plain text) or use @cascivo/mcp and registry.json · MIT