perchance-ai-prompt-library
v3.0.0
Published
π¨ Ultimate professional AI prompt library and generator with advanced CLI, batch processing, analytics, Discord integration, web interface, and enterprise-grade features - 2025 Edition
Downloads
68
Maintainers
Readme
π¨ Perchance AI Prompt Library
π The Ultimate AI Prompt Generation Toolkit
Professional-grade AI prompt library with advanced CLI, batch processing, Discord bot integration, web interface, and AI image generation powered by Pollinations.ai
β¨ Features β’ π Quick Start β’ π Documentation β’ π§ Development β’ π€ Contributing
π What's New in v3.0.0
- πΌοΈ AI Image Generation - Direct integration with Pollinations.ai
- β‘ Enhanced Performance - Optimized batch processing with up to 5 parallel threads
- π― Advanced Quality Control - 10-level quality system with mood variations
- π Comprehensive Analytics - Detailed usage statistics and metrics
- π Smart Search - Fuzzy search across styles, artists, subjects, and themes
- πΎ Multi-Format Export - JSON, CSV, TXT export capabilities
- π Enterprise Features - Docker support, monitoring, and health checks
- π Security Enhancements - Improved validation and error handling
π― Key Features
π Core Capabilities
- π Comprehensive Database: 50+ art styles, 100+ subjects, 75+ famous artists, 200+ themes
- β‘ Lightning-Fast CLI: Professional command-line interface with 600+ lines of optimized code
- π Batch Processing: Generate 1-1000+ prompts with parallel processing (up to 5 threads)
- π Advanced Analytics: Real-time usage statistics, popular styles tracking, performance metrics
- πΎ Smart Export: Multi-format export (JSON, CSV, TXT) for seamless integration
- π― Quality Enhancement: 10-level quality system with professional enhancement terms
πΌοΈ AI Image Generation
- π¨ Pollinations.ai Integration: Generate high-quality AI images directly from prompts
- π Multiple Artistic Styles: Photorealistic, digital art, anime, oil painting, watercolor, and more
- βοΈ Advanced Parameters: Custom steps, guidance scale, seed control, aspect ratios
- π Web Interface: Real-time preview with intuitive controls
- β‘ CLI Automation: Command-line interface for batch image generation
- π¨ Smart Caching: Optimized performance with intelligent caching system
π Professional Tools
- π Intelligent Search: Fuzzy search with advanced filtering across all data
- βοΈ Configuration Management: Persistent settings with custom themes and preferences
- π History Tracking: Complete command history with search and export capabilities
- π Mood System: 5 distinct mood variations (dramatic, epic, peaceful, vibrant, mysterious)
- π¨ Performance Optimization: Smart caching, progress indicators, error handling
- π¨ Beautiful UI: ASCII art banners, colored tables, professional formatting
π Multi-Platform Support
- π₯οΈ Advanced CLI: Full-featured command-line interface for power users
- π Web Interface: React-based frontend with real-time generation
- π€ Discord Bot: Server integration with slash commands
- π± Cross-Platform: Windows, macOS, Linux support
- π³ Docker Support: Containerized deployment with Docker Compose
π Quick Start
π¦ Installation
# Install globally (recommended)
npm install -g perchance-ai-prompt-library
# Or install locally
npm install perchance-ai-prompt-library
# Verify installation
perchance-prompts --versionβοΈ Environment Setup
Create a .env file in your project root:
# Required for AI Image Generation
POLLINATIONS_TOKEN=your_pollinations_ai_token_here
# Optional Configuration
LOG_LEVEL=info
PORT=3000
DB_PATH=./data/prompts.dbπ¨ Basic Usage
# Generate a single high-quality prompt
perchance-prompts generate anime "cyberpunk warrior" -q 10
# Create multiple variations with mood
perchance-prompts generate photorealistic "sunset landscape" -c 5 -m epic
# Batch process with analytics
perchance-prompts batch "digital art" "space exploration" -c 20 -p 3 --progress
# Browse available styles
perchance-prompts styles --detailed
# View usage statistics
perchance-prompts stats --export jsonπΌοΈ AI Image Generation
# Generate image from prompt
perchance-prompts generate-image -p "Epic dragon in cyberpunk city, neon lights"
# Custom style and dimensions
perchance-prompts generate-image -p "Peaceful forest scene" -s photorealistic --width 1024 --height 768
# List available styles
perchance-prompts generate-image --list-stylesπ Web Interface
# Start development server
npm run dev
# Open browser to http://localhost:3000
# Enjoy the intuitive web interface with real-time generationπ³ Docker Deployment
# Build and run with Docker
npm run docker:build
npm run docker:run
# Or use Docker Compose for production
npm run docker:prodποΈ System Architecture
π¦ Perchance AI Prompt Library
βββ π₯οΈ Advanced CLI Tool β Power user interface
βββ π React Web Interface β Visual prompt generation
βββ π€ Discord Bot Integration β Server automation
βββ βοΈ Node.js API Server β Backend processing
βββ πΌοΈ AI Image Generation β Pollinations.ai integration
βββ π Analytics Engine β Usage tracking & metrics
βββ πΎ Multi-format Export β JSON, CSV, TXT support
βββ π Smart Search System β Fuzzy search & filtering
βββ π³ Docker Support β Containerized deployment
βββ π Security & Monitoring β Health checks & validationπ Complete Documentation
π¨ Core Commands
Generate Command
perchance-prompts generate <style> "<subject>" [options]Options:
-c, --count <number>- Number of variations (default: 1)-q, --quality <level>- Quality level 1-10 (default: 8)-m, --mood <mood>- Mood: dramatic|epic|peaceful|vibrant|mysterious-v, --verbose- Show detailed metadata--save- Save to history--negative- Include negative prompt suggestions
Examples:
# High-quality single prompt
perchance-prompts generate anime "warrior princess" -q 10 -m epic
# Multiple variations with mood
perchance-prompts generate photorealistic "sunset landscape" -c 3 -m peaceful --verbose
# Save to history with negative prompts
perchance-prompts generate "oil painting" "portrait" --save --negativeBatch Processing
perchance-prompts batch <style> "<subject>" [options]Options:
-c, --count <number>- Number of variations (default: 10)-p, --parallel <threads>- Parallel threads 1-5 (default: 3)-q, --quality <level>- Quality level 1-10 (default: 8)--progress- Show detailed progress--export <format>- Export: json|txt|csv
Examples:
# Large batch with progress tracking
perchance-prompts batch anime "mecha robot" -c 50 -p 5 --progress
# Export batch results
perchance-prompts batch photorealistic "nature scene" -c 20 --export csvBrowse Encyclopedia
# Browse art styles
perchance-prompts styles [-s search] [-e export] [--detailed]
# Browse subjects
perchance-prompts subjects [-c category] [-s search]
# Browse famous artists
perchance-prompts artists [-s search] [--period era]
# Browse themes
perchance-prompts themes [-s search] [--category cat]π Analytics & Management
Statistics
perchance-prompts stats [--export format]Features:
- Total generations and commands executed
- Popular styles ranking and usage patterns
- Daily/weekly/monthly usage analytics
- Performance metrics and optimization insights
- Export capabilities for external analysis
Configuration
# View current configuration
perchance-prompts config --show
# Set configuration options
perchance-prompts config --set defaultStyle=anime
perchance-prompts config --set qualityLevel=9
# Reset to defaults
perchance-prompts config --resetHistory Management
# View command history
perchance-prompts history [-n 20]
# Clear history
perchance-prompts history --clear
# Export history
perchance-prompts history --export jsonπ― Advanced Usage Examples
π Professional Workflow
# 1. Configure optimal settings
perchance-prompts config --set qualityLevel=10
perchance-prompts config --set defaultStyle=photorealistic
# 2. Generate high-quality prompts with analytics
perchance-prompts generate anime "cyberpunk samurai" -c 5 -q 10 -m epic --save --verbose
# 3. Batch process for production
perchance-prompts batch photorealistic "architectural photography" -c 100 -p 5 --export csv
# 4. Review analytics and performance
perchance-prompts stats --export json
perchance-prompts history -n 10π¨ Creative Exploration
# Explore different moods
perchance-prompts generate "oil painting" "forest scene" -m peaceful -c 3
perchance-prompts generate "digital art" "space battle" -m dramatic -c 3
perchance-prompts generate "watercolor" "flower garden" -m vibrant -c 3
# Mix styles with famous artists
perchance-prompts artists -s "van gogh"
perchance-prompts generate "van gogh style" "starry cityscape" -q 9πΌοΈ AI Image Generation Workflow
# Generate prompt and image in one workflow
perchance-prompts generate anime "dragon warrior" -q 10 --save
perchance-prompts generate-image -p "Epic dragon warrior, anime style, high detail" --width 1024 --height 1024
# Batch image generation
for i in {1..5}; do
perchance-prompts generate-image -p "Fantasy landscape $i" -s photorealistic
doneπ§ Development
π οΈ Setup Development Environment
# Clone repository
git clone https://github.com/Gzeu/perchance-ai-prompt-library.git
cd perchance-ai-prompt-library
# Install dependencies
npm install
# Install web dependencies
cd web && npm install && cd ..
# Link for development
npm link
# Run tests
npm test
npm run test:cliπ Available Scripts
# Development
npm run dev # Start API server in development mode
npm run start # Start production server
# Testing
npm test # Run all tests
npm run test:cli # Test CLI functionality
npm run test:generate # Test prompt generation
npm run test:batch # Test batch processing
# Utilities
npm run lint # Code linting
npm run docs # Generate documentation
npm run release # Create release
npm run clean # Clean build artifacts
npm run audit # Security audit
npm run monitor # Performance monitoringποΈ Project Structure
perchance-ai-prompt-library/
βββ π bin/ # CLI executable
β βββ cli.js # Advanced CLI (600+ lines)
βββ π src/ # Core library
β βββ index.js # Main library entry
β βββ π data/ # Encyclopedia JSON files
β β βββ styles.json # Art styles database
β β βββ subjects.json # Subject categories
β β βββ artists.json # Famous artists
β β βββ themes.json # Thematic elements
β β βββ negatives.json # Negative prompts
β β βββ recipes.json # Prompt recipes
β βββ π api/ # API server
β βββ π utils/ # Utility functions
β βββ π services/ # Service integrations
βββ π web/ # React web interface
βββ π discord-bot/ # Discord bot integration
βββ π docs/ # Documentation
βββ π tests/ # Test suites
βββ π templates/ # Generation templates
βββ π scripts/ # Build and deployment scripts
βββ π³ Dockerfile # Docker configuration
βββ π³ docker-compose.yml # Docker Compose setup
βββ π README.md # This fileπ Performance & Scalability
| Metric | Performance | |--------|--------------| | β‘ Generation Speed | 1-5 prompts/second | | π Batch Capacity | Up to 1000 prompts | | π§΅ Parallel Threads | 1-5 configurable | | πΎ Memory Usage | ~50MB for full encyclopedia | | π Compatibility | Node.js 20+ on all platforms | | π‘ Network | Offline-first, optional cloud features | | πΌοΈ Image Generation | Pollinations.ai integration | | π³ Docker Support | Multi-stage builds, optimized images |
π€ Contributing
We welcome contributions from the community! Here's how you can help:
π Ways to Contribute
- π¨ Add Content: New art styles, artists, subjects, or themes
- π Documentation: Improve guides, examples, and API docs
- π Bug Reports: Report issues with detailed reproduction steps
- π‘ Feature Requests: Suggest new CLI commands or functionality
- π§ͺ Testing: Add test cases and improve coverage
- π§ Code: Fix bugs, optimize performance, add features
π Contribution Process
- π΄ Fork the repository
- πΏ Create a feature branch (
git checkout -b feature/amazing-feature) - β Make your changes with tests
- π Commit with conventional commits (
git commit -m 'feat: add amazing feature') - π Push to your branch (
git push origin feature/amazing-feature) - π Open a Pull Request
π§ͺ Development Guidelines
- Write clean, well-documented code
- Follow existing code style and patterns
- Add tests for new functionality
- Update documentation as needed
- Test on multiple platforms when possible
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Acknowledgments
- π¨ Pollinations.ai - AI image generation capabilities
- π― OpenAI Community - Inspiration and best practices
- π Contributors - Everyone who helped make this project better
- π‘ AI Art Community - Feedback and feature suggestions
π Support & Links
| Resource | Link | |----------|---------| | π Documentation | Full Docs | | π Issues | GitHub Issues | | π¬ Discussions | GitHub Discussions | | π¦ NPM Package | npm registry | | β Star the Repo | GitHub Repository | | π¨βπ» Author | George Pricop (@Gzeu) |
Made with β€οΈ by George Pricop
Transform your AI image generation workflow with professional-grade prompts and advanced automation tools.
