Alosaur
Alosaur - Deno web framework with many ES Decorators
Install / Use
/learn @alosaur/AlosaurREADME
Alosaur 🦖
Alosaur - Deno web framework 🦖.
- Area - these are the modules of your application.
- Controller - are responsible for controlling the flow of the application execution.
- Middleware - provide a convenient mechanism for filtering HTTP requests entering your application.
- Hooks - middleware for area, controller and actions with support DI. Have 3 life cyclic functions:
onPreAction, onPostAction, onCatchAction - Decorators - ES decorators for query, cookie, parameters, routes and etc.
- Dependency Injection - for all controllers and hooks by default.
- Security - supports security context (Session, Authentication, Authorization, OAuth, Google and custom strategy) Security
- Render pages any template render engine. (more)
How do I use Alosaur in Deno Deploy? Use the light version of Alosaur: Alosaur Lite
Simple example
app.ts:
import { App, Area, Controller, Get } from "https://deno.land/x/alosaur/mod.ts";
@Controller() // or specific path @Controller("/home")
export class HomeController {
@Get() // or specific path @Get("/hello")
text() {
return "Hello world";
}
}
// Declare module
@Area({
controllers: [HomeController],
})
export class HomeArea {}
// Create alosaur application
const app = new App({
areas: [HomeArea],
});
app.listen();
And run
deno run --allow-net app.ts
Sponsors
<a align="center" href="https://opencollective.com/alosaur" target="_blank"><img src="https://opencollective.com/alosaur/sponsors.svg?width=1000&t=2" width="2000"></a>
Backers
<a href="https://opencollective.com/alosaur" target="_blank"><img src="https://opencollective.com/alosaur/backers.svg?width=1000&t=1"></a>
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
