Capman instruments your TypeScript application at build time, emitting a machine-readable capability manifest — a precise, versioned index of every API your app exposes. Your AI agent reads the manifest once and executes with surgical precision: no DOM traversal, no brittle selectors, no hallucinated click paths.
The Problem
Your agent parses Tailwind classes and infers intent from visual hierarchy. A class rename or layout refactor silently breaks the entire interaction chain with no warning..
Every design iteration is a regression. Agents relying on CSS selectors and DOM traversal cannot distinguish a visual change from a functional one — both cause silent failures in production.
Without a capability map, LLMs invent navigation paths — clicking through five screens to reach a function that could have been a single direct API call with a typed response.
The Technical Edge
Capman runs as part of your build pipeline. It analyzes your application's TypeScript surface — components, routes, API handlers — and emits a structured capability manifest: a precise, versioned index of everything your app can do.
Your AI agent reads the manifest once and executes with surgical precision. No DOM traversal. No brittle selectors. No guessing. Direct API execution against a schema it understands completely.
Without Capman
agent → clicks Home → scrolls → finds button
→ navigates /events → parses DOM table
→ clicks row → reads modal → extracts value
→ breaks on next deploy
With Capman
agent → reads manifest
→ calls getEventAvailability({ id, date })
→ receives typed response → done
Implementation
One package. No runtime overhead. Drop it into any TypeScript project and your AI agents immediately have a map.
$
npm install capman
Documentation
Overview, quick start, install steps, and core concepts. Start here.
Read overviewFull technical reference — every option, every field, every internal decision.
Explore internalsHow to contribute, dev setup, and PR guidelines. We welcome help.
Start contributingFAQ
CapmanEngine that ships with the package is consumed by your agent, not your app — your app's bundle is untouched.
Open source, MIT licensed, and zero runtime dependencies. Give your AI agent a precise capability manifest.