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

consentkeys

v0.1.2

Published

Privacy-first identity infrastructure from your terminal

Readme

ConsentKeys CLI

Privacy-first identity infrastructure from your terminal.

Create OAuth applications, authenticate users, and generate app-specific identities without storing personal data.


Installation

npm install -g consentkeys

Or run instantly:

npx consentkeys

Requires Node.js 18 or later.


What is ConsentKeys?

ConsentKeys is an identity system that replaces user records with deterministic, app-specific pseudonyms.

  • No emails or personal data required
  • No cross-application identity leakage
  • Same input → same identity (per app)
  • Fully compatible with OAuth 2.0 / OIDC flows

Quick Start

# Authenticate (opens browser via device flow)
consentkeys login

# Create an OAuth application
consentkeys apps create

# List your applications
consentkeys apps list

# Check your current identity
consentkeys whoami

Example: App Setup in Seconds

consentkeys login
consentkeys apps create --name "My App"
consentkeys apps list

Commands

Authentication

| Command | Description | | -------------------- | ---------------------------------------------------------- | | consentkeys login | Authenticate via device authorization flow (opens browser) | | consentkeys logout | Clear stored credentials | | consentkeys whoami | Display current authenticated identity |


Application Management

| Command | Description | | ----------------------------------------- | ------------------------ | | consentkeys apps list | List all applications | | consentkeys apps create | Create a new application | | consentkeys apps get <id> | Get application details | | consentkeys apps update <id> | Update an application | | consentkeys apps delete <id> | Delete an application | | consentkeys apps regenerate-secret <id> | Regenerate client secret |

The <id> parameter accepts either the Client ID (e.g. ck_abc123...) or the internal UUID.


Configuration

| Command | Description | | -------------------------------------- | ---------------------------------- | | consentkeys config set api-url <url> | Set the API server URL | | consentkeys config get api-url | Display the current API server URL |


Non-Interactive Mode

All app management commands support non-interactive execution for CI/CD pipelines and scripting.

Creating an app without prompts

consentkeys apps create \
  --name "My App" \
  --redirect-uris "https://example.com/callback" \
  --scopes "openid,email"

Optional flags: --description, --website-url, --privacy-policy-url, --terms-of-service-url, --require-pkce


Updating an app

consentkeys apps update ck_abc123 \
  --name "New Name" \
  --redirect-uris "https://new.com/cb"

Only modified fields are sent to the API.


Destructive operations

Use --yes / -y to skip confirmation:

consentkeys apps delete ck_abc123 --yes
consentkeys apps regenerate-secret ck_abc123 --yes

Hybrid mode

When flags are partially provided in a TTY, the CLI prompts only for missing values and uses provided flags as defaults.


JSON output

All app commands support machine-readable output via --json:

consentkeys apps list --json
consentkeys apps create \
  --name "Test" \
  --redirect-uris "https://x.com/cb" \
  --scopes "openid" \
  --json
  • Success → stdout (single JSON line)
  • Errors → stderr {"error":"...","message":"..."}

Valid Scopes

openid, profile, email, address


Configuration Files

Stored in ~/.consentkeys/:

| File | Purpose | | ------------------ | ------------------------------- | | config.json | API URL and CLI settings | | credentials.json | OAuth tokens (access + refresh) |

All files are created with restrictive permissions (0o600).

Default API URL: https://api.consentkeys.com


License

UNLICENSED — All rights reserved.