The infrastructure toolkit for AI-native software teams

Deploy

Types that flow from infrastructure to runtime code

Notation Deploy lets you build infrastructure and application code in a unified TypeScript project. Iterate fast and catch issues before they reach production.

Get started
const lambda = $lambda({
  id: "process-orders",
  event: () => sqs.bind(orderQueue),
});

export const handler: LambdaHandler<typeof lambda> = async (event) => {
  for (const record of event.Records) {
    const { body: order } = await lambda.decode(record);
    await fulfil(order.orderId, order.quantity);
  }
};
export const orderQueue = queue({
  id: "orders",
  schema: Order,
});
export const Order = v.object({
  orderId: v.string(),
  quantity: v.number(),
});
Durable

Durable workflows that run almost anywhere

Notation Durable provides guaranteed execution that is fast, portable and easy to reason about. Runs anywhere with SQLite.

Get started
export default workflow(async function* (step, event) {
  const order = step.store(Order, { id: event.params.orderId });
  const stock = step.store(Stock, { id: event.params.sku });

  const address = yield* order.when("paid", (state) => state.paid && state.address);
  yield* stock.take("reserve", (state) => state.count > 0, (draft) => {
    draft.count -= 1;
  });

  yield* step.run("ship", () => dispatchPackage(order.id, address));
});
export const Order = defineStore(
  "order",
  v.object({ paid: v.boolean(), address: v.optional(v.string()) }),
  { initial: () => ({ paid: false }) }
);

export const Stock = defineStore(
  "stock",
  v.object({ count: v.number() }),
  { initial: () => ({ count: 0 }) }
);
Factory

Mention an agent and let it get to work

Notation Factory lets you connect the platforms you already use, such as GitHub and Slack, to coding agents running in remote containers.

Get started
.factory/infra.ts
new Trigger("mention", {
  event: gh.issueComment({ mention: "@claude" }),
  worktree: (e) => `issue-${e.issue.number}`,
  agent: new claude.Agent("coder"),
  container: new Container("dev"),
});