The World's First AI-Native Enterprise SaaS Framework built on Express.js & TypeScript
Features • Installation • Quick Start • CLI • Playground • AI Gateway • Admin Panel • Architecture • Docs • Contributing
HyperZ v2 transforms Express.js from a simple middleware library into a World-First AI-Native Enterprise Backend Platform. Unlike traditional frameworks where AI is treated as an external plugin, HyperZ integrates AI directly into the Core Architectural Layer — request lifecycle, semantic routing, and SaaS logic.
It bridges the gap between building "AI Wrappers" and "Enterprise AI Products." With native multi-tenancy, subscription metering, RAG pipelines, and autonomous agent modules, you can ship a scalable AI product with production-grade reliability in days.
| Category | What You Get |
|---|---|
| 🏗️ Core | IoC Service Container, Service Providers, Config Manager, Application Kernel |
| 🌐 HTTP | Laravel-style Router (groups, named routes, resource CRUD), Controller base class |
| 🛡️ Middleware | JWT Auth, CORS, Helmet, Rate Limiting, Request Logging, XSS Protection — all built-in |
| 🗄️ Database | TypeORM (SQL Engine) + Mongoose (MongoDB) — Unified database support |
| 📊 ORM | Active Record Model (CRUD, soft deletes, timestamps, Laravel-style proxies: where, first, create) |
| 🔐 Auth & RBAC | JWT authentication, bcrypt hashing, Gates, Policies, Role & Permission middleware |
| ✅ Validation | Zod-powered request validation (body, query, params) with type safety |
| 🔧 CLI | 16+ Artisan-style commands for scaffolding, migrations, seeding, AI actions, and more |
| 📡 Events | Pub/Sub event dispatcher with async listeners |
| Nodemailer integration with SMTP transport | |
| 💾 Cache | Memory + Redis drivers with remember() helper |
| 📦 Queue | Sync + BullMQ (Redis) drivers with delayed job dispatching |
| 📁 Storage | Local filesystem + AWS S3 drivers |
| 🌐 WebSocket | Real-time communication via Socket.io with channel & room management |
| 🤖 AI Engine | Model Fallback, Cost Tracking, Prompt Versioning, Unified AI Actions |
| 📚 Native RAG | Document Ingestion Pipeline, Semantic Search Middleware, pgvector/Weaviate |
| 🏢 SaaS Core | Subdomain Multi-tenancy, Tenant-aware DB Pooling, Stripe Billing, API Keys |
| 🕵️ AI Agents | Autonomous Agent Factory with Skill & Memory management system |
| 🛡️ Enterprise | Audit Logging, RBAC Policy Engine, Secrets Mgmt, Advanced IoC Decorators |
| 📊 Observability | Real-time Metrics, Slow Query Detection, System Health Checks, AI Analytics |
| 🎮 API Playground | Built-in Postman-like API testing UI at /api/playground |
| 🧰 Utilities | String helpers, Collection class, global env/helpers, SanitizeHtml |
| 🔁 Tinker | Interactive REPL with preloaded app context |
| 🧠 AI Agent-Ready | Built-in support for Cursor, Copilot, Antigravity — with MCP Server |
| 📖 Swagger/OpenAPI | Auto-generated API docs at /api/docs with dark-themed Swagger UI |
| 🛡️ Rate Limiting | Per-user / per-API-key throttling with Multi-tier support |
- Node.js ≥ 20.0.0
- npm ≥ 9.0.0
# Clone the repository
git clone https://github.com/ShahjahanAli/HyperZ.git
cd HyperZ
# Install dependencies
npm install
# Generate application key & JWT secret
npx tsx bin/hyperz.ts key:generate
# Copy environment config
cp .env.example .env
# Start development server (with hot-reload)
npm run devYour API is now running at http://localhost:7700/api ⚡
Visit the built-in API Playground at http://localhost:7700/api/playground 🎮
npx tsx bin/hyperz.ts make:controller PostControllerThis generates app/controllers/PostController.ts:
import { Controller } from '../../src/http/Controller.js';
import type { Request, Response } from 'express';
export class PostController extends Controller {
async index(req: Request, res: Response): Promise<void> {
this.success(res, [], 'Posts retrieved');
}
async store(req: Request, res: Response): Promise<void> {
this.created(res, req.body, 'Post created');
}
async show(req: Request, res: Response): Promise<void> {
this.success(res, { id: req.params.id }, 'Post found');
}
async update(req: Request, res: Response): Promise<void> {
this.success(res, { id: req.params.id, ...req.body }, 'Post updated');
}
async destroy(req: Request, res: Response): Promise<void> {
this.noContent(res);
}
}npx tsx bin/hyperz.ts make:model Post -mThis generates:
app/models/Post.ts— Active Record model (TypeORM-based)database/migrations/YYYYMMDDHHMMSS_create_posts_table.ts— Native TypeORM migration
Edit app/routes/api.ts:
import { HyperZRouter } from '../../src/http/Router.js';
import { PostController } from '../controllers/PostController.js';
const router = new HyperZRouter();
const posts = new PostController();
// Resource routes (GET, POST, PUT, DELETE)
router.resource('/posts', posts);
export default router;npx tsx bin/hyperz.ts migrateGET http://localhost:7700/api → Welcome message
GET http://localhost:7700/api/health → Health check
GET http://localhost:7700/api/posts → Your posts
GET http://localhost:7700/api/playground → API Playground 🎮
HyperZ provides an Artisan-style CLI for rapid development:
# Scaffolding
npx tsx bin/hyperz.ts make:controller <Name> # Create a controller
npx tsx bin/hyperz.ts make:model <Name> [-m] # Create a model (-m = with migration)
npx tsx bin/hyperz.ts make:migration <name> # Create a migration
npx tsx bin/hyperz.ts make:seeder <Name> # Create a seeder
npx tsx bin/hyperz.ts make:middleware <Name> # Create a middleware
npx tsx bin/hyperz.ts make:route <name> # Create a route file
npx tsx bin/hyperz.ts make:auth # Scaffold full authentication
npx tsx bin/hyperz.ts make:job <Name> # Create a queue job
npx tsx bin/hyperz.ts make:factory <Name> # Create a database factory
npx tsx bin/hyperz.ts make:ai-action <Name> # Create an AI action class
# Database
npx tsx bin/hyperz.ts migrate # Run pending migrations
npx tsx bin/hyperz.ts migrate:rollback # Rollback last batch
npx tsx bin/hyperz.ts db:seed # Run all seeders
npx tsx bin/hyperz.ts db:seed -c UserSeeder # Run specific seeder
# Utilities
npx tsx bin/hyperz.ts key:generate # Generate app key + JWT secret
npx tsx bin/hyperz.ts serve # Start dev server
npx tsx bin/hyperz.ts route:list # List route files
npx tsx bin/hyperz.ts tinker # Interactive REPLHyperZ includes a built-in, Postman-like API testing UI — no third-party tools needed.
Visit http://localhost:7700/api/playground after starting the dev server.
- 🔍 Route Discovery — Auto-discovers all registered API routes
- 📝 Request Builder — Method, URL, headers, body, query params, auth
- 🔐 Auth Support — Bearer Token, Basic Auth, API Key
- 📊 Response Viewer — Status code, headers, body with JSON syntax highlighting
- ⏱️ Performance Metrics — Response time and payload size
- 🐛 Error Log Panel — Captures and displays all 4xx/5xx errors
- 📜 Request History — Browse and replay previous requests
- 🌙 Theme Toggle — Dark / Light mode
- ⌨️ Keyboard Shortcuts —
Ctrl+Enterto send requests
HyperZ provides a unified AI interface supporting OpenAI, Anthropic (Claude), and Google AI (Gemini):
import { AIGateway } from './src/ai/AIGateway.js';
const ai = new AIGateway();
ai.autoConfig(); // Reads from .env
// Chat completion
const response = await ai.chat([
{ role: 'system', content: 'You are a helpful assistant.' },
{ role: 'user', content: 'Explain TypeScript generics in one sentence.' },
]);
console.log(response.content);
// Simple text completion
const text = await ai.complete('Write a haiku about Node.js');
// Text embeddings
const embeddings = await ai.embed('HyperZ is fast');
// ── Prompt Management ──
import { PromptManager } from './src/ai/PromptManager.js';
const prompts = new PromptManager(appPath);
const systemPrompt = await prompts.load('agents/optimizer', { tone: 'professional' });
// ── Vector DB / RAG ──
import { VectorDB } from './src/ai/VectorDB.js';
const vectorDb = VectorDB.use('pinecone'); // or 'chroma', 'qdrant'
await vectorDb.upsert('docs', [{ text: 'HyperZ uses IoC', metadata: { source: 'readme' } }]);
const context = await vectorDb.search('docs', 'How does HyperZ handle DI?');Set your provider in .env:
AI_PROVIDER=openai # or 'anthropic' or 'google'
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
GOOGLE_AI_API_KEY=...
# Vector DB (Optional)
VECTOR_DB_DRIVER=pinecone
PINECONE_API_KEY=...npx tsx bin/hyperz.ts make:ai-action SummarizeActionThis creates app/ai/SummarizeAction.ts — a ready-to-use AI action class.
Real-time communication powered by Socket.io:
import { WebSocket } from './src/websocket/WebSocket.js';
const ws = new WebSocket(httpServer);
ws.onConnection((socket) => {
console.log(`Client connected: ${socket.id}`);
socket.emit('welcome', { message: 'Hello from HyperZ!' });
});
ws.channel('/chat', (socket) => {
socket.on('message', (data) => {
ws.broadcast('/chat', 'message', data);
});
});HyperZ is built for scale, providing features typically found in heavy frameworks like NestJS or Spring, but with the simplicity of Express.
Fully decoupled architecture using an IoC container and TypeScript decorators.
import { Injectable, Singleton } from './src/core/Decorators.js';
@Injectable()
@Singleton()
export class UserService {
constructor(private logger: Logger) {}
// ...
}Built-in health checks and real-time metrics dashboard:
- System Health: CPU, Memory (RSS/Heap), Uptime, Database connection pinging.
- Performance: Event loop lag measurement, request latency sparklines.
- Slow Query Detection: Automatic logging of queries exceeding
DB_SLOW_QUERY_THRESHOLD. - Resource Tracking: Active handles and requests monitoring.
- Log Aggregation: Live, level-based log viewer in Admin Panel.
Secure your API with customizable throttling tiers (Free, Standard, Pro, Enterprise) based on API keys or User IDs.
HyperZ ships with a built-in Next.js admin panel (Tailwind refactored) with a mobile-responsive sidebar and collapsed desktop mode.
# 1. Generate security keys (APP_KEY + JWT_SECRET)
npx tsx bin/hyperz.ts key:generate
# 2. Configure database in .env (mysql, postgresql, or sqlite)
# 3. Start the HyperZ API server
npm run dev
# 4. Run migrations to create admin table
npx tsx bin/hyperz.ts migrate
# 5. Start the admin panel
cd admin
npm install
npm run dev # Starts on http://localhost:3000First-Time Setup: The admin panel includes a guided setup wizard that walks you through database configuration, migration, and admin account creation — all from the browser.
| Feature | Details |
|---|---|
| 🔐 Password Hashing | bcrypt (10 salt rounds) |
| 🎫 Session Tokens | JWT HS256 with 24h expiry |
| 🛡️ Account Lockout | 15 min lockout after 5 failed attempts |
| 🚦 Rate Limiting | 5 login attempts per 15 min per IP |
| 🔒 Registration Lock | Locked after first admin account |
| ✅ Token Validation | Every request verified against DB |
| Page | Description |
|---|---|
| 📊 Dashboard | System health, uptime, memory usage, route/table counts |
| 🏗️ Scaffolding | Create controllers, models, migrations, seeders, middleware, jobs, factories via UI |
| 🗄️ Database | Browse tables, view schema & data, run migrations, rollback, seed |
| 🛤️ Routes | View all registered Express routes with method badges & search |
| ⚙️ Config & Env | Edit .env variables inline, browse config files |
| 💾 Cache & Queue | Cache flush, queue status, storage & WebSocket overview |
| 📋 Logs | Live log viewer with auto-refresh, level-based colors, file selector |
| 🤖 AI Gateway | Provider status (OpenAI, Anthropic, Google AI), config overview |
| 📈 Monitoring | Real-time CPU/memory/latency gauges and sparkline charts |
| 🔌 MCP Server | MCP tool status, resource browser, prompt templates |
The admin panel communicates via internal REST endpoints at /api/_admin/*:
| Endpoint | Method | Auth | Description |
|---|---|---|---|
/api/_admin/auth/status |
GET | 🔓 Public | System readiness check |
/api/_admin/auth/register |
POST | 🔓 Public | Create first admin account |
/api/_admin/auth/login |
POST | 🔓 Public | Admin login |
/api/_admin/auth/me |
GET | 🔓 Public | Verify session token |
/api/_admin/overview |
GET | 🔐 JWT | System health & stats |
/api/_admin/env |
GET/PUT | 🔐 JWT | Read/update .env |
/api/_admin/config |
GET | 🔐 JWT | List config files |
/api/_admin/routes |
GET | 🔐 JWT | List all routes |
/api/_admin/scaffold/:type |
POST | 🔐 JWT | Create resources |
/api/_admin/database/tables |
GET | 🔐 JWT | List database tables |
/api/_admin/database/tables/:name |
GET | 🔐 JWT | Browse table data |
/api/_admin/database/migrate |
POST | 🔐 JWT | Run migrations |
/api/_admin/database/rollback |
POST | 🔐 JWT | Rollback migrations |
/api/_admin/database/seed |
POST | 🔐 JWT | Run seeders |
/api/_admin/logs |
GET | 🔐 JWT | Read log files |
/api/_admin/cache/flush |
POST | 🔐 JWT | Flush cache |
HyperZ is designed to be AI agentic development-friendly — making it one of the first Express.js frameworks to ship with first-class AI agent support.
| Tool | Config File | What It Does |
|---|---|---|
| Antigravity (Gemini) | AGENTS.md + .agent/workflows/ |
Full project context + step-by-step workflows |
| Cursor | .cursorrules |
Project-specific coding rules and patterns |
| GitHub Copilot | .github/copilot-instructions.md |
Workspace-aware code suggestions |
| Claude Code | AGENTS.md |
Project conventions and architecture |
| Windsurf | AGENTS.md |
Project rules and context |
| VS Code AI Extensions | AGENTS.md + ARCHITECTURE.md |
System overview for any AI tool |
- Convention-over-configuration — Predictable file locations and naming patterns that AI agents can reason about
- CLI scaffolding — 16+
make:commands that AI agents can use to generate correct boilerplate - TypeScript strict mode — Strong type inference for better AI suggestions
- Comprehensive docs —
AGENTS.md(conventions),ARCHITECTURE.md(system diagrams),FEATURES.md,USER_MANUAL.md - Step-by-step workflows —
.agent/workflows/with guides for CRUD, middleware, database, AI actions, and dev setup - Auto-loaded routes — AI agents don't need to know where to register routes
- Admin API — Programmatic access to routes, database, env, and logs via
/api/_admin/*
An AI agent asked to "add a blog posts feature" can:
- Read
AGENTS.mdto understand conventions - Follow
.agent/workflows/add-crud-resource.md - Run
make:controller PostController,make:model Post -m,make:route posts - Edit the migration, route file, and controller
- Run
migrate— done! Full CRUD API in minutes.
HyperZ ships with a built-in MCP server that lets AI agents programmatically manage your project — scaffolding, database operations, route inspection, and more.
| Type | Count | Examples |
|---|---|---|
| Tools | 13 | scaffold_controller, run_migration, list_routes, read_env |
| Resources | 6 | hyperz://project/structure, hyperz://database/tables |
| Prompts | 4 | create_crud_resource, debug_api_endpoint, optimize_database |
| Transports | 2 | stdio (local), Streamable HTTP (web) |
Add to your MCP config:
{
"mcpServers": {
"hyperz": {
"command": "npx",
"args": ["tsx", "bin/hyperz-mcp.ts"],
"cwd": "/path/to/your/hyperz/project"
}
}
}Or run directly: npm run mcp
The MCP Server page in the Admin Panel (/mcp) provides a visual dashboard with:
- Component Map — architecture diagram with registered tools, resources, and prompts
- Tool Tester — execute MCP tools directly from the UI
- AI Automation — one-click database operations and quick actions
HyperZ/
├── admin/ # Next.js Admin Panel
│ ├── app/ # Admin pages (Dashboard, DB, Routes, etc.)
│ ├── components/ # Shared components (Sidebar, Layout)
│ └── package.json # Admin dependencies
│
├── app/ # Your application code
│ ├── ai/ # AI action classes
│ ├── controllers/ # HTTP controllers
│ ├── jobs/ # Queue job classes
│ ├── models/ # Data models
│ ├── middleware/ # Custom middleware
│ └── routes/ # Route definitions
│ └── api.ts # API routes (auto-loaded)
│
├── bin/
│ ├── hyperz.ts # CLI entry point
│ └── hyperz-mcp.ts # MCP server entry point
│
├── config/ # Configuration files
│ ├── ai.ts # AI Gateway config
│ ├── app.ts # Application config
│ ├── auth.ts # Authentication config
│ ├── cache.ts # Cache config
│ ├── database.ts # Database config
│ ├── mail.ts # Mail config
│ ├── queue.ts # Queue config
│ └── storage.ts # Storage config
│
├── database/
│ ├── factories/ # Database factories
│ ├── migrations/ # Database migrations
│ └── seeders/ # Database seeders
│
├── lang/ # i18n translation files
│ ├── en/messages.json # English translations
│ └── bn/messages.json # Bengali translations
│
├── src/ # Framework core (don't edit)
│ ├── ai/ # AI Gateway (OpenAI, Anthropic, Google)
│ ├── auth/ # Auth manager & RBAC
│ │ └── rbac/ # Gate, Policy, Role middleware
│ ├── cache/ # Cache manager (Memory + Redis)
│ ├── cli/ # CLI engine & stubs
│ ├── config/ # Config loader
│ ├── core/ # Application, Container, PluginManager
│ ├── database/ # Database, Model, Migration, Factory
│ ├── events/ # Event dispatcher
│ ├── http/ # Router, Controller, Request, Response
│ │ ├── exceptions/ # HTTP exceptions & handler
│ │ └── middleware/ # Built-in middleware
│ ├── i18n/ # Localization manager
│ ├── logging/ # Logger (Pino)
│ ├── mail/ # Mailer (Nodemailer)
│ ├── playground/ # API Playground UI
│ ├── providers/ # Service providers
│ ├── queue/ # Queue manager (Sync + BullMQ)
│ ├── scheduling/ # Task scheduler
│ ├── storage/ # Storage manager (Local + S3)
│ ├── support/ # Helpers, Str, Collection
│ ├── testing/ # HTTP test client
│ ├── validation/ # Zod validator
│ └── websocket/ # WebSocket manager (Socket.io)
│
├── storage/ # App storage
│ ├── cache/
│ ├── logs/
│ └── uploads/
│
├── app.ts # Application bootstrap
├── server.ts # Server entry point
├── .env # Environment variables
├── .env.example # Environment template
├── tsconfig.json # TypeScript config
└── package.json
HyperZ uses a service-provider pattern inspired by Laravel:
Boot Order:
1. AppServiceProvider → Kernel, global middleware
2. DatabaseServiceProvider → TypeORM (DataSource) + MongoDB (Mongoose) connections
3. EventServiceProvider → Event dispatcher
4. CacheServiceProvider → Cache manager
5. RouteServiceProvider → Auto-discovers & loads app/routes/*.ts
Copy .env.example to .env and configure:
| Variable | Description | Default |
|---|---|---|
APP_NAME |
Application name | HyperZ |
APP_ENV |
Environment (development, production) |
development |
APP_PORT |
Server port | 7700 |
APP_KEY |
Encryption key (run key:generate) |
— |
DB_DRIVER |
SQL driver (sqlite, mysql, postgres) |
sqlite |
MONGO_ENABLED |
Enable MongoDB | false |
MONGO_URI |
MongoDB connection string | mongodb://127.0.0.1:27017/hyperz |
JWT_SECRET |
JWT signing secret | — |
JWT_EXPIRATION |
Token expiry | 7d |
CACHE_DRIVER |
Cache backend (memory, redis) |
memory |
QUEUE_DRIVER |
Queue backend (sync, redis) |
sync |
AI_PROVIDER |
AI provider (openai, anthropic, google) |
openai |
APP_LOCALE |
Default locale | en |
See .env.example for all available options.
SQLite (default — zero config):
DB_DRIVER=sqliteMySQL:
DB_DRIVER=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_NAME=hyperz
DB_USER=root
DB_PASSWORD=secretPostgreSQL:
DB_DRIVER=postgres
DB_HOST=127.0.0.1
DB_PORT=5432
DB_NAME=hyperz
DB_USER=postgres
DB_PASSWORD=secretMongoDB (alongside SQL):
MONGO_ENABLED=true
MONGO_URI=mongodb://127.0.0.1:27017/hyperznpx tsx bin/hyperz.ts make:authThis creates:
app/controllers/AuthController.ts— Login, Register, Me endpointsapp/routes/auth.ts— Auth routesdatabase/migrations/*_create_auth_tables.ts— Users, Roles, Permissions tables
import { authMiddleware } from '../../src/http/middleware/AuthMiddleware.js';
import { roleMiddleware, permissionMiddleware } from '../../src/auth/rbac/RoleMiddleware.js';
// Require authentication
router.get('/profile', authMiddleware(), controller.profile.bind(controller));
// Require specific role
router.get('/admin', authMiddleware(), roleMiddleware('admin'), controller.admin.bind(controller));
// Require specific permission
router.delete('/users/:id', authMiddleware(), permissionMiddleware('delete-users'), controller.destroy.bind(controller));import { Gate } from '../../src/auth/rbac/Gate.js';
// Define abilities
Gate.define('edit-post', (user, post) => user.id === post.authorId);
// Check in controller
const allowed = await Gate.allows('edit-post', req.user, post);HyperZ uses Zod for type-safe request validation:
import { z } from 'zod';
import { validate } from '../../src/validation/Validator.js';
const createPostSchema = z.object({
title: z.string().min(3).max(255),
body: z.string().min(10),
published: z.boolean().optional(),
});
router.post('/posts', validate(createPostSchema), controller.store.bind(controller));Invalid requests automatically return a 422 response with detailed error messages.
HyperZ supports multi-language translations with JSON files:
import { I18n } from './src/i18n/I18n.js';
// Translations are auto-loaded from lang/ directory on boot
I18n.t('welcome'); // "Welcome to HyperZ!"
I18n.t('greeting', { name: 'John' }); // "Hello, John!"
I18n.t('errors.not_found'); // "Resource not found."
// Switch locale
I18n.setLocale('bn');
I18n.t('welcome'); // "হাইপারজেড-এ স্বাগতম!"Add new languages by creating lang/<locale>/messages.json.
import { EventDispatcher } from '../../src/events/EventDispatcher.js';
// Register listener
EventDispatcher.on('user.registered', async (user) => {
console.log(`Welcome ${user.name}!`);
// Send welcome email, log analytics, etc.
});
// Dispatch event
await EventDispatcher.dispatch('user.registered', { name: 'John', email: 'john@example.com' });import { Scheduler } from '../../src/scheduling/Scheduler.js';
const scheduler = new Scheduler();
scheduler
.everyMinute('health-check', async () => { /* ping services */ })
.daily('cleanup', async () => { /* purge old records */ })
.weekly('report', async () => { /* generate reports */ });
scheduler.start();HyperZ is evolving rapidly. Here is our plan for the upcoming versions:
- ✅ Autonomous Agent factory
- ✅ Multi-provider AI Fallback
- ✅ Native RAG (pgvector/Weaviate)
- ✅ Tenant-aware DB Pooling
- HyperZ-UI Starter Kit: A pre-built SaaS frontend for the HyperZ backend.
- Advanced Agent Memory: Support for long-term "Graph" memory.
- One-Click Deploy: Integrated adapters for Vercel, Railway, and AWS Lambda.
- Fine-tuning Pipeline: Built-in tools for fine-tuning models on tenant data.
- AI-Driven Rate Limiting: Dynamic throttling based on token costs and system load.
| Package | Purpose |
|---|---|
| Express 5.x | HTTP framework |
| TypeScript | Type safety |
| TypeORM | Model Management & Relations |
| Knex.js | SQL query builder |
| Mongoose | MongoDB ODM |
| Zod | Schema validation |
| Pino | Logging |
| jsonwebtoken | JWT authentication |
| bcryptjs | Password hashing |
| Commander.js | CLI framework |
| Socket.io | WebSocket / real-time |
| ioredis | Redis client |
| BullMQ | Job queue (Redis-backed) |
| Nodemailer | Email sending |
| node-cron | Task scheduling |
| Helmet | Security headers |
| tsx | TypeScript execution & hot-reload |
# Build and start the full stack (app + Redis)
docker compose up -d --build
# View logs
docker compose logs -f app
# Stop
docker compose downThis starts:
- HyperZ app — multi-stage Alpine build, non-root user, health checks
- Redis 7 — for cache and queue backends
The app is available at http://localhost:7700
# Start with source-mounted hot-reload + Redis
docker compose -f docker-compose.dev.yml up# Build the image
docker build -t hyperz .
# Run with your .env
docker run -d --name hyperz -p 7700:7700 --env-file .env hyperzPass environment variables via .env file or docker compose overrides:
APP_PORT=7700
CACHE_DRIVER=redis
QUEUE_DRIVER=redis
REDIS_HOST=redis # Use 'redis' as host when using docker composeWe welcome contributions! Here's how to get started:
# Fork & clone the repo
git clone https://github.com/<your-username>/HyperZ.git
cd HyperZ
# Install dependencies
npm install
# Start dev server with hot-reload
npm run dev- Fork the repository and create your branch from
main - Follow the existing code style (TypeScript strict mode)
- Write clear commit messages
- Test your changes before submitting
- Submit a Pull Request with a clear description
- � Documentation & tutorials
- 🧪 Comprehensive test suite (Vitest)
- 🎨 API Playground UI enhancements
- � Additional AI provider drivers
- 🌍 More language translation files
- 📊 Swagger/OpenAPI auto-generation
- 🏗️ Additional database drivers
- Redis cache driver
- BullMQ queue driver
- S3 / cloud storage driver
- WebSocket / Socket.io provider
- REPL / Tinker command
- AI Gateway (OpenAI, Anthropic, Google AI)
- Database Factory (Faker-ready)
- Plugin auto-discovery
- Vitest test helpers & HTTP test client
- i18n / Localization support
- API Playground — built-in Postman-like API testing UI
- Auto-generated API docs (Swagger/OpenAPI)
- Rate limiting per user/API key
- Real-time dashboard & monitoring
- GraphQL integration layer
- Docker & deployment templates
- Admin panel UI (Next.js)
- 🤖 AI Agent Guide
- 🏗️ Architecture Guide
- 📈 Stability Guarantees
- 🛡️ Security Policy
- 📋 Product Features Specification
- 📖 User Manual
- ⚔️ Framework Comparison
- 📄 Changelog
This framework was built using the Antigravity IDE with Claude Opus 4.6. It is based on Express.js and Next.js, with core architectural inspiration from Laravel.
This project is licensed under the MIT License — see the LICENSE file for details.
Built with ❤️ by Shahjahan Ali
⚡ HyperZ — Ship faster. Scale effortlessly.