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

@upstash/docs7

v0.1.12

Published

Develop and deploy Docs7 documentation sites

Readme

@upstash/docs7

The Docs7 command line. Preview a docs.json (or legacy mint.json) documentation project on your machine, or deploy it to Docs7.

npx @upstash/docs7 dev

or install it once and use the docs7 command:

npm install -g @upstash/docs7
docs7 dev

Run it inside a docs project, or pass the project directory. The preview runs at http://localhost:3000 (or the next free port) and reloads pages as you edit them.

docs7 dev ./docs -p 4000

Sign in with your Context7 account:

docs7 login

The command shows a one-time code and an approval link. Press Enter to open the browser, then approve access with your Context7 account. Use docs7 login --no-browser to open the link yourself, including from another device.

docs7 whoami shows your login status. docs7 logout removes the saved login. Docs7 stores credentials in ~/.config/docs7/credentials.json, or under $XDG_CONFIG_HOME/docs7 when XDG_CONFIG_HOME is an absolute path. Docs7 uses private file permissions on macOS and Linux and a current-user access control list on Windows. System administrators can still access the file. Docs7 does not read or change the Context7 CLI credentials.

After login, deploy your project:

docs7 deploy

The first deployment creates a site from the required name in docs.json, links the directory in .docs7/project.json, and publishes it. Later deployments from that directory use the saved site ID and update the same website. They do not create another website or use another Free site slot. The command shows the Context7 overview link while it builds. It prints the final public URL when the deployment is ready.

Docs7 removes common private and build paths from the upload. Add project-specific exclusions to .docs7ignore or .mintignore. Git-ignored generated documentation stays available for local deployment.

Keep .docs7/project.json to preserve this link. Only one docs7 deploy can run in the same directory at a time. Use --preview to create a preview instead. You can set the initial slug when the site is first created.

You can connect the site to GitHub from its Context7 overview. The site keeps its URL and deployment history. After you connect it, GitHub is the source: push to the connected repository to deploy new changes. docs7 deploy then tells you to use GitHub.

docs7 deploy --preview
docs7 deploy --slug acme-api

Commands

| Command | What it does | | --- | --- | | docs7 dev [dir] | Preview the project with live reload. -p, --port <port> (default: the first free port from 3000), --host <host> (default 127.0.0.1). | | docs7 login [--no-browser] | Sign in through the browser with a one-time code. | | docs7 logout | Remove your saved Docs7 credentials. | | docs7 whoami | Show your login status. | | docs7 deploy [dir] | Upload and publish the project. --preview creates a preview; --slug applies when the site is first created. |

How it works

The package is small on purpose. On the first docs7 dev it downloads the Docs7 renderer — a prebuilt production build of the same renderer that publishes Docs7 sites — into ~/.docs7/renderer/ (about 30 MB) and reuses it after that. Every run checks for a newer renderer; when you are offline it keeps using the installed one.

Environment variables:

| Variable | Purpose | | --- | --- | | DOCS7_HOME | Cache directory. Default ~/.docs7. | | DOCS7_RELEASES_URL | Where renderer releases come from. Default https://b3a38d39ac3c.blob.upstash.io. | | DOCS7_RELEASES_PUBLIC_KEY | PEM public key that releases from a custom DOCS7_RELEASES_URL are verified against. Default: the Docs7 release key. | | DOCS7_RENDERER_VERSION | Pin one renderer release. | | DOCS7_ASSISTANT_PROXY_URL | Backend for the Ask AI panel while previewing. | | DOCS7_API_URL | Context7 app URL. Default https://context7.com. | | XDG_CONFIG_HOME | Config directory. Default ~/.config. Docs7 stores credentials in its docs7 subdirectory. | | CONTEXT7_API_KEY | Context7 API key for deployment. If unset, Docs7 uses the credentials saved by docs7 login. |

Requires Node.js 20.19 or newer.

Development (this repository)

The renderer that dev runs is built from renderer/ with npm run release --prefix renderer and lands in renderer/.release/renderer. Run the CLI against it without downloading anything:

node cli/bin/docs7.mjs dev renderer/docs/mock --renderer renderer/.release/renderer

npm test --prefix cli runs the CLI's tests. Publishing is described in .github/workflows/publish-cli.yml; renderer releases in .github/workflows/release-renderer.yml.

Authentication is copied from packages/cli/src/commands/auth.ts and packages/cli/src/utils/auth.ts in upstash/context7 at commit e127fa1.