English for Elysia Developers
Learn the English vocabulary for Elysia, the Bun-native web framework: end-to-end type safety, plugins, and the Eden client.
Elysia’s marketing and documentation lean on a specific vocabulary set — end-to-end type safety, plugin, Eden — that a developer coming from Express or Fastify needs to learn even if the underlying HTTP concepts are familiar.
Key Vocabulary
End-to-end type safety — the guarantee that types defined on the server route flow automatically to the client without manual duplication or code generation, catching mismatches at compile time.
“Because of end-to-end type safety, the frontend immediately flagged that userId was renamed on the backend — no runtime surprise, just a red squiggle.”
Plugin — a self-contained, reusable unit of routes, middleware, or configuration that can be composed into an Elysia app via .use().
“Pull the auth logic out into its own plugin so other services can reuse it without copying the middleware.”
Eden — Elysia’s client library that consumes the server’s inferred types directly, letting frontend code call API routes with full autocomplete and type checking. “Skip writing a manual fetch wrapper — Eden already gives us a typed client generated straight from the route definitions.”
Schema validation — Elysia’s built-in request and response validation, defined inline on each route, that both enforces runtime checks and derives the route’s TypeScript types. “Add a schema to that route — right now a malformed body slips through and crashes downstream instead of returning a 400.”
Life cycle hook — a named point in the request-handling flow, such as beforeHandle or afterHandle, where custom logic can run without editing the main handler.
“Put the rate-limit check in a beforeHandle hook instead of the top of every handler — it’s the same logic, applied consistently.”
Common Phrases
- “Is this type flowing through automatically, or did we lose end-to-end type safety somewhere in the chain?”
- “Should this be its own plugin, or is it small enough to stay inline?”
- “Is Eden picking up the latest route types, or do we need to regenerate anything?”
- “Did we add schema validation here, or is this route trusting the request body blindly?”
- “Which life cycle hook should this run in — before or after the main handler?”
Example Sentences
Debugging a type mismatch: “The client’s still seeing the old shape because Eden is reading from a stale build — rebuild the server package and the end-to-end type safety should catch back up.”
Explaining an architecture choice: “We split authentication into its own plugin so the mobile API and the admin API can both mount it without duplicating the middleware.”
Reviewing a pull request: “This route is missing schema validation — right now anything can be POSTed here and it’ll only fail once it hits the database.”
Professional Tips
- Lead with end-to-end type safety when explaining why a bug was caught early — it’s Elysia’s core selling point and shows you understand the framework’s value proposition.
- Say plugin, not “module” or “middleware,” when describing composable Elysia units — it’s the framework’s specific term and avoids ambiguity.
- Mention Eden explicitly when discussing frontend-backend integration — it signals you’re using the framework’s intended client rather than a generic fetch call.
- Call out missing schema validation in reviews as a concrete, actionable gap rather than a vague “needs more validation.”
Practice Exercise
- Explain what end-to-end type safety means and why it matters for catching bugs early.
- Describe what a plugin is in Elysia and give an example of when you’d extract one.
- Write a sentence explaining what Eden does for frontend developers consuming an Elysia API.