Skip to content

aleph23/tavern-card-crafter-v3

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

82 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Tavern Card Crafter - AI character card maker

Project Introduction

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.

Key features:

πŸ€– AI intelligent assistant

  • 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

✏️ Full character editing

  • 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

image

image

\uD83D\uDCF1 Multi-platform support

  • 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

\uD83D\uDD27 Practical features

  • 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

image

Technology Stack

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

Get started quickly

Environmental Requirements

Make sure your system is installed:

  • Node js (recommended to use nvm Installation)
  • npm package manager

Install and run

# 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 and run

Web Version

# Build a web version
npm run build

# Preview build results
npm run preview

Desktop application version

# 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

User Guide

πŸš€ Start quickly

  1. Start the application: use npm run electron-dev(Development) or npm run electron(Production)
  2. Select working mode: Use the left tab to switch between the three functions

πŸ“‹ Detailed explanation of functions

πŸ€– AI character card assistant

  1. Paste content: Paste any character-related text into the input box
  2. Select type: Select character type (animation, games, novels, historical characters, etc.)
  3. AI Generation: Click "AI Analysis Generation", and AI will intelligently extract and generate structured information
  4. Fill in: with one click: Select the generated field and fill in the role editor with one click

✏️ Character information editing

  1. Basic Information: Fill in the basic information such as character name, description, avatar, etc.
  2. Personality Setting: Describe the character characteristics and behavior patterns of the character in detail
  3. Dialogue System: Write first message, conversation examples and alternative greetings
  4. Worldview Settings: Add character book entries to enrich background settings
  5. Tag management: Adding relevant tags to roles is easy to classify

πŸ“„ JSON Preview

  1. Real-time preview: View the generated JSON format role card
  2. Syntax Highlight: Color displays JSON structure for easy reading
  3. Statistics: Display the total number of characters and tokens
  4. 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

πŸ’‘ Usage Tips

  • 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.

Project structure

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

Contribution Guide

Welcome to submit Issue and Pull Request to help improve your project!

License

This project adopts a MIT license. For details, please see the LICENSE file.


_Make AI character creation simpler and more efficient! _

About

SillyTavern character card maker created using AI programming

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 93.9%
  • JavaScript 2.9%
  • CSS 1.7%
  • Other 1.5%