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

@wrkspace-co/env

v0.1.0

Published

Migration-first environment contract system for Node.js.

Readme

Airlock (@wrkspace-co/env) is a migration-first environment contract system for Node.js projects. You define env evolution with TypeScript migrations, then generate schema/docs/artifacts and validate targets (dev, preview, prod) from a single source of truth.

Docs: https://wrkspace-co.github.io/env/

Benefits

  • Single source of truth. Your env contract lives in env/migrations/*.ts, not scattered .env* files.
  • Safe iterative changes. Add, rename, deprecate, and remove keys with reviewable migration history.
  • CI-ready validation. Run strict checks with stable JSON output for automation.

Features

  • Chain-based migration API (ctx.key(...).define(...).value(...).remove())
  • Migration integrity and rollback support
  • Generated artifacts: .env*, env/schema.generated.json, env/ENV.md, env/env.audit.json
  • Environment validation, audit, and deprecation checks
  • Provider sync/diff/export workflows (Vercel/Heroku + export formats)
  • TypeScript-first

Install

pnpm add -D @wrkspace-co/env

If you also use the Wrkspace wrapper, install both packages:

pnpm add -D @wrkspace-co/cli @wrkspace-co/env

Quick start

  1. Create migration:
airlock migrate:make bootstrap-env
  1. Edit migration:
import type { EnvMigrationContext } from "@wrkspace-co/env";

export async function up(ctx: EnvMigrationContext) {
  ctx.setPrefixPolicy("nextjs");

  ctx.url("DATABASE_URL")
    .scope("server")
    .requiredIn("prod");

  ctx.url("NEXT_PUBLIC_SITE_URL")
    .scope("client")
    .requiredIn(["dev", "preview", "prod"])
    .value("https://example.com");

  ctx.enum("LOG_LEVEL")
    .values(["debug", "info", "warn", "error"])
    .requiredIn(["dev", "preview", "prod"])
    .defaultValue("info");

  ctx.string("OLD_TOKEN")
    .requiredIn("prod")
    .deprecate("NEW_TOKEN", "2026-12-31", "Rotate to NEW_TOKEN");
}

export async function down(ctx: EnvMigrationContext) {
  ctx.key("DATABASE_URL").remove();
  ctx.key("NEXT_PUBLIC_SITE_URL").remove();
  ctx.key("LOG_LEVEL").remove();
  ctx.key("OLD_TOKEN").remove();
  ctx.setPrefixPolicy(undefined);
}
  1. Apply migrations:
airlock migrate
  1. Validate target:
airlock check --target prod --json

Common commands

airlock migrate:status --json
airlock generate --write-local --write-target-files
airlock audit --json
airlock deprecations --json

wrkspace env <cmd> and airlock <cmd> use the same command handlers and options.

Learn more

Full documentation

Credits Airlock is a part of Wrkspace Co. © group.