Skip to content

feat: add ascii-renderer skill#1

Merged
i8ramin merged 3 commits into
mainfrom
feat/ascii-renderer
Feb 9, 2026
Merged

feat: add ascii-renderer skill#1
i8ramin merged 3 commits into
mainfrom
feat/ascii-renderer

Conversation

@i8ramin

@i8ramin i8ramin commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Add a new skill for generating ASCII art from images or text using the shape vector algorithm.

Features

  • Text-to-ASCII: Render any text as ASCII art banners with customizable fonts
  • Image-to-ASCII: Convert images to ASCII with sharp edge detection
  • Shape vector algorithm: Superior quality vs traditional brightness mapping
  • Flexible options: Adjustable contrast, size, invert, and font settings
  • Built-in demo: Test without needing an image

Usage Examples

# Text banner
bun run scripts/render.ts --text "DUPE.COM" --cols 80

# Filled letters
bun run scripts/render.ts --text "HELLO" --invert

# Image conversion
bun run scripts/render.ts photo.png --cols 80 --rows 40

Example Output

     =======w:   a===   a===  a======ww  ,=========:
     @@@P#@@@w  &@@@   J@@@  ]@@@PP#@@# `@@@@PPPPP'
     @@@i  `@@@i &@@D   J@@@  ]@@@,,W@@@ ,@@@lwwwwc
     @@@i   @@@i &@@D   ]@@@  ]@@@@@@@P' `@@@@PPPPP
     @@@l,;w@@@' ]@@@c.,W@@@  ]@@@       ,@@@l.,.,..
     @@@@@@@@P'   T@@@@@@@P'  ]@@@       `@@@@@@@@@i

References


🤖 Generated with Claude Code

i8ramin and others added 2 commits February 9, 2026 14:22
Shape vector algorithm for high-quality ASCII art generation.

Features:
- Text-to-ASCII with customizable fonts
- Image-to-ASCII conversion with sharp edge detection
- Adjustable contrast, size, and invert options
- Built-in demo mode

Based on Alex Harri's ASCII rendering research.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add biome.json with 2 spaces, single quotes, no semicolons
- Add package.json with sharp dependency and lint scripts
- Format all JS/TS files with biome
- Disable noNonNullAssertion and useIterableCallbackReturn rules

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
package.json uses "type": "module" which requires CommonJS
scripts to use .cjs extension. Updated all references.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@i8ramin i8ramin merged commit b8b3cf8 into main Feb 9, 2026
1 check passed
@i8ramin i8ramin removed the request for review from Copilot March 23, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant