Welcome to AzuraJS
A modern, fast, and TypeScript-first web framework for Node.js and Bun
Welcome to AzuraJS β‘
AzuraJS is a modern, high-performance web framework for Node.js and Bun that brings the power of TypeScript decorators to backend development. Build elegant, type-safe APIs with a clean and intuitive syntax.
β¨ Why AzuraJS?
π― Decorator-Based
Express-style syntax enhanced with TypeScript decorators for clean, readable code
π High Performance
Built for speed with minimal overhead and zero external dependencies
π¦ Zero Dependencies
Lightweight and efficient - no bloated node_modules
π§ TypeScript First
Full type safety and IntelliSense support out of the box
π Middleware Support
Express-compatible middleware system for easy integration
βοΈ Highly Configurable
File-based configuration with TypeScript, JSON, or YAML support
π¨ Key Features
- Parameter Injection -
@Body,@Query,@Param,@Req,@Res, and more - Built-in Validation - DTO and schema validation with full type safety
- Cookie Handling - Built-in cookie parser and serializer
- CORS Support - Configurable CORS plugin ready to use
- Rate Limiting - Protect your API from abuse with built-in rate limiting
- Cluster Mode - Multi-core support for production workloads
- Smart Logging - Environment-aware request/response logging
- Error Handling - Structured error handling with HttpError class
π Quick Example
import {
AzuraClient,
Controller,
Get,
Post,
Body,
Param,
applyDecorators
} from "azurajs";
@Controller("/api/users")
class UserController {
@Get()
getAllUsers() {
return { users: ["Alice", "Bob"] };
}
@Get("/:id")
getUser(@Param("id") id: string) {
return { id, name: `User ${id}` };
}
@Post()
createUser(@Body() data: any) {
return { id: Date.now(), ...data };
}
}
const app = new AzuraClient();
applyDecorators(app, [UserController]);
await app.listen(3000);π What's Next?
Installation
Get started by installing AzuraJS in your project
Quick Start
Build your first API in minutes
Configuration
Learn about all configuration options
Controllers
Master the controller pattern
π Community
AzuraJS is open source and welcomes contributions! Join our community:
- β GitHub Repository
- π¦ NPM Package
- π Report Issues
- π¬ Discussions
Ready to build something amazing? Let's get started! π
