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

@usedocent/cli

v0.2.1

Published

Upload your app's routes and Markdown knowledge to Docent, or crawl a docs site into it.

Readme

@usedocent/cli

Uploads your app's routes and your Markdown documentation to Docent, so the guide can navigate your app and answer from your own docs.

npx @usedocent/cli sync ./src/app --docs ./docs --key dk_sec_...
  • ./src/app is your Next.js App Router directory. A project root works too; the tool looks in app and src/app. Other routers are not read yet.
  • --docs is a directory of Markdown files (.md, .mdx, .markdown). Markdown only: pages written as React components are not read; export them to Markdown first. Without --docs only routes are uploaded.
  • --key is the secret key of one environment, from Settings, Environments in the Console. It can also come from DOCENT_SECRET_KEY. It is never read from a file.

The tool prints every route before it sends anything; --dry-run stops there. After an upload, indexing starts on its own and the Console's Knowledge page shows progress as the retrievable count catches up with the chunk count. The project map at https://app.usedocent.com/map draws the routes.

crawl

For a docs site with no Markdown export, crawl asks Docent's own servers to read it into knowledge.

npx @usedocent/cli crawl https://docs.example.com --key dk_sec_...

The crawl runs on Docent's servers, not on your machine: same origin as the URL you pass, over https, honouring robots.txt, up to --max-pages pages (default 200, max 200). Pages that need JavaScript to render are not read; the job reports that rather than uploading nothing silently.

  • --max-pages <n> caps how many pages the job reads, 1 to 200.
  • --dry-run reads robots.txt and sitemap.xml itself and prints the pages it would send and the pages robots.txt blocks, then stops. Nothing is crawled.
  • --key and --endpoint work the same as for sync.

Without --dry-run, the command prints the crawl id and a link to the Console's Knowledge page, where pages and retrievable chunks appear as the job runs.