Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

70 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Gammer

AI-Powered Presentation Engine
δ»ŽδΈ»ι’˜εˆ°δΈ“δΈš PPTX,AI η ”η©ΆεΌ•ζ“Ž + θ‡ͺεŠ¨η”Ÿζˆ

Features β€’ Quick Start β€’ How It Works β€’ Configuration β€’ Roadmap

Next.js React TypeScript License

d4c38f3ff8f82916b5974f259fc27610 image image image

🌟 Features

🧠 AI Research Engine

  • Web Search Integration: Claude's web_search tool for real-time data
  • Multi-query Strategy: 10+ targeted searches per topic
  • Source Tracking: Every data point linked to its source
  • Knowledge Fallback: Model knowledge when web search unavailable

πŸ“Š Professional PPTX Output

  • 16 Layout Types: metrics-grid, chart-focus, diagram, big-number, etc.
  • 13 Theme Styles: Google, Amazon, Microsoft, Deloitte, PwC, Brand, Haio, etc.
  • Smart Layout Selection: AI auto-selects best layout for content
  • Visual Rhythm Enforcement: Prevents 3+ consecutive text-heavy slides

πŸ”„ Mermaid Diagram Rendering

  • Flowchart Support: graph TD and graph LR syntax
  • Auto-layout: Dagre-based automatic positioning
  • PPTX Export: Shapes + text, no image dependencies

⚑ Modern Tech Stack

  • Next.js 16 with App Router
  • React 19 with Server Components
  • Zustand with undo/redo (50 steps)
  • Prisma with SQLite/PostgreSQL
  • NextAuth v5 for authentication

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • Anthropic API key (Claude)

Installation

# Clone the repository
git clone https://github.com/your-username/gammer.git
cd gammer

# Install dependencies
npm install

# Set up environment
cp .env.example .env
# Edit .env and add your ANTHROPIC_API_KEY

# Initialize database
npx prisma db push

# Start development server
npm run dev

Open http://localhost:3000 to see the app.

Production Build

npm run build
npm start

πŸ”§ How It Works

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Topic     │───▢│   Outline    │───▢│   Slides    β”‚
β”‚   Input     β”‚    β”‚   Research   β”‚    β”‚   Preview   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                         β”‚                    β”‚
                         β–Ό                    β–Ό
                  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                  β”‚  Web Search  β”‚    β”‚    PPTX     β”‚
                  β”‚  10 queries  β”‚    β”‚   Export    β”‚
                  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

3-Step Workflow

  1. Topic β†’ Outline: AI generates structured outline with research
  2. Outline β†’ Slides: Stream-based slide generation with real-time preview
  3. Slides β†’ PPTX: Professional PowerPoint export with theme styling

AI Pipeline

Phase Duration Output
Research 30-60s Key stats, findings, sources
Outline 10-20s Page titles, bullets, layouts
Generation 60-120s Full slide content with metrics
Quality Check 5-10s Visual rhythm, data validation
PPTX Build 5-10s Binary .pptx file

βš™οΈ Configuration

Environment Variables

Variable Required Description
AI_BACKEND Yes claude or gpt
ANTHROPIC_API_KEY Yes* Claude API key
DATABASE_URL Yes SQLite or PostgreSQL URL
NEXTAUTH_SECRET Yes Random string for JWT
NEXTAUTH_URL No Your app URL (auto-detected)

* Only required when AI_BACKEND=claude (recommended)

Theme Customization

Add custom themes in src/lib/themes.ts:

export const themes: Record<StyleTheme, ThemeConfig> = {
  'my-brand': {
    name: 'My Brand',
    primary: '#1E40AF',
    secondary: '#6B7280',
    accent: '#F59E0B',
    background: '#FFFFFF',
    text: '#111827',
    lightGray: '#F3F4F6',
  },
};

Add theme design in src/lib/theme-design.ts:

'my-brand': {
  coverStyle: 'left-block',
  accentPosition: 'left-bar',
  preferredLayouts: ['metrics-grid', 'chart-focus', 'two-column'],
  // ... see theme-design.ts for full options
},

πŸ“ Project Structure

src/
β”œβ”€β”€ app/                    # Next.js App Router
β”‚   β”œβ”€β”€ api/                # API routes (research, generate, export)
β”‚   β”œβ”€β”€ create/             # Main editor page
β”‚   β”œβ”€β”€ dashboard/          # Project list
β”‚   └── edit/[id]/          # Edit existing project
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ SlideRenderer.tsx   # Slide preview component
β”‚   β”œβ”€β”€ MermaidDiagram.tsx  # Mermaid rendering
β”‚   └── ...
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ ai-generator.ts     # AI slide generation
β”‚   β”œβ”€β”€ research-engine.ts  # Web search + research
β”‚   β”œβ”€β”€ pptx-engine.ts      # PowerPoint rendering
β”‚   └── ...
β”œβ”€β”€ store/
β”‚   └── presentation.ts     # Zustand state with undo/redo
└── types/
    └── next-auth.d.ts      # Type extensions

πŸ—ΊοΈ Roadmap

v0.2 (Current)

  • AI research engine
  • 16 slide layouts
  • 13 theme styles
  • Mermaid diagram support
  • Stream-based preview
  • Undo/redo (50 steps)

v0.3 (Planned)

  • Image generation integration
  • Thumbnail navigation in editor
  • Bullet list editing
  • Export history with re-download

v0.4 (Future)

  • PostgreSQL support
  • Team collaboration
  • Template gallery
  • PDF export
  • Google Slides export

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ™ Acknowledgments


Made with ❀️ by Your Name

About

AI-Powered Presentation Engine - From topic to professional PPTX with AI research engine

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages