Where dead tech learns new tricks.
GhostFrame is a production-ready AI starter framework for building intelligent applications with Kiro. Skip the boilerplate and start building AI-powered experiences in minutes.
Built for the Kiroween Hackathon 2024 ๐
GhostFrame is a complete starter framework that provides everything you need to build AI-powered applications:
- โ Backend Foundation - Express + TypeScript server with AI routing
- โ Frontend Foundation - Next.js 14 + React + Tailwind CSS
- โ AI Integration - Multi-provider support (OpenAI, Groq, Gemini, Anthropic)
- โ Content Processing - File upload, PDF/DOCX extraction, text processing
- โ Production Ready - Security, logging, error handling, rate limiting
- โ Two Working Demos - Story Spirit & Quiz Ghost showcasing capabilities
- Node.js 16+
- npm or yarn
# Clone the repository
git clone https://github.com/Isaac-Ameh/Ghostframe.git
cd ghostframe
# Install dependencies
npm run install:all
# Set up environment variables
cp backend/.env.example backend/.env
cp frontend/.env.example frontend/.env.local
# Add your AI API keys to backend/.env
# GROQ_API_KEY=your_key_here
# OPENAI_API_KEY=your_key_here (optional)
# Start development servers
npm run devVisit:
- Frontend: http://localhost:3000
- Backend: http://localhost:3001
โ
Express + TypeScript server
โ
AI Router (multi-provider support)
โ
File upload & content extraction (PDF, DOCX, TXT)
โ
Rate limiting & security (Helmet, CORS)
โ
Logging system (Winston)
โ
Error handling middleware
โ
Environment configuration
โ
Next.js 14 + React + TypeScript
โ
Tailwind CSS styling
โ
Reusable AI components
โ
File upload interface
โ
Results visualization
โ
Responsive design
โ
AIRouter - Multi-provider AI routing
โ
GroqService - Groq API integration
โ
OpenAIService - OpenAI API integration
โ
AnthropicService - Claude API integration
โ
Content extraction utilities
โ
Story Spirit - Creative story generation from content
โ
Quiz Ghost - Educational quiz generation from content
Transform any content into engaging stories with AI.
Features:
- Multiple genres (educational, adventure, mystery, fantasy, sci-fi)
- Audience targeting (children, teens, adults)
- Character generation
- Theme extraction
Generate educational quizzes from any content.
Features:
- Multiple difficulty levels
- Various question types
- Automatic grading
- Detailed explanations
GhostFrame makes it easy to create your own AI-powered features:
// Example: Create a new AI module
import { AIRouter } from './services/AIRouter';
export async function myAIFeature(content: string) {
const aiRouter = new AIRouter();
const result = await aiRouter.generate({
prompt: `Process this content: ${content}`,
provider: 'groq',
model: 'mixtral-8x7b-32768'
});
return result;
}ghostframe/
โโโ backend/ # Express API server
โ โโโ src/
โ โ โโโ routes/ # API endpoints
โ โ โโโ services/ # AI services & utilities
โ โ โโโ controllers/ # Business logic
โ โ โโโ middleware/ # Express middleware
โ โ โโโ utils/ # Helper functions
โ โโโ package.json
โโโ frontend/ # Next.js frontend
โ โโโ app/ # Next.js 14 app directory
โ โโโ components/ # React components
โ โโโ package.json
โโโ modules/ # Demo modules
โ โโโ story-spirit/
โ โโโ quiz-ghost/
โโโ sdk/ # GhostFrame SDK
โโโ docs/ # Documentation
# AI Provider API Keys
GROQ_API_KEY=your_groq_key
OPENAI_API_KEY=your_openai_key (optional)
ANTHROPIC_API_KEY=your_anthropic_key (optional)
# Server Configuration
PORT=3001
NODE_ENV=development
FRONTEND_URL=http://localhost:3000
# File Upload
MAX_FILE_SIZE=10485760
UPLOAD_DIR=./uploadsNEXT_PUBLIC_API_URL=http://localhost:3001/apicd backend
npm run build
npm startcd frontend
npm run buildSee DEPLOYMENT.md for detailed deployment guides.
GhostFrame is perfect for building:
- ๐ Educational Tools - Quiz generators, study guides, tutoring systems
- โ๏ธ Content Creation - Story generators, writing assistants, content transformers
- ๐ Research Tools - Document analysis, summarization, insights extraction
- ๐ฎ Interactive Experiences - AI-powered games, chatbots, virtual assistants
- ๐ Data Processing - Text analysis, classification, extraction
We welcome contributions! See CONTRIBUTING.md for guidelines.
MIT License - see LICENSE for details.
GhostFrame was created for the Kiroween Hackathon to showcase the power of Kiro's AI agent architecture combined with a modular, extensible framework.
Team: [Your Team Name] Hackathon: Kiroween 2024
- ๐ Documentation
- ๐ GitHub Repository
- ๐ฏ Live Demo
- ๐ฌ Community Discord
Need help?
- ๐ Check the Documentation
- ๐ฌ Join our Discord Community
- ๐ Report issues on GitHub
Built with ๐ for the Kiroween Hackathon 2024
GhostFrame - Where dead tech learns new tricks! ๐ป