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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@papra/cli

v0.2.0

Published

Command line interface for Papra, the document archiving platform.

Readme

Papra CLI

The Papra CLI is a command-line interface tool that helps you interact with the Papra platform from your terminal.

Installation

For the moment, the CLI is only available as an NPM package.

# using pnpm
pnpm i -g @papra/cli

# or using npm
npm i -g @papra/cli

# or using yarn
yarn add -g @papra/cli

The CLI will be installed globally, so you can use it from anywhere in your system with the papra command.

Configuration

Before using the CLI, you need to configure it with your API credentials.

Initial Setup

To initialize the configuration, run:

papra config init

This command will prompt you for:

  • Instance URL: Your Papra instance URL (e.g., https://api.papra.app)
  • API Key: Your personal API key (can be created in your User Settings)

Managing Configuration

You can manage your configuration using the following commands:

  • papra config list: View your current configuration
  • papra config set api-key: Set or update your API key
  • papra config set api-url: Set or update your instance URL
  • papra config set default-org-id: Set a default organization ID

Organization IDs

Since Papra supports multiple organizations, you may need to specify the organization ID when importing documents for example. If want, you can set a default organization ID in your configuration.

papra config set default-org-id <organization-id>
papra documents import <file-path>

# or
papra documents import -o <organization-id> <file-path>

Available Commands

Importing documents

The import command allows you to import a document into your Papra organization.

papra documents import -o <organization-id> <file-path>

Getting Help

For more information about any command, you can use the --help flag:

papra --help
papra config --help
papra documents --help

About the CLI

The CLI is built using the citty framework and the Papra TS SDK.