{"slug": "ghost-in-the-machine-creating-ghost-stories-with-local-ai", "title": "Ghost in the Machine 👻: Creating Ghost Stories with Local AI", "summary": "Abhishek Kumar Sahu built Ghost in the Machine, a ghost story generator that runs the open-weight Gemma 3 1B model locally through Ollama rather than calling a hosted AI API. The project pairs a React and TypeScript frontend with an Express backend, which forwards user prompts to the local model and returns generated spooky stories. Sahu says the goal was to explore how open-weight models can power creative applications on a local machine.", "body_md": "*What if the machine in your room could tell you a ghost story without sending your prompt to a hosted AI API?*\n\nThis is my submission for the [Hacktoberfest Open-Source AI Challenge — Week 4: Ghost in the Machine](https://dev.to/challenges/hacktoberfest-week4-2026-10-26).\n\n**Ghost in the Machine** is a local AI-powered ghost story generator. Users enter a prompt and the application generates a spooky story using the Gemma 3 1B model through Ollama.\n\nI built this project to explore how open-weight AI models can power creative applications on a local machine.\n\nThe project combines a React and TypeScript frontend with an Express backend and local AI inference.\n\n**GitHub repository:**\n\n[https://github.com/abhishekkumarsahu1234567-rgb/ghost-in-the-machine](https://github.com/abhishekkumarsahu1234567-rgb/ghost-in-the-machine)\n\n**Live Demo:**\n\n[https://frontend-puce-chi-10.vercel.app](https://frontend-puce-chi-10.vercel.app)\n\nThe project is deployed with a React and TypeScript frontend on Vercel and an Express backend on Render. It uses the Groq API for hosted AI story generation, allowing users to generate spooky stories from their own prompts.\n\nA publicly hosted demo is not available yet. The project is intended to run locally.\n\nTo try it:\n\n```\n   ollama pull gemma3:1b\n```\n\n`backend` directory, install dependencies with `npm install`, and start the server using `node server.js`.` frontend` directory, run `npm run dev`.\nThe frontend and backend must both be running for story generation to work.\n\nExplore the complete project source code:\n\n[View Ghost in the Machine on GitHub](https://github.com/abhishekkumarsahu1234567-rgb/ghost-in-the-machine)\n\nThe repository contains the frontend, backend, and project configuration.\n\nThe project uses:\n\nWhen a user submits a prompt, the frontend sends a request to the backend. The backend communicates with the locally running Ollama model and returns the generated story to the frontend.\n\nOpen-weight models make it possible for developers to experiment with AI without depending entirely on a hosted model API.\n\nFor a project like this, local inference offers several advantages:\n\nLocal inference still requires suitable hardware and consumes system resources. Privacy also depends on the complete application configuration.\n\nThe theme Ghost in the Machine 👻 inspired me to build something that feels playful and slightly mysterious while experimenting with AI-powered storytelling.\n\nI wanted to turn AI-powered storytelling into a small creative experience where users can enter their own ideas and generate atmospheric spooky stories.\n\nThis project is an exploration of local AI, full-stack development, and the possibilities of open technology.\n\nSome improvements I would like to explore include:\n\nThanks for checking out my project!\n\n**Built by:** Abhishek Kumar Sahu\n\n**Project:** Ghost in the Machine 👻", "url": "https://wpnews.pro/news/ghost-in-the-machine-creating-ghost-stories-with-local-ai", "canonical_source": "https://dev.to/abhishek_sahu_b6d19897166/ghost-in-the-machine-creating-ghost-stories-with-local-ai-b1o", "published_at": "2026-10-27 08:07:53+00:00", "updated_at": "2026-10-27 08:12:33.221168+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "generative-ai", "ai-tools", "developer-tools"], "entities": ["Abhishek Kumar Sahu", "Ghost in the Machine", "Ollama", "Gemma 3 1B", "React", "TypeScript", "Express", "Vercel"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/ghost-in-the-machine-creating-ghost-stories-with-local-ai", "markdown": "https://wpnews.pro/news/ghost-in-the-machine-creating-ghost-stories-with-local-ai.md", "text": "https://wpnews.pro/news/ghost-in-the-machine-creating-ghost-stories-with-local-ai.txt", "jsonld": "https://wpnews.pro/news/ghost-in-the-machine-creating-ghost-stories-with-local-ai.jsonld"}}