High-performance AI inference in the Edge powered by the Lethal Combo:
Bun (ultra-fast dev & test runner) • Deno Deploy (sub-3s multi-region edge hosting) • Hono v4 (Web-standard REST API).
Architecture • Features • Tech Stack • Quickstart • API Reference • Ecosystem Synergy
Hyper-Flow couples an Edge AI Gateway with an automated DevSecOps CI/CD pipeline integrated with the GLASTOR® ecosystem (specter@v1, vortex@v1, nemesis@v1).
|
|
|
|
| Layer | Technology | Version | Purpose |
|---|---|---|---|
| Web Engine | Hono | ^4.7.2 |
Ultra-lightweight Web-standard request/response framework. |
| Contracts & Validation | Zod + @hono/zod-openapi |
^3.24.2 |
Type-safe declarative schemas and OpenAPI 3.1 generation. |
| Interactive Docs | Scalar | ^0.5.168 |
Modern, responsive API Reference theme at /doc. |
| Development & Testing | Bun | ^1.3 |
Instant local server execution and test runs in < 300ms. |
| Production Target | Deno Deploy | v2.x |
Global serverless deployment across 35+ regions with ~0ms cold starts. |
| Persistence | Drizzle ORM + LibSQL | ^0.45.4 |
Edge-native SQL queries and schema migrations. |
| Ecosystem Auditing | GLASTOR® Suite | v1 |
specter@v1 (AST contract), vortex@v1 (AST CI), nemesis@v1 (DevSecOps). |
git clone https://github.com/glastor-core/hyper-flow.git
cd hyper-flow
bun installcp .env.example .envbun run db:migrate# Option A — Bun (Fastest local feedback loop)
bun run dev
# Option B — Deno (Emulate Deno Deploy edge runtime)
bun run deno:devServer listening at http://localhost:8000:
- 📊 Dashboard: http://localhost:8000/
- 📚 API Docs (Scalar): http://localhost:8000/doc
- 📜 OpenAPI Spec: http://localhost:8000/api/v1/openapi.json
- 🩺 Liveness Probe: http://localhost:8000/health
- 🗄️ Readiness Probe: http://localhost:8000/health/ready
Run tests, typechecking, and AI regression evals locally:
# Run complete test suite (Unit Tests + AI Evals)
bun test
# Run endpoint contract tests only
bun run test:api
# Run AI prompt & latency budget regression evals
bun run test:evals
# Strict TypeScript compiler verification
bun run typecheck| Method | Route | Description | Auth | Rate Limit |
|---|---|---|---|---|
GET |
/health |
Liveness probe (uptime, runtime, version) | Public | ✕ |
GET |
/health/ready |
Readiness probe (database connectivity SELECT 1) |
Public | ✕ |
GET |
/api/v1/info |
Architecture metadata & active AI provider | Public | ✕ |
POST |
/api/v1/ai/generate |
Edge AI inference with multi-provider fallback | Optional / Key | 60 req/min |
GET |
/api/v1/openapi.json |
OpenAPI 3.1.0 JSON contract specification | Public | ✕ |
GET |
/doc |
Interactive Scalar API Reference UI | Public | ✕ |
GET |
/ |
Real-time Glassmorphism Control Center | Public | ✕ |
🔍 Sample Request & Responses (Click to expand)
curl -X POST http://localhost:8000/api/v1/ai/generate \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_OPTIONAL_API_KEY" \
-d '{
"prompt": "Explain edge computing in one sentence",
"topic": "cloud",
"temperature": 0.7
}'{
"id": "ai_1731063600000_abc12",
"prompt": "Explain edge computing in one sentence",
"topic": "cloud",
"response": "Edge computing processes data closer to where it is generated, drastically minimizing latency and bandwidth usage.",
"latencyMs": 28,
"runtime": "deno",
"provider": "groq",
"model": "llama-3.3-70b-versatile",
"timestamp": "2026-11-08T10:00:00.000Z"
}{
"status": "ready",
"database": "connected",
"uptimeSeconds": 142.5,
"runtime": "deno",
"timestamp": "2026-11-08T10:00:00.000Z"
}📋 Environment Variables Reference (.env)
| Variable | Default | Purpose |
|---|---|---|
PORT |
8000 |
Local HTTP listening port. |
NODE_ENV |
development |
Environment mode (production sanitizes stack traces). |
HYPERFLOW_API_KEY |
(empty) | When set, enforces API key check on /api/v1/ai/*. |
ALLOWED_ORIGINS |
(empty = *) |
Comma-separated CORS allowed origins list. |
RATE_LIMIT_ENABLED |
true |
Enables sliding-window edge rate limiting. |
RATE_LIMIT_MAX_REQ |
60 |
Maximum requests permitted per sliding window. |
RATE_LIMIT_WINDOW_SEC |
60 |
Duration of the rate limiting window in seconds. |
STORE_PROMPTS_CONTENT |
true |
If false, redacts prompts before database write. |
DATABASE_URL |
file:local.db |
SQLite path or remote LibSQL / Turso connection URL. |
DATABASE_AUTH_TOKEN |
(empty) | Authentication token for remote LibSQL / Turso. |
GROQ_API_KEY |
(empty) | Groq API Key for ultra-fast Llama-3.3 inference. |
OPENAI_API_KEY |
(empty) | OpenAI API Key for GPT models. |
AI_API_BASE_URL |
(empty) | Custom OpenAI-compatible base URL (e.g. Ollama, vLLM). |
AI_TIMEOUT_MS |
8000 |
Gateway upstream timeout before falling back to synthetic. |
🔐 GitHub Repository Secrets for Actions Deployment
Configure these in Settings -> Secrets and variables -> Actions:
DENO_DEPLOY_TOKEN: (Required for production) Access token from Deno Deploy Console.DATABASE_URL: (Optional) Production Turso/LibSQL database URL.DATABASE_AUTH_TOKEN: (Optional) Production database token.GROQ_API_KEY/OPENAI_API_KEY: (Optional) Production LLM provider credentials.HYPERFLOW_API_KEY: (Optional) Production perimeter protection key.
Hyper-Flow seamlessly integrates official GLASTOR® DevSecOps tools with zero collisions and zero commit races:
| Component | Responsibility | Anti-Conflict & Gatekeeper Role |
|---|---|---|
👻 Specter (@v1) |
API Contract & SemVer Audit | Scans 24 exported TypeScript AST symbols in < 10ms. Catches Trojan Breaking Changes and exports SARIF + CycloneDX 1.5 SBOM reports. |
🌪️ Vortex (@v1) |
Predictive CI & LPT Sharding | Builds AST blast-radius DAG (src/** → test/**), balancing test suites across parallel runners to reduce CI wall-clock time by ~26%. |
🛡️ Nemesis (@v1) |
Continuous DevSecOps | Scans secrets, SAST, SCA, licenses, and hygiene with fail-on-critical: true in .github/workflows/security-audit.yml. |
| 🏷️ Hyper-Flow Auto-Triage | Repository Management | Automatically tags PRs (area:database, area:ai-gateway, area:ci-cd) via GitHub REST API without modifying commit history. |
| 🛡️ Ephemeral PR Isolation | Supply-Chain Defense | Pull Requests run migrations against ephemeral SQLite databases with zero production secrets. |
| 📦 Smart SemVer Bumper | Automated Releases | Intelligently calculates next version (feat: → minor, fix: → patch, ! → major) and attaches OpenAPI-3.1-Contract.json. |
© 2010–2026 GLASTOR® (INPI Reg. 4559568 & 4559567) • Dual-Hub Operations (Spain & Argentina · Factura E) • Led by @glastor-dev (GitHub Developer Program Member).