DEV Community

Cover image for GHOST//SIGNAL 👻: The Machine Remembers — Building a Privacy-First Ghost Story Generator with Open-Source AI
Kartikey Patel
Kartikey Patel

Posted on

GHOST//SIGNAL 👻: The Machine Remembers — Building a Privacy-First Ghost Story Generator with Open-Source AI

Hacktoberfest Open-Source AI Challenge: Ghost in the Machine Submission 👻🌼

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine

👻 GHOST//SIGNAL — The Machine Remembers

What if a machine could remember the stories that the world has forgotten?

What I Built

I built GHOST//SIGNAL, a spooky, terminal-inspired storytelling experience inspired by the theme Ghost in the Machine.

Imagine entering an abandoned computer lab at midnight. The screens are off, the room is silent, and suddenly a forgotten machine begins receiving signals from somewhere it cannot explain.

What would it tell you?

GHOST//SIGNAL lets users create atmospheric ghost stories by selecting a setting, entering a mysterious detail, and choosing one of three storytelling moods:

👁️ Eerie: Unsettling encounters and unexplained signals.
🕯️ Melancholic: Memories, forgotten voices, and stories that deserve to survive.
🌼 Folklore: Marigolds, old traditions, and the connection between the past and present.

The project combines a dark, futuristic interface with interactive storytelling. Its visual design takes inspiration from haunted terminals, mysterious transmissions, and the idea that memories can outlive the machines that preserve them.

The current prototype uses a lightweight JavaScript story engine. My next step is to connect it to a locally running open-weight AI model so that stories can be generated more dynamically.

Demo

Live Demo:https://kartikeypatel9621-source.github.io/Ghost_Signal/

The experience is designed to be simple:

Choose a mysterious location.
Enter a strange event or unexplained detail.
Select a storytelling mood.
Receive a ghostly transmission.
Copy the story and share it.

The static prototype can run locally without a hosted AI API. Actual AI-powered generation will require the local-model integration described below.

Code

GitHub Repository:https://github.com/kartikeypatel9621-source/Ghost_Signal.git

The project currently contains four files:

index.html — The main interface and page structure.
style.css — The dark visual theme, responsive layout, and animations.
script.js — Story generation, mood selection, and copy functionality.
README.md — Setup instructions, project documentation, and the planned local-AI integration.

I chose a simple web stack to keep the interface easy to understand, modify, and extend.

How I Built It

I built the initial prototype using HTML, CSS, and vanilla JavaScript.

The interface includes a transmission panel, interactive mood selectors, a story output area, and a copy-to-clipboard feature. The current story engine uses local templates rather than a remote generation API.

For the open-source AI direction, I plan to integrate Ollama with a compatible open-weight language model.

The intended architecture is:

User Input → Local Backend → Open-Weight Language Model → Generated Story → Browser Interface

The backend will send the user's selected setting, strange detail, and mood to the locally running model. The model's response will then appear in the interface.

My planned implementation focuses on:

Running an open-weight model locally.
Generating stories dynamically instead of relying only on predefined templates.
Keeping personal prompts on the user's own machine.
Allowing model and prompt customization.
Supporting offline inference after the required model files have been downloaded.

I have not yet completed or tested this model integration, so the current version should be considered a prototype rather than a finished AI-powered application.

Why Does Open Innovation Matter?

I think open innovation matters because AI should be something people can understand, adapt, and run—not just something they access through a closed service.

GHOST//SIGNAL explores that idea through storytelling.

Imagine turning this project into a private family-memory archive. Someone could preserve stories about their grandparents, favorite songs, family traditions, or meaningful moments without needing to upload those personal memories to an external AI provider.

With a suitable locally running open-weight model, that vision becomes more practical.

  1. Privacy and ownership

Personal memories can be sensitive. Local inference can allow stories and prompts to remain on a device controlled by the user instead of being sent to a third-party inference service.

  1. Freedom to experiment

Developers can change prompts, adjust storytelling rules, and experiment with compatible models. The experience does not have to remain tied to a single provider's API.

  1. Offline possibilities

Once a model and its dependencies are installed, local inference can work without an internet connection. That could make this experience useful even when connectivity is unavailable.

  1. Accessibility and cost control

Local inference avoids per-request charges from a hosted model API, although it still requires suitable hardware and consumes electricity. The project's basic browser prototype is also free to run.

  1. Building something that lasts

A story archive should not disappear simply because an online service shuts down or changes its pricing. Open-source software and appropriately licensed model weights can give communities more freedom to preserve and extend their tools.

Of course, local models have trade-offs, including hardware requirements, speed, and output quality. The goal is not to claim that open models are always better. It is to give users meaningful choices about how their AI works and where their data goes.

My Agent Session

I have not yet recorded a session with DevRelay.

Once I have a completed AI integration and an actual agent session, I can add the session link or embed it here using the format required by the challenge.

The Spirit of It

The inspiration behind GHOST//SIGNAL is simple:

Not every ghost wants to scare you. Some just want to be remembered.

For Halloween, that idea becomes a machine receiving signals from an unknown source.

For Día de los Muertos, it becomes something more personal: a place where memories, stories, and traditions can be preserved and passed on.

Technology cannot replace the people we have lost, and an AI model cannot truly become someone who is gone. But technology can help us preserve the words, stories, and memories that connect generations.

I wanted to explore that boundary between something artificial and something deeply human.

Perhaps the most haunting thing a machine can say is not “I am watching you.”

Perhaps it is:

“You told me this story once. I kept it safe.”

Prize Categories

I will select the partner prize categories that match the completed implementation and the challenge's eligibility requirements.

Potentially relevant areas include open-weight models, local inference, and open-source AI tooling, depending on the final integration and the official category rules.

GHOST//SIGNAL — The Machine Remembers.

A little haunted. A little human. Built around the idea that the stories we care about should remain ours.

Hacktoberfest #OpenSourceAI #GhostInTheMachine #LocalAI #Ollama #WebDevelopment

Top comments (1)

Collapse
 
kartikey_patel_a18fd1d207 profile image
Kartikey Patel •

done week dev challenge 4 week