Kiroween Hackathon 2024 - Frankenstein Category
GhostGPT is an AI-powered ghost assistant that fuses multiple technologies into one spooky, unified experience. Like Dr. Frankenstein's creature, it's assembled from disparate parts to create something greater than the sum of its components.
Transform your mundane text into spine-chilling, ghostly prose. GhostGPT possesses your words and rewrites them with supernatural flair, adding eerie metaphors and otherworldly descriptions.
Channel knowledge from the spirit realm. Upload documents and GhostGPT will retrieve information using WebAssembly-powered search, presenting answers as mystical wisdom from beyond the veil.
Merge two files into one unified creation. Like Dr. Frankenstein assembling his creature, this mode intelligently combines code or text files, detecting patterns and preserving functionality.
GhostGPT embodies the Frankenstein category by fusing:
- Technologies: Next.js + OpenAI + WebAssembly + MCP Tools + Framer Motion
- Paradigms: Cloud AI + Local inference + Vector search + External integrations
- Concepts: Serious AI functionality + Playful horror theme + Multiple interaction modes
- Node.js 18 or higher
- npm or yarn
- OpenAI API key (optional - graceful degradation included)
- Clone the repository
git clone <repository-url>
cd ghostgpt- Install dependencies
npm install- Configure environment variables
cp .env.example .envEdit .env and add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
Note: The app works without an API key but will show demo responses.
- Run the development server
npm run dev- Open your browser Navigate to http://localhost:3000
- Framework: Next.js 14 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS with custom ghost theme
- Animations: Framer Motion
- AI: OpenAI GPT-3.5-turbo
- Retrieval: Custom WebAssembly-based engine
- Tools: MCP (Model Context Protocol) integration
- Select "Possession Mode" from the mode selector
- Type any text you want to spookify
- Watch as GhostGPT transforms it into haunted prose
- Select "Sรฉance Mode"
- Ask questions or request knowledge
- Receive mystical wisdom from the spirit realm
- Select "Haunted Fusion"
- Provide two code snippets or text passages
- GhostGPT merges them intelligently
GhostGPT was built using "vibe coding" - maintaining a consistent spooky aesthetic throughout:
- Theatrical variable names and comments
- Ghost-themed color palette
- Haunted animations and effects
- Playful horror tone in all interactions
The project follows a structured spec (.kiro/main.spec) that breaks development into phases:
- Foundation (project setup)
- Core Components (UI building blocks)
- AI Integration (OpenAI connection)
- Advanced Features (MCP tools, retrieval, fusion)
- Polish (final touches)
Two steering files guide development:
frankenstein-category.md: Ensures Frankenstein theme adherenceghostgpt-guidelines.md: Maintains code style and ghost aesthetic
Two automated hooks enhance development:
- Auto-test on Save: Runs TypeScript checking when files are saved
- Generate Ghost Component: Creates new components with proper ghost styling
ghostgpt/
โโโ app/
โ โโโ api/chat/ # OpenAI API route
โ โโโ globals.css # Ghost theme styles
โ โโโ layout.tsx # Root layout
โ โโโ page.tsx # Main page
โโโ components/
โ โโโ ChatInterface.tsx # Chat UI
โ โโโ GhostHeader.tsx # Animated header
โ โโโ ModeSelector.tsx # Mode switching
โโโ lib/
โ โโโ fusion.ts # File merging logic
โ โโโ mcp-tools.ts # MCP integrations
โ โโโ retrieval.ts # WebAssembly search
โโโ .kiro/
โ โโโ hooks/ # Automation hooks
โ โโโ steering/ # Development guidelines
โ โโโ main.spec # Project specification
โโโ package.json
GhostGPT perfectly embodies the Frankenstein spirit:
- Assembled from Parts: Combines Next.js, OpenAI, WebAssembly, MCP tools, and Framer Motion
- Greater Than the Sum: Creates a unified experience from disparate technologies
- Meta-Frankenstein: The "Haunted Fusion" feature literally merges files
- Unexpected Combination: Serious AI + Horror theme = Delightfully spooky
Category: Frankenstein
Theme: Kiroween 2024
Innovation: Multi-technology fusion with ghost theme
Technical Complexity: High (5 major technologies integrated)
Usability: Accessible and fun despite complexity
MIT License - Feel free to fork and create your own haunted creations!
Built with โค๏ธ and ๐ป for the Kiroween Hackathon using Kiro IDE.
"It's alive! ALIVE!" - Dr. Frankenstein (probably talking about GhostGPT)