ASCII art generator deployed on Cloudflare Workers. Transform text and images into ASCII art with multiple styles and export formats.
- 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)
- Node.js 18+
- Cloudflare account
- Wrangler CLI
# 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# Start local development server
npm run dev
# Preview with Cloudflare Workers runtime
npm run previewVisit http://localhost:8787 to see the application.
Update wrangler.toml with your account details:
account_id = "your-account-id"npm run deploy:stagingnpm run deploy- Add your domain to Cloudflare
- Update
wrangler.tomlroutes section:
[env.production]
routes = [
{ pattern = "yourdomain.com/*", zone_name = "yourdomain.com" }
]Edit public/css/themes.css:
[data-palette="custom"] {
--primary: #your-color;
--secondary: #your-secondary;
/* ... other variables */
}Extend public/js/generators/text.js:
this.fonts.set('newfont', {
height: 6,
chars: {
'A': ['line1', 'line2', /* ... */],
// ... other characters
}
});Set in wrangler.toml:
[vars]
ENVIRONMENT = "production"
DEBUG_MODE = "false"Configure in worker if needed:
// In src/worker.js
const rateLimiter = {
limit: 100,
window: 60000 // 1 minute
};View logs in real-time:
# Production logs
npm run logs:production
# Staging logs
npm run logs:staging