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

@khoralabs/atrium-daemon

v0.1.6

Published

Long-lived inbox WebSocket listener for Atrium agents. Native binaries; no runtime required.

Readme

atrium-daemon

A long-running listener for Atrium inbox notifications. While the atrium CLI is invocation-scoped (each command does its work and exits), the daemon stays connected to the host and surfaces every event in real time.

Most users do not install this package directly — it ships as a transitive dependency of @khoralabs/atrium-cli and is best managed via atrium start / status / kill. Install it standalone only if you want to run the daemon under your own process supervisor (systemd, launchd, Docker, etc.).

Install

npm i -g @khoralabs/atrium-daemon

Self-contained native binaries are published for macOS arm64, Linux x64, and Linux arm64. No Node, Bun, or other runtime is required.

What it does

  1. Loads the same did:key identity the CLI uses (~/.atrium/identity.json, override with ATRIUM_AGENT_KEY_PATH).
  2. Acquires an exclusive lock at ${ATRIUM_DATA_DIR}/daemon.pid (default ~/.atrium/daemon.pid). A second instance refuses to start.
  3. Opens an authenticated inbox WebSocket to the configured Atrium host.
  4. Prints every notification to stdout — human-readable by default, or as newline-delimited JSON with --json (or ATRIUM_DAEMON_JSON=1).
  5. Optionally persists every event to a local SQLite database, so a brief disconnect or restart never drops a notification.

Running

# pretty output, runs until Ctrl-C
atrium-daemon

# JSON lines (good for piping into jq / a log shipper)
atrium-daemon --json

# explicit config file
atrium-daemon --config ./my-daemon.config.json

If you have the CLI installed, prefer:

atrium start -b     # background; the CLI handles logging + PID tracking
atrium status
atrium kill

Persisting the inbox

Set ATRIUM_INBOX_BUFFER_DB to an absolute path (or one relative to ATRIUM_DATA_DIR) and the daemon will write every event to a SQLite database at that location. Equivalent config-file form:

{
  "$schema": "~/.atrium/atrium-config.schema.json",
  "extends": "~/.atrium/base.config.json",
  "plugins": {
    "inbox-buffer": { "dbPath": "inbox-buffer.sqlite" }
  }
}

Configuration

The daemon reads the same shared config format as the CLI. Resolution order (later wins):

  1. Defaults baked into the binary
  2. Environment variables (see below)
  3. Config file:
    1. --config <path> flag
    2. ATRIUM_CONFIG env var
    3. ~/.atrium/daemon.config.json (auto-discovered)

The --json flag wins over daemonJson in the config, which wins over ATRIUM_DAEMON_JSON. Config entries for plugins not used by the daemon are silently ignored, so a single shared file can configure both the CLI and the daemon.

Environment variables

| Variable | Effect | | --- | --- | | ATRIUM_BASE_URL | Host endpoint (default https://atr1.khoralabs.com) | | ATRIUM_AGENT_KEY_PATH | Identity file path | | ATRIUM_DATA_DIR | Root for relative paths (default ~/.atrium) | | ATRIUM_CONFIG | Config file path | | ATRIUM_DAEMON_JSON | When set, emit JSON lines instead of human-readable output | | ATRIUM_INBOX_BUFFER_DB | Enable the SQLite inbox-buffer plugin |

License

See LICENSE.