eggnas.com

eggAPI

A RESTful API framework with built-in authentication, rate limiting, and automatic documentation.

🚀 Get Started

Key Features

🔒

Advanced Auth

JWT-based authentication with role-based access control (RBAC). Supports OAuth2.0 and social authentication integration.

📈

Rate Limits

Configurable rate limiting by IP, user, or endpoint. Built-in DDoS protection and automated rate adjustments.

📜

AutoDocs

Interactive Swagger UI documentation generated automatically from your route definitions and middleware.

High Performance

Optimized for speed with minimal overhead. Benchmarks show 30-50% faster request processing than standard frameworks.

🛡️

Security

Built-in protection against XSS, CSRF, and SQL injection. Supports HSTS and automatic security header configuration.

🔌

Plugins

Modular plugin architecture for caching, monitoring, database integrations, and custom middleware extensions.

Getting Started

Install via npm:

eggAPI requires Node.js 18+ and supports all modern JavaScript environments including TypeScript.


npm install @eggnas/api

For enterprise deployments: use @eggnas/api-enterprise

Usage Example

Create a REST API


const { EggApi } = require('@eggnas/api')

const app = new EggApi()

app.get('/users/:id', (req, res) => {
  res.json({ user: 'JohnDoe' })
})

app.listen(3000, () => {
  console.log('eggAPI running on port 3000')
})

Add middleware for authentication, validation, and more with simple decorators.

Real-Time Monitoring

Built-in dashboard for performance metrics, request tracing, and error analysis.

Type Safety

TypeScript-first architecture with full type inference and auto-generated client SDKs.

Deployment

Single binary deployment with automatic environment configuration and container support.

Ready to Build APIs?

Create production-ready REST and GraphQL APIs with enterprise-grade security and performance.