{"id":50686096,"url":"https://github.com/jezreal-dev/ascii-art-web-generator","last_synced_at":"2026-06-08T23:01:25.041Z","repository":{"id":363389710,"uuid":"1263008735","full_name":"jezreal-dev/ascii-art-web-generator","owner":"jezreal-dev","description":"A premium, production-grade ASCII Art Web Generator built in Go. Features a responsive glassmorphism dark-theme UI, multiline input, template error handling, and clipboard integrations.","archived":false,"fork":false,"pushed_at":"2026-06-08T17:06:42.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-08T19:07:26.082Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jezreal-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-08T14:31:41.000Z","updated_at":"2026-06-08T17:06:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jezreal-dev/ascii-art-web-generator","commit_stats":null,"previous_names":["jezreal-dev/ascii-art-web-generator"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/jezreal-dev/ascii-art-web-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jezreal-dev%2Fascii-art-web-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jezreal-dev%2Fascii-art-web-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jezreal-dev%2Fascii-art-web-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jezreal-dev%2Fascii-art-web-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jezreal-dev","download_url":"https://codeload.github.com/jezreal-dev/ascii-art-web-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jezreal-dev%2Fascii-art-web-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34083848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-08T23:00:55.138Z","updated_at":"2026-06-08T23:01:25.021Z","avatar_url":"https://github.com/jezreal-dev.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ASCII Art Web Generator\n\n[![Go Version](https://img.shields.io/github/go-mod/go-version/jezreal-dev/ascii-art-web-generator?color=00ADD8\u0026style=for-the-badge\u0026logo=go)](https://golang.org/)\n[![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge\u0026logo=docker\u0026logoColor=white)](https://www.docker.com/)\n[![CI](https://img.shields.io/github/actions/workflow/status/jezreal-dev/ascii-art-web-generator/go-ci.yml?branch=main\u0026style=for-the-badge\u0026logo=github-actions\u0026label=CI)](https://github.com/jezreal-dev/ascii-art-web-generator/actions)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)\n\nAn interactive web application and JSON API that converts text into monospaced ASCII banner art. It features a dark glassmorphic UI, async form submissions, input validation, and containerized deployment workflow.\n\n---\n\n## System Architecture\n\n```mermaid\ngraph TD\n    Client[Browser / API Client] --\u003e|HTTP Requests| Router[Go DefaultServeMux]\n    \n    subgraph Handlers [Request Handlers]\n        Router --\u003e|GET /| Home[homeHandler]\n        Router --\u003e|GET /generator| Gen[generatorHandler]\n        Router --\u003e|POST /ascii-art| Form[asciiArtHandler]\n        Router --\u003e|POST /api/ascii-art| JSON[apiAsciiArtHandler]\n        Router --\u003e|GET /privacy \u0026 /terms| Legal[legalHandler]\n    end\n\n    subgraph Core [Processing Engine]\n        Form --\u003e|Process Text| Art[AsciiArt Engine]\n        JSON --\u003e|Process JSON| Art\n        Art --\u003e|Read Font Data| Banners[(banners/*.txt)]\n    end\n\n    subgraph Presentation [Views]\n        Home --\u003e|Render Landing| LandingTmpl[landing.html]\n        Gen --\u003e|Render Tool| HomeTmpl[home.html]\n        Legal --\u003e|Render Terms| LegalTmpl[legal.html]\n        Router --\u003e|Render Errors| ErrorTmpl[error.html]\n    end\n```\n\n---\n\n## Features\n\n- **Asynchronous Generation:** Dynamic AJAX fetch requests handle text-to-art conversion in real-time, eliminating page refreshes.\n- **Modern Glassmorphic UI:** Built with raw CSS styling. Fully responsive grid layouts, custom font selectors, and micro-interactions.\n- **Copy to Clipboard:** Quick clipboard copier with dynamic transition alerts.\n- **Rune Bounds Validation:** Input validation ensures characters are strictly within printable ASCII range `[32, 126]` to prevent indexing exceptions.\n- **Docker Ready:** Multi-stage Dockerfile configured for minimal image size.\n- **Continuous Integration:** Automated build and test suite runs on every GitHub branch push.\n\n---\n\n## Tech Stack\n\n- **Backend:** Go (Golang)\n- **Frontend:** HTML5, CSS3, JavaScript (ES6)\n- **CI/CD \u0026 DevOps:** GitHub Actions, Docker, Render Cloud\n- **Banners:** Standard, Shadow, Thinkertoy\n\n---\n\n## Setup \u0026 Running\n\n### Prerequisites\n\n- Go (1.18+)\n- Docker (optional)\n\n### Local Build\n\n1. Clone and navigate to the project directory:\n   ```bash\n   git clone https://github.com/jezreal-dev/ascii-art-web-generator.git\n   cd ascii-art-web-generator\n   ```\n\n2. Start the server:\n   ```bash\n   go run .\n   ```\n\n3. Open your browser:\n   - **Landing Page:** `http://localhost:8080/`\n   - **Generator:** `http://localhost:8080/generator`\n\n---\n\n### Docker Deployment\n\n1. Build the image:\n   ```bash\n   docker build -t ascii-art-generator .\n   ```\n\n2. Run the container:\n   ```bash\n   docker run -p 8080:8080 ascii-art-generator\n   ```\n\n3. Access the generator at `http://localhost:8080/generator`.\n\n---\n\n## JSON REST API\n\nThe service exposes a JSON endpoint for third-party scripts or API integration.\n\n### Generate Art\n\n- **Endpoint:** `POST /api/ascii-art`\n- **Headers:** `Content-Type: application/json`\n\n#### Request Schema\n```json\n{\n  \"text\": \"Hello World\",\n  \"banner\": \"standard\"\n}\n```\n\n#### Response (200 OK)\n```json\n{\n  \"result\": \" _    _          _   _          \\n| |  | |        | | | |         \\n| |__| |   ___  | | | |   ___   \\n|  __  |  / _ \\\\ | | | |  / _ \\\\  \\n| |  | | |  __/ | | | | | (_) | \\n|_|  |_|  \\\\___| |_| |_|  \\\\___/  \\n                                \\n                                \\n\"\n}\n```\n\n#### Error (400 Bad Request)\n```json\n{\n  \"error\": \"400 Bad Request: Input contains invalid characters. Only printable ASCII characters (32-126) are allowed.\"\n}\n```\n\n---\n\n## Testing\n\nRun unit tests and template compilation verification:\n\n```bash\ngo test -v ./...\n```\n\n---\n\n## Directory Layout\n\n```\nascii-art-web-generator/\n├── .github/workflows/   # CI workflows\n├── banners/             # ASCII character banner resources (.txt)\n├── templates/           # HTML views\n│   ├── landing.html     # Portfolio landing page\n│   ├── home.html        # Interactive generator interface\n│   ├── legal.html       # Dynamic Privacy and Terms\n│   └── error.html       # Customized error pages\n├── main.go              # Server routes and port binding\n├── server.go            # Request handlers and generation logic\n├── server_test.go       # Core logic and template compilation tests\n├── Dockerfile           # Multi-stage build configuration\n├── go.mod               # Go module description\n└── README.md            # Documentation\n```\n\n---\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjezreal-dev%2Fascii-art-web-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjezreal-dev%2Fascii-art-web-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjezreal-dev%2Fascii-art-web-generator/lists"}