Streamline app development with built-in observability and agent support.
Project details
Cortera Framework simplifies the development of modern applications by providing a single action definition that generates REST endpoints, agent-callable tools, UI components, and audit logs seamlessly. Emphasizing observability and safety, it integrates necessary features from the start, reducing repetitive tasks and enhancing compliance for both human users and AI agents.
Cortera Framework simplifies the development of modern applications by allowing a single Action definition to be utilized across various platforms, including both human users and AI agents. This framework seamlessly incorporates observability, safety, and compliance measures from the start.
All functionalities in Cortera Framework are centered around the Action, which auto-generates the following components:
POST /actions/:name)@cortera/uiExample definition of an Action:
import { z } from "zod";
import { defineAction } from "@cortera/core";
export const createInvoiceAction = defineAction({
name: "createInvoice",
description: "Creates a new invoice for a customer",
permission: "invoices:write",
blastRadius: ["invoices:*", "notifications:send"],
inputSchema: z.object({
customerId: z.string().min(1),
amount: z.number().positive(),
dueDate: z.string().datetime(),
}),
handler: async (input, ctx) => {
const invoice = await db.invoices.create(input);
await db.notifications.send({ to: invoice.customerId, type: "invoice_created" });
return invoice;
},
});
Cortera Framework demonstrates significant efficiency compared to traditional development approaches, as illustrated in the following benchmark:
| Metric | Raw Next.js | tRPC + Zod | Cortera Framework |
|---|---|---|---|
| Implementation LOC | 606 | 565 | 124 |
| Implementation Files | 8 | 12 | 6 |
| Drift Test (files to edit for new field) | 5 | 5 | 1 |
| Audit Trail by Default | ❌ Manual | ❌ Manual | ✅ Automatic |
| Agent-Callability by Default | ❌ Manual | ❌ Manual | ✅ Automatic (MCP + OpenAPI) |
| Approx. Implementation Time | ~45 min | ~35 min | ~5 min |
The drift test highlights that modifying fields in Cortera Framework requires noticeably fewer changes—only one file update, compared to five for other frameworks.
Each Action defines a blastRadius, specifying the downstream permissions it can access. If an Action exceeds its authorized permissions during execution, the framework automatically contains the actor, preventing further actions until reviewed.
Cortera Framework supports flexible risk configurations per Action, facilitating various execution behaviors based on the defined risk tier.
Cortera Framework does not provide a prebuilt admin dashboard but offers robust APIs for seamless integration into existing systems:
This framework is designed to streamline the development cycle while ensuring that applications are observable, secure, and compliant from the ground up.
Comments
0Start the conversation
Share the first comment.