Skip to content

theopenco/llmgateway-templates

Repository files navigation

LLM Gateway Templates

A collection of open-source templates for building AI-powered applications using LLM Gateway - a unified API gateway for accessing multiple Large Language Models.

Deploy

Image Generation App

Deploy with Vercel

Deploy on Railway

Templates

Template Description Stack
Image Generation Full-stack web app for AI image generation Next.js 16, React 19, Tailwind CSS
AI Chatbot Streaming chat with conversation history and model selector Next.js 16, React 19, Tailwind CSS
OG Image Generator AI-powered Open Graph image generator with preview and download Next.js 16, React 19, Tailwind CSS
Feedback Dashboard Customer feedback sentiment analysis dashboard Next.js 16, React 19, Tailwind CSS
Writing Assistant AI writing assistant with text actions (rewrite, summarize, expand) Next.js 16, React 19, Tailwind CSS
Slack Q&A Bot Slack bot that streams AI answers and keeps thread context Chat SDK, AI SDK, Hono, Redis
Weather Agent CLI agent that answers weather queries using tools Node.js, TypeScript, Vercel AI SDK
Lead Agent CLI agent that researches people and posts to Discord Node.js, TypeScript, Vercel AI SDK
Changelog Generator CLI agent that generates changelogs from git history Node.js, TypeScript, Vercel AI SDK
Email Drafter CLI agent that drafts polished emails from notes Node.js, TypeScript, Vercel AI SDK
Sentiment Analyzer CLI agent that analyzes text sentiment Node.js, TypeScript, Vercel AI SDK
Data Extractor CLI agent that extracts structured entities from text Node.js, TypeScript, Vercel AI SDK

Skills

Claude Code skills for working with LLM Gateway — drop a SKILL.md into .claude/skills/ and trigger it by name. See skills/ for installation details.

Skill Trigger Description
Changelog changelog Writes a new LLM Gateway changelog entry in the house style, plus a gpt-image-2 prompt for its OpenGraph image

Quick Start

The easiest way to get started is with the CLI:

# Create a new project (interactive)
npx @llmgateway/cli init

# Or specify a template directly
npx @llmgateway/cli init --template image-generation
npx @llmgateway/cli init --template weather-agent

CLI

The @llmgateway/cli provides tools for scaffolding templates and managing AI projects:

npx @llmgateway/cli init              # Create a new project from a template
npx @llmgateway/cli list              # List available templates
npx @llmgateway/cli models            # Browse available AI models
npx @llmgateway/cli add tool weather  # Add tools to your project
npx @llmgateway/cli auth login        # Manage your API key
npx @llmgateway/cli docs              # Open documentation

See the CLI documentation for all available commands.

Getting Started (Manual)

Prerequisites

Installation

# Clone the repository
git clone https://github.com/theopenco/llmgateway-templates.git
cd llmgateway-templates

# Install dependencies
pnpm install

# Copy environment variables
cp templates/image-generation/.env.example templates/image-generation/.env.local
cp agents/weather-agent/.env.example agents/weather-agent/.env.local

# Add your API key to the .env.local files

Development

# Run all templates in development mode
pnpm dev

# Or run a specific template
cd templates/image-generation && pnpm dev
cd agents/weather-agent && pnpm dev

Build

# Build all templates
pnpm build

Project Structure

llmgateway-templates/
├── packages/
│   └── llmgateway-cli/      # @llmgateway/cli package
├── templates/
│   ├── image-generation/    # Next.js image generation app
│   ├── ai-chatbot/          # Next.js streaming chatbot
│   ├── og-image-generator/  # Next.js OG image generator
│   ├── feedback-dashboard/  # Next.js sentiment dashboard
│   ├── writing-assistant/   # Next.js writing assistant
│   └── slack-qa-bot/        # Chat SDK Slack Q&A bot
├── agents/
│   ├── weather-agent/              # CLI weather agent
│   ├── lead-agent/                 # CLI lead research agent
│   ├── changelog-generator-agent/  # CLI changelog generator
│   ├── email-drafter-agent/        # CLI email drafter
│   ├── sentiment-analyzer-agent/   # CLI sentiment analyzer
│   └── data-extractor-agent/       # CLI data extractor
├── package.json             # Root workspace config
├── pnpm-workspace.yaml      # pnpm workspace config
└── turbo.json               # Turbo build config

Tech Stack

Documentation

Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

  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.

Support

About

Open-source templates for building AI apps with LLM Gateway

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors