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

@cluesurf/zone

v0.0.8

Published

Environment and secrets: bind a machine, keep its credential in the system keystore, run a command with a zone's values in its environment.

Readme

Installation

pnpm add @cluesurf/zone

It installs the zone command. A prebuilt console runs with Node alone; @bitwarden/sdk-napi is an optional dependency, and where it has no binary (alpine, musl) the bws command line tool is used for reads.

Overview

zone binds a machine, keeps its bootstrap credential in the operating system's own keystore, and runs a command with secrets that exist only for the life of that child process.

Nothing lands in a .env, a shell profile, git, or the terminal.

zone load example -- npm run dev

Commands

zone bind      configure this machine: who you are, where secrets live
zone call      run a command with secrets in its environment
zone code      manage this machine's bootstrap credentials
zone load      run a command with a zone's values in its environment
zone list      the names a path resolves to, never their values
zone save      save the declaration to the provider. Never deletes
zone wash      rewrite stored notes into the current shape
zone read      fetch from the provider and fill the local cache
zone move      values, to a platform that keeps its own copy
zone hook      put one value on the clipboard, without printing it
zone scan      what is wrong across the tree. Needs no provider
zone walk      every zone path, one per line, for shell completion
zone deck      which declarations are in force here, and their caches
zone lock      the master key that opens this machine's local cache
zone show      what this machine is bound to
zone test      check the whole setup without revealing anything
zone toss      unbind this machine and remove every stored code

zone <command> --help describes each one.

Three kinds of thing

Kept as distinct types on purpose, because collapsing them is how a bootstrap credential ends up treated like an ordinary variable and printed.

| | | | --- | --- | | code | the bootstrap credential that opens a provider | | hold | a value retrieved from that provider | | need | a declared requirement, carrying no value at all |

Where the credential lives

The bootstrap credential is kept in one of five stores, chosen by what the machine has. zone bind records the choice, and zone show reports it.

| store | where the credential lives | | --- | --- | | keychain | macOS Keychain, through security | | secret | Linux Secret Service, through secret-tool | | manager | Windows Credential Manager | | env | the ZONE_CODE environment variable | | prompt | nowhere, asked on each run |

The system stores are preferred: encrypted at rest, and unlocked by the user's own login. env is the headless store. A CI runner, a container, or a server has no desktop keychain but does have an environment, filled from whatever secret store the platform provides. Set ZONE_CODE (or ZONE_CODE_<TIER> for one tier) to the bootstrap token and zone fetches everything else, so the platform holds one secret instead of a whole .env. Force a store with ZONE_SAVE=env when detection would pick the wrong one.

Where things are on disk

| file | holds | written by | | --- | --- | --- | | ~/.base/@term/zone/zone.tree | the machine binding: who this machine is, its provider, which store holds the credential. No secret | zone bind | | <project>/zone.tree | the declaration: the names a project needs, never their values. Safe to commit | you | | <project>/.base/@cluesurf/zone/zone.code.tree | the local cache of fetched values, sealed with the master key | zone read |

The machine binding, as zone bind writes it:

zone <1>

mind ada
host ada-laptop
base development

hold bitwarden
  team example

save keychain

A declaration, at the root of a project:

self example

base bitwarden

bind api-region, <us-east>

need api-key
need database-url
want error-report-dsn

zone moon
  need database-url

need must be present or the command refuses to start. want may be absent. bind is plain config, read from the file on every run and never stored at the provider. A zone block inherits every name above it. Names are kebab-case here and become SCREAMING_SNAKE_CASE in the child's environment.

What it will not do

  • Print a credential. There is no flag for it.
  • Mask one. A fragment still identifies the service and often the account.
  • Put a credential in a command argument, where process inspection sees it.
  • Pretend removing a local copy revoked anything remotely.

Tests

bash test/all.sh

From this folder, with Term installed (https://term.surf). It first checks that nothing in the package reaches outside it (test/alone.mjs), then builds the package with the Term release deck.tree asks for (need @term/code, mark <2.9.x>), runs the .tree suites under test/ through term test, the TypeScript suites for sealing, the cache and the provider SDK, and the shell harnesses for fresh, save, load, help and the end-to-end run against a fake provider, which touches no keychain. The TypeScript suites run under tsx, which must be on PATH.

Running it

call/zone boots the source with the installed term, at the release deck.tree asks for, and otherwise runs the built console in host/line/, which runs with node alone:

term boot code/line/base.tree --out host/line

Link it once to type zone from anywhere:

ln -s "$PWD/call/zone" ~/.local/bin/zone

License

Copyright 2021-2026+ ClueSurf

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

ClueSurf

Made by ClueSurf, meditating on the universe.