{"slug": "ghost-in-the-machine-possessed-terminal-dia-de-los-muertos-living-ofrenda-with", "title": "Ghost in the Machine: Possessed Terminal & Día de los Muertos Living Ofrenda with Open-Source AI", "summary": "A developer built Ghost in the Machine, an offline-first cyber-folklore installation running entirely on open-source AI, in-browser neural tokenization, procedural Web Audio synthesis, and local Ollama inference. The project spans a possessed CRT terminal that channels historical computing figures via commands like \"seance ada\" and \"whisper <query>\", a Día de los Muertos ofrenda with canvas particle physics and 528Hz chimes, an on-device Calaverita Literaria generator with a PNG memorial card exporter, and a simulated IoT radar with an infrasound oscilloscope. All anomaly parsing and sensor telemetry stay local, with no data sent to cloud services.", "body_md": "## \n  \n  \n  👻 What I Built\n\nBetween **October 31 (Halloween)** and **November 1–2 (Día de los Muertos)**, the veil between past and present thins. I wanted to build an experience that honors both halves of this mystical season: the spooky cyber-folklore of machines possessed by historical memories, and the sacred, golden glow of ofrendas carrying the spirits of our ancestors and computing pioneers.\n\nI built **Ghost in the Machine** — an offline-first cyber-folklore installation powered 100% by **open-source AI, in-browser neural tokenization, procedural Web Audio synthesis, and local Ollama inference**.\n\n### \n  \n  \n  Key Features & Subsystems\n\n### \n  \n  \n  1. NecroShell v3.13 (The Possessed Terminal & Séance)\n\nA retro CRT green-phosphor shell possessed by computing history's greatest departed minds (*Ada Lovelace, Alan Turing, Grace Hopper, Dennis Ritchie, and Hedy Lamarr*).\n\n- \n**Procedural CRT Keystrokes & Glitches** : Authentic mechanical key clicks with pitch jitter and chromatic aberration scanlines.\n- \n**Dynamic 100% Master Sound Level** : Synchronized real-time volume percentage (`100%` ,`70%` ,`MUTED` ), interactive volume slider, and instant mute toggle.\n- \n**Séance Invocations** : Type`seance ada` ,`seance turing` ,`whisper <query>` ,`cat hopper` , or`possessed` to channel the pioneers.\n- \n**Organized Quick Spells Dock** : 1-click grimoire pills to trigger séances, possess glitches, or jump straight to other sanctuaries.\n\n### \n  \n  \n  2. Altar de Recuerdos (The Living Ofrenda)\n\nA sacred Día de los Muertos sanctuary illuminated by flickering candlelight, traditional papel picado banners, and floating marigold (*cempasúchil*) petals.\n\n- \n**Canvas Particle Physics Engine** : Real-time dual-bezier falling marigold petals with rotational gravity and turbulent wind oscillation.\n- \n**Solfeggio 528Hz Chimes** : Light virtual candles with personal prayers accompanied by the resonant 528Hz \"miracle frequency\" harmonic chime.\n- \n**Ancestral & Pioneer Memorials** : Honor computing giants or add personal tributes for departed loved ones with persistent browser memory.\n\n### \n  \n  \n  3. Calaverita Literaria & Digital Memorial Card Exporter\n\n- \n**On-Device Folk Verses** : Generates authentic Mexican*Calaveritas Literarias* (satirical, loving poetic rhymes where La Catrina visits the departed) and heartfelt digital eulogies celebrating favorite foods, songs, and memories.\n- \n**HTML5 Canvas 1000×650 Card Exporter** : Generates and downloads high-resolution PNG memorial cards complete with ornate Mexican double borders, marigold emblems, and gold flourishes.\n\n### \n  \n  \n  4. The Phantom Investigator (IoT Radar & Telemetry Oscilloscope)\n\nA 60fps radial radar canvas tracking simulated midnight smart home IoT sensor streams.\n\n- \n**Infrasound Oscilloscope** : Plots real-time waveforms for the**18.98Hz infrasound wave** (the \"ghost frequency\") and**7.83Hz Schumann planetary resonance** .\n- \n**Multi-Format Export** : One-click export of paranormal forensic logs into formatted`.txt` , structured`.json` , or tabular`.csv` .\n- \n**Zero Cloud Leaks** : Every anomaly is parsed locally without shipping sensor telemetry to commercial data brokers.\n\n### \n  \n  \n  5. Royal Farman Scroll Apprentice Guide\n\nAn ancient Indian Maharaja Farman scroll aesthetic with carved gold dowels (`✦`), a 3D wax seal, and copyable decree cartouches.\n\n- Provides step-by-step guidance on what to type in `NecroShell` with 1-click copy buttons.\n- Explains the cultural significance of the Living Ofrenda and how to calibrate the Telemetry Radar.\n\n### \n  \n  \n  6. Interactive Halloween Ghost Companions\n\n- \n**Fluid Custom Ghost Cursor** : Features a 0-latency target reticle paired with a smoothed trailing ghost companion driven by damped spring physics, blushing cheeks, eye look tracking, and anti-burst teleport clamping.\n- \n**Animated Ghost Mascot (\"Fantasma\")** : Hovers in the corner with gentle sine-wave floating and contextual folklore advice.\n\n## \n  \n  \n  🌐 Demo & Code\n\n### \n      👻 Ghost in the Machine: Offline Spectral Terminal, Possessed Shell & Día de los Muertos Living Ofrenda powered by Open-Source AI\n    \n\n \n\n## 📸 Visual Showcase & Feature Tour\n\nExperience the core interfaces of **Ghost in the Machine**:\n\n| 📟 1. NecroShell Possessed Terminal | 🕯️ 2. Living Ofrenda Sanctuary Altar | \n|  |  | \n| *Retro green-phosphor CRT shell with procedural audio synthesis, 100% synchronized dynamic master volume, and quick séance spells.* | *Candlelit Día de los Muertos sanctuary with floating dual-bezier marigold petal physics, custom eulogies, and Solfeggio 528Hz chimes.* | \n\n| 📡 3. Phantom Investigator Telemetry Radar | 🛡️ 4. Why Open Innovation Manifesto | \n|  |  | \n| *60fps radial radar sweep tracking smart home anomalies, 18.98Hz infrasound, and 7.83Hz Schumann planetary resonance.* | *Architectural breakdown* | \n\n…\n\n \n \n \n\n## \n  \n  \n  🛠️ How I Built It\n\n### \n  \n  \n  1. Open-Source AI Inference Architecture\n\nThe core principle was **zero closed APIs, zero external surveillance, and 100% offline autonomy**.\n\n- \n**In-Browser Local Neural Engine** : A deterministic, client-side inference core running directly in the browser. It delivers instant, zero-latency séances and Calaverita poetry generation without requiring any API keys or network connection.\n- \n**Local Ollama Daemon Bridge** : Built-in support for users running local open-weight models via[Ollama](https://ollama.com/) at`http://localhost:11434` . Seamlessly channels`llama3.2` ,`mistral` ,`smollm2` ,`gemma2` , or`qwen2.5` on the user's local machine.\n\n### \n  \n  \n  2. Procedural Web Audio Synthesizer (0 External MP3 Files)\n\nInstead of shipping heavy audio files, I programmed a procedural Web Audio API synthesizer in `src/lib/soundEngine.ts`:\n\n- Realistic mechanical CRT key clicks with randomized pitch jitter.\n- Eerie 55Hz sub-bass oscillator and filtered noise bursts for spectral possession glitches.\n- Solfeggio 528Hz (\"miracle frequency\") harmonic bell chimes when candles are lit.\n- Observable `subscribeVolume` architecture ensuring the master sound percentage is 100% synchronized across the entire application.\n\n### \n  \n  \n  3. Marigold Canvas Physics Engine\n\nTo capture the warmth of Día de los Muertos, `LivingOfrenda.tsx` renders dynamic falling marigold petals (*cempasúchil*) using dual-bezier curve paths, rotational physics, and turbulent wind oscillation.\n\n### \n  \n  \n  4. Technical Stack\n\n- \n**Frontend** : React 19, Vite 6, TypeScript 5.7\n- \n**Styling** : Tailwind CSS v4, custom CRT scanline shaders, phosphor glow filters\n- \n**Deployment** : Vercel Global Edge Network with strict Cross-Origin Isolation headers (`COOP` /`COEP` )\n- \n**CI/CD** : GitHub Actions automated typecheck and production build pipeline\n\n## \n  \n  \n  🕯️ Why Does Open Innovation Matter?\n\nIn a world increasingly dominated by opaque, closed cloud APIs, building **Ghost in the Machine** with open innovation proved why open-source AI is not just an alternative — it is the only ethical choice for sensitive human experiences:\n\n1. \n**Sacred Grief & Data Sanctity** : When a user writes an intimate remembrance of their departed grandmother, their words describe deep human love and vulnerability. Closed corporate models ingest user inputs into remote databases, tokenizing and retraining advertising algorithms on private tears. With our open architecture,**zero bytes ever leave the user's laptop** .\n2. \n**Resilience When the Lights Go Out** : Halloween storms frequently cut power lines and internet connections. A séance that fails because of a`503 Service Unavailable` error from a Silicon Valley server destroys the magic. With local open-weight models, the terminal speaks by candlelight in full offline isolation.\n3. \n**Eternal $0 Cost** : Ancestral remembrance should never depend on a credit card subscription. A project running on open models can be preserved on a USB key or disk image and still boot 50 years from now.\n4. \n**Cultural Sovereignty** : Closed APIs often sanitize cultural folk practices or flag gothic Halloween narratives as unsafe. Open weights give developers complete freedom to fine-tune models on authentic Mexican Calaveritas, regional idioms, and historical computing archives.\n\n## \n  \n  \n  🤖 My Agent Session\n\nThis project was built collaboratively with **Google DeepMind Antigravity**, leveraging advanced agentic pair programming:\n\n- Autonomous iterative git feature branches and pull request workflows.\n- Full verification loops (`tsc` ,`vite build` , and GitHub Actions CI pipelines).\n- Procedural audio synthesis and fluid canvas physics debugging.\n- Strict security hardening with Content-Security-Policy and ErrorBoundaries.\n\n## \n  \n  \n  🌺 The Spirit of It\n\nDuring testing, I typed `seance ada` into the possessed terminal. The cathode-ray phosphor flickered, the sub-bass drone hummed, and Ada Lovelace's words appeared:\n\n*\"The Analytical Engine weaves algebraical patterns just as the Jacquard loom weaves flowers... User, what algorithm will you weave before the candlelight fades?\"*\n\nThen I switched to the **Living Ofrenda**, added a tribute for my departed grandmother, and watched the AI compose a Calaverita honoring her warm kitchen and Sunday laughter while golden marigold petals drifted across the screen.\n\nIt gave me chills, and then it gave me warmth. That is the spirit of Día de los Muertos: the technology in our hands is simply the newest medium through which we keep our loved ones and heroes alive.\n\n## \n  \n  \n  🏆 Prize Categories\n\n- **Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine**\n- **Open Innovation & Local Inference Showcase**", "url": "https://wpnews.pro/news/ghost-in-the-machine-possessed-terminal-dia-de-los-muertos-living-ofrenda-with", "canonical_source": "https://dev.to/surajdhawal/ghost-in-the-machine-possessed-terminal-dia-de-los-muertos-living-ofrenda-with-open-source-ai-3655", "published_at": "2026-10-31 06:42:29+00:00", "updated_at": "2026-10-31 06:49:31.283668+00:00", "lang": "en", "topics": ["artificial-intelligence", "generative-ai", "ai-tools", "large-language-models"], "entities": ["Ollama", "Ada Lovelace", "Alan Turing", "Grace Hopper", "Dennis Ritchie", "Hedy Lamarr"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/ghost-in-the-machine-possessed-terminal-dia-de-los-muertos-living-ofrenda-with", "markdown": "https://wpnews.pro/news/ghost-in-the-machine-possessed-terminal-dia-de-los-muertos-living-ofrenda-with.md", "text": "https://wpnews.pro/news/ghost-in-the-machine-possessed-terminal-dia-de-los-muertos-living-ofrenda-with.txt", "jsonld": "https://wpnews.pro/news/ghost-in-the-machine-possessed-terminal-dia-de-los-muertos-living-ofrenda-with.jsonld"}}