Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Frame β€” AI Image Studio

A beautiful, dark-first AI image generation and editing studio built with Next.js. Frame provides a powerful interface for generating images via AI APIs, editing them with precision, and managing everything locally through IndexedDB.

Frame Studio

Features

Core Studio

  • Prompt-based Generation β€” Natural language prompts with real-time parameter tuning
  • Multiple AI Provider Support β€” Compatible with OpenAI DALL-E, Stability AI, Midjourney API, and any OpenAI-compatible endpoint
  • Custom Base URL β€” Configure your own API endpoint for self-hosted or proxy setups
  • Round-Robin API Key Rotation β€” Add multiple API keys for load balancing and rate limit management
  • Batch Generation β€” Generate multiple variants in a single request

Local-First Storage

  • IndexedDB Gallery β€” All generated images saved locally with metadata
  • Project Organization β€” Tag, favorite, and organize images into collections
  • Export & Import β€” Backup your gallery as JSON or ZIP, restore anytime
  • Offline Access β€” Browse and manage your entire gallery without internet

Image Editor

  • Smart Masking β€” Brush-based inpainting with adjustable size and softness
  • Background Removal β€” One-click transparent backgrounds
  • Style Transfer β€” Apply artistic styles to existing images
  • Upscaling β€” 2x/4x enhancement with quality preservation
  • Cropping & Resizing β€” Aspect ratio presets and freeform crop
  • Adjustment Controls β€” Brightness, contrast, saturation, warmth

Output Customization

  • Size Presets β€” Square (1024x1024), Portrait (1024x1792), Landscape (1792x1024), and custom
  • Quality Settings β€” Standard, HD, Ultra quality tiers
  • Background Control β€” Transparent, solid color, blur, or auto-detect
  • Style Modifiers β€” Vivid, natural, anime, cinematic, 3D render, sketch
  • Format Selection β€” PNG, JPEG, WebP output
  • Seed Control β€” Reproducible generations with seed locking

Advanced Settings

  • API Configuration β€” Custom headers, timeout, retry logic
  • Rate Limiting β€” Per-key rate tracking and automatic backoff
  • Prompt Templates β€” Save and reuse common prompt patterns
  • Negative Prompts β€” Exclude unwanted elements
  • NSFW Filtering β€” Content safety toggles

Architecture

frame/
β”œβ”€β”€ app/                    # Next.js App Router
β”‚   β”œβ”€β”€ layout.tsx         # Root layout with Halcyon design system
β”‚   β”œβ”€β”€ page.tsx           # Studio (home)
β”‚   β”œβ”€β”€ gallery/page.tsx   # Local gallery
β”‚   β”œβ”€β”€ editor/page.tsx    # Image editor
β”‚   └── settings/page.tsx  # Configuration
β”œβ”€β”€ components/            # React components
β”‚   β”œβ”€β”€ ui/               # Base UI (buttons, inputs, cards)
β”‚   β”œβ”€β”€ studio/           # Generation interface
β”‚   β”œβ”€β”€ gallery/          # Grid, filters, viewer
β”‚   β”œβ”€β”€ editor/           # Canvas, tools, panels
β”‚   └── settings/         # Forms, config panels
β”œβ”€β”€ lib/                   # Utilities
β”‚   β”œβ”€β”€ db.ts             # IndexedDB wrapper
β”‚   β”œβ”€β”€ api.ts            # API client with key rotation
β”‚   └── store.ts          # App state management
└── public/               # Static assets

Design System

Frame uses the Halcyon Design System β€” a dark-first, architecturally precise UI kit characterized by:

  • Cool near-black neutrals (#0A1019 canvas)
  • Blue-teal accents (#4680F5 primary, #2FA7A3 secondary)
  • Sculptural glass-bar hero identity
  • Manrope + Inter typography pairing
  • Precise 4px spacing scale

Roadmap

  • Core UI scaffolding
  • API integration with key rotation
  • IndexedDB persistence layer
  • Image editor with canvas tools
  • Export/import functionality
  • Plugin system for custom AI providers
  • Batch processing pipeline
  • Collaborative workspaces

Development

# Install dependencies
npm install

# Run development server
npm run dev

# Build for production
npm run build

License

MIT

About

Fast, refined AI image studio 🌈

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages