A composable TypeScript framework for APIs and agents.
Define a business action once. Call it from an HTTP route or an agent tool with the same types and authorization rules.
import { service } from "@teasim/service";
export const api = service()
.get("/orders/:id", ({ params }) => ({
orderId: params.id,
}));GET
/orders/42200 OK { "orderId": "42" }