Skip to content
LykosJSLYKOSJS
CreatorDeveloperBenchmarkshomeGet started
v1.0.0
IntroductionInstallationProject structureQuick start
PREVIOUSProject structureNEXT Application & server
© 2026 LykosJS · MIT LicenseBun · TypeScript

© 2026 LykosJS. Released under the MIT License.
Built by Zen Allaham.

DocsGitHubX
DOCS/V1.0.0/GETTING STARTED
GETTING STARTED

Your first server

Create an application, register your first route and start an HTTP server.

ts
1import { Lykos } from 'lykosjs'2 3const app = new Lykos()4 5app.GET('/', async (ctx, reply) => reply.send('Welcome to LykosJS 🐺'))6 7app.listen(4000, () => console.log('LykosJS running at http://localhost:4000'))

Run your entry file with Bun. Each route handler receives a request context and a response helper. A handler must return a standard Response, either directly or through one of the built-in response methods.

bash
1bun run src/launch.ts

Add a module collection

LykosJS includes a dependency injection system that lets you organize your application into modules. Register your module collection using app.modules() before starting the server.

ts
1import { Lykos } from 'lykosjs'2import { Modules } from './modules'3 4const app = new Lykos()5 6app.modules(Modules)7 8app.listen(4000)
Important handler contract
Every route handler must return a standard Response. Returning a plain object or leaving a handler without a response results in an HTTP 500 error. Use reply.json(),reply.send(), a status helper such as reply.OK(), or return another standard Response.