Skip to content

Isaac-Ameh/Ghostframe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ‘ป GhostFrame - AI Starter Framework

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 ๐ŸŽƒ


๐Ÿš€ What is GhostFrame?

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

๐ŸŽฏ Quick Start

Prerequisites

  • Node.js 16+
  • npm or yarn

Installation

# 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 dev

Visit:


๐Ÿ“ฆ What's Included

Backend (/backend)

โœ… 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

Frontend (/frontend)

โœ… Next.js 14 + React + TypeScript
โœ… Tailwind CSS styling
โœ… Reusable AI components
โœ… File upload interface
โœ… Results visualization
โœ… Responsive design

AI Services (/backend/src/services)

โœ… AIRouter - Multi-provider AI routing
โœ… GroqService - Groq API integration
โœ… OpenAIService - OpenAI API integration
โœ… AnthropicService - Claude API integration
โœ… Content extraction utilities

Demo Modules (/modules)

โœ… Story Spirit - Creative story generation from content
โœ… Quiz Ghost - Educational quiz generation from content

๐ŸŽจ Demo Applications

1. Story Spirit

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

2. Quiz Ghost

Generate educational quizzes from any content.

Features:

  • Multiple difficulty levels
  • Various question types
  • Automatic grading
  • Detailed explanations

๐Ÿ› ๏ธ Building Your Own Module

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;
}

๐Ÿ“š Project Structure

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

๐Ÿ”ง Configuration

Backend Environment Variables

# 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=./uploads

Frontend Environment Variables

NEXT_PUBLIC_API_URL=http://localhost:3001/api

๐Ÿšข Deployment

Backend Deployment (Render, Railway, etc.)

cd backend
npm run build
npm start

Frontend Deployment (Vercel, Netlify)

cd frontend
npm run build

See DEPLOYMENT.md for detailed deployment guides.


๐ŸŽฏ Use Cases

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

๐Ÿค Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.


๐Ÿ“„ License

MIT License - see LICENSE for details.


๐ŸŽƒ Built for Kiroween Hackathon 2024

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


๐Ÿ”— Links


๐Ÿ’€ Support

Need help?


Built with ๐Ÿ’€ for the Kiroween Hackathon 2024

GhostFrame - Where dead tech learns new tricks! ๐Ÿ‘ป

About

AI Starter Framework for Kiro Developers

Resources

License

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors