Package Exports
- @venizia/ignis
- @venizia/ignis/package.json
Readme
@venizia/ignis
The core package of the Ignis Framework - a TypeScript Server Infrastructure combining enterprise-grade patterns with high performance, built on Hono.
Installation
bun add @venizia/ignis
# or
npm install @venizia/ignisPeer Dependencies
bun add hono @hono/zod-openapi @scalar/hono-api-reference drizzle-orm drizzle-zod pg joseQuick Example
import { BaseApplication, BaseController, controller, get, HTTP, jsonContent } from "@venizia/ignis";
import { z } from "@hono/zod-openapi";
@controller({ path: "/hello" })
class HelloController extends BaseController {
constructor() {
super({ scope: "HelloController", path: "/hello" });
}
override binding() {}
@get({
configs: {
path: "/",
method: HTTP.Methods.GET,
responses: {
[HTTP.ResultCodes.RS_2.Ok]: jsonContent({
description: "Says hello",
schema: z.object({ message: z.string() }),
}),
},
},
})
sayHello(c: Context) {
return c.json({ message: "Hello from Ignis!" }, HTTP.ResultCodes.RS_2.Ok);
}
}About Ignis
Ignis brings together the structured, enterprise development experience of LoopBack 4 with the blazing speed and simplicity of Hono - giving you the best of both worlds.
Documentation
License
MIT