AzuraJS Logo
AzuraJSFramework
v2.2 Beta

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.

ðŸŽŊ Who is AzuraJS for?

Perfect for developers who want to build fast, robust REST APIs with TypeScript, without the complexity of larger frameworks.

âœĻ Why Choose AzuraJS?

ðŸŽŊ TypeScript Decorators

Organize your code with modern decorators - elegant syntax that makes your APIs more readable and maintainable

🚀 Exceptional Performance

Built from scratch for maximum speed, with minimal overhead and zero unnecessary external dependencies

ðŸ“Ķ Zero Dependencies

Lightweight and efficient - only 1 core dependency. No bloated node_modules folder

🔧 TypeScript First

Designed with TypeScript from day one, with complete types, perfect IntelliSense, and compile-time safety

🔌 Express Compatible

Use middlewares and plugins from the Express ecosystem - leverage thousands of ready-made solutions

⚙ïļ Flexible Configuration

Configure via TypeScript, JSON, or YAML files - choose your preferred format

ðŸŽĻ Key Features

AzuraJS comes with everything you need to build professional APIs:

💉 Smart Parameter Injection

Powerful decorators like @Body, @Query, @Param, @Req, @Res, @Headers, @Cookies and more - access request data elegantly and type-safely.

✅ Built-in Validation

Complete DTO and schema validation system with type safety. Validate data automatically before processing requests.

Native cookie parser and serializer - work with cookies simply and securely, without extra packages.

🌐 Configurable CORS

Production-ready CORS plugin with flexible configuration - protect your API and control access easily.

ðŸ›Ąïļ Built-in Rate Limiting

Protect your application against abuse and DDoS with configurable per-route rate limiting.

⚡ Cluster Mode

Leverage all CPU cores with native cluster support - maximize production performance.

📊 Contextual Logging

Smart logging system that adapts to the environment - verbose in development, concise in production.

ðŸšĻ Robust Error Handling

HttpError class and error middleware for structured and consistent exception handling.

🚀 See How Simple It Is

Here's a complete CRUD API example in less than 30 lines:

import { AzuraClient } from "azurajs";
import { applyDecorators } from "azurajs/decorators";
import { Controller, Get, Post, Body, Param } from "azurajs/decorators";

@Controller("/api/users")
class UserController {
  // GET /api/users - List all users
  @Get()
  getAllUsers() {
    return { users: ["Alice", "Bob", "Charlie"] };
  }

  // GET /api/users/:id - Get user by ID
  @Get("/:id")
  getUser(@Param("id") id: string) {
    return { id, name: `User ${id}` };
  }

  // POST /api/users - Create new user
  @Post()
  createUser(@Body() data: any) {
    return { 
      id: Date.now(), 
      ...data,
      createdAt: new Date().toISOString()
    };
  }
}

// Initialize and register controllers
const app = new AzuraClient();
applyDecorators(app, [UserController]);

// Start the server
await app.listen(3000);
console.log("🚀 API running at http://localhost:3000");

Done! Your API is now running with complete REST routes, type validation, and organized structure.

📚 Next Steps

Start your journey with AzuraJS by following these guides:


ðŸ’Ą Key Differences

AzuraJS vs Express

Express is great, but AzuraJS adds:

  • ðŸŽŊ TypeScript decorators for cleaner code
  • ðŸ“Ķ Zero unnecessary dependencies
  • ✅ Native type-safe validation
  • 🚀 Better out-of-the-box performance
  • 🔧 Centralized, structured configuration

AzuraJS vs NestJS

NestJS is powerful, but AzuraJS offers:

  • ðŸŠķ Much lighter (no Angular/RxJS overhead)
  • ðŸŽĻ Simpler, more direct syntax
  • ⚡ Faster startup time
  • 📝 Lower learning curve
  • ðŸŽŊ Focus on APIs, not complex frameworks

🌟 Community

AzuraJS is open source and welcomes contributions! Join our community:


Ready to build something amazing? Let's get started! 🎉

On this page