跳到正文
DEV Community· Aiman Fatima·· 4 小時前AI 評分23

Ghostly AI:鬧鬼故事生成器

GHOSTLY AI

AI 導讀

Ghostly AI 是一個互動式恐怖故事網站,用戶可輸入故事構想、選擇恐怖氛圍並生成故事。它提供離線規則式故事生成器,亦可選擇整合 Ollama,在本機運行開放權重語言模型,根據提示詞創作故事,無需依賴託管 AI API。

正文

👻 Ghostly AI — The Haunted Story Generator

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

What I Built

Ghostly AI 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!

Demo

Code

The project is built using three separate files:

  • index.html — Website structure
  • style.css — Dark theme, animations, and visual design
  • script.js — Story generation and interactive features

How I Built It

I built Ghostly AI 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.

Why Does Open Innovation Matter?

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.

My Agent Session

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.

The Spirit of It

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

"YOU LEFT ME HERE."

That small moment inspired Ghostly AI. 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.

Prize Categories

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. 👻

來源:DEV Community · dev.to