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

dark-factory

v2.0.0

Published

AI-powered development pipeline for Claude Code — specs in, production-grade features out

Readme

Prime Factory

A telemetry dashboard for Dark Factory — track CLI usage, developer activity, and feature pipeline health across your team.

What it does

  • API key management — generate and revoke install keys for developers
  • Event explorer — filter and paginate telemetry events by command, outcome, date range, and machine
  • Dashboard stats — at-a-glance view of activity across your org

Stack

  • Next.js 16 (App Router) on Cloudflare Workers via @opennextjs/cloudflare
  • D1 (SQLite) via Drizzle ORM
  • Tailwind CSS v4

Developer CLI

Developers interact with Prime Factory through shell scripts in cli-lib/. They never touch the dashboard directly.

Prerequisites

  • curl — required to download and run the install script

jq is not required. The CLI scripts have built-in fallbacks and do not depend on jq.

One-line install

curl -fsSL https://raw.githubusercontent.com/nguyenhuynhkhanh/prime-factory/main/cli-lib/install.sh | bash

Security note: This command pipes the install script directly to bash. If you prefer to review the script before running it, download and inspect it first: https://raw.githubusercontent.com/nguyenhuynhkhanh/prime-factory/main/cli-lib/install.sh

This installs three scripts to ~/.df-factory/bin:

| Script | Purpose | |---|---| | df-onboard.sh | First-time setup — validates API key and writes ~/.df-factory/config.json | | df-check-onboard.sh | Offline guard — checks config exists before running df commands | | log-event.sh | Fire-and-forget telemetry — called automatically by Dark Factory skills |

The installer also adds ~/.df-factory/bin to your PATH by appending the following line to ~/.zshrc (macOS) or ~/.bashrc (Linux):

export PATH="$HOME/.df-factory/bin:$PATH"

Re-running the install command is safe — it will not add a duplicate PATH entry.

Onboarding a developer

  1. Go to the dashboard → API Keys → generate a new key
  2. Share the key and the install command above with the developer
  3. After running the install, activate the PATH change:
    source ~/.zshrc   # macOS
    # or
    source ~/.bashrc  # Linux
  4. Run the onboarding script. You can use the full path immediately after install (before sourcing):
    ~/.df-factory/bin/df-onboard.sh
    Or use the bare name once the PATH is active (after source ~/.zshrc or a new terminal):
    df-onboard.sh
  5. Enter the server URL and API key when prompted
  6. Done — events flow automatically from their Dark Factory CLI usage

Upgrading

Re-run the install command to upgrade to the latest version of the CLI scripts. The operation is idempotent — scripts are overwritten and no duplicate PATH entries are added:

curl -fsSL https://raw.githubusercontent.com/nguyenhuynhkhanh/prime-factory/main/cli-lib/install.sh | bash

Uninstalling

  1. Remove the CLI directory:

    rm -rf ~/.df-factory/
  2. Remove the PATH line from your shell profile. Open ~/.zshrc (macOS) or ~/.bashrc (Linux) in your editor and delete the line:

    export PATH="$HOME/.df-factory/bin:$PATH"

    Or run the following one-liner (replace ~/.zshrc with ~/.bashrc if on Linux):

    grep -v 'export PATH="$HOME/.df-factory/bin:$PATH"' ~/.zshrc > /tmp/zshrc_clean && mv /tmp/zshrc_clean ~/.zshrc

Running locally

npm install
npm run db:setup   # create and migrate local D1
npm run dev

Open http://localhost:3000.

Deploying

npm run deploy

Builds with opennextjs-cloudflare and deploys to Cloudflare Workers + D1.

Running tests

npm test   # bats tests for the CLI scripts (requires bats-core)