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

@codebox.club/cli

v0.1.0

Published

Official CLI for CodeBox QR code platform

Downloads

16

Readme

@codebox.club/cli

Official CLI for the CodeBox QR code platform.

Installation

npm install -g @codebox.club/cli
# or
pnpm add -g @codebox.club/cli

Quick Start

# Set your API key (get one at https://www.codebox.club/dashboard/apikeys)
codebox config set api-key cb_sk_your_key_here

# Create a QR code
codebox qr create "https://example.com" --mode DYNAMIC --name "My QR"

# List your QR codes
codebox qr list

# View scan analytics
codebox qr stats <qr-id>

# Browse templates
codebox template list
codebox template search "tech"

Authentication

API key is resolved in this order:

  1. --api-key flag
  2. CODEBOX_API_KEY environment variable
  3. ~/.codeboxrc config file
# Option 1: Config file (recommended for local dev)
codebox config set api-key cb_sk_xxx

# Option 2: Environment variable (recommended for CI)
export CODEBOX_API_KEY=cb_sk_xxx

# Option 3: Flag (one-off)
codebox --api-key cb_sk_xxx qr list

Commands

QR Codes

codebox qr create <content>     # Create a QR code
  -m, --mode <STATIC|DYNAMIC>   # Default: DYNAMIC
  -t, --template <id>           # Template ID
  -k, --keywords <words...>     # Keywords for template matching
  -n, --name <name>             # Name
  --logo <url>                  # Logo URL
  --size <px>                   # Size in pixels
  -e, --error-level <L|M|Q|H>  # Error correction level

codebox qr list                  # List QR codes
  -p, --page <n>                # Page (default: 1)
  -s, --size <n>                # Page size (default: 10)
  -m, --mode <mode>             # Filter: STATIC, DYNAMIC, AI
  -k, --keyword <text>          # Filter by keyword

codebox qr stats <id>           # Scan analytics
  --start-date <YYYY-MM-DD>
  --end-date <YYYY-MM-DD>

codebox qr update <id>          # Update QR code
  -u, --url <targetUrl>
  -n, --name <name>
  --status <READY|EXPIRED|DELETED>

codebox qr delete <id>          # Delete QR code
  -f, --force                   # Skip confirmation

codebox qr clone <id>           # Clone QR code
  -n, --name <name>
  -c, --content <content>

codebox qr scans <id>           # List scan events
  -p, --page <n>
  -s, --size <n>
  --start-date <YYYY-MM-DD>
  --end-date <YYYY-MM-DD>

codebox qr batch <file>         # Batch create from JSON (max 20)

Templates

codebox template list            # List all templates
  -c, --category <name>         # Filter by category

codebox template search <keyword> # Search templates

Webhooks

codebox webhook create <url>     # Create webhook
  --events <events...>          # Default: scan.created, qrcode.created

codebox webhook list             # List webhooks
codebox webhook update <id>      # Update webhook
codebox webhook delete <id>      # Delete webhook

Config

codebox config set <key> <value> # Set api-key or base-url
codebox config get <key>         # Get config value
codebox config list              # Show all config
codebox config unset <key>       # Remove config value

Global Options

--api-key <key>   # Override API key
--base-url <url>  # Override API base URL
--json            # Output as JSON (machine-readable)
--version         # Show version
--help            # Show help

JSON Output

All commands support --json for machine-readable output:

codebox qr list --json | jq '.data[].id'
codebox qr stats abc123 --json > stats.json

Batch Create

Create a JSON file with an array of QR code definitions:

[
  { "content": "https://example.com/1", "mode": "DYNAMIC", "name": "Link 1" },
  { "content": "https://example.com/2", "mode": "DYNAMIC", "name": "Link 2" }
]

Then run:

codebox qr batch items.json

Custom Server

For self-hosted CodeBox instances:

codebox config set base-url https://my-codebox.example.com
# or
export CODEBOX_BASE_URL=https://my-codebox.example.com