Yelix – Deno Web Framework
Yelix: The Modern Web Server Framework for Deno
Simplify your backend development with automated features, built-in data validation, and auto-generated API documentation.
import { Yelix } from 'jsr:@murat/yelix';
import endpoints from './endpoints.ts';
const app = new Yelix();
app.loadEndpoints(endpoints);
await app.serve();Hono-based Routing
Fast and lightweight request handling powered by the Hono framework.
Data Validation
Automatic query and body validation using built-in validation.
OpenAPI 3.1
Auto-generates comprehensive API documentation with minimal setup.
Optional Automation
Enable or disable features as needed for your specific project requirements.
Deno-native
Designed specifically for Deno with full TypeScript support.
API Folder Structure
Load endpoints from dedicated folders for better organization.
import { Ctx } from "jsr:@murat/yelix";
export async function GET(ctx: Ctx) {
return await ctx.text('Hello world!', 200);
}
export const path = '/api/hello';
import { Ctx, getValidatedQuery, Infer } from "jsr:@murat/yelix";
export async function GET(ctx: Ctx) {
const query = getValidatedQuery<Infer<typeof validation.query>(ctx);
return await ctx.text('Hello, ' + query.name, 200);
}
export const path = '/api/hello';
export const middlewares = ['dataValidation'];
export const validation = {
query: {
name: inp().string(),
},
};
1. Generate Template
deno run --allow-write --allow-read --allow-run https://docs.yelix.dev/yelix-template.ts2. Run Your App
deno task dev