npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, πŸ‘‹, I’m Ryan HefnerΒ  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you πŸ™

Β© 2025 – Pkg Stats / Ryan Hefner

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

Readme

🎨 Perchance AI Prompt Library

Version License: MIT Node.js NPM GitHub Stars

πŸš€ 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 --negative

Batch 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 csv

Browse 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 --reset

History 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

  1. 🍴 Fork the repository
  2. 🌿 Create a feature branch (git checkout -b feature/amazing-feature)
  3. βœ… Make your changes with tests
  4. πŸ“ Commit with conventional commits (git commit -m 'feat: add amazing feature')
  5. πŸš€ Push to your branch (git push origin feature/amazing-feature)
  6. πŸ”„ 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.

GitHub followers X Follow