ASCII art is one of the oldest tricks in computer graphics, rendering an image as a grid of characters rather than pixels, a technique that predates color monitors and has never quite gone away. textmode.js, a small open-source library from developer humanbydefinition, is a current attempt to give that aesthetic a rendering pipeline built for 2026 rather than 1986: real-time, GPU-accelerated, and framework-agnostic.
What it actually does
The library is written in TypeScript, has zero runtime dependencies, and leans entirely on WebGL2 for rendering, meaning target browsers need WebGL2 support, which by now is nearly universal. It can convert live video, static images, or any canvas-drawable content into ASCII/text-mode output in real time, and it exports that output in several formats through a companion package: plain TXT, SVG, raster images, animated GIFs, and WebM video. The default typeface shipped with the library, UrsaFont by UrsaFrank, is released under a CC0 license, so there’s no font-licensing question hanging over anything built with it.
Documentation lives at code.textmode.art, and there’s a browser-based editor at editor.textmode.art for trying the library without any local setup, useful for anyone who wants to see what a webcam feed or a generative sketch looks like rendered as live characters before committing to an install.
The p5.js connection
The more interesting piece for working creative coders is p5.asciify, a companion add-on that hooks directly into p5.js’s WEBGL rendering mode. Rather than requiring an artist to rebuild a sketch around textmode.js’s own API, p5.asciify transforms an existing p5.js canvas, including its textures, into real-time ASCII/textmode output as an overlay or alternate render mode. For the large community of artists already working in p5.js, that’s the difference between “a new tool to learn” and “a filter you can drop onto work you’ve already written.”
The project is currently at version 0.8.1 on npm, distributed via npm, a UMD build on jsDelivr, and GitHub releases, and covered recently by Creative Applications Network as a tool worth watching in the generative-art tooling space.
Why ASCII art keeps coming back
Text-mode rendering has a specific appeal that outlasts its technical obsolescence: it’s legible at a glance as “made of characters” in a way that most generative filters aren’t, it compresses naturally to tiny file sizes, and it reads as handmade even when it’s driven entirely by a shader. A real-time, GPU-backed implementation removes the main practical objection to working in the format, that converting video or live input to ASCII used to mean either a slow CPU loop or a one-off static render. textmode.js’s bet is that once that bottleneck is gone, there’s still a real audience for the aesthetic, just one that wants it live, interactive, and running in a browser tab rather than a terminal.