Skip to content

CaptraOne contract for intelligent software.

Build type-safe capabilities, agent loops, adaptive memory, shared state, tools, approvals, and UI without stitching together five frameworks.

Captra

A complete product behavior in one contract ​

tsx
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.

Install ​

bash
npx create-captra my-app
cd my-app
npm install
npm run dev

The starter includes a React client, Node runtime, typed transport, scoped memory, component registry, startup animation, and tests.

What makes Captra different? ​

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.

Released under the MIT License.