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

leadtype

v0.1.2

Published

Framework-neutral docs pipeline tooling for MDX, LLM bundles, and search

Readme

leadtype

A docs pipeline. Write MDX once. Get a website, agent-readable bundles, and a static search index from a single command.

  • Flattens MDX components into clean markdown that agents and tools can read.
  • Generates llms.txt, markdown mirrors, and a root llms-full.txt fallback.
  • Builds a static, edge-safe search index (BM25, optional source-grounded answers).
  • Validates frontmatter, navigation, and internal links.

leadtype is not a docs website framework. Bring your own UI — Next.js, TanStack Start, Astro, anything.

Install

pnpm add leadtype

30-second example

For a hosted docs site:

npx leadtype generate --src . --out public --base-url https://leadtype.dev
# → public/llms.txt, public/llms-full.txt, public/docs/*.md,
#   public/docs/search-index.json

For an npm-bundled doc set:

npx leadtype generate --bundle --src . --out packages/my-package
# → packages/my-package/AGENTS.md, packages/my-package/docs/*.md

The website output is fetched by humans (HTML) and HTTP agents (Accept: text/markdown or /llms.txt). The bundled output lives at node_modules/<your-pkg>/AGENTS.md after install so consumers can point coding agents at version-matched offline docs.

Documentation

Full docs at leadtype.dev. Highlights:

Entry points

| Import | Purpose | | --- | --- | | leadtype | defineDocsConfig — the config helper. | | leadtype/convert | MDX-to-markdown conversion. | | leadtype/remark | defaultRemarkPlugins plus individual plugins. | | leadtype/llm | generateLlmsTxt, generateLLMFullContextFiles, generateAgentsMd, resolveDocsNavigation. | | leadtype/search | Edge-safe search runtime, content readers, request guards. | | leadtype/search/node | Build-time generateDocsSearchFiles. | | leadtype/search/bash | Read-only docs bash adapters for AI tools. | | leadtype/search/vercel | Vercel AI SDK / AI Gateway answer streaming. | | leadtype/search/tanstack | TanStack AI answer streaming. | | leadtype/search/cloudflare | Cloudflare AI Gateway / Workers AI adapter. | | leadtype/lint | lintDocs and the leadtype lint CLI. |

The leadtype binary wraps generate and lint. Use the library entry points when you need custom plugin order, base URL precedence, or alternate output paths.

Bundled agent docs

This package ships its own docs inside the published tarball:

  • AGENTS.md at the package root — a version-matched entry point for coding agents reading the installed package from disk.
  • docs/*.md — flattened markdown per page, organized by group.

After npm install leadtype, point your project's root AGENTS.md at the bundled docs:

When working with the `leadtype` library, read
`node_modules/leadtype/AGENTS.md` first — it points at version-matched
markdown topic files.

The website-style outputs (llms.txt, root llms-full.txt, search-index.json) are emitted only in default leadtype generate mode. They're served from a hosted docs site, not from the package tarball.

License

MIT.