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

@keyflare/cli

v0.1.1

Published

Keyflare CLI — kfl

Readme

@keyflare/cli

Keyflare CLI — kfl.

The kfl command-line tool is the primary interface for managing secrets in Keyflare. It communicates with the Keyflare Worker API over HTTPS.

Getting Started

Installation

npm install -g @keyflare/cli

Initial Setup

Deploy Keyflare to your Cloudflare account and generate your first API key:

kfl init

This interactive command will:

  1. Verify your Cloudflare API token
  2. Create a D1 database
  3. Generate a 256-bit master encryption key
  4. Deploy the Keyflare Worker
  5. Run database migrations
  6. Create your first user API key

Basic Usage

# Create a project
kfl projects create my-api

# Create an environment inside the project
kfl env create production --project my-api

# Upload secrets from a .env file
kfl upload .env.production --project my-api --env production

# Inject secrets into a command at runtime (no disk writes)
kfl run --project my-api --env production -- npm start

# Download secrets as a .env file
kfl download --project my-api --env production --output .env

Configuration

The CLI stores its configuration (API URL and key) in ~/.config/keyflare/ after running kfl init. You can also use environment variables:

| Variable | Description | |----------|-------------| | KEYFLARE_API_KEY | API key (overrides the credentials file) | | KEYFLARE_API_URL | API URL (overrides the config file) | | KEYFLARE_PROJECT | Default project | | KEYFLARE_ENV | Default environment |

Local Development

# From the repo root, install all dependencies
npm install

# Point the CLI at a locally running Keyflare server
export KEYFLARE_API_URL=http://localhost:8787
export KEYFLARE_API_KEY=kfl_user_<your-local-bootstrap-key>

# Run CLI commands during development (from this package directory)
npm run dev -- projects list

# Or from the repo root
npx tsx packages/cli/src/index.ts projects list

Building

npm run build

Produces a bundled dist/index.js (ESM) that is referenced by the kfl bin entry.

Commands

| Command | Description | |---------|-------------| | kfl init | Bootstrap a new Keyflare deployment | | kfl projects list/create/delete | Manage projects | | kfl env list/create/delete | Manage environments | | kfl secrets set/get/delete/list | Manage individual secrets | | kfl upload <file> | Upload a .env file (full replace) | | kfl download | Download secrets (.env, JSON, YAML) | | kfl run -- <cmd> | Inject secrets into a child process | | kfl keys list/create/revoke | Manage API keys | | kfl dev init/server | Local development helpers |

Scripts

| Script | Description | |--------|-------------| | npm run dev | Run CLI via tsx (no build step) | | npm run build | Bundle with tsup | | npm run typecheck | Type-check via tsc --noEmit | | npm test | Run tests with Vitest |

Further Reading