import { Controller, Get, Post } from '@heliosjs/core';
import { Helios } from '@heliosjs/http';
@Controller('/api')
class ApiController {
@Get('/health')
health() {
return { status: 'ok' };
}
@Post('/users')
createUser(@Body() data: UserDto) {
return { id: 1, ...data };
}
}
@Server({ controllers: [Api] })
export class Server {}
const app = new Helios(Server);
app.listen(3000);
Why HeliosJS?
Everything you need to build modern Node.js applications
🎯
Decorator-First
Write clean, declarative code using TypeScript decorators. Controllers, routes, and middleware are defined with intuitive decorators.
🚀
TypeScript Native
Built with TypeScript from the ground up. Full type safety, intelligent autocomplete, and excellent IDE support.
🔌
Modular Architecture
Use only what you need. Core package provides the foundation, while HTTP, WebSocket, and middleware packages add functionality.
⚡
High Performance
Built on Node.js core with minimal overhead. Fast routing, efficient middleware execution, and optimized for production workloads.
🔧
Extensible
Create custom plugins, middleware, and decorators. Extend the framework to fit your needs.