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

@chaprola/cli

v1.0.0

Published

Command-line tool for bootstrapping Chaprola apps. `chaprola init <app>` clones the starter template, wires your credentials into .env, and commits a safe-by-default initial repo state where .env is gitignored from the first commit.

Readme

@chaprola/cli

Command-line tool for scaffolding Chaprola apps.

Install

npx @chaprola/cli init my-app

Or globally:

npm install -g @chaprola/cli
chaprola init my-app

Usage

chaprola init <app-name> [--template vanilla|react-auth]

Templates

  • vanilla (default) — minimal HTML/JS shell + HELLO.CS program.
  • react-auth — Vite + React + TypeScript with chaprola-auth pre-wired (useAuth() hook, <AuthGate>, <LoginCard>, typed API client).

What init does

  1. Clones the selected template from github.com/cletcher/chaprola-app-starter into ./<app-name>/.
  2. Prompts interactively for your Chaprola username and API key (chp_…).
  3. Verifies the key against GET /hello before writing anything sensitive to disk.
  4. Copies .env.example → .env with your credentials filled in (mode 0600).
  5. Sanity-checks that .gitignore actually excludes .env.
  6. Runs git init + stages everything + creates the first commit.
  7. Double-checks that .env is NOT staged before committing. Bails loudly if anything went wrong.

By the time init finishes, your project state makes it structurally harder to leak an API key by accident. .env is gitignored from the first commit; it cannot appear in history.

Why this exists

On 2026-04-20 a user forgot to add .env to .gitignore and pushed two live chp_ keys to public GitHub. No amount of documentation prevents the next one. chaprola init starts every project in a safe-by-default state.

Requirements

  • Node.js ≥ 18 (for built-in fetch).
  • git on PATH.

Future subcommands (not v1)

  • chaprola deploy <app-name> — wraps /app/deploy.
  • chaprola logs — recent audit trail for your key.
  • chaprola rotate — self-service key rotation.

License

MIT.