Plugin overview
Elysia is designed to be modular and lightweight.
Following the same idea as Arch Linux (btw, I use Arch):
Design decisions are made on a case-by-case basis through developer consensus
This is to ensure developers end up with a performant web server they intend to create. By extension, Elysia includes pre-built common pattern plugins for convenient developer usage:
Official plugins
Section titled “Official plugins”Here are some of the official plugins maintained by the Elysia team:
Bearer
Retrieve a Bearer token from request headers.
CORS
Configure cross-origin resource sharing.
Compress
Compress HTTP responses with an encoding supported by the client.
Cron
Run scheduled jobs.
Eden
Use an end-to-end type-safe client for Elysia.
GraphQL Apollo
Run Apollo GraphQL on Elysia.
GraphQL Yoga
Run GraphQL Yoga on Elysia.
HTML
Return HTML responses.
JWT
Sign and verify JSON Web Tokens.
OpenAPI
Generate OpenAPI documentation for an Elysia application.
OpenTelemetry
Collect traces with OpenTelemetry.
Server Timing
Measure request lifecycle performance with Server-Timing response headers.
Static
Serve static files and folders.
Community plugins
Section titled “Community plugins”- Create ElysiaJS - scaffold your Elysia project with the environment easily (help with ORM, Linters and Plugins)!
- Lucia Auth - authentication that is simple and clean
- Elysia Clerk - unofficial Clerk authentication plugin
- Elysia Polyfills - run Elysia ecosystem on Node.js and Deno
- Vite server - plugin which starts and decorates the
vitedev server indevelopmentand inproductionmodes and serves static files (if needed) - Vite - serve entry HTML file with Vite’s scripts injected
- Nuxt - easily integrate Elysia with Nuxt!
- Remix - use Remix with
HMRsupport (powered byvite)! Closes a really long-standing plugin request #12 - Sync - a lightweight offline-first data synchronization framework powered by Dexie.js
- Connect middleware - plugin which allows you to use
express/connectmiddleware directly in Elysia! - Elysia HTTP Exception - Elysia plugin for HTTP 4xx/5xx error handling with structured exception classes
- Elysia Helmet - secure Elysia apps with various HTTP headers
- Vite Plugin SSR - Vite SSR plugin using Elysia server
- OAuth 2.0 - a plugin for OAuth 2.0 Authorization Flow with more than 42 providers and type-safety!
- OAuth2 - handle OAuth 2.0 authorization code flow
- OAuth2 Resource Server - a plugin for validating JWT tokens from OAuth2 providers against JWKS endpoints with support for issuer, audience, and scope verification
- Elysia OpenID Client - OpenID client based on openid-client
- Rate Limit - simple, lightweight rate limiter
- Elysia Nazli - Ergonomic, store-pluggable rate limiter with global and per-route rules.
- LLMs.txt - generate
/llms.txtfor LLM-friendly docs from OpenAPI/Swagger - Logysia - classic logging middleware
- Logestic - an advanced and customizable logging library for ElysiaJS
- Logger - pino-based logging middleware
- Elysia Line - LINE Messaging API and LINE Login integration for Elysia (wrapper around the official @line/bot-sdk)
- Elylog - simple stdout logging library with some customization
- Logify for Elysia.js - a beautiful, fast, and type-safe logging middleware for Elysia.js applications
- Nice Logger - not the nicest, but a pretty nice and sweet logger for Elysia
- LogTape for Elysia - structured logging middleware with support for multiple sinks (transports) through LogTape
- Sentry - capture traces and errors with this Sentry plugin
- Apitally - capture metrics, logs, and traces in Apitally, a simple API monitoring and analytics tool
- Elysia Lambda - deploy on AWS Lambda
- Decorators - use TypeScript decorators
- Elysia FSR - file-system routing with Eden-compatible type generation, monorepo/workspace support, and logical route grouping
- Autoload - filesystem router based on a directory structure that generates types for Eden with
Bun.buildsupport - Msgpack - allows you to work with MessagePack
- XML - allows you to work with XML
- Autoroutes - filesystem routes
- Group Router - filesystem and folder-based router for groups
- Basic Auth - basic HTTP authentication
- Body Limit - limit body sizes in Elysia
- ETag - automatic HTTP ETag generation
- CDN Cache - Cache-Control plugin for Elysia - no more manually setting HTTP headers
- Basic Auth - basic HTTP authentication (using
requestevent) - i18n - i18n wrapper based on i18next
- Intlify - Internationalization server middleware & utilities
- Elysia Request ID - add/forward request IDs (
X-Request-IDor custom) - Elysia HTMX - context helpers for HTMX
- Elysia HMR HTML - reload HTML files when changing any file in a directory
- Elysia Inject HTML - inject HTML code in HTML files
- Elysia HTTP Error - return HTTP errors from Elysia handlers
- Elysia Http Status Code - integrate HTTP status codes
- NoCache - disable caching
- Elysia Tailwind - compile Tailwindcss in a plugin.
- tailwind-serve - compile and serve Tailwind CSS v4 at runtime with no build step, works with any server framework
- Elysia Compression - compress response
- Elysia IP - get the IP Address
- OAuth2 Server - develop an OAuth2 server with Elysia
- Elysia Flash Messages - enable flash messages
- Elysia AuthKit - unofficial WorkOS’ AuthKit authentication
- Elysia Error Handler - simpler error handling
- Elysia env - typesafe environment variables with typebox
- Elysia Drizzle Schema - helps use Drizzle ORM schema inside Elysia OpenAPI model
- Unify-Elysia - unify error codes for Elysia
- Unify-Elysia-GQL - unify error codes for Elysia GraphQL Server (Yoga & Apollo)
- Elysia Auth Drizzle - library that handles authentication with JWT (Header/Cookie/QueryParam)
- graceful-server-elysia - library inspired by graceful-server
- Logixlysia - a beautiful and simple logging middleware for ElysiaJS with colors and timestamps.
- Elysia Fault - a simple and customizable error handling middleware with the possibility of creating your own HTTP errors
- Elysia Compress - ElysiaJS plugin to compress responses inspired by @fastify/compress
- @labzzhq/compressor - Compact Brilliance, Expansive Results: HTTP Compressor for Elysia and Bunnyhop with gzip, deflate and brotli support.
- Elysia Accepts - Elysia plugin for accept headers parsing and content negotiation
- Elysia Compression - Elysia plugin for compressing responses
- Elysia Logger - Elysia plugin for logging HTTP requests and responses inspired by hono/logger
- Elysia CQRS - Elysia plugin for CQRS pattern
- Elysia Supabase - Seamlessly integrate Supabase authentication and database functionality into Elysia, allowing easy access to authenticated user data and Supabase client instance. Especially useful for Edge Functions.
- Elysia XSS - a plugin for Elysia.js that provides XSS (Cross-Site Scripting) protection by sanitizing request body data.
- Elysiajs Helmet - a comprehensive security middleware for Elysia.js applications that helps secure your apps by setting various HTTP headers.
- Decorators for Elysia.js - seamlessly develop and integrate APIs, WebSocket, and Streaming APIs with this small library.
- Elysia Protobuf - protobuf support for Elysia.
- Elysia Prometheus - Elysia plugin for exposing HTTP metrics for Prometheus.
- Elysia Remote DTS - A plugin that provides .d.ts types remotely for Eden Treaty to consume.
- Cap Checkpoint plugin for Elysia - Cloudflare-like middleware for Cap, a lightweight, modern open-source CAPTCHA alternative designed using SHA-256 PoW.
- Elysia Background - A background task processing plugin for Elysia.js
- Elysia External Session - TS only GitHub package - A sessions package for Redis and SQLite that is extensible and uses the current Elysia architecture.
- @fedify/elysia - A plugin that provides seamless integration with Fedify, the ActivityPub server framework.
- elysia-healthcheck - Healthcheck plugin for Elysia.js
- elysia-csrf - A CSRF plugin, ported from express-csrf
- elysia-local-https - Automatic local HTTPS for Elysia — certs generated, managed, and refreshed in one line.
- elysia-circuit-breaker - A Circuit Breaker plugin that brings fault tolerance to Elysia.js.
- Eden TanStack Query - type-safe TanStack Query integration for Eden, like @trpc/react-query but for Elysia
- Socket.IO Proxy - Socket.IO Proxy for Elysia.
- ModernCSRF - A lightweight, token-free CSRF protection middleware for ElysiaJS
- elysia-wide-event - Wide event logging plugin for structured request-level observability.
- elysia-beta-headers - Elysia plugin for gating your app’s beta/experimental features via type-safe API headers
- elysia-better-session - Elysia plugin for server-side session management with different store adapters.
Complementary projects
Section titled “Complementary projects”- prismabox - Generator for TypeBox schemas based on your database models, works well with Elysia
Project templates
Section titled “Project templates”- ElysiaTemplate - MVC backend, auto route & middleware, more coming.
If you have a plugin written for Elysia, feel free to add your plugin to the list by editing the plugin list on GitHub