LykosJS logoLykosJS

Built for Speed.Designed for Scale.

A lightweight, modular backend framework built for speed and Developer Experience. Powered by Bun and TypeScript.

Get Started
Introducing LykosJS

Build backend applications with clarity and confidence.

A lightweight, modular backend framework built for speed and Developer Experience. Powered by Bun and TypeScript.

Bun

Fast runtime

TypeScript

Type safe

CLI

Code generators

Architecture

Modular & scalable

Features

Everything you need to build better backends.

Practical tools and a clean architecture designed to make backend development more straightforward.

Modular Architecture

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

High Performance

Built for Bun and TypeScript, with a lightweight HTTP core.

Ready-to-Use Middleware

Protect routes and handle common request workflows.

Built-in Validation

Validate incoming data with a simple, developer-friendly API.

Integrated CLI

Generate complete modules in seconds.

Developer Experience

Straightforward APIs and a clean architecture without unnecessary complexity.

Module structure

Explore each file.

Select a file to see how each part contributes to the module architecture.

Request lifecycle
  1. Request
  2. Router
  3. Auth
  4. Controller
  5. Service
users.module.ts
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}
Lines 7–11

Providers, controllers, routers and auth are declared in one place.

Built around clear responsibilities

One module. Four focused files.

Keep routing, request handling, business logic and dependency wiring separate, while bringing them together through a consistent module structure.

Read the documentation
Built for real engineering

Not just a framework for Hello World.

LykosJS has been used to build a real-world application with complex business logic, several infrastructure integrations and a modular backend.

Capabilities

See what each part does.

Select a capability to highlight where it lives in the system.

orvexa /architecture

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

Real-world implementation

Orvexa

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.

Explore implementation
  1. 01

    Service purchased

    A client buys a freelancer's service and a contract begins.

  2. 02

    Funds held in escrow

    The payment waits in an escrow-style balance, protected by transactions and row locking.

  3. 03

    Work delivered

    The freelancer completes the contract and delivers the result.

  4. 04

    Work accepted

    The client reviews the delivery and accepts it.

  5. 05

    Payout and commission

    Funds are released and the commission is distributed.

If a contract expires, a delayed BullMQ job issues the refund automatically.

16
Backend modules
540+
Test cases
28
Test files
The LykosJS ecosystem

More than a framework. An ecosystem.

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.

Packages

Pick a package.

Select a package, then a feature, to see exactly where it lives in the code.

token.ts
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/jwt
More on the way

The ecosystem is growing.

More packages and integrations are on their way. Built to make backend development with LykosJS even better.

Explore on GitHub
@lykosjs/openapi

OpenAPI. No lies. No drift.

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.

What it checks

Docs that cannot lie.

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.

Read the guide
openapi.ts
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

DocumentedRegisteredMatch
GET/ordersGET/orders
GET/orders/:idGET/orders/:id
Swagger UI
GET /docs
Document
GET /docs/json
One Framework. Four Strengths.

Four philosophies.One unified framework.

LykosJS brings together the strengths of four influential backend ecosystems into one cohesive development experience.

The best of four worlds. Built as one.

From 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.

  • Productivity
  • Modular Architecture
  • Flexibility
  • Performance
The Creator

Meet the mind behind LykosJS.

Building backend systems, developer tools, and frameworks focused on architecture, performance, and developer experience.

Zen Allaham, creator of LykosJS

Framework Builder

Building for real engineering.

LykosJS
LykosJS Creator

Zen Allaham

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.

Backend EngineeringTypeScriptBunFramework Design

Age

18 years old

Focus

Backend Engineering

Framework

LykosJS Creator

Get Started

Start building with LykosJS.

Create your next backend project in seconds with a single command. Simple setup, ready for real engineering.

buncreate
lykosjsmy-app

Ready to build your next project?

bun create lykosjs my-app

Move across the command to explore

Community

A framework grows with the people who build on it.

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.