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

the-citadel

v0.2.4

Published

A deterministic agent orchestration system for Knowledge Work

Readme

The Citadel

Deterministic Agent Orchestration System – a lightweight engine that turns chaotic agent swarms into an auditable, deterministic Knowledge Factory.


Use The Citadel for complex, multi-step objectives: building software features, conducting deep research, synthesizing market reports, or managing content pipelines. By decoupling the process (SOPs) from the execution (Agents), it ensures that even creative work follows a reliable, auditable path.


Installation

npm install [email protected]

Features

  • Foundry (Workflow Engine) – Compile standard operating procedures (SOPs) into dynamic Molecules (task DAGs).
  • Process Integrity – The state machine guarantees Open → In Progress → Verify → Done transitions for every task.
  • Dynamic Bonding – Agents can spawn sub‑tasks in parallel to handle complex objectives (research, coding, analysis).
  • Resilient Recovery – Automated on_failure handling with conditional skips.
  • Durable State – All context is stored in Git‑backed SQLite Beads (audit‑ready, restartable).
  • Parallel Execution – Configurable max_workers and load_factor for high-throughput concurrency.
  • Provider‑agnostic – Works with Ollama, OpenAI, Anthropic, and more.
  • Provider‑agnostic – Works with Ollama, OpenAI, Anthropic, and more.
  • Context Aware – Adheres to specific project rules and style guides (AGENTS.md) automatically.
  • Dynamic Data Piping – Pass rich inputs (context) to tasks and pipe outputs between steps ({{steps.foo.output.bar}}).

Quick Start

# 1️⃣ Install globally
npm install -g [email protected]

# 2️⃣ Bootstrap a new project
citadel init   # creates .citadel/ + config + sample formula

# 3️⃣ Run a workload
# Option A: Simple Task
citadel create "Hello world"

# Option B: Run a Formula
citadel create "My Release" --formula feature_release --vars name="Dark Mode"

citadel start

⚙️ The Conductor will orchestrate agents automatically. Log output is written to log.txt courtesy of the shared CitadelLogger.


Documentation

For detailed usage instructions, including advanced configuration, formula creation, and troubleshooting, please refer to the User Guide.


Bridge TUI

The Bridge is the lightweight terminal dashboard built with Ink that shows the orchestration in real time.

# Launch the Bridge (Conductor + UI)
citadel bridge   # or
bun run script:bridge

The dashboard remains open until you hit Ctrl+C.


Project Structure

├─ src/                      # Source code
│   ├─ bridge/               # Terminal UI (Ink)
│   │  ├─ index.tsx          # Entry point
│   │  └─ components/         # Dashboard panes
│   ├─ core/                 # Core engine (queue, logger, beads)
│   ├─ config/               # Config handling
│   ├─ services/              # Conductor & agent services
│   └─ types/                # Shared TS types
├─ docs/                     # Documentation (this file included)
├─ tests/                     # Unit tests
└─ README.md                  # This file

Extending & Customising

  • New panels – Add a component under src/bridge/components and import it into Dashboard.tsx.
  • Event‑driven UI – Replace polling in AgentMatrix / MoleculeTree with Conductor events.
  • Custom loggers – Hook into the global CitadelLogger to emit richer data.

Build / Test / Lint

# TypeScript type-check
bun run tsc --noEmit

# Lint
bunx biome lint .

# Tests
bun test tests/

Contribution

  1. bd ready → Find a work item.
  2. bd update <id> --status in_progress → Claim it.
  3. execute & verify → Pass all checks.
  4. bd close <id> → Ship it.

Love to see you play around!