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

polydomain

v0.5.0

Published

Scaffold a command center for your AI coding agent: a thin router, per-domain capsules, persistent memory, and an optional Obsidian/notes knowledge base — the Capsule architecture.

Readme

polydomain

A npx scaffolder that turns your AI coding agent into a multi-domain command center with persistent memory and an optional notes/Obsidian knowledge base — the Capsule architecture.

CI npm License: MIT Docs


What it is

AI coding agents suffer from context amnesia: every session you re-explain who you are, what you're working on, and how the pieces fit. The more contexts you juggle — work, side projects, personal ops, a notes vault — the worse it gets.

polydomain scaffolds a command center: a small set of Markdown files your agent reads as its operating manual. One command sets up a thin router, per-domain capsules, a memory protocol, an optional notes/Obsidian knowledge base, and a safety gate. You start a session in that repo and your agent works as if it already knows your whole context — without re-briefing and without mixing one domain into another.

How it works (no magic, no runtime): polydomain only generates Markdown. There is no daemon, no background process, no telemetry. It works because the generated files are an operating manual the agent reads and follows — exactly the convention-driven setup power users build by hand, made repeatable and agent-agnostic (Claude Code, Codex, Gemini, Cursor). The value is the codified pattern, not a new runtime.


Quickstart

npx polydomain init my-center                          # scaffold a command center
npx polydomain init my-center --references obsidian    # …with an Obsidian/notes knowledge base

Then open your agent's entrypoint (CLAUDE.md, AGENTS.md, …) and say "help me set up my command center." The router takes it from there.

Already have a repo (notes, docs, a half-structured knowledge base)? Adopt the standard, losslessly:

cd my-existing-repo && npx polydomain adopt

What you get

A command center is seven parts, each a small Markdown file or folder (full anatomy):

| Part | What it does | |---|---| | Router | The agent entrypoint. Routes each session to the right capsule, states the always-on rules. | | Domains | One capsule per domain (domains/*.md) + a registry. The agent loads only what the session needs — no cross-domain bleed. | | Memory | A portable protocol for durable facts the agent recalls every session (guide). | | Notes store (optional) | A schema for an external knowledge base — Obsidian or any Markdown folder — the agent navigates on demand for near-infinite, organized context (guide). | | Governance / Security | What changes need a ritual; a SECURITY.md reminding you the repo is context, not a vault. | | Workspace | Dated scratch space for plans. | | Safety gate | plan → review → approve → execute. The agent proposes; you approve; then it acts. |

Actions — macOS-first

The optional actions layer (actions/macos.md) lets your agent perform reminders, calendar events, and email via verified osascript/Mail.app recipes, under a tiered safety model (local actions directly; email draft-first). It is macOS-first — the recipes are macOS-only. The rest of polydomain (router, capsules, memory, notes, adopt) is cross-platform / agent-agnostic. Other OS flavors may come later.


Commands

| Command | Description | |---|---| | init [dir] | Scaffold a new command center (default: current directory) | | add domain <name> | Add a capsule for a new domain | | add agent <name> | Add an entrypoint for another agent (claude, codex, gemini, cursor) | | add reference <type> | Add a notes-store capsule (notes or obsidian) to an existing center | | adopt | Bring an existing repo up to the standard, losslessly (safety branch + an agent playbook) | | add actions <platform> | Add an actions capsule (macos) — let the agent do reminders/calendar/email |

init flags

| Flag | Description | |---|---| | --agent <list> | Target agent(s): claude, codex, gemini, cursor (default: claude) | | --domains <spec> | minimal / standard / full, or a comma list (default: standard) | | --references <type> | Add a notes-store capsule: notes (generic) or obsidian | | --with-references | Alias for --references notes | | --actions <platform> | Add an actions capsule (macos) for reminders/calendar/email | | --no-memory | Skip the memory/ directory | | --no-git | Skip git init | | --force | Write into a non-empty directory | | -y, --yes | Accept all defaults, no prompts |

Full reference: CLI docs.


No telemetry. No network calls.

Templates are bundled with the CLI. polydomain never phones home — no analytics, no tracking, no external requests. What you scaffold stays entirely on your machine.


Status

Live on npm. The command-center standard, the memory and notes/Obsidian layers, and adopt all ship today. polydomain is young — a thin, opinionated tool around a pattern — and the best validation is using it on your own work. Feedback and issues welcome.

Contributing

See CONTRIBUTING.md for dev setup, testing, and PR expectations.

License

MIT — Copyright (c) 2026 Alejandro Hernández Lara