Modular Architecture
Clean, reusable modules that keep your codebase organized and maintainable.

A lightweight, modular backend framework built for speed and Developer Experience. Powered by Bun and TypeScript.
A lightweight, modular backend framework built for speed and Developer Experience. Powered by Bun and TypeScript.
Fast runtime
Type safe
Code generators
Modular & scalable
Practical tools and a clean architecture designed to make backend development more straightforward.
Clean, reusable modules that keep your codebase organized and maintainable.
Built for Bun and TypeScript, with a lightweight HTTP core.
Protect routes and handle common request workflows.
Validate incoming data with a simple, developer-friendly API.
Generate complete modules in seconds.
Straightforward APIs and a clean architecture without unnecessary complexity.
Select a file to see how each part contributes to the module architecture.
1import { AuthMiddleware, bind, defineAuth, Lykos, DIModule } from 'lykosjs'2import { UsersService } from './users.service'3import { UsersController } from './users.controller'4import { UsersRouter } from './users.route'5 6export class UsersModule extends DIModule {7 override imports = []8 override providers = [UsersService]9 override controllers = [bind(UsersController, UsersService)]10 override routers = [bind(UsersRouter, Lykos, UsersController, AuthMiddleware)]11 override auth = defineAuth({ verifier: UsersController, mode: 'bearer' })12}Providers, controllers, routers and auth are declared in one place.
Keep routing, request handling, business logic and dependency wiring separate, while bringing them together through a consistent module structure.
LykosJS has been used to build a real-world application with complex business logic, several infrastructure integrations and a modular backend.
Select a capability to highlight where it lives in the system.
Clients
HTTP and WebSocket
Security layer
JWT, secure cookies, role-based permissions, request validation
LykosJS
Bun and TypeScript, modular backend
PostgreSQL
Sequelize, transactions, row locking
Redis
BullMQ delayed jobs
Socket.IO
Live notifications and presence
Cloudinary
Media storage
A digital freelance marketplace where clients buy services, freelancers manage contracts, and payments are held in an escrow-style balance until the work is accepted.
Service purchased
A client buys a freelancer's service and a contract begins.
Funds held in escrow
The payment waits in an escrow-style balance, protected by transactions and row locking.
Work delivered
The freelancer completes the contract and delivers the result.
Work accepted
The client reviews the delivery and accepts it.
Payout and commission
Funds are released and the commission is distributed.
If a contract expires, a delayed BullMQ job issues the refund automatically.
Independent packages. Powerful integrations. Everything you need to extend your LykosJS applications.
Built to work together
Focused tools with a consistent developer experience.
Type-safe by design
Practical APIs designed for real backend applications.
Select a package, then a feature, to see exactly where it lives in the code.
import { JwtManager, extractBearerToken } from "@lykosjs/jwt"; const jwt = new JwtManager<{ id: number }>({ accessToken: { secret: process.env.ACCESS_SECRET!, expiresIn: "15m" }, refreshToken: { secret: process.env.REFRESH_SECRET!, expiresIn: "30d" }, issuer: "my-app",}); // Login: issue a token pairconst { accessToken, refreshToken } = jwt.signPair({ id: 1 }); // Protect a route: returns the payload or throws HttpError(401)const token = extractBearerToken(ctx.request.headers.get("authorization"));const user = jwt.assertAccessToken(token); // Refresh: returns a brand new pairconst next = jwt.refresh(refreshToken);bun add @lykosjs/jwtMore packages and integrations are on their way. Built to make backend development with LykosJS even better.
Describe your API once. LykosJS compares every endpoint you documented with the routes you really registered, then serves the result as OpenAPI 3.1 with Swagger UI. If the docs drift from the code, your app tells you before your users do.
Four guarantees that keep your documentation honest.
Checked against real routes
Every documented endpoint must match a registered one.
OpenAPI 3.1
One config call. A clean, deterministic document.
Swagger UI, bundled
Served from your own server. No CDN, no inline scripts.
Strict by default
Typos and unknown rules fail loudly, never silently.
const openapi = new OpenAPI({ info: { title: 'Orders API', version: '1.0.0' }, securitySchemes: { BearerAuth: { type: 'http', scheme: 'bearer' }, }, routes: { listOrders: { method: 'GET', path: '/orders', response: { 200: { description: 'Orders list' } }, }, getOrder: { method: 'GET', path: '/orders/:id', security: ['BearerAuth'], response: { 200: { description: 'Order found' } }, }, },}) openapi.setup(app)openapi.setup(app)
Docs match the code
LykosJS brings together the strengths of four influential backend ecosystems into one cohesive development experience.
Developer Productivity
Expressive APIs and a productive developer experience.
Structured Architecture
Modular design, dependency injection and organization.
Flexibility
A lightweight foundation with freedom to build.
ElysiaPerformance & Type Safety
A modern TypeScript-first approach to backend development.
LykosJSFour in oneFrom Laravel-inspired productivity and NestJS-style architecture to Express-like flexibility and Elysia-inspired performance, LykosJS brings these ideas together without forcing you to work across four different frameworks.
Building backend systems, developer tools, and frameworks focused on architecture, performance, and developer experience.

Framework Builder
Building for real engineering.
Backend Engineer · Creator of LykosJS
I build backend systems and developer tools, with a focus on architecture, performance, and developer experience. LykosJS is my vision of bringing these ideas together into one flexible and productive backend framework, powered by Bun and TypeScript.
Age
Focus
Framework
Create your next backend project in seconds with a single command. Simple setup, ready for real engineering.
Ready to build your next project?
bun create lykosjs my-appMove across the command to explore
Star the repo, report a rough edge, or show us what you are building. Every idea shared makes the next project a little easier for someone else.
Built by developers, growing with the community.