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

@intentic/gate

v1.232.0

Published

Run an intentic release gate from a CI pipeline, POST what the pipeline knows, wait for the run, exit on the verdict

Readme

@intentic/gate

The one-line CI step for a release gate: POSTs what the pipeline knows to a gated workflow's webhook, waits for the run, and exits on the verdict.

Responsibilities

A gated workflow (see _sandbox/sandbox, gate.routes.ts) already answers a bare curl: POST the request, hold the connection, read {outcome, reason, runId} back. What every team then writes around that curl is the same six lines of shell: map pass/fail/blocked to exit codes, print the reason where the log will show it, keep the client's timeout longer than the server's hold. This package is those six lines, written once:

npx @intentic/gate "commit $SHA on $BRANCH — preview at $URL"
  • pass exits 0, fail exits 1.
  • blocked (the gate could not judge) exits 0 by default, because "the check broke" must not read as "the product broke". --blocked <code> points it at a real neutral where the CI system has one.
  • Exit 2 is never a verdict: it means the exchange itself failed (wrong token, no such gate, the daily run ceiling, network), which needs the pipeline's owner rather than the product's.

The URL (token and all) comes from --url or the INTENTIC_GATE_URL environment variable: the shape every CI secret store hands things over in. The request is the arguments joined, or stdin when none are given. The --wait deadline (default 1800 s) rides to the server, and the HTTP client waits a minute longer, so the deadline that fires is the server's: which stops the run instead of abandoning it mid-spend.

Pipeline templates

GitHub Actions has a step of its own: the Marketplace action (_sandbox/gate-action), which wraps this package's exchange and composes the request from the workflow's context:

- name: Release gate
  uses: intentic/gate-action@v1
  with:
    url: ${{ secrets.INTENTIC_GATE_URL }}

GitLab CI, allow_failure: exit_codes is a real neutral, so blocked can have its own colour:

release-gate:
  image: node:24-alpine
  script:
    - npx --yes @intentic/gate --blocked 3 "commit $CI_COMMIT_SHA on $CI_COMMIT_REF_NAME"
  allow_failure:
    exit_codes: [3]

How it fits

The gate route is the daemon's door for a caller with no identity; the designer's gate panel (the workflows extension) is where a gate is declared and its URL copied. This package is the third leg: the caller's side of the exchange, distributed on npm so a pipeline runs it cold with npx. On GitHub specifically the same exchange wears Marketplace clothes: @intentic/gate-action bundles this package's pure functions into the intentic/gate-action action: and every other CI system runs this CLI. It deliberately depends on nothing: every dependency would be install time on every pipeline of every team: and its hand-rolled verdict reader is held against @intentic/sandbox-contract's schema by a test instead of by an import.

Key files

  • src/gate.ts, everything the CLI decides, as pure functions: argument parsing, the dialled URL, the verdict reader, the exit mapping.
  • src/cli.ts, the process around them: stdin, one fetch, stdout, an exit code.
  • src/gate.test.ts: the behaviour a pipeline relies on, including the reader-versus-contract agreement test.