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

svcctl

v0.5.6

Published

cross-init: cross-platform system startup supervisor (register any command as a user-level autostart item)

Downloads

928

Readme

svcctl (service control)

Cross-platform user-level autostart with a single supervisor process. Register any command to auto-start at login on Windows, macOS, and Linux — the supervisor keeps each child alive, captures logs, and hot-reloads on changes.

Quick start

# Add a command — first add also installs the OS-level supervisor
svcctl add bunx cctra

# Opt-in auto-restart on crash (default: don't restart)
svcctl add bunx cctra --restart

# List registered entries
svcctl ls

# View logs
svcctl log bunx-cctra
svcctl log bunx-cctra -f   # follow

# Remove
svcctl remove bunx-cctra

# Status
svcctl status

Manual vs auto vs auto-restart

Each entry has two independent knobs in ~/.config/svcctl/entries.toml:

| Field | Default | Meaning | |------------|---------|------------------------------------------------------------| | startup | true | false = manual only (supervisor won't spawn at boot) | | restart | false | true = opt-in auto-restart on child exit |

  • startup = false (manual) entry won't be spawned when the supervisor starts. Run svcctl start <name> to launch it.
  • restart = true opts into auto-restart when the child dies. Default is off — most programs have internal try/catch and supervisor restart is extra complexity you probably don't need.

How it works

svcctl installs one OS-level autostart item (HKCU\Run on Windows, LaunchAgent on macOS, systemd user unit on Linux) that runs a supervisor process. The supervisor reads ~/.config/svcctl/entries.toml and launches all added commands at boot, redirecting each command's stdout/stderr to ~/.local/state/svcctl/logs/<name>.log.

Adding or removing entries hot-reloads the supervisor — no restart needed:

  • macOS / Linux: fs.watch on entries.toml (event-driven, < 100ms)
  • Windows: mtime check piggybacked on the reap loop (< 1s)

Install (development)

bun install
bun run build:all        # Windows only — regenerate icon + build SvcCtl.exe

If you only need to rebuild without changing the icon:

bun run build:launcher   # cargo build only

Changing the icon

Source image lives in launcher/assets/svcctl-source.png (a backup of whatever you last fed to build-icon.ps1).

# Edit the source (1024x1024 RGBA PNG recommended; 球+halo should fill the canvas)
# Then rebuild icon + exe in one shot:
bun run build:icon -Source /path/to/your/new-orb.png
bun run build:launcher
# or just:
bun run build:all -Source /path/to/your/new-orb.png

The icon shows up in Task Manager as svcctl (FileDescription) with the new orb glyph.

Bumping the version

Versions live in two places that must stay in sync: package.json (npm CLI) and launcher/Cargo.toml (Rust supervisor). Both the VERSIONINFO on the .exe and the npm-published version come from these.

# Bump both + rebuild in one shot:
bun run bump 0.4.0
# or:
pwsh scripts/bump-version.ps1 0.4.0

The script validates the semver, updates both files, and calls build-all.ps1 to rebuild. After it finishes:

git diff package.json launcher/Cargo.toml
git add -A && git commit -m "v0.4.0"

License

MIT