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

@nextera.one/openlogs-cli

v2.1.0

Published

OpenLogs CLI v2 (Reality Containers)

Readme

@nextera.one/openlogs-cli

Command-line tool for creating, signing, verifying, and inspecting OpenLogs v2 records on disk.

Install

npm i -g @nextera.one/openlogs-cli

Commands

openlogs init

Create an Ed25519 identity keypair for signing records.

openlogs init
openlogs init --out ./my-identity.json --kid kid:prod-key

Options:

  • -o, --out <path> — Output path (default: .openlogs/identity.json)
  • --kid <kid> — Key identifier to embed in signatures (default: kid:local)

openlogs log

Append a new signed v2 record to a JSONL file.

openlogs log \
  --actor "user:alice" \
  --event "auth.login" \
  --tps "tps://L:40.7128,-74.0060@T:greg.m3.c1.y26.m3.d3.h16.m30.s0.m0" \
  --data '{"method":"oauth2"}'

Options:

  • -a, --actor <actor> — Actor identifier (required)
  • -e, --event <event> — Event type (required)
  • -t, --tps <tps> — TPS Reality String (required)
  • -d, --data <json> — JSON payload (default: {})
  • -x, --indexes <json> — JSON indexes for querying
  • -f, --file <path> — Output JSONL file (default: ./openlogs.jsonl)
  • -k, --key <path> — Identity JSON path (default: .openlogs/identity.json)
  • --unsigned — Do not sign the record

openlogs verify

Verify hash chain integrity and signatures of an OpenLogs JSONL file.

openlogs verify
openlogs verify --file ./audit.jsonl

Options:

  • -f, --file <path> — Input JSONL file (default: ./openlogs.jsonl)

openlogs inspect

Inspect records from an OpenLogs JSONL file with multiple output formats.

openlogs inspect                          # Full JSON output
openlogs inspect --last                   # Last record only
openlogs inspect -n 5                     # Last 5 records
openlogs inspect --format table           # Table view
openlogs inspect --format compact         # Compact one-line-per-record

Options:

  • -f, --file <path> — Input JSONL file (default: ./openlogs.jsonl)
  • --last — Show only the last record
  • -n, --count <n> — Show last N records
  • --format <format> — Output format: json (default), compact, or table

openlogs export

Export records to JSON array or CSV format.

openlogs export                           # JSON array output
openlogs export --format csv              # CSV with auto-detected fields
openlogs export --format csv --fields entry.id,entry.event,hash

Options:

  • -f, --file <path> — Input JSONL file (default: ./openlogs.jsonl)
  • --format <format> — Output format: json (default) or csv
  • --fields <fields> — Comma-separated fields for CSV (auto-detects if omitted)

Typical Workflow

# 1. Initialize identity
openlogs init

# 2. Log some events
openlogs log -a "user:alice" -e "door.unlock" \
  -t "tps://L:40.71,-74.00@T:greg.m3.c1.y26.m3.d3.h08.m0.s0.m0"

openlogs log -a "system:audit" -e "data.read" \
  -t "tps://L:40.71,-74.00@T:greg.m3.c1.y26.m3.d3.h08.m5.s0.m0" \
  -d '{"query":"SELECT * FROM users"}'

# 3. Verify chain
openlogs verify

# 4. Inspect records
openlogs inspect --format table

# 5. Export
openlogs export --format csv > audit.csv

License

Apache-2.0