Capability-first
Deterministic functions and autonomous agents share one typed, inspectable contract.
Build type-safe capabilities, agent loops, adaptive memory, shared state, tools, approvals, and UI without stitching together five frameworks.
export const refund=capability({
name:'refund',
input:RefundInput,
output:RefundResult,
memory:['user','project'],
permissions:['refund:create'],
approval:'required',
run:refundPayment,
view:RefundCard,
})The contract tells Captra how to validate, authorize, execute, remember, observe, transport, and render the capability.
npx create-captra my-app
cd my-app
npm install
npm run devThe starter includes a React client, Node runtime, typed transport, scoped memory, component registry, startup animation, and tests.
Many AI libraries help call a model. Captra defines the application boundary around the model: capabilities, exact state, recalled memory, authorized tools, human approvals, durable events, recovery, and UI. Those pieces remain replaceable, but they follow one mental model.