Engineered specifically for Google Gemini 4 Pro & Project Astra
Quickstart • Why Centaury? • Architectural Pillars • Benchmarks • Showcase App • Docs • Contributing
Legacy fullstack frameworks (Next.js, Remix, Astro) were built for human developers writing static component trees in React, compiling heavy JavaScript bundles, and shipping massive client-side hydration runtimes.
Centaury is fundamentally different: It is the first autonomous fullstack web framework purpose-built for Super-Intelligent AI Systems (ASI), Gemini 4 Pro, and Project Astra:
- ⚡ Zero-Hydration Micro-Signals (<1.5KB): Direct reactive DOM mutation without Virtual DOM, hydration overhead, or runtime compilation.
- 🌌 Ephemeral Generative UI (Zero-Eval AST): Safe, real-time UI component synthesis streamed straight from AI reasoning streams without arbitrary JavaScript execution risks.
- 🎙️ Project Astra Multimodal Gateway: Sub-150ms bidirectional PCM voice streaming, voice activity detection (VAD), instant interruption cutoff, and normalized 0..1000 screen-grounding coordinates.
- 🤖 Dual-Citizen MCP v1.x Native: AI agents and humans share first-class citizenship via official Model Context Protocol endpoints at
/.well-known/mcp.json. - ⏱️ Sub-3ms Cold-Start: Powered by Bun 1.3+ native HTTP/WebSocket engine and high-throughput Trie router.
Create and launch a production-ready Centaury application in under 5 seconds:
# Scaffold with default Fullstack archetype
bunx centaury create my-app --install
# Or choose specialized archetypes:
# • minimal : Ultra-lightweight micro-signals + Trie server (<1.5KB client)
# • fullstack : RPC procedures + Reactive UI + Web Components (Default)
# • agentic : MCP v1.x + Ephemeral UI + Astra Multimodal Gateway
bunx centaury create my-agent-app --template agentic --install
# Start development server with instant auto-reload
cd my-app
bun run dev| Feature / Architecture Metric | 🌌 Centaury Framework | ⚛️ Next.js 15 | 🚀 Astro 5 | ⚡ Hono v4 |
|---|---|---|---|---|
| Server Cold-Start | 2.63 ms | ~1,200 ms | ~450 ms | ~15 ms |
| Client Core Bundle | < 1.5 KB | ~180 KB+ | ~25 KB | N/A (Backend) |
| Hydration Paradigm | Zero-Hydration (Atomic DOM) | Heavy Virtual DOM | Partial (Islands) | N/A |
| AI Generative UI | Native AST Stream Synthesizer | Manual RSC Hacks | ❌ None | ❌ None |
| Multimodal Astra Gateway | Native (VAD + Screen Grounding) | ❌ None | ❌ None | ❌ None |
| Dual-Citizen MCP v1.x | Built-in (/.well-known/mcp.json) |
❌ None | ❌ None | ❌ None |
| Router Throughput | 10,500,000+ matches/sec | ~80,000 matches/sec | ~250,000 matches/sec | ~4,000,000 matches/sec |
| Cross-Tab Signal Persistence | Native persistedSignal |
External State Libs | External State Libs | N/A |
| Cybernetic Devtools HUD | Native <c-devtools> |
External Extension | Toolbar Island | ❌ None |
┌────────────────────────────────────────────────────────────────────────┐
│ CENTAURY SYSTEM TOPOLOGY │
├────────────────────────────────────────────────────────────────────────┤
│ │
│ CLIENT TIER (< 5KB Budget) │
│ ┌─────────────────────┐ ┌─────────────────────┐ ┌──────────────┐ │
│ │ Micro-Signals │ │ Ephemeral DOM │ │ <c-devtools>│ │
│ │ persistedSignal │ │ <c-ephemeral> │ │ Live HUD │ │
│ └──────────┬──────────┘ └──────────┬──────────┘ └──────┬───────┘ │
│ │ │ │ │
│ REALTIME PROTOCOLS │ │ │
│ ┌──────────┴─────────────────────────┴─────────────────────┴┐ │
│ │ WebSockets Full-Duplex Live Bus │ │
│ └──────────────────────────┬────────────────────────────────┘ │
│ │ │
│ SERVER TIER (Bun 1.3+ Micro-Kernel) │
│ ┌──────────────────────────┴────────────────────────────────┐ │
│ │ Trie Router • Type-Safe RPC • Deterministic KV Cache │ │
│ │ Security Plugins • RFC 9457 Sliding Rate Limiter │ │
│ └──────────┬─────────────────────────────────┬──────────────┘ │
│ │ │ │
│ INTELLIGENCE INTEGRATION │ │
│ ┌──────────┴──────────┐ ┌──────────┴──────────┐ │
│ │ Dual-Citizen MCP │ │ Multimodal Astra │ │
│ │ v1.x Server │ │ Audio VAD & Vision │ │
│ └─────────────────────┘ └─────────────────────┘ │
│ │
└────────────────────────────────────────────────────────────────────────┘
The ultra-fast HTTP & WebSocket engine powered by Bun's native runtime.
import { CentauryServer, securityHeadersPlugin, rateLimiterPlugin } from '@rudyrustam/core';
import { z } from 'zod';
const app = new CentauryApp({ port: 3000 });
// Enterprise Security & Rate Limiting Plugins
app.usePlugin(securityHeadersPlugin());
app.usePlugin(rateLimiterPlugin({ maxRequests: 100, windowMs: 60000 }));
// Type-Safe RPC Procedure
app.rpc('generateAnalysis', {
schema: z.object({ query: z.string() }),
handler: async ({ input }) => ({
result: `Synthesized report for: ${input.query}`,
timestamp: Date.now(),
}),
});
app.listen();Ultra-lightweight (<1.5KB) atomic reactive primitives with direct DOM bindings.
<script type="module">
import { signal, persistedSignal, bindText, bindModel } from '@rudyrustam/signals';
// Atomic & Cross-Tab Persisted State
const counter = signal(0, 'counterSignal');
const userTheme = persistedSignal('app-theme', 'dark');
// Direct zero-hydration DOM mutations (no V-DOM)
bindText(document.getElementById('counterDisplay'), counter);
</script>
<!-- Embedded Cybernetic Devtools HUD -->
<c-devtools></c-devtools>Directly renders dynamic UI components generated on-the-fly by frontier models like Gemini 4 Pro with zero-eval AST safety.
import { EphemeralStreamParser, mountEphemeralUI } from '@rudyrustam/ephemeral';
const parser = new EphemeralStreamParser();
const container = document.getElementById('ai-interface-root');
// Stream LLM chunks incrementally without buffering stalls
streamFromGemini.onChunk((chunk) => {
const ast = parser.parseChunk(chunk);
mountEphemeralUI(container, ast);
});
// Capture safe action dispatches
container.addEventListener('ephemeral:action', (e) => {
console.log('Action triggered by AI button:', e.detail);
});Continuous bidirectional PCM audio streaming, Voice Activity Detection, sub-150ms interruption detection, and spatial visual grounding.
import { AstraAudioPipeline, AstraVisionPipeline } from '@rudyrustam/astra';
const audio = new AstraAudioPipeline({ sampleRate: 16000 });
const vision = new AstraVisionPipeline();
// Detect voice activity & trigger sub-150ms interruption
audio.onVoiceActivity((energy) => {
if (energy.isSpeaking && modelSpeaking) {
audio.interruptPlayback();
}
});
// Map 0..1000 normalized coordinates to real screen pixels
const targetBox = vision.mapNormalizedToPixels({ ymin: 200, xmin: 150, ymax: 400, xmax: 600 }, 1920, 1080);Official Model Context Protocol server (/.well-known/mcp.json, canonical sorted POST /mcp, and Frontier routing/KV-prefix tools), CentauryAIGateway supporting native Google Gemini, Anthropic Messages (prompt caching + extended thinking + tool-forced structured output), xAI Grok, OpenAI-compatible, and Mock providers with 4-tier cascade routing (scoreComplexity + evaluateQualityGate), dynamic thinking budgets (resolveThinkingBudget), availability fallback (Gemini 4 -> Gemini 3.8 Flash, Claude 5.5 -> Claude Opus 4.6), strict Zod JSON decoding (generateStructured), SSE streaming (generateStream), CentauryPromptFirewall, and source-aware CentaurySelfHealer.
import { CentauryMCPServer, CentauryAIGateway, mcpPlugin, selfHealingPlugin } from '@rudyrustam/agent';
app.usePlugin(selfHealingPlugin({ workspaceRoot: import.meta.dir }));
const mcp = new CentauryMCPServer(app);
app.usePlugin(mcpPlugin(mcp, { path: '/mcp' }));
const gw = new CentauryAIGateway({
provider: { kind: 'gemini', model: 'gemini-4-argon-medium', thinkingProfile: 'balanced' },
});Binary CLI centaury providing fast project scaffolding, local auto-reloading dev server, live runtime inspection (centaury inspect [url]), and diagnostic health audits.
bunx centaury create <app-name> [--template minimal|fullstack|agentic] [--install]
bunx centaury dev
bunx centaury inspect http://localhost:3000
bunx centaury doctorNative bun:sqlite database micro-kernel with WAL mode, parameterized query builder, migrations, and Float32Array SIMD vector cosine similarity search (7.5M+ ops/sec).
import { CentauryDatabase, query, CentauryVectorStore } from '@rudyrustam/db';
const db = new CentauryDatabase({ path: './app.db', wal: true });
const users = query(db).select(['id', 'name']).from('users').where('status = ?', 'active').all();O(1) topic pub/sub (CentauryEventBus), ring-buffer history replay, ssePlugin(), and reconnecting CentaurySSEClient.
Web Crypto HS256 JWT tokens, PBKDF2-SHA256 hashing, RBAC/ReBAC (CentauryAccessControl), WebAuthn Passkey challenges (CentauryPasskeyManager), and mandatory legal/privacy routes (legalCompliancePlugin -> /privacy, /terms, /delete-account, POST /api/compliance/delete-account).
import { signToken, CentauryAccessControl, createAuthMiddleware, legalCompliancePlugin } from '@rudyrustam/auth';
app.usePlugin(legalCompliancePlugin({ appName: 'My Centaury App', contactEmail: '[email protected]' }));Agent-to-Agent discovery (/.well-known/agent.json), task lifecycle endpoints (/a2a/tasks/*), and SQLite-backed durable workflows with deterministic replay and reverse-order Saga compensation (CentauryWorkflowEngine).
Re-exports @rudyrustam/core, @rudyrustam/signals, @rudyrustam/cli, @rudyrustam/sse, @rudyrustam/db, @rudyrustam/auth, and @rudyrustam/workflow from a single import.
Run the automated benchmark suite locally:
bun run bench| Metric | Centaury Performance | Industry Comparison |
|---|---|---|
| Micro-Signals Reactivity | 6,588,831 ops/sec (15.18 ms) |
Zero-hydration atomic DOM mutations |
| Trie Router Throughput | 7,496,746 matches/sec (66.70 ms) |
Zero regex overhead dynamic routing |
| Ephemeral AST Parser | 224,006 parses/sec (44.64 ms) |
Instant sub-millisecond UI synthesis |
| Vector Cosine Similarity | 5,313,073 ops/sec (37.64 ms) |
128-dim Float32Array SIMD-friendly search |
| SQLite Prepared Queries | 1,257,805 queries/sec (39.75 ms) |
WAL mode + LRU statement cache |
| Client Bundle Budget | < 9 KB minified | ~95% smaller than hydration runtimes |
| Memory Footprint (RSS) | 56 MB (1 MB heap) |
Zero bloat, optimal cloud efficiency |
Experience all Centaury capabilities live in your browser:
bun run devNavigate to http://localhost:3000 to experience:
- Live Engine Telemetry: Sub-millisecond server health streaming over WebSockets via
<c-stream>. - Ephemeral UI Synthesizer: Interactive generative UI components created live by Gemini 4 Pro.
- Project Astra Multimodal Simulator: Real-time VAD voice energy meter and spatial screen-grounding overlays.
- Dual-Citizen MCP Console: Direct agent tool execution and route introspection.
- Cybernetic Devtools HUD: Live signal registry and DOM state inspection.
Centaury enforces strict quality gates across all packages:
# Run all 103 unit & integration tests (507 assertions)
bun test
# Strict TypeScript typechecking (0 errors)
bun run typecheck
# Full production build + .d.ts declarations
bun run build
# End-to-end user release check (fullstack + agentic scaffolding, boot, RPC, MCP)
bun run release:checkWe warmly welcome contributions from the community! Check out our Contributing Guide to get started.
Please review our Code of Conduct and Security Policy.
If you use Centaury Framework in your research or AI software systems, please cite:
@software{centaury_framework_2026,
author = {Roedy Rustam and Antigravity Team},
title = {Centaury: The Autonomous Fullstack Engine for Super-Intelligent Systems},
url = {https://github.com/roedyrustam/centaury},
year = {2026}
}If you believe autonomous AI infrastructure should be open, blazing fast, and zero-hydration, please star this repository on GitHub!
MIT © 2026 Roedy Rustam & Antigravity