01/
The Problem
REST APIs have OpenAPI. GraphQL has introspection. TypeScript packages have... nothing.
You want to know what a package exports? Read the source. Grep through node_modules. Hope the docs are current. This seemed like an obvious gap, so I built it.
[ terminal ]
02/
The Solution
openpkg extracts the complete public API surface from any TypeScript package.
Functions, types, interfaces, classes. Parameters, return types, generics. JSON Schema out — ready for agents, tooling, whatever needs to understand your API.
[ terminal ]
03/
The Output
A clean JSON schema describing every public export. Types resolved. Generics expanded. Ready for tooling.
Feed it to an LLM. Generate documentation. Build type-safe wrappers.
[ terminal ]
04/
Use Cases
Build AI-powered dev tools. Generate SDK wrappers. Create documentation sites.
The whole point: agents need to understand your API surface in one pass. Not skim docs. Not grep source. Just structured JSON they can reason about.
[ terminal ]
05/
Get Started
Point at any package. Local path or npm registry. One command, JSON Schema out. No config, no setup, just the API surface.
[ terminal ]
[ terminal ]