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

@stratum-hq/control-plane

v0.3.0

Published

Stratum control plane REST API server

Readme

@stratum-hq/control-plane

The Stratum control plane — a Fastify REST API server that exposes tenant, config, permission, API-key, webhook, audit, consent, region, and ABAC management over HTTP. Pair it with @stratum-hq/sdk for polyglot stacks or service separation.

Installation

npm install @stratum-hq/control-plane

Most deployments run it as a standalone service rather than importing it. A container image and Compose file ship with the Stratum repo.

Running

DATABASE_URL=postgres://stratum:stratum_dev@localhost:5432/stratum \
JWT_SECRET=your-secret \
node dist/index.js

On startup the server runs database migrations, then listens on PORT (default 3001). It handles SIGTERM/SIGINT for graceful shutdown. OpenAPI docs are served via @fastify/swagger-ui.

Configuration

| Variable | Default | Description | |----------|---------|-------------| | PORT | 3001 | Listen port | | DATABASE_URL | postgres://stratum:stratum_dev@localhost:5432/stratum | PostgreSQL connection string | | JWT_SECRET | dev fallback | JWT signing secret — required in production/staging (server refuses to start without it) | | ALLOWED_ORIGINS | localhost:3000,3300 | Comma-separated CORS allowlist | | RATE_LIMIT_MAX | 100 | Requests per window | | RATE_LIMIT_WINDOW | 1 minute | Rate-limit window | | REDIS_URL | — | Optional; enables distributed rate limiting | | NODE_ENV | development | Environment |

Security middleware (@fastify/helmet, CORS, rate limiting) is enabled by default.

API Surface

All routes are versioned under /api/v1:

| Prefix | Resource | |--------|----------| | /api/v1/tenants | Tenant CRUD + hierarchy | | /api/v1/tenants/:id/config | Config entries | | /api/v1/tenants/:id/permissions | Permission policies | | /api/v1/tenants/:tenantId/abac-policies | ABAC policies | | /api/v1/tenants/:tenantId/consent | GDPR consent records | | /api/v1/api-keys | API-key management | | /api/v1/webhooks | Webhook subscriptions | | /api/v1/audit-logs | Audit log queries | | /api/v1/regions | Multi-region config | | /api/v1/roles | RBAC roles | | /api/v1/config | Config diff | | /api/v1/maintenance | Retention / purge tasks |

A /health endpoint reports server and Redis status.

Links

  • Documentation: https://docs.stratum-hq.org
  • GitHub: https://github.com/stratum-hq/Stratum

License

MIT © Christian Crank