Artificer's Compendium v1.x
A high-quality D&D magic item generator powered by Google Gemini AI. Create unique magic items with rich lore, detailed descriptions, and stunning visual representations.
- Customizable Generation: Choose from rich item types, rarities, themes, resonance level, and visual styles
- AI-Powered Content: Uses Google Gemini to generate detailed item descriptions, lore, and mechanics
- Visual Generation: Creates stunning images using Imagen via Gemini
- Automatic Archiving: All generated items are automatically saved to Supabase database
- Archives Browser: Browse, search, filter, and paginate your collection of generated items
- Recent Items Display: View the last 6 generated items directly on the forge page
- Rich Customization Options:
- Item types: Weapons, Armor, Potions, Rings, Wands, and more
- Rarity levels: Common through Artifact
- Themes: Celestial, Infernal, Feywild, Elemental, Draconic, and more
- Visual styles: Oil Painting, Watercolor, Pen and Ink, Hyper-Realistic, and more
- Power bands: Low Magic, Standard, High Magic, Mythic
- Optional curse mechanics
- Optional plot hooks for campaign integration
- Node.js (v18 or higher recommended)
-
Install dependencies:
npm install
-
Set up your API keys and database: Create a
.env.localfile in the root directory and add your API keys:API_KEY=your_gemini_api_key_here VITE_SUPABASE_URL=your_supabase_project_url VITE_SUPABASE_ANON_KEY=your_supabase_anon_key- Get a Gemini API key from Google AI Studio
- Create a Supabase project at supabase.com
- Run the SQL schema from
supabase-schema.sqlin your Supabase SQL Editor - Get your Supabase URL and anon key from your project settings
-
Run the development server:
npm run dev
-
Open your browser: Navigate to the URL shown in the terminal (typically
http://localhost:5173)
npm run buildThe built files will be in the dist directory.
npm run preview- Generate unique magic items with AI-powered descriptions
- Customize item properties: type, rarity, theme, power level
- Automatic image generation (when API quota allows)
- Items are automatically saved to your database
- Browse all your generated items in a beautiful grid view
- Search items by name, type, rarity, theme, or description
- Filter by rarity level
- Click any item to view it in full detail
- Delete items from your collection
- View the 6 most recently generated items on the forge page
- Quick access to recent creations
- Click to view any item in detail
- React 19 - UI framework
- TypeScript - Type safety
- Vite - Build tool and dev server
- Google Gemini AI - Content and image generation
- Supabase - Database for storing generated items
- Tailwind CSS - Styling (via inline classes)
All generated items are automatically saved to Supabase. To set up the database:
- Create a new Supabase project at supabase.com
- Go to the SQL Editor in your Supabase dashboard
- Copy and run the SQL from
supabase-schema.sql - Add your Supabase credentials to
.env.localas shown above
Private project
Created by johnmunn.tech