Tavern Card Crafter is a professional AI character card maker that helps users easily create and edit character cards for chatbots and roleplay. The tool offers an intuitive interface and powerful features that make character creation easy and efficient.
- Intelligent Character Creation: Quickly generate basic character information through AI assistants
- Multi-genre support: Supports different types of characters such as anime, games, novels, and historical figures
- Intelligent Content Extraction: Paste any text, and AI automatically extracts and generates structured character information
- Basic information: Name, description, first-person perspective, etc
- Personality Traits: Detailed personality traits and behavior patterns
- Setting Setting: Backstory and environment description
- Dialogue System: Sample dialogues, greetings, alternative greetings
- Character Book: Worldview setting and memory entries
- Tag Classification: Role labeling and metadata management
- Web version: Browser direct access and use
- Desktop App: A cross-platform Electron desktop app
- Sidebar Layout: AI assistant, character editing, JSON preview split tab interface
- Real-time preview: Real-time preview in JSON format, syntax highlighting
- Multi-format export: Supports JSON and PNG format export
- Localized Interface: Completely Chinese interface, easy and intuitive to operate
- Responsive Design: Supports a wide range of devices and screen sizes
This project is built on modern web technology:
- React - User Interface Framework
- Type Script - Type-safe Java Script
- Vite - Quick build tool
- Electron - Cross-platform desktop application framework
- Tailwind CSS - Practical and priority CSS framework
- shadcn/ui - High-quality React component library
Make sure your system is installed:
- Node js (recommended to use nvm Installation)
- npm package manager
# 1. Clone project
git clone <YOUR_GIT_URL>
# 2. Enter the project directory
cd tavern-card-crafter-v3
# 3. Installation dependencies
npm install
# 4. Start the development server (Web version)
npm run dev
# Or start desktop application development mode
npm run electron-dev
- Web version: Access in the browser
http://localhost:8080
- Desktop Version: Automatically open the Electron desktop application window
# Build a web version
npm run build
# Preview build results
npm run preview
# Quickly run desktop applications (production mode)
npm run electron
# Build and run desktop applications
npm run electron-pack
# Build a desktop application installation package
npm run electron-build
- Start the application: use
npm run electron-dev
(Development) ornpm run electron
(Production) - Select working mode: Use the left tab to switch between the three functions
- Paste content: Paste any character-related text into the input box
- Select type: Select character type (animation, games, novels, historical characters, etc.)
- AI Generation: Click "AI Analysis Generation", and AI will intelligently extract and generate structured information
- Fill in: with one click: Select the generated field and fill in the role editor with one click
- Basic Information: Fill in the basic information such as character name, description, avatar, etc.
- Personality Setting: Describe the character characteristics and behavior patterns of the character in detail
- Dialogue System: Write first message, conversation examples and alternative greetings
- Worldview Settings: Add character book entries to enrich background settings
- Tag management: Adding relevant tags to roles is easy to classify
- Real-time preview: View the generated JSON format role card
- Syntax Highlight: Color displays JSON structure for easy reading
- Statistics: Display the total number of characters and tokens
- Export function:
- JSON Export: Standard JSON format file
- PNG Export: Embed the character card into the picture (need to upload the avatar)
- Copy to clipboard: Quickly copy JSON content
- AI Assistant: You can paste any related text such as character introduction, novel clips, game information, etc.
- Step editing: Use tabs to focus on AI generation, manual editing, and preview export respectively
- Real-time synchronization: The data of three tabs is synchronized in real time, and the effect can be switched to view at any time.
src/
βββ components/ # React Components
β βββ CharacterForm/ # Role Edit Form Component
β β βββ AIAssistant.tsx # AI character card assistant
β β βββ BasicInfoSection.tsx # Basic information edit
β β βββ PersonalitySection.tsx # Personality traits Edit
β β βββ ...
β βββ CharacterPreview.tsx # JSON preview component
β βββ AISettings.tsx # AI Setup Components
β βββ ui/ # Basic UI components (shadcn/uiοΌ
β βββ ...
βββ pages/ # Page Components
β βββ Index.tsx # Main page (sidebar tab layout)
βββ contexts/ # React context
β βββ LanguageContext.tsx # Multilingual support
β βββ ThemeContext.tsx # Topic Switch
βββ hooks/ # Custom Hook
βββ utils/ # Tool functions
β βββ aiGenerator.ts # AI generation related tools
βββ lib/ # Library files
βββ electron/ # Electron main process file
βββ main.cjs # Main process entry
βββ preload.js # Preload scripts
Welcome to submit Issue and Pull Request to help improve your project!
This project adopts a MIT license. For details, please see the LICENSE file.
_Make AI character creation simpler and more efficient! _