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

@syntropic137/setup

v0.23.0

Published

Zero-dependency self-host setup CLI for Syntropic137

Downloads

2,122

Readme

syntropic137

Zero-dependency self-host setup CLI for Syntropic137. One command to go from nothing to a fully running stack.

npx @syntropic137/setup init

Prerequisites: Node 18+ and Docker (with Compose v2.20+). That's it.

What it does

The init command walks you through a 10-step interactive setup:

  1. Check Docker — verifies Docker and Compose v2.20+ are installed and running
  2. Create directory — sets up ~/.syntropic137/ with the required structure
  3. Copy templates — writes the Docker Compose file, entrypoint script, env template, and database init SQL
  4. Generate secrets — creates cryptographically random passwords for Postgres, Redis, and MinIO (chmod 600)
  5. Configure LLM provider — prompts for your Anthropic API key (or picks up ANTHROPIC_API_KEY / CLAUDE_CODE_OAUTH_TOKEN from your environment)
  6. GitHub App setup — runs the GitHub App Manifest flow to create a GitHub App with the right permissions in one click (optional, skippable)
  7. Write .env — renders the final configuration from your answers
  8. Pull imagesdocker compose pull from GHCR
  9. Start servicesdocker compose up -d
  10. Health check — polls http://localhost:8137/health until the stack is ready

When it's done, you have a running Syntropic137 instance at http://localhost:8137.

Options

npx @syntropic137/setup init [options]

--org <name>          Create the GitHub App under an org (default: personal account)
--name <app-name>     GitHub App name (default: syntropic137)
--dir <path>          Install directory (default: ~/.syntropic137)
--skip-github         Skip GitHub App creation
--skip-docker         Skip image pull and container startup (templates only)
--webhook-url <url>   Set a webhook URL for the GitHub App

Lifecycle commands

After initial setup, manage your stack with:

npx @syntropic137/setup status    # Container health (docker compose ps)
npx @syntropic137/setup stop      # Stop the stack
npx @syntropic137/setup start     # Start the stack
npx @syntropic137/setup logs      # Tail container logs
npx @syntropic137/setup update    # Pull latest images and restart

All commands accept --dir <path> if your install directory isn't the default.

How the GitHub App Manifest flow works

When you don't pass --skip-github, the CLI creates a GitHub App automatically:

  1. A local HTTP server starts on a random port (bound to 127.0.0.1 only)
  2. Your browser opens to a local page that auto-submits a form to GitHub with the app manifest (permissions, events, callback URL)
  3. GitHub shows you a "Create App" confirmation page — you click Create
  4. GitHub redirects back to the local server with a temporary code
  5. The CLI exchanges that code for the app's credentials (private key, webhook secret, client secret) via the GitHub API
  6. Credentials are saved to ~/.syntropic137/secrets/ with chmod 600
  7. Your browser opens the app's installation page so you can choose which repos to grant access

The private key (PEM) is mounted into containers as a Docker secret (tmpfs-backed, never written to the container filesystem). Installation IDs are resolved dynamically at runtime — the app can be installed across multiple orgs and repos.

What gets installed

Everything lives in ~/.syntropic137/:

~/.syntropic137/
├── docker-compose.syntropic137.yaml   # Full stack definition
├── selfhost-entrypoint.sh             # Secret injection at container startup
├── selfhost.env.example               # Reference template
├── .env                               # Your configuration (chmod 600)
├── init-db/
│   └── 01-create-databases.sql        # Database schema
├── secrets/
│   ├── db-password.secret             # Postgres password (chmod 600)
│   ├── redis-password.secret          # Redis password (chmod 600)
│   ├── minio-password.secret          # MinIO password (chmod 600)
│   └── github-app-private-key.pem     # GitHub App private key (chmod 600)
└── workspaces/                        # Agent workspace mount

To uninstall: docker compose -f ~/.syntropic137/docker-compose.syntropic137.yaml down -v && rm -rf ~/.syntropic137

The stack

The Docker Compose file runs these services:

| Service | Image | Purpose | |---------|-------|---------| | TimescaleDB | timescale/timescaledb | Unified Postgres database (event store + observability) | | Event Store | ghcr.io/syntropic137/event-store | gRPC event sourcing server | | Collector | ghcr.io/syntropic137/syn-collector | Agent event ingestion | | API | ghcr.io/syntropic137/syn-api | Query and control service | | Gateway | ghcr.io/syntropic137/syn-gateway | nginx reverse proxy + dashboard UI | | MinIO | minio/minio | S3-compatible artifact storage | | Redis | redis:7-alpine | Caching and pub/sub | | Envoy Proxy | ghcr.io/syntropic137/sidecar-proxy | Shared credential injection proxy | | Token Injector | ghcr.io/syntropic137/token-injector | ext_authz service for agent credentials | | Docker Socket Proxy | tecnativa/docker-socket-proxy | Restricted Docker API access for the API service |

Optional: Cloudflare Tunnel (set COMPOSE_PROFILES=tunnel in .env for remote access).

Security

This repo is the supply chain entry point for every npx @syntropic137/setup user. It is deliberately isolated from the main platform repo. See SECURITY.md for the full threat model.

  • Zero runtime dependencies — Node 18+ stdlib only. Nothing to hijack in the dependency tree.
  • Separate repo from the platform — compromising the main Syntropic137 repo does not grant npm publish access. The cross-repo dispatch token can trigger workflow runs here but cannot push code, merge PRs, or alter what gets published.
  • Publish only deploys reviewed code — npm publish deploys whatever is on main. Since the dispatch token has no write access to repository contents, it cannot inject malicious code into the publish pipeline. The only path to main is through a human-reviewed PR.
  • Trusted Publishing (OIDC) — no npm token is stored anywhere. Every published version includes a signed provenance attestation linking it to the exact commit and workflow run. Verify with npm audit signatures.
  • Secrets never in .env — passwords and keys are stored as separate files (chmod 600) and mounted as Docker secrets (tmpfs-backed, never on the container filesystem).
  • No auto-publish — npm releases require a manual workflow_dispatch trigger. Template syncs from upstream open a PR but never auto-merge or auto-publish.

Contributing

See docs/development.md for build instructions, source structure, and architecture.

License

MIT