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

@connectai/selfhost

v0.1.14

Published

One-command self-host installer for ConnectAI. Takes a clean machine (only Docker + Node) to a running, health-checked company-brain in one command, with no source clone and no local image build: `npx @connectai/selfhost run`. Bundles the image-based dock

Readme

@connectai/selfhost

One command takes a clean machine (only Docker + Node) to a health-checked ConnectAI company-brain. No source clone, no local image build.

npx @connectai/selfhost run
   Docker + Node
        │   npx @connectai/selfhost run
        ▼
   ConnectAI stack (local): api · worker · console · database · vault
        │   open /setup, paste your token
        ▼
   Your company brain, served to any agent over MCP

Quick start

  1. Boot the stack (pulls prebuilt images, writes a hardened .env, waits for health):

    npx @connectai/selfhost run

    Quiet by default; add --verbose for the full docker output.

  2. Copy the one-time setup token:

    npx @connectai/selfhost token
  3. Open http://localhost:5273/setup, paste the token, create the first administrator, confirm inference, and connect a source.

That is the whole happy path. Full operator guide (remote origins, day-2 operations, model right-sizing): https://connai.dev/docs/self-hosting.

Commands

| Command | What it does | | --- | --- | | run (default) | pre-flight, materialize assets, write .env, boot the stack, print the next step | | token | print the one-time first-run setup token (or report the instance is already configured) | | logs | tail stack logs (e.g. connectai logs api) | | down | stop the stack (down -v also removes volumes and wipes the brain) | | help / version | usage / version |

Flags

| Flag | Meaning | | --- | --- | | --dir <path> | working directory (default ~/.connectai-selfhost) | | --verbose | stream the full docker output during boot (default: quiet spinner) | | --yes, -y | non-interactive (already the default; accepted for CI) | | --tag <tag> | run a specific release tag (advanced; also CONNECTAI_IMAGE_TAG) |

Requirements

  • Docker with the Compose v2 plugin and a running daemon.
  • Node >= 18 (for npx).
  • Roughly 8 GB RAM and 10 GB free disk for a comfortable first boot.

Good to know

  • The canonical package is @connectai/selfhost. After npm i -g @connectai/selfhost the connectai and selfhost binaries are aliases; do not run npx connectai.
  • Secrets are generated locally with a CSPRNG, written chmod 600, never logged and never transmitted. A second run is idempotent and never overwrites your values.
  • --dir is also the compose-project boundary, so a non-default dir gets its own isolated project and down --dir <that-dir> tears down only that install.
  • localhost is the v1 target. The prebuilt console bakes its API base URL at publish time to http://localhost:4000, which is correct for a same-box eval. Serving it on a real domain needs extra setup: see https://connai.dev/docs/self-hosting first.
  • The first run downloads several GB of images and can take a few minutes; re-runs are fast.

License

BUSL-1.1. Development, testing, and evaluation use need no license; production use requires a commercial license. The self-host runtime guard fail-closes at run time, so a published image gives away nothing licensed.