Skip to content

easychen/airole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AIRole - Effortless AI Character Card Creator

✨ Create character cards from a single image with just a few clicks!

An incredibly simple and user-friendly open-source AI character card generator. Upload a character image, let AI automatically analyze and generate detailed character attributes, perfect for role-playing games, storytelling, and AI chatbots ( using character-card-spec-v2 ). Built with Next.js and modern web technologies.

πŸš€ Super simple workflow: Upload Image β†’ AI Analysis & Generation β†’ Fine-tune β†’ Export & Use

airole.net-demo-short.zip.mp4

Deploy with Vercel

Deploy with Vercel

✨ Features

  • πŸ–ΌοΈ AI Image Analysis - Upload character images and let AI generate character descriptions
  • πŸ€– AI-Powered Generation - Generate character attributes using OpenAI-compatible AI models
  • πŸ’¬ AI Assistant Chat - Get suggestions and improvements for your character attributes
  • πŸ“± Responsive Design - Works seamlessly on desktop and mobile devices
  • 🎨 Modern UI - Clean, intuitive interface with dark/light theme support
  • πŸ“ Character Book Support - Advanced character memory system
  • πŸ”„ Version History - Track and manage character development
  • πŸ“€ Multiple Export Formats - Export as JSON or PNG character cards
  • ☁️ Cloud Storage - Optional Google Drive integration for character backup
  • 🎯 Tavern Card Compatible - Standard format for character cards

πŸš€ Quick Start

Deploy to Vercel

The easiest way to get started is to deploy directly to Vercel:

Deploy with Vercel

After deployment, you can configure the environment variables in your Vercel dashboard to enable additional features.

Manual Deployment

  1. Clone the repository

    git clone https://github.com/easychen/airole.git
    cd airole
  2. Install dependencies

    npm install
    # or
    yarn install
    # or
    pnpm install
  3. Set up environment variables (optional)

    cp .env.example .env.local

    See Configuration for details.

  4. Run the development server

    npm run dev
    # or
    yarn dev
    # or
    pnpm dev
  5. Open your browser Navigate to http://localhost:3000

βš™οΈ Configuration

All features work without configuration, but you can enhance functionality by setting up environment variables:

Basic Configuration

Create a .env.local file in your project root:

# NextAuth.js (optional - required for Google features)
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your-nextauth-secret-here

# Google OAuth (optional - enables Google Drive integration)
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret

Google OAuth Setup (Optional)

To enable Google Drive integration:

  1. Go to Google Cloud Console
  2. Create a new project or select an existing one
  3. Enable the Google Drive API
  4. Create OAuth 2.0 credentials
  5. Add your domain to authorized origins
  6. Add the callback URL: https://yourdomain.com/api/auth/callback/google

AI Model Configuration

The application supports OpenAI-compatible AI models. Users can configure their preferred models and API keys through the settings interface:

  • Supported Models: Any model that follows OpenAI API specifications
  • Popular Providers: OpenAI, Google AI Studio, Anthropic, SiliconFlow, DeepSeek, etc.
  • Custom Endpoints: Configure custom API base URLs for different providers

πŸ—οΈ Project Structure

β”œβ”€β”€ app/                  # Next.js app directory
β”‚   β”œβ”€β”€ api/             # API routes
β”‚   β”œβ”€β”€ globals.css      # Global styles
β”‚   └── page.tsx         # Main application page
β”œβ”€β”€ components/          # React components
β”‚   β”œβ”€β”€ ui/             # UI components
β”‚   └── ...             # Feature components
β”œβ”€β”€ lib/                # Utility functions
β”œβ”€β”€ public/             # Static assets
β”œβ”€β”€ styles/             # Additional styles
└── types/              # TypeScript definitions

πŸ”§ Development

Prerequisites

  • Node.js 18+
  • npm/yarn/pnpm

Local Development

  1. Clone and install dependencies (see Quick Start)
  2. Configure environment variables (optional)
  3. Run npm run dev
  4. Open http://localhost:3000

Building for Production

npm run build
npm run start

πŸ“± Usage

  1. Upload Character Image (optional)

    • Upload an image of your character
    • AI will analyze and generate initial character attributes
  2. Fill Character Details

    • Edit generated or create new character information
    • Use the tabbed interface for organized editing
  3. Get AI Assistance

    • Switch to the chat tab to get suggestions for character improvements
    • Use adjustment presets for quick character refinements
    • AI assistant helps you polish character attributes
  4. Export Your Character

    • Export as JSON for data interchange
    • Export as PNG for character card sharing
  5. Cloud Backup (if configured)

    • Save characters to Google Drive
    • Access your characters from any device

🎨 Customization

Themes

The application supports multiple themes:

  • Light mode
  • Dark mode
  • System preference

Languages

Currently supported languages:

  • English
  • Chinese (Simplified)

Models

Configurable OpenAI-compatible models for different purposes:

  • Image analysis models
  • Character generation models
  • AI assistant models

πŸ”’ Privacy & Security

  • Local First: All data is stored locally by default
  • Optional Cloud: Google Drive integration is completely optional
  • No Tracking: We don't track user behavior or collect analytics
  • Open Source: Full transparency - inspect the code yourself

🀝 Contributing

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

Development Setup

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

Reporting Issues

Found a bug or have a feature request? Please open an issue.

πŸ“„ License

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

πŸ™ Acknowledgments

πŸ“ž Support


Made with ❀️ by the AIRole.net team

⭐ Star us on GitHub β€’ πŸš€ Deploy to Vercel

About

Effortless AI Character Card Creator that Start with Image

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published