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

@b3-crow/cctv-cli

v0.1.1

Published

CROW CCTV Edge Ingest Gateway CLI — RTSP frame sampling, local spool, and cloud upload

Downloads

1,247

Readme

@b3-crow/cctv-cli

CROW CCTV Edge Ingest Gateway CLI — RTSP frame sampling, local spool, and cloud upload.

Install

bun install

Commands

grab — Grab a single RTSP frame

bun run dev -- grab --rtsp "rtsp://localhost:8554/test" --out frame.jpg --timeout 10000

| Flag | Required | Default | Description | | ----------- | -------- | --------- | ----------------------- | | --rtsp | yes | — | RTSP stream URL | | --out | no | out.jpg | Output file path | | --timeout | no | 10000 | Timeout in milliseconds |

sample — Continuously sample RTSP frames to local spool

Runs a drift-free sampling loop that grabs frames at the configured FPS and writes them to a local spool directory with deterministic bucket_sec-based filenames. Ctrl+C for graceful shutdown with stats summary.

bun run dev -- sample --store mystore --camera cam1 --rtsp "rtsp://localhost:8554/test"

| Flag | Required | Default | Description | | ----------- | -------- | --------- | -------------------------------- | | --store | yes | — | Store identifier | | --camera | yes | — | Camera identifier | | --rtsp | yes | — | RTSP stream URL | | --spool | no | ./spool | Spool directory root | | --fps | no | 1 | Frames per second (0 < fps ≤ 30) | | --timeout | no | 10000 | Per-grab timeout in milliseconds |

Output path: <spool>/<store>/<camera>/<bucket_sec>_low.jpg

Development

# Build
bun run build

# Lint
bun run lint

# Run unit tests (no ffmpeg/RTSP needed)
bun run test

# Run with integration tests (requires RTSP stream)
RTSP_URL="rtsp://localhost:8554/test" bun run test

See docs/mediamtx-setup.md for setting up a local RTSP test server.

Requirements

Roadmap

| Phase | Description | | ----- | ----------------------------------------- | | 0 | ~~Hello camera — single frame grab~~ | | 1 | 1 FPS sampler + local spool (current) | | 2 | Local ingest stub | | 3 | Cloudflare ingest MVP (R2+D1) | | 4 | Multi-camera bucketing | | 5 | Composite mosaic | | 6 | ONVIF motion gating | | 7 | Sessionization + analysis trigger |

License

MIT