Build powerful, scalable APIs with less code. Azura provides a modern, TypeScript-first framework for building high-performance APIs.
npm install @atosjs/azura
Azura combines the best features of modern API frameworks with a focus on developer experience and 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.
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.
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.
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.
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.
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.
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');
Follow these simple steps to create your first Azura API.
Install Azura using npm, yarn, or pnpm.
npm install @atosjs/azura
Azura includes TypeScript definitions out of the box.
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);
Start your server and make requests.
npx ts-node index.ts
Visit http://localhost:3000/hello to see your API in action.
Azura comes with a powerful plugin system to extend your API's functionality.
Enable Cross-Origin Resource Sharing
app.registerPlugin(cors, {
origin: '*',
methods: ['GET', 'POST']
});
Protect your API from abuse
app.registerPlugin(rateLimit, {
limit: 100,
timeframe: 60000
});
Compress responses for faster delivery
app.registerPlugin(compress, {
threshold: 1024
});
Serve static files from a directory
app.registerPlugin(serveStatic, {
root: './public'
});
Monitor your API's performance
app.registerPlugin(metrics);
app.get('/metrics', metricsEndpoint());
Create your own plugins
const myPlugin = {
name: 'my-plugin',
register: (app, options) => {
// Plugin logic here
}
};
Get started with Azura today and experience the fastest way to build scalable APIs.