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

papermark

v0.2.0

Published

Command-line interface for Papermark — share documents, create data rooms, generate access links, and read analytics.

Readme

papermark

Command-line interface for Papermark.

Upload documents, create share links, manage datarooms, and read analytics from your terminal. Built to be scriptable and agent-friendly — every command supports --json, and the output contract is pinned at docs/CONTRACT_V1.md.

Install

npm install -g papermark

Quick start

papermark login                         # OAuth 2.1 device flow in your browser
papermark documents list
papermark documents upload ./deck.pdf --link
papermark links create --document <id> --name "Acme Pitch" --password <pw>
papermark views list --link <link-id>

Authentication

Four ways to authenticate, highest precedence first:

  1. PAPERMARK_TOKEN env var
  2. PAPERMARK_CREDENTIALS_FILE — path to a JSON file with {token, apiUrl}
  3. papermark auth set --stdin — pipe a token over stdin (CI-friendly; no tempfile, no shell-history leak)
  4. Stored config (papermark login, or papermark login --token pm_live_...)

Scopes supported: documents.{read,write}, links.{read,write}, datarooms.{read,write}, analytics.read, visitors.read.

Tokens expire after 90 days (Stripe-CLI pattern); re-login when prompted.

Commands

papermark login                         Sign in via OAuth device flow
papermark logout                        Remove the stored token
papermark whoami                        Show the active token + API URL + source
papermark doctor                        Scriptable preflight health check
papermark auth export [--unmasked]      Print credentials as JSON (for CI)
papermark auth set --stdin [--json]     Read credentials from stdin

papermark documents list                List documents
papermark documents get <id>            Fetch a single document
papermark documents upload <file>       Upload a local file
papermark documents delete <id>         Delete a document
papermark documents search <query>      Search documents by name

papermark links list                    List share links
papermark links create --document <id>  Create a share link
papermark links delete <id>             Revoke a share link

papermark views list --link <link-id>   List views for a link

papermark config set <key> <value>      Change stored settings (api-url, …)
papermark config get [key]              Read stored settings

Global flags

  • --json — emit machine-readable JSON (auto-enabled when stdout is piped)
  • --dry-run — print the HTTP request that would be sent and exit (token redacted)
  • --no-color — disable ANSI color (same as NO_COLOR=1)

Configuration

  • PAPERMARK_API_URL — defaults to https://api.papermark.com
  • PAPERMARK_TOKEN — if set, bypasses papermark login
  • PAPERMARK_CREDENTIALS_FILE — path to a {token, apiUrl} JSON file
  • PAPERMARK_DEBUG=1 — log every outbound HTTP request to stderr

Exit codes

0 success · 1 api error · 2 auth error · 3 validation error · 4 network error · 5 internal CLI bug. Full contract in docs/CONTRACT_V1.md.

License

MIT