This is Immune 2.0—a self-hosted AI platform designed to build websites, automate content, create videos, and deploy intelligent workflows without writing code (well, mostly). Here's what's actually going on under the hood.
We picked Laravel because it's not trying to be cool. It's boring, stable, and has excellent documentation. When AI agents need to debug your codebase at 3AM, boring wins.
When you visit a page, here's what happens under the hood:
// Simplified Route Example
Route::get('/articles/{slug}', [ArticleController::class, 'show'])
->middleware(['web', 'visit']); The immersive 3D world at `/scene` is built with Three.js. It features procedural terrain generation, biome-based color palettes, and dynamic lighting. Performance? Well, let's just say it's... optimistic.
The world is divided into **Chunks** (like Minecraft). Each chunk generates terrain using Simplex Noise, selects biomes based on moisture/temperature maps, and spawns vegetation with configurable density.
// Terrain Generation Snippet
const height =
noise.simplex2(x * 0.01, z * 0.01) * 50 +
noise.simplex2(x * 0.05, z * 0.05) * 10; The 3D scene does not work well on mobile. It requires a dedicated GPU. We're aware. Future versions may include a "Low Quality" mode.
Video generation, audio synthesis, and web scraping? That's all Python. We use a Master/Slave architecture where the Master polls the Laravel DB for new tasks and dispatches them to workers.
Video generation is slow (1-5 minutes per minute of video). Queue responsibly.
Python workers run in isolated processes. This prevents a single rogue task from crashing the entire system.
# Master Polling Loop
while True:
task = fetch_next_task()
if task:
worker.dispatch(task)
time.sleep(5) We take security seriously (because we have to). Here's what we do:
We use session-only authentication (no JWTs in LocalStorage). This prevents XSS token theft. Cookies are httpOnly and secure.
"JWTs in LocalStorage are a security anti-pattern. Don't do it."
— OWASP
The Session Recorder is a Shopify Theme App Extension. It injects a lightweight JavaScript recorder into merchant stores—but only after obtaining explicit analytics consent via the Shopify Customer Privacy API.
// Consent-Gated Loading
if (Shopify.customerPrivacy.getTrackingConsent().analytics) {
loadRecorderScript();
} The recorder never loads until consent is granted. No cookies, no storage, no tracking before consent. This passes Shopify App Store review.
We prioritize composition over inheritance, boring tech over shiny new frameworks, and documentation over magic. If AI agents can't understand your code, neither can humans.
| Principle | Why it Matters |
|---|---|
| Server-side Rendering | JS frameworks break. HTML doesn't. |
| Progressive Enhancement | Core functionality works without JS. |
| Block-based Content | Structured data > HTML blobs. |
| Strict Typing | PHP 8.3 strict types prevent runtime surprises. |
That's the tour. The code is on GitHub (if you're brave enough to read it). The rest is in the documentation at `/docs.html`.