Skip to content

pengGgxp/PerlerGen

Repository files navigation

PerlerGen

A Smart, AI-Powered Pixel Art & Bead Pattern Generator

Vite React TypeScript Tailwind CSS

English | 简体中文


📖 Introduction

PerlerGen is a modern web application designed for bead artists and pixel art enthusiasts. It seamlessly converts images into professional bead patterns, supporting major brands like Perler, Artkal, and Hama.

Built with a soft, tactile Neumorphic UI, it offers a distraction-free environment for creativity. Leveraging Google Gemini AI, PerlerGen not only generates patterns but also analyzes them to provide difficulty ratings, descriptions, and usage suggestions.

✨ Key Features

  • 🎨 Smart Conversion: High-fidelity image-to-pixel conversion with adjustable grid sizes and aspect ratio locking.
  • 🧩 Multi-Brand Support: Native support for Perler, Artkal (S-Series), Hama, and generic color palettes.
  • 🤖 AI Analysis: Integrated Google Gemini AI provides insights on pattern difficulty and creative usage ideas.
  • 🛠️ Precision Editing:
    • Global Color Replacement: Swap a color across the entire pattern instantly.
    • Pixel-Level Editing: Click any bead to change its color.
    • Visibility Toggles: Hide specific colors to focus on layers or counts.
  • 📏 Advanced Export:
    • Full Chart: Download the complete pattern with coordinates.
    • Split Export: Automatically slice large projects (e.g., 200x200) into printable chunks (ZIP archive) with alignment guides.
  • 📝 Material Management: Real-time calculation of bead counts and color codes.
  • 🌍 Bilingual Interface: Fully localized for English and Chinese.

🛠 Tech Stack

🚀 Getting Started

Follow these steps to run PerlerGen locally on your machine.

Prerequisites

Installation

  1. Clone the repository

    git clone https://github.com/yourusername/PerlerGen.git
    cd PerlerGen
  2. Install dependencies

    npm install
  3. Configure Environment Variables Create a .env file in the root directory and add your Gemini API Key:

    GEMINI_API_KEY=your_api_key_here
  4. Run the Development Server

    npm run dev

    Open http://localhost:3000 in your browser.

📦 Build for Production

To create a production-ready build:

npm run build

The output will be in the dist directory, ready to be deployed to Vercel, Netlify, or GitHub Pages.

🤝 Contributing

Contributions are welcome! If you have ideas for new features or bug fixes:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

📄 License

This project is available for personal and educational use.


About

**PerlerGen** 是一款专为拼豆爱好者和像素艺术家设计的现代化 Web 应用。它可以将图片无缝转换为专业的拼豆图纸,支持 Perler、Artkal(硬豆/软豆)和 Hama 等主流品牌色卡。

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors