graph TD
A[API Requests] --> B{Threat Detection}
B -->|Malicious| C[Incident Response]
B -->|Benign| D[Process Request]
C --> E[Alerting & Logging]
E --> F[Remediation]
F --> G[Reporting & Analytics]
-
API Discovery & Inventory
- Automated API endpoint discovery
- Comprehensive API catalog with versioning
- Real-time API traffic monitoring
- Schema validation and drift detection
-
Threat Detection & Prevention
- Real-time API traffic analysis
- OWASP API Security Top 10 protection
- Rate limiting and throttling
- Bot detection and mitigation
- Anomaly detection using machine learning
-
Authentication & Authorization
- OAuth 2.0 and OpenID Connect support
- API key management
- JWT validation
- Role-based access control (RBAC)
- Fine-grained permissions
-
Multi-tenancy
- Isolated environments for different teams/organizations
- Custom security policies per tenant
- Tenant-specific analytics and reporting
- Centralized administration
-
Compliance & Governance
- Automated compliance checks (GDPR, HIPAA, PCI-DSS)
- Audit logging and trail
- Data classification and protection
- Policy as Code support
-
Intelligent Threat Detection
- Anomaly detection using ML models
- Behavioral analysis of API traffic
- Predictive threat intelligence
- Automated incident response
-
AI-Powered Analysis
- Natural language API documentation
- Automated API testing
- Smart traffic pattern recognition
- Root cause analysis
-
Real-time Dashboards
- API performance metrics
- Security incident tracking
- Traffic analysis
- User activity monitoring
-
Custom Reports
- Scheduled report generation
- Export to multiple formats (PDF, CSV, JSON)
- Custom metrics and KPIs
- SLA monitoring
-
Threat Intelligence Feeds
- Integration with leading threat feeds
- Custom feed support
- Automatic IOC (Indicators of Compromise) updates
- Threat reputation scoring
-
Developer Experience
- OpenAPI/Swagger support
- API mocking
- Automated documentation
- SDK generation
-
Incident Response
- Automated alerting
- Playbook integration
- Remediation workflows
- Escalation policies
-
CI/CD Integration
- Shift-left security
- Automated security testing
- Policy enforcement in pipelines
- Deployment gating
| Technology | Purpose |
|---|---|
| Next.js 15 | React framework with App Router |
| React 18 | UI components and hooks |
| Tailwind CSS | Utility-first styling |
| Radix UI | Accessible component primitives |
| Technology | Purpose |
|---|---|
| PocketBase | Real-time backend with auth |
| SQLite | Local database for metadata |
| Bun | JavaScript runtime and package manager |
# Clone the repository
git clone https://github.com/radhi1991/aran.git
cd aran
# Install dependencies
bun install
# Run setup (downloads PocketBase, creates collections, seeds data)
bun run setup
# Start development server
bun run dev- Frontend: http://localhost:9002
- PocketBase Admin: http://127.0.0.1:8090/_/
- Documentation: https://radhi1991.github.io/aran/
graph LR
A[Client] --> B[Load Balancer]
B --> C[API Gateway]
C --> D[Authentication]
D --> E[Rate Limiter]
E --> F[Threat Detection]
F --> G[Business Logic]
G --> H[Database]
-
Authentication
- JWT-based authentication
- Role-based access control
- Session management
-
API Protection
- Rate limiting
- Request validation
- Data sanitization
# Core
NODE_ENV=development
PORT=3000
# Database
DATABASE_URL=file:./dev.db
# Authentication
NEXTAUTH_SECRET=your-secret-key
NEXTAUTH_URL=http://localhost:3000
# Email (for notifications)
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USER=user@example.com
SMTP_PASSWORD=your-password| Command | Description |
|---|---|
bun run dev |
Start development server |
bun run build |
Build for production |
bun run start |
Start production server |
bun run lint |
Run linter |
bun run format |
Format code |
bun run test |
Run tests |
This project tracks improvements and future development:
- ROADMAP.md - Complete project roadmap with 22 phases of development
- IMPROVEMENTS.md - Detailed analysis of 45+ improvement features across 8 categories
- QUICK_WINS.md - High-impact, low-effort improvements (4 weeks of quick wins)
- CONTRIBUTING.md - Contribution guidelines
- Phase 15: Testing & Quality Assurance (Unit, Integration, E2E tests)
- Phase 16: Developer Experience (Documentation, tooling, automation)
- Phase 17: Monitoring & Observability (Error tracking, logging, metrics)
See ROADMAP.md for complete implementation plan.
This project is licensed under the MIT License - see the LICENSE file for details.
Aran API Sentinel - Enterprise API Security Platform
2025 Aran Security. All rights reserved.