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

@kohala/devkit

v0.1.7

Published

Open-source CLI, local agent emulator, and open MCP memory server for Kohala agents. Build and run agents entirely on your own machine — then push the same agent to Kohala when you want it hosted.

Readme

Kohala Devkit

Build and run Kohala agents entirely on your own machine — no account, no billing, no waitlist. When you want your agent hosted, kohala deploy pushes the exact same agent to the platform.

npm install -g @kohala/devkit

kohala init my-agent
kohala run my-agent --local
kohala trace my-agent

That's the whole loop. Python 3 is the only other thing you need (to run skill scripts).

What you get

  • kohala CLIinit, validate, run --local, trace, memory serve, login, deploy, doctor.
  • Local agent emulator — executes your agent's charter with the platform's exact enforcement order: per-day admission, tool allowlist, per-run token caps, and validators with a bounded repair loop. Tokens are counted for cap enforcement and shown in the trace, but nothing is ever billed locally.
  • Open MCP memory serverkohala memory serve exposes agent memory over the Model Context Protocol with the platform's tool names (s3.put, s3.get, s3.list, s3.delete). File backend by default; Postgres with --backend postgres.
  • Python script SDK — scaffolded into every agent (skills/_tools.py, stdlib-only). Scripts talk to the runtime over a loopback RPC boundary, so the same script runs unchanged locally and hosted.
  • Deploy clientkohala deploy maps your kohala.json onto the platform's REST API. Idempotent on agent name, additive only (never deletes anything remotely), with --dry-run to see exactly what would be sent.

The compatibility contract

kohala.json is a 1:1 mapping onto platform fields:

{
  "name": "my-agent",
  "charter": "Collect one interesting fact per shift.",
  "toolAllowlist": ["s3.put", "s3.get", "s3.list", "notify.send"],
  "runtimeMode": "wrap",
  "skills": { "main": "main.py" },
  "caps": { "perRunTokens": 20000, "perDayTokens": 100000 },
  "validators": [
    { "type": "shape", "minBytes": 10 },
    { "type": "freshness", "asset": "my-agent/latest", "maxAgeHours": 24 }
  ]
}
  • runtimeMode: "wrap" executes your script directly and validates its output (stdout). Use llm.complete from the script SDK to call an LLM mid-script (needs ANTHROPIC_API_KEY or GEMINI_API_KEY).
  • runtimeMode: "llm" runs a real Anthropic tool-use loop — requires ANTHROPIC_API_KEY. GEMINI_API_KEY works for llm.complete in wrap mode but not for this loop. The devkit never mocks completions.

Docs

Examples

Requirements

  • Node.js ≥ 20
  • Python 3 (to run skill scripts)
  • Optional: ANTHROPIC_API_KEY or GEMINI_API_KEY for LLM features
  • Optional: pg + a Postgres URL for the Postgres memory backend
  • Optional: a Kohala account — only for kohala deploy

Contributing

See CONTRIBUTING.md. Bug reports and PRs welcome.

License

MIT

LLM model overrides (local emulator)

kohala run in LLM mode picks its model from environment variables:

| Variable | Effect | | --- | --- | | KOHALA_LLM_MODEL | Provider-agnostic override — takes precedence over the two below. | | ANTHROPIC_MODEL | Anthropic model id (e.g. claude-3-5-haiku-latest). | | GEMINI_MODEL | Gemini model id (e.g. gemini-2.0-flash). |

Unset, the emulator uses its built-in defaults.

Memory server scoping

kohala memory serve is always scoped to ONE agent. Either run it from inside an agent directory (one containing kohala.json) or pass --agent <name>:

kohala memory serve --agent my-agent --backend file