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

@signalbox/service-cli

v0.7.0

Published

signalbox service CLI: config-driven command line and systemd lifecycle management for a long-running app, with no domain logic baked in

Readme

@signalbox/service-cli

A config-driven command line and systemd lifecycle manager for a long-running signalbox app — with no domain logic baked in.

Part of signalbox — see the full documentation.

Install

npm install @signalbox/service-cli

Linux-only for the systemd parts (setup/start/status); the config commands work anywhere.

Usage

Describe your app once and get a full CLI for it:

import { runCliMain } from "@signalbox/service-cli"
import { createConfigStore } from "@signalbox/config"
import { schema } from "./config.js"

await runCliMain({
    appName: "my-service",
    tagline: "does the thing",
    schema,
    createStore: path => createConfigStore({ appName: "my-service", schema, ...(path ? { path } : {}) }),
    createApp: config => createMyApp(config), // returns something with run()
})

That gives you:

| command | does | | ----------------------------------------------------- | ------------------------------------------------------------- | | config init \| interactive \| list \| get \| reveal | safely inspect and edit config | | config set \| unset \| rekey \| keys \| path | mutate config and manage key lifecycle | | config export \| import | transfer config securely between instances | | setup / teardown [--purge] | install or remove the systemd service | | start \| stop \| restart \| status | control it | | run | run in the foreground (what systemd calls) | | once | apply state a single time and exit (if runOnce is provided) |

Secret values never belong in argv: config set <secret> opens a cursor-aware masked editor, while --stdin and --file support automation. config get remains masked; only config reveal <secret> prints plaintext.

Transfer between instances

Config transfer uses the standard age executable and format. Install age, then encrypt an export to the destination operator's Age or SSH public key:

my-service config export --recipient 'ssh-ed25519 AAAA...' --output config.age

On the destination, import with the matching private identity:

my-service config import --identity ~/.ssh/id_ed25519 --file config.age

Age prompts securely when the SSH private key is passphrase-protected. ssh-rsa, ssh-ed25519, and native age1... recipients are supported; use --recipients-file <path> to encrypt for multiple recipients. Import checks the bundle version and app name, validates the complete config schema, then encrypts every secret under the destination instance's local at-rest key. Plaintext is passed in memory and is not written to an intermediate file. Existing destination config requires confirmation or --yes. Export refuses to overwrite its output file.

Set SIGNALBOX_AGE_EXECUTABLE when age is not on PATH.

The service runs as a dedicated system user under systemd hardening, not as root. ServiceApp.systemService can select the user/group, supplementary groups, a runtime directory, and narrow writable paths without accepting raw unit directives. Setup seals active and retired keys with systemd-creds, verifies every round trip, loads them through unit credentials, then removes verified file-fallback copies. Config lives at /etc/<appName>/config.json as root, otherwise ~/.config/<appName>/config.json, written 0640 when it holds secrets. Use createServiceManager directly for programmatic control.

License

MIT