This is a submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine
What I Built
For Hacktoberfest Week 4, where Halloween on October 31 meets DĂa de los Muertos on November 1 and 2, I built SpecterOS: Ghost in the Machine — an open-source AI sanctuary and haunted computing suite that explores what happens when code outlives its creators, and how open innovation keeps human memory alive when machines go dark.
SpecterOS unites the chilling thrills of Halloween with the reverent beauty of DĂa de los Muertos through four interconnected experiences:
🕯️ The Digital Ofrenda Sanctuary
A three-tiered DĂa de los Muertos altar where users can light interactive glass veladoras, watch cempasĂşchil (marigold) petals drift across the screen with wind physics, and honor computing ancestors such as Ada Lovelace, Alan Turing, Grace Hopper, Dennis Ritchie, Aaron Swartz, and John McCarthy, alongside personal mentors and departed loved ones.
It also includes an AI-powered Calaverita and remembrance verse composer that crafts poetic tributes inspired by traditional Mexican verse.
💀 NecroShell — The Possessed Terminal
A retro VT100 phosphor CRT terminal possessed by departed system daemons. Keystrokes glitch, and commands such as whoami, ps aux, cat soul.txt, and resurrect uncover ghostly memory sectors while departed spirits whisper eerie commentary in response to commands.
🔮 The Spirit Séance Chamber
An offline-capable, open-weight-model-ready séance room that channels the spirits of long-dead programming languages and platforms, including ALGOL 68, Macromedia Flash / ActionScript 3, COBOL 60, HyperCard 1987, LISP 1.5, and Turbo Pascal.
Each encounter combines historical context, vintage syntax incantations, and a little grudge-holding wit.
🏚️ Poltergeist IoT Log Weaver
A supernatural horror engine that ingests anomalous smart-home sensor telemetry — hallway PIR motion at 3:14 AM, a rapid temperature plunge from 71°F to 48°F, nursery baby-monitor acoustic spikes, and unexpected interior deadbolt activity — and weaves these events into a chilling short story about what might have walked through your home while you were asleep.
The central idea behind SpecterOS is simple: What if our machines could preserve the memories of the people, ideas, and digital worlds that created them?
Demo
Experience the live application here:
Features to try:
- Light and extinguish the veladoras on the Digital Ofrenda to hear the synthesized match strike and church chime.
- Enter
necrofetch,whoami, orresurrectin NecroShell with phosphor CRT mode enabled. - Commune with ALGOL 68 or Macromedia Flash in the Spirit Séance Chamber.
- Generate a ghost story from the 3:14 AM IoT anomaly log.
Code
The complete source code is open-source under the Apache-2.0 license.
JNAbhishek27
/
SpecterOS-Ghost-in-the-Machine
Open-source AI sĂ©ance chamber, DĂa de los Muertos digital ofrenda, possessed CRT terminal, and spooky IoT sensor story weaver built with open-weight models and Web Audio synthesis.
SpecterOS: Ghost in the Machine 🕯️💀
An open-source AI sĂ©ance chamber, DĂa de los Muertos digital ofrenda, possessed CRT terminal, and spooky IoT ghost story weaver built for Hacktoberfest 2026.
🌟 Overview
Built for Hacktoberfest 2026: Week 4 ("Ghost in the Machine"), bridging Halloween on October 31 with DĂa de los Muertos on November 1 & 2.
SpecterOS explores what happens when code outlives its creators, and how open innovation preserves memory when machines go dark. It blends the reverence of authentic Mexican DĂa de los Muertos ofrendas with the nostalgic terror of vintage computing and haunted domestic telemetry.
✨ Core Features
1. 🕯️ The Digital Ofrenda Sanctuary (DĂa de los Muertos)
- Interactive 3-Tier Altar: Represents Heaven, Limbo, and Earth in traditional Mexican ofrenda architecture.
- Interactive Veladoras (Glass Candles): Programmatic flickering flame physics that ignite or extinguish with a click, accompanied by authentic audio match strikes.
- Drifting…
Key files:
-
src/components/DigitalOfrenda.tsx— Interactive three-tier altar with veladora flame mechanics, custom memorial forms, and Calaverita generation. -
src/components/NecroShell.tsx— VT100 phosphor CRT emulator with customizable color tubes, scanlines, and possessed command interceptors. -
src/components/SeanceChamber.tsx— Entity communion engine with vintage persona prompts and historical code inscriptions. -
src/components/IoTGhostStory.tsx— Forensic sensor log table and timestamped supernatural story generator. -
src/utils/spectralAudio.ts— Client-side Web Audio API synthesizer for match strikes, marigold bells, and eerie ambient drones. -
server.ts— Express full-stack backend with Gemini 3.8 Flash model routing and offline emulation fallbacks.
How I Built It
SpecterOS is architected around open-source AI principles, offline resilience, and immersive browser-native experiences.
1. Open-Weight AI and Historical Persona Prompts
The séance personas and possessed-terminal commentary use structured prompts designed to work with open-weight models such as Google Gemma and compatible local transformer runtimes.
The prompts capture historical programming conventions and recognizable syntax patterns, including ALGOL-style syntax, ActionScript ENTER_FRAME loops, and COBOL identification divisions.
The goal is to make each interaction feel like communicating with a distinct piece of computing history rather than a generic chatbot.
2. Graceful Offline and Local Emulation Fallbacks
Every AI endpoint includes a deterministic local emulation engine. If the network becomes unavailable, the server is offline, or no API key is configured, the séance, terminal, and story-generation experiences can continue using local fallback logic.
This design prioritizes resilience and ensures that the core experience does not depend entirely on a remote model provider.
3. Full-Stack Vite and Express Architecture
The application uses Vite and Express for development, production asset bundling, and REST API routing.
Key endpoints include:
/api/seance/chat/api/ofrenda/poem/api/iot/story/api/terminal/ghost
The architecture keeps the frontend interactive while allowing the backend to route AI requests and provide fallback responses.
4. Browser-Native Audio Synthesis
Instead of relying on external MP3 files that may fail to load offline, SpecterOS synthesizes its sound effects in real time using the browser's Web Audio API and AudioContext.
The soundscape includes flickering-flame ignition, CRT keyboard clicks, altar bell chimes inspired by a 528 Hz tone, and low-frequency spectral drones.
5. Curatorial Design and Cultural Inspiration
The interface uses Tailwind CSS and follows a museum-inspired editorial design philosophy, with Fraunces serif typography, restrained metadata styling, and visual motifs inspired by Mexican ofrenda traditions.
The intention is to make the experience feel like a digital sanctuary rather than a conventional developer dashboard.
Why Does Open Innovation Matter?
For SpecterOS, open innovation is not merely a technology choice. It is part of the project's underlying philosophy.
The Séance Works with the Lights — and the Internet — Off
Halloween storms and power outages should not automatically make an application unusable.
By designing for open-weight models and local execution, SpecterOS can support environments where connectivity is unreliable or unavailable, provided the necessary model runtime and dependencies are installed.
A closed, cloud-only API can fail when its service becomes unavailable. A locally running model can offer a path toward continued operation without relying on a remote inference endpoint.
Sacred Memories Should Remain Private
On DĂa de los Muertos, families place photographs, favorite foods, and personal memories of departed loved ones on their ofrendas.
These memories deserve thoughtful privacy protections. An architecture that supports local processing can help users keep sensitive memorial content on their own devices instead of automatically sending it to an external AI service.
Local execution does not guarantee privacy by itself, but it gives developers greater control over where personal data is processed and stored.
Rescuing Digital Culture from Corporate Obsolescence
Proprietary platforms can disappear when companies discontinue them. The end of Macromedia Flash, for example, created major preservation challenges for browser games, interactive art, and other digital experiences built around the technology.
Open-source software, documented formats, and accessible model implementations can help communities preserve, study, and revive digital culture beyond the lifespan of any single vendor.
Model Swappability and Zero Vendor Lock-In
SpecterOS is designed around a replaceable AI layer rather than treating one proprietary provider as the permanent foundation of the project.
With compatible integrations, the prompt harnesses can be adapted to open-weight models such as Gemma running locally or on edge hardware, including appropriately provisioned Raspberry Pi systems.
This approach gives developers more flexibility over inference, deployment, privacy, and long-term operating costs.
Open innovation makes SpecterOS more than a Halloween experiment: it makes digital preservation, local experimentation, and community-driven development part of the experience itself.
The Spirit of It
During testing, I placed a memorial for my grandfather on the Digital Ofrenda, noting his favorite offerings: pan dulce and strong black coffee.
When the Calaverita generator returned these lines:
Orange petals carpet the dark flagstone floor,
A path of marigolds from the hearth to the door.
The veladoras flicker in gentle golden light,
As the veil grows thin on this holy autumn night...
The synthesized match struck. The flame flickered. And, for a quiet second in a dark room, technology did not feel like cold silicon and corporate profit.
It felt like memory made tangible.
That moment captures what I wanted SpecterOS to explore: technology can do more than automate tasks or generate content. It can help us preserve stories, celebrate the people who shaped our lives, and revisit the digital worlds that might otherwise disappear.
The project brings together two seemingly different traditions: Halloween's fascination with ghosts and DĂa de los Muertos' celebration of remembrance. Both invite us to think about what remains after someone or something is gone.
In SpecterOS, the ghosts are not just supernatural characters. They are the lingering influence of programmers, the forgotten syntax of obsolete languages, the memories we preserve, and the code that continues to run long after its original creators have moved on.
That is the ghost in the machine.
Prize Categories
SpecterOS is intended for consideration in the following partner categories:
- Best Use of Gemma: Open-weight persona reasoning designed for local and edge inference using Google's Gemma model.
- Best Use of Render: Production-oriented deployment of a full-stack Express and Vite application.
- Best Use of Sentry Agent Tracing: The Poltergeist IoT module simulates forensic trace analysis through anomalous, timestamped events inspired by distributed transaction tracing.
- Best Use of DigitalOcean: A lightweight deployment approach intended to support resource-conscious environments and appropriately provisioned GPU Droplets.
- Best Use of Backboard: Structured knowledge retrieval intended to ground séance personas in authentic computing history.
Thank you for exploring SpecterOS — where open-source AI meets forgotten code, digital folklore, and the memories that refuse to fade.
Some ghosts deserve to stay online.
Top comments (0)