cd /news/ai-tools/ghost-in-the-machine · home › topics › ai-tools › article
[ARTICLE · art-158648] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Ghost in the Machine.

A developer built Ghost in the Machine, a browser-based horror story generator written in HTML, CSS, and JavaScript that pairs a rule-based offline generator with an optional integration to run open-weight language models locally through Ollama. The project, submitted to the Hacktoberfest Open-Source AI Challenge, keeps user prompts on the local machine rather than sending them to a hosted AI provider, and falls back to the offline generator when no model or internet connection is available.

by read2 min views1 publishedOct 27, 2026

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

Ghost in the Machine is a spooky interactive website that brings horror stories to life through the theme of haunted machines, mysterious messages, and forgotten memories.

Users can enter their own story ideas, choose a horror mood, and generate creepy stories. The project combines a dark, neon-inspired interface with an offline story generator and an optional integration with Ollama for locally running open-weight AI models.

I chose this idea because machines are a big part of our lives, but imagining what happens when a machine starts behaving in mysterious ways makes technology feel a little spooky!

👻 Try Ghost in the Machine.:

https://bgunjan884-ux.github.io/-Ghost-in-the-Machine/ 💻 GitHub Repository:

https://github.com/bgunjan884-ux/-Ghost-in-the-Machine The project is built using three separate files:

index.html — Website structurestyle.css — Dark theme, animations, and visual designscript.js — Story generation and interactive features I built Ghost in the Machine using HTML, CSS, and JavaScript.

HTML provides the website structure, CSS creates the spooky atmosphere with purple neon effects and floating animations, and JavaScript handles user input, horror moods, story generation, and copying stories.

The project includes a rule-based offline story generator and an optional integration with Ollama to run an open-weight language model locally.

The local AI integration is designed to generate original stories from user prompts without relying on a hosted AI API. It requires Ollama and a compatible model to be installed and running.

Open innovation gives developers the freedom to experiment, customize technology, and build projects without depending entirely on closed AI services.

With locally running open-weight models, developers can explore AI while keeping prompts on their own machines instead of sending them to an external AI provider. They can also experiment with different models and change how their applications behave.

Another important part of this project is its offline story generator, which provides a basic experience without an internet connection or an AI model.

For me, this project is an opportunity to explore how open technologies can make AI more accessible, customizable, and privacy-friendly. I used AI assistance to help plan the project structure, write the HTML, CSS, and JavaScript, and prepare the project documentation.

An agent session recording can be added here if available.

Imagine opening an old computer late at night and seeing a message appear on the screen:

"YOU LEFT ME HERE."

That small moment inspired Ghost in the Machine.. I wanted to turn a simple website into an interactive experience where technology, imagination, and horror meet.

Sometimes, the creepiest stories begin with a machine that should have been switched off.

This project explores the open-source AI theme through its optional local-model integration.

Add specific partner prize categories here only if the project meets their eligibility requirements.

Made with curiosity, code, and a little bit of darkness. 👻

── more in #ai-tools 4 stories · sorted by recency
── more on @ghost in the machine 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/ghost-in-the-machine] indexed:0 read:2min 2026-10-27 · —