Gateway as Code
Configured with code, not YAML. Version your gateway in Git, review changes in PRs, and rollback with your standard deployment pipeline.
Named after the tiny pores in plant leaves that regulate what passes through, Stoma gives you the same fine-grained control over your API traffic.
Stoma is a declarative API gateway you define in TypeScript and deploy with your standard workflow. Instead of maintaining a separate proxy service with YAML files or admin dashboards, you define routes, policies, and upstreams as typed objects in your codebase - version-controlled, PR-reviewed, and deployed through your existing pipeline.
Gateway as Code
Configured with code, not YAML. Version your gateway in Git, review changes in PRs, and rollback with your standard deployment pipeline.
Type-Safe Ergonomics
Full type safety from configuration to runtime. Your editor provides autocomplete for policies and upstreams, catching mistakes before your users do.
No Extra Infrastructure
No sidecars, no control planes, no admin UIs. Define your gateway in code and deploy it with your existing pipeline.
Multi-runtime
Runs on Cloudflare Workers, Node.js, Deno, Bun, Fastly, Lambda@Edge, and more - using standard Web APIs.
Stoma is built and maintained with 💚 in the EU. 🇪🇺
It was born from a simple observation: running dedicated API gateway infrastructure is wasteful - wasteful of compute, wasteful of energy, and wasteful of developer time.
Stoma believes gateway logic belongs in your codebase, can be deployed to shared edge infrastructure, where it consumes resources only when handling actual traffic. That conviction shapes every design decision in Stoma - from its single runtime dependency, to its tree-shakeable policies, to its priority-ordered pipeline that short-circuits as early as possible.