Azura.JS FrameworkModern. Fast. Scalable.

Build powerful, scalable APIs with less code. Azura provides a modern, TypeScript-first framework for building high-performance APIs.

npm install @atosjs/azura

Why Choose Azura?

Azura combines the best features of modern API frameworks with a focus on developer experience and performance.

High Performance

Built for speed with a lightweight core and optimized request handling.

Azura's architecture is designed for minimal overhead, with cluster mode support for multi-core systems.

Built-in Security

Secure your API with JWT authentication, API keys, and role-based access control.

Protect your endpoints with decorators and middleware that handle authentication and authorization.

Database Agnostic

Connect to any database with our unified adapter interface.

Built-in support for MongoDB, PostgreSQL, and simple JSON storage, with a consistent API across all adapters.

TypeScript First

Fully typed API with decorators and strong typing for better developer experience.

Leverage the power of TypeScript with decorators, interfaces, and type definitions for safer, more maintainable code.

Scalable Architecture

From simple APIs to complex microservices, Azura scales with your needs.

Built-in support for clustering, load balancing, and horizontal scaling for high-traffic applications.

Extensible Plugin System

Extend functionality with built-in and custom plugins.

Add compression, CORS, rate limiting, and more with our plugin system. Create your own plugins to extend functionality.

Built for Developer Experience

Create powerful APIs with less code. Azura helps you focus on your business logic instead of boilerplate code.

import { AzuraServer } from '@atosjs/azura';

// Create a new server instance
const app = new AzuraServer();

// Define routes
app.get('/users', (req, res) => {
  const users = [
    { id: 1, name: 'John Doe' },
    { id: 2, name: 'Jane Smith' }
  ];
  
  res.json(users);
});

app.post('/users', (req, res) => {
  const newUser = req.body;
  
  // Add user to database...
  
  res.status(201).json({
    id: 3,
    ...newUser
  });
});

// Start the server
app.listen(3000);
console.log('Server running at http://localhost:3000');

Get Started in Minutes

Follow these simple steps to create your first Azura API.

1. Install

Install Azura using npm, yarn, or pnpm.

npm install @atosjs/azura

Azura includes TypeScript definitions out of the box.

2. Create

Create your first API endpoint.

import { AzuraServer } from '@atosjs/azura'; const app = new AzuraServer(); app.get('/hello', (req, res) => { res.json({ message: 'Hello World!' }); }); app.listen(3000);

3. Run

Start your server and make requests.

npx ts-node index.ts

Visit http://localhost:3000/hello to see your API in action.

Extend with Plugins

Azura comes with a powerful plugin system to extend your API's functionality.

CORS

Enable Cross-Origin Resource Sharing

app.registerPlugin(cors, { origin: '*', methods: ['GET', 'POST'] });

Rate Limiting

Protect your API from abuse

app.registerPlugin(rateLimit, { limit: 100, timeframe: 60000 });

Compression

Compress responses for faster delivery

app.registerPlugin(compress, { threshold: 1024 });

Static Files

Serve static files from a directory

app.registerPlugin(serveStatic, { root: './public' });

Metrics

Monitor your API's performance

app.registerPlugin(metrics); app.get('/metrics', metricsEndpoint());

Custom Plugins

Create your own plugins

const myPlugin = { name: 'my-plugin', register: (app, options) => { // Plugin logic here } };

Ready to Build Your API?

Get started with Azura today and experience the fastest way to build scalable APIs.