Skip to content

MEGHTypeScript-first web framework built on Fastify

Decorator-based routing, dependency injection, validation and OpenAPI docs, with minimal boilerplate.

Megh

Hello, Megh ​

ts
import { ApiController, Get } from '@meghjs/core';

@ApiController
export class WelcomeController {
  @Get()
  sayHello() {
    return 'Hello, Megh!';
  }
}
ts
import { Megh } from '@meghjs/core';
import { WelcomeController } from './welcome.controller';

const app = Megh.createApplication();
app.useControllers([WelcomeController]);
app.run(); // or app.run(4000)

Released under the MIT License.