Skip to content

JungleM0nkey/apehost-ascii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASCII Art Studio

ASCII Art Studio Logo

ASCII art generator deployed on Cloudflare Workers. Transform text and images into ASCII art with multiple styles and export formats.

Links

Demo App

Features

  • Text to ASCII: Convert text using various font styles
  • Image to ASCII: Transform images with drag & drop support
  • Multiple Export Formats: TXT, HTML, JSON, Markdown
  • 6 Color Themes: Orange Fire, Matrix Green, Cyber Blue, and more
  • Real-time Preview: See results as you type
  • Keyboard Shortcuts: Ctrl+C (copy), Ctrl+G (generate)

Quick Start

Prerequisites

  • Node.js 18+
  • Cloudflare account
  • Wrangler CLI

Installation

# Clone the repository
git clone https://github.com/JungleM0nkey/apehost-ascii.git
cd apehost-ascii

# Install dependencies
npm install

# Login to Cloudflare (if not already logged in)
wrangler login

Development

# Start local development server
npm run dev

# Preview with Cloudflare Workers runtime
npm run preview

Visit http://localhost:8787 to see the application.

Deployment

1. Configure Account

Update wrangler.toml with your account details:

account_id = "your-account-id"

2. Deploy to Staging

npm run deploy:staging

3. Deploy to Production

npm run deploy

Custom Domain Setup

  1. Add your domain to Cloudflare
  2. Update wrangler.toml routes section:
[env.production]
routes = [
  { pattern = "yourdomain.com/*", zone_name = "yourdomain.com" }
]

Customization

Adding New Themes

Edit public/css/themes.css:

[data-palette="custom"] {
    --primary: #your-color;
    --secondary: #your-secondary;
    /* ... other variables */
}

Adding New Fonts

Extend public/js/generators/text.js:

this.fonts.set('newfont', {
    height: 6,
    chars: {
        'A': ['line1', 'line2', /* ... */],
        // ... other characters
    }
});

Configuration

Environment Variables

Set in wrangler.toml:

[vars]
ENVIRONMENT = "production"
DEBUG_MODE = "false"

Rate Limiting

Configure in worker if needed:

// In src/worker.js
const rateLimiter = {
    limit: 100,
    window: 60000 // 1 minute
};

Monitoring

View logs in real-time:

# Production logs
npm run logs:production

# Staging logs
npm run logs:staging

About

ASCII art generator deployed on Cloudflare Workers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •