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

@reactive-agents/cortex

v0.10.6

Published

Cortex companion studio — visual UI + API for inspecting and managing reactive-agents in real time

Readme

Cortex

Local desk for Reactive Agents: Bun + Elysia API, SQLite store, WebSocket ingest/live fan-out, and a SvelteKit UI (Beacon / Trace / Lab).

Contributors & AI agents: see AGENTS.md in this folder for architecture, WS contracts, store map, pitfalls, and plan index.

Prerequisites

From the repo root:

bun install

Start everything (recommended for review)

From apps/cortex:

cd apps/cortex
bun start

This runs:

  1. Cortex server on http://localhost:4321 — REST, ingest WS, live WS.
  2. SvelteKit dev on http://localhost:5173 — Vite proxies /api and /ws to the server.

Open the UI at port 5173. The server does not auto-open a browser when started via bun start (so your tab stays on the dev UI).

Two terminals (optional)

| Terminal | Command | Role | |----------|---------|------| | 1 | cd apps/cortex && bun run dev:server | API + WS on 4321 | | 2 | cd apps/cortex && bun run dev:ui | UI on 5173 (proxied to 4321) |

Environment

| Variable | Default | Purpose | |----------|---------|---------| | CORTEX_PORT | 4321 | HTTP + WS listen port | | CORTEX_NO_OPEN | unset | Set to 1 to disable opening a browser when running dev:server alone |

SQLite path comes from defaultCortexConfig in server/types.ts (default .cortex/cortex.db under the current working directory — usually apps/cortex).

Security note (Lab — host shell)

The Lab builder can opt in to shell-execute, which runs allowlisted terminal commands on the same machine as the Cortex server. It is disabled by default; enabling it is at your own risk. When enabled, you can add extra allowed command names or (advanced) replace the default allowlist in the Tools section; defaults and opt-in lists match ShellExecuteConfig in @reactive-agents/tools. Use only on trusted accounts and codebases, and read the framework docs on blocklists and Docker sandboxing for stronger isolation.

Production-style UI (single port)

Build the static UI and let Cortex serve it from ui/build:

cd apps/cortex
bun run build:ui
bun run dev:server

Then open http://localhost:4321. (Ensure server/index.ts staticAssetsPath points at the built UI — it does when run via the bundled entry.)

Tests

cd apps/cortex
bun test

UI component/store tests:

cd apps/cortex/ui
bun test

UI checks

cd apps/cortex/ui
bun run check   # svelte-kit sync + svelte-check
bun run build

Plans

Implementation tracks docs/superpowers/plans/2026-03-31-cortex-app-phase*.md:

  • Phase 3 — Beacon (agent grid, bottom input, WS desk).
  • Phase 4 — Run detail at /run/[runId] (vitals strip, D3 signal monitor, trace panel, debrief card, bottom tabs for decisions / memory / context). Live + replay via /ws/live/:agentId?runId= after REST loads the run row.
  • Phase 5+ — Lab, command palette commands, replay scrubber, etc.