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

@kognai/build

v0.7.10

Published

Kognai sovereign orchestrator — interactive REPL (kognai) + one-shot CLI (kognai-build). Triple-supervisor + compliance review + TICKET-135 optimization profiles + TICKET-203/207 workspace integration.

Readme

@kognai/build

The Kognai sovereign orchestrator as a CLI. Submit a task or a goal; get reviewed, compliance-gated deliverables — or a rejection with reasons. Runs on the cloud or fully local ($0).

npx @kognai/build "TypeScript email validator function"

What it does

Every task runs a real pipeline, not a single LLM call:

generate → code review (primary) → code review (second pass) → compliance review → ship | reject

The third review (compliance) checks constitutional, legal, and security concerns and is non-overridable — a code-grade-A deliverable with a compliance FAIL is rejected. That's what distinguishes the Kognai runtime from a thin LLM wrapper.

Under the hood it routes every model call through @kognai/orchestrator-core, so you get tiered routing, cost accounting, and an optional local ($0) backend for free.

Install / Run

# zero-install
export ANTHROPIC_API_KEY=sk-ant-...
npx @kognai/build "<task>"

# or globally — gives you `kognai` (REPL) and `kognai-build` (one-shot)
npm install -g @kognai/build
kognai            # interactive REPL
kognai-build "<task>"   # one-shot

Modes

# Task — one deliverable through the triple-supervisor
kognai-build "Stripe webhook handler" --out src/webhook.ts

# Goal — decompose into tasks, run each (TICKET-135 hierarchy)
kognai-build --goal "Express CRUD service with Postgres" --out-dir ./svc

# Sovereign — all inference local via Ollama ($0, no API key)
kognai-build "log shipper" --sovereign

# Swarm — delegate to the FULL orchestrator-core swarm
#   (CEO planning · CTO governance gate · dual-supervisor · reconciliation)
kognai-build --swarm "auth service with JWT" --out-dir ./auth

# Mandate — sign a PACT mandate (cost envelope) before executing
kognai-build --mandate "research synthesis tool" --out-dir ./tool

# Optimization profile — coder + reviewers optimize for one axis
kognai-build --goal "payments API" --profile security

Flags: --out <path> · --out-dir <dir> · --sovereign · --swarm · --mandate · --profile <axis> · --no-compliance

Sovereign mode

--sovereign routes all inference to a local Ollama instance — coder, supervisors, and (in --swarm) the CEO/CTO too. No ANTHROPIC_API_KEY required, $0 cost floor. Requires Ollama running locally with a capable model (e.g. qwen3:14b).

Workspace (.kognai/)

Drop a .kognai/config.yaml in your project and the CLI binds to it: deliverables go to your configured root, runs are measured (KSL), and you can extend the registries via .kognai/tools.json / .kognai/skills.json.

Configuration

| Env var | Default | Purpose | |----------------------|----------------------|-------------------------------------------| | ANTHROPIC_API_KEY | (required for cloud) | Claude API auth — not needed with --sovereign | | CLAUDE_MODEL | claude-sonnet-4-6 | Override the cloud coder + reviewer model |

Compliance gate

The non-overridable third reviewer checks:

Constitutional (the 3 Laws): 1) Never Harm · 2) Earn Existence (no fake/deceptive functionality, fabricated metrics, hidden surveillance) · 3) Transparency to Creator (no obfuscation, embedded credentials, undisclosed telemetry).

Legal / Regulatory: GDPR consent gates · tax-evasion shortcuts · copyleft lift.

Security (auto-fail): hard-coded secrets · injection vectors · disabled TLS · eval on untrusted input.

A FAIL on any category rejects the deliverable. Override with --no-compliance only for trusted local prototypes — never production.

Cost

Cloud: ~$0.01–0.05 per task (the footer prints actual spend). --sovereign: $0. --swarm runs the full leadership ceremony and costs more per goal.

License

MIT