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

@synapsor/cli

v0.1.0-beta.1

Published

Synapsor Cloud CLI for contracts, projects, approvals, Runner connections, and audit records.

Readme

@synapsor/cli

The Synapsor Cloud CLI manages the shared control plane: projects, canonical contract versions, scoped API keys, Runner connections, proposal decisions, activity, metadata-only evidence references, receipts, replay references, and audit exports.

It is deliberately separate from @synapsor/runner:

  • synapsor-runner is the open-source MCP and database safety boundary. It reads customer databases, creates local proposals/evidence, and performs guarded writeback.
  • synapsor is the Cloud administration, human review, and audit client. It never opens a Runner SQLite file and does not receive database credentials.

Install

npm install --global @synapsor/cli
synapsor --help

For an isolated one-off invocation:

npx -y -p @synapsor/cli synapsor --help

Human Login

synapsor auth login --open
synapsor auth whoami
synapsor workspaces list
synapsor projects list
synapsor projects use <project-id>
synapsor entitlements show

Login uses a short-lived browser/device flow. The CLI uses the operating-system keychain when secret-tool is available and otherwise uses a mode-0600 fallback file. Profiles store only non-secret endpoint and selection metadata.

CI With A Scoped API Key

Create a least-privilege key from an authorized human profile and write its one-time value to a protected file:

synapsor api-keys create \
  --project <project-id> \
  --name contract-ci \
  --scopes project:read,contracts:read,contracts:write \
  --expires-at 2026-12-31 \
  --secret-file ./.synapsor/contract-ci.key

export SYNAPSOR_API_KEY="$(cat ./.synapsor/contract-ci.key)"
synapsor contracts push ./synapsor.contract.json --project <project-id>

The CLI does not accept Cloud secrets as command-line values. It can resolve a service key from SYNAPSOR_API_KEY, a named environment variable, or an explicit mode-0600 file reference:

synapsor auth configure-service \
  --profile ci \
  --api-url https://dev-api.synapsor.ai \
  --project <project-id> \
  --credential-env SYNAPSOR_API_KEY

Service API keys cannot record human proposal decisions unless Cloud explicitly grants that authority. Runner tokens are a separate machine credential and are rejected by Cloud administration routes.

Contract And Runner Flow

synapsor contracts validate ./synapsor.contract.json
synapsor contracts diff ./before.json ./synapsor.contract.json
synapsor contracts push ./synapsor.contract.json --dry-run --project <project-id>
synapsor contracts push ./synapsor.contract.json --project <project-id>
synapsor contracts list --project <project-id>

synapsor runners create \
  --project <project-id> \
  --sources <source-id> \
  --secret-file ./.synapsor/runner.token

Omitting --permissions requests Cloud's bounded Runner-protocol permission set. Supply --permissions <csv> to narrow the machine token further.

synapsor-runner cloud push remains supported for Runner-centric workflows and uses the same canonical digest, API, idempotency, and scoped service credential as synapsor contracts push.

Human Review

synapsor proposals list --project <project-id>
synapsor proposals show <proposal-id> --project <project-id>
synapsor proposals approve <proposal-id> --project <project-id> --yes

Approval changes Cloud governance state only. A trusted Runner still needs an authorized lease and must enforce the reviewed tenant/principal scope, contract digest, version/conflict guards, bounds, and receipt policy before changing the source database.

Output And Automation

Use --json for stable machine-readable output, --no-interactive in CI, --limit/--cursor for one page, and bounded --all pagination when needed. Errors include a stable error_code, retryability, retry timing when available, and a request ID when Cloud provides one. Diagnostics go to stderr; requested data goes to stdout.

Full command and security reference: docs/cloud-cli.md.