Skip to content

codelab-coder/ghostgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ‘ป GhostGPT - Your Haunted AI Assistant

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.

๐ŸŽƒ Features

๐Ÿ‘ค Possession Mode

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.

๐Ÿ“š Sรฉance Mode

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.

โšก Haunted Fusion (Frankenstein Feature)

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.

๐Ÿงช The Frankenstein Elements

GhostGPT embodies the Frankenstein category by fusing:

  1. Technologies: Next.js + OpenAI + WebAssembly + MCP Tools + Framer Motion
  2. Paradigms: Cloud AI + Local inference + Vector search + External integrations
  3. Concepts: Serious AI functionality + Playful horror theme + Multiple interaction modes

๐Ÿš€ Installation

Prerequisites

  • Node.js 18 or higher
  • npm or yarn
  • OpenAI API key (optional - graceful degradation included)

Setup Steps

  1. Clone the repository
git clone <repository-url>
cd ghostgpt
  1. Install dependencies
npm install
  1. Configure environment variables
cp .env.example .env

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

  1. Run the development server
npm run dev
  1. Open your browser Navigate to http://localhost:3000

๐ŸŽจ Tech Stack

  • 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

๐Ÿ”ฎ Usage

Possession Mode

  1. Select "Possession Mode" from the mode selector
  2. Type any text you want to spookify
  3. Watch as GhostGPT transforms it into haunted prose

Sรฉance Mode

  1. Select "Sรฉance Mode"
  2. Ask questions or request knowledge
  3. Receive mystical wisdom from the spirit realm

Haunted Fusion

  1. Select "Haunted Fusion"
  2. Provide two code snippets or text passages
  3. GhostGPT merges them intelligently

๐Ÿ› ๏ธ Development with Kiro

Vibe Coding

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

Spec-Driven Development

The project follows a structured spec (.kiro/main.spec) that breaks development into phases:

  1. Foundation (project setup)
  2. Core Components (UI building blocks)
  3. AI Integration (OpenAI connection)
  4. Advanced Features (MCP tools, retrieval, fusion)
  5. Polish (final touches)

Steering Guidelines

Two steering files guide development:

  • frankenstein-category.md: Ensures Frankenstein theme adherence
  • ghostgpt-guidelines.md: Maintains code style and ghost aesthetic

Agent Hooks

Two automated hooks enhance development:

  1. Auto-test on Save: Runs TypeScript checking when files are saved
  2. Generate Ghost Component: Creates new components with proper ghost styling

๐Ÿ“ Project Structure

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

๐ŸŽญ Why Frankenstein Category?

GhostGPT perfectly embodies the Frankenstein spirit:

  1. Assembled from Parts: Combines Next.js, OpenAI, WebAssembly, MCP tools, and Framer Motion
  2. Greater Than the Sum: Creates a unified experience from disparate technologies
  3. Meta-Frankenstein: The "Haunted Fusion" feature literally merges files
  4. Unexpected Combination: Serious AI + Horror theme = Delightfully spooky

๐Ÿ† Hackathon Submission

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

๐Ÿ“ License

MIT License - Feel free to fork and create your own haunted creations!

๐Ÿ‘ฅ Credits

Built with โค๏ธ and ๐Ÿ‘ป for the Kiroween Hackathon using Kiro IDE.


"It's alive! ALIVE!" - Dr. Frankenstein (probably talking about GhostGPT)

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors