Elysia
Backend / API library · Free
A TypeScript HTTP API framework with type inference and plugins: it connects typed server routes with an application client.
Also known as: elysiajs/elysia; elysia-framework; elysia-js; elysia

What you can use for free
Code and local use under MIT.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Build a typed HTTP route
- Connect inferred types and plugin logic to a client scenario
Example workflow
A possible workflow; this is not a report of hands-on testing.
Build a typed HTTP route.
Before you start
- A data contract or HTTP workflow.
- A project with a supported runtime.
Steps
- Define endpoint schemas and its backend operation.
- Connect inferred types and plugin logic to a client scenario.
- Add error handling and an integration check of the result.
Check your result
- Invalid and missing data are handled predictably.
- Types and the actual response agree; errors are not hidden.
Choosing Elysia
Build a typed HTTP route
Choose this when
- Build a typed HTTP route
- Connect inferred types and plugin logic to a client scenario
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: MIT for the code; dependencies have separate licenses.
Frequently asked questions
What can you use for free in Elysia?
Code and local use under MIT.
What additional costs might arise with Elysia?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for Elysia?
MIT for the code; dependencies have separate licenses.
How do you get started with Elysia?
Define endpoint schemas and its backend operation. Connect inferred types and plugin logic to a client scenario. Add error handling and an integration check of the result.
Is Elysia limited to Bun?
It is optimized for Bun, but the documentation explicitly permits other runtimes, such as Node.js. A new Bun project uses bun create elysia app, and bun dev automatically reloads the server when files change.
License
MIT for the code; dependencies have separate licenses.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- Elysia
- API
- Development