This is a submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine
What I Built
👻 Phantom AI — A Ghost in the Machine
I built Phantom AI, a spooky interactive terminal inspired by Halloween, mysterious computer messages, and the idea of a ghost hiding inside a machine.
Users can enter commands such as help, story, haunt, and whoami to explore mysterious messages and generate spooky stories. I built the project using HTML, CSS, and JavaScript, with an optional integration for running an open-weight AI model locally through Ollama.
My goal was to combine a fun Halloween experience with the idea that AI can be more private, customizable, and accessible when it runs on your own computer.
Demo
Run locally: Open index.html in your browser to try the offline story mode.
GitHub repository:
https://github.com/aaravyadav192007-crypto/Ghost-in-the-Machine
Live demo: Add your GitHub Pages URL here after deployment.
Code
🔗 View the Phantom AI source code on GitHub
The project uses three main files:
-
index.html— The terminal interface and website structure. -
style.css— The spooky theme, neon effects, animations, and responsive layout. -
script.js— Interactive terminal commands, story generation, and optional local AI integration.
How I Built It
I used HTML, CSS, and vanilla JavaScript to build a responsive, haunted-terminal experience.
The project has two modes:
- Offline story mode: Uses built-in spooky responses and stories without requiring an API key or internet connection after the files are available.
- Local AI mode: Can connect to Ollama running on the user's computer with a compatible open-weight model, such as Llama 3.2, to generate original responses.
This approach let me build the interface with familiar web technologies while exploring how local AI can make the experience more interactive.
Why Does Open Innovation Matter?
Open innovation matters because developers should have more control over the AI tools they build with.
Phantom AI explores three important benefits:
- Privacy: With local inference, prompts can remain on the user's computer instead of being sent to a third-party AI provider.
- Customization: Developers can experiment with different compatible open-weight models and change the system prompt to shape the AI's behavior.
- Accessibility and independence: The built-in story mode works without a paid AI API, and local inference can avoid per-request API charges.
Unlike a closed, hosted AI API, a locally running model gives developers more control over model selection and how their application uses AI. Local AI still requires installation, suitable hardware, and an initial model download.
The offline story mode is available even when local AI is not configured.
The Spirit of It 👻
What if an abandoned computer still had one last story to tell?
That question inspired Phantom AI. The terminal creates a playful feeling that something forgotten is waiting to communicate. Beneath the spooky atmosphere is a more serious idea: open technologies help us build experiences that we can customize, understand, and keep running on our own machines.
Sometimes, bringing something back to life means giving an old idea a new purpose.
Prize Categories
Open-source AI / local inference — where applicable.
Final Thoughts
Phantom AI is my experiment in combining creative web development with the possibilities of open-weight AI. It is a small project, but it demonstrates how accessible web technologies and locally run AI can work together to create something fun, customizable, and privacy-conscious.
Built with HTML, CSS, JavaScript, and a little bit of mystery. 🕯️


Top comments (0)