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

brainapi-tui

v0.2.0

Published

Interactive installer and runtime CLI for BrainAPI.

Readme

brainapi

Interactive installer and runtime CLI for BrainAPI.

Install

npm install -g brainapi-tui

This puts a brainapi binary on your $PATH.

Quick start

brainapi init    # clone the project, set up a Python venv, configure services
brainapi start   # start docker compose services + run the API
brainapi doctor  # check Python, Docker, Ollama, and configured services

Commands

| Command | Description | | ----------------- | -------------------------------------------------------------------------------------------------- | | brainapi init | Full bootstrap: clone the repo, create a Python venv, install deps, and run the interactive setup. | | brainapi start | Start docker compose containers for the chosen services and launch the API. | | brainapi config | Re-run the interactive flow and rewrite .env. | | brainapi doctor | Check that Python, Docker, Ollama, GCP credentials, and configured services are reachable. | | brainapi update | git pull the project and pip install -e . again. | | brainapi plugins install <name> | Install a plugin from the registry (e.g. brainapi plugins install chatbot). | | brainapi plugins list | List installed plugins (--remote to browse the registry). | | brainapi plugins uninstall <name> | Remove an installed plugin. |

brainapi start options

| Option | Description | | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | | --pipeline accurate\|lightweight | Set PIPELINE_MODE in ~/.brainapi/source/.env before start (accurate = full pipeline; lightweight = faster ingestion). |

Where things live

  • Source: ~/.brainapi/source/
  • Python venv: ~/.brainapi/source/.venv/
  • Env file: ~/.brainapi/source/.env
  • Install state: ~/.brainapi/state.json

Configuration

The interactive flow asks:

  1. Use default settings? (NetworkX + Postgres + pgvector + remote GCP Vertex)
  2. Otherwise: Vector DB → Data DB → Graph DB → Models mode
  3. For remote models mode: pick provider, then provide GCP credentials, project, and model names
  4. For local models mode: probe Ollama, wait for it to start, then verify pulled models
  5. Connection details for only the services you actually selected
  6. BRAINPAT_TOKEN (generate or paste)
  7. Optionally start the docker compose containers now

If Python (>=3.11) or Docker is missing, the TUI walks you through installing them with platform-aware commands and retries detection automatically.

Development

cd tui
npm install
npm run dev    # builds in watch mode
node dist/index.js init   # try it

Publishing

npm version <patch|minor|major>
npm publish

prepublishOnly runs the build automatically so the published tarball always contains dist/. Only the dist/, README.md, and LICENSE files are included (see the files field in package.json).

If someone runs any command before brainapi init (e.g. brainapi doctor or brainapi start), the CLI prints a notice and runs init first.

Environment overrides

| Variable | Default | Description | | ------------------- | --------------------------------------------- | --------------------------------- | | BRAINAPI_REPO_URL | https://github.com/Lumen-Labs/brainapi2.git | The git repo cloned on init. | | BRAINAPI_HOME | $HOME/.brainapi | Where the source and state live. | | BRAINAPI_BRANCH | main | Branch to checkout after cloning. |