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

@ayuugoyal/quickdocs

v0.1.0

Published

Instant documentation fetcher for any service. CLI + MCP server. Powered by llms.txt.

Readme

quickdocs

Instant documentation fetcher for any developer service. One command — get the docs.

Powered by llms.txt. Works as a CLI, MCP server (Claude Code, Cursor, Windsurf), and Claude Code hook (/docs).


Install

npm install -g quickdocs

Or without installing:

npx quickdocs stripe webhooks

CLI Usage

quickdocs stripe webhooks           # fetch docs — trimmed to relevant sections
quickdocs nextjs app-router
quickdocs supabase auth
quickdocs react useEffect
quickdocs vercel environment-variables

Interactive mode

quickdocs

Arrow-key picker → select service → select topic → docs printed.

Options

quickdocs stripe webhooks --full    # full doc, no trimming
quickdocs stripe webhooks --fresh   # skip cache, fetch live
quickdocs stripe --list             # browse all topics for a service
quickdocs list                      # list all supported services
quickdocs cache:clear               # clear ~/.quickdocs/cache/

Smart Trimming

By default, quickdocs returns only the relevant sections for your topic — not the entire doc page.

Splits the page by headings → scores each section against your query → returns top matches (~4000 chars).

quickdocs stripe webhooks           # relevant sections only
quickdocs stripe webhooks --full    # full page

Claude Code Hook (/docs)

Type /docs directly in Claude Code input. The hook pre-fetches docs and injects them into context — no AI tool calls needed.

Setup:

  1. Add to ~/.claude/settings.json:
{
  "hooks": {
    "UserPromptSubmit": [
      {
        "matcher": "^/docs",
        "hooks": [
          {
            "type": "command",
            "command": "bash \"/path/to/quickdocs/plugin/hooks/on-prompt.sh\"",
            "timeout": 20
          }
        ]
      }
    ]
  }
}
  1. Copy skill:
cp -r plugin/skill ~/.claude/skills/docs

Usage:

/docs stripe webhooks        → fetches + injects docs instantly
/docs nextjs app-router
/docs                        → shows all services
/docs stripe                 → shows all stripe topics

MCP Server (Claude Code / Cursor / Windsurf)

claude mcp add-json quickdocs '{"command":"npx","args":["-y","quickdocs","mcp"]}'

Or add to .mcp.json:

{
  "mcpServers": {
    "quickdocs": {
      "command": "npx",
      "args": ["-y", "quickdocs", "mcp"]
    }
  }
}

Cursor~/.cursor/mcp.json | Windsurf~/.codeium/windsurf/mcp_config.json

MCP Tools

| Tool | Description | |------|-------------| | get_docs(service, topic) | Fetch docs — trimmed by default, full=true for complete | | list_services() | List all supported services | | list_topics(service) | Browse all topics for a service | | search_topics(service, query) | Search topics by keyword |


Supported Services

All services use the official llms.txt standard — no scraping.

| Service | Aliases | |---------|---------| | Stripe | stripe | | Vercel | vercel | | Next.js | nextjs, next | | Supabase | supabase | | Anthropic | anthropic, claude | | GitHub | github, gh | | Drizzle ORM | drizzle | | Cloudflare | cloudflare, cf | | Docker | docker | | Astro | astro | | Svelte / SvelteKit | svelte, sveltekit | | Hono | hono | | Bun | bun | | Deno | deno | | Prisma | prisma | | Clerk | clerk | | Neon | neon, neondb | | Upstash | upstash | | Turso | turso | | shadcn/ui | shadcn, shadcn-ui | | Model Context Protocol | mcp | | Vercel AI SDK | ai-sdk, aisdk | | LangChain | langchain | | Turborepo | turborepo, turbo | | Replicate | replicate | | PostHog | posthog | | Cursor | cursor | | Better Auth | better-auth |

How it works

Fetch official llms.txt index → fuzzy-match topic → fetch .md doc directly.


Caching

Cached at ~/.quickdocs/cache/ for 24h. Use --fresh to bypass.


Contributing

Add a service — one object in src/registry/services.ts:

myservice: {
  name: 'My Service',
  aliases: ['myservice', 'ms'],
  baseUrl: 'https://docs.myservice.com',
  llmsTxtUrl: 'https://docs.myservice.com/llms.txt',
  strategy: 'llmstxt',
  description: 'What this service does',
},

PRs welcome.


License

MIT