Open-source cookie consent manager and GDPR cookie banner for React, Next.js, Vue, Svelte, Astro and plain HTML, with Google Consent Mode v2 and IAB TCF support.
bas3line/ascii
Animated ascii art pieces for React, Next.js, Astro, plain HTML tags, SVG and the terminal, with 240 ready-made pieces.
- Stars
- 939
- Forks
- 54
- Open issues
- 5
- Last commit
- 3 days ago
What is it?
ascii.rest is a TypeScript library that draws animated ascii art on web pages. It ships 240 ready-made pieces, from text effects, charts and spinners to 3D shapes, physics simulations, scenes, and logos for programming languages, Linux distributions and companies.
The pieces can be used in several ways: as a React or Astro component, as a custom `<ascii-art>` HTML tag with no build step, or through `mount()` in plain TypeScript. A kit API builds new pieces from named looks, motions and widgets, and the same pieces can be exported as animated SVG for GitHub READMEs or played in a terminal, including as a splash screen.
The library also generates animated text banners through a URL query interface, and can convert an uploaded image into an ascii animation in the browser.
Key features
- 01Ready-made pieces for scenes, charts, spinners, 3D shapes, physics and logos.
- 02React and Astro components, plus a plain `<ascii-art>` HTML tag.
- 03Animated SVG export for embedding in GitHub READMEs.
- 04Terminal playback with a splash-screen API that uses only Node built-ins.
- 05Image-to-ascii conversion that runs in the browser.
Use cases
- Adding a small animated ascii element to a minimalist personal or docs site.
- Showing a loader or ascii banner in a CLI tool's startup output.
- Putting an animated logo or banner at the top of a GitHub README.
- Generating custom ascii art pieces with the kit API for a project's branding.
Quick start
- 1
Install the package from npm
npm install ascii.rest - 2
Try it in the terminal without installing
npx ascii.rest rust - 3
Use a piece in a React component
Things to know
- Most colourful pieces need 24-bit colour in a terminal, or fall back to a single ink with the mono option.
- Some features, such as the image-to-ascii tool, depend on the ascii.rest website.
Topics
FAQ
- What is ascii?
- Animated ascii art pieces for React, Next.js, Astro, plain HTML tags, SVG and the terminal, with 240 ready-made pieces. ascii.rest is a TypeScript library that draws animated ascii art on web pages. It ships 240 ready-made pieces, from text effects, charts and spinners to 3D shapes, physics simulations, scenes, and logos for programming languages, Linux distributions and companies.
- Is ascii free to use? What license does it have?
- ascii is open source under the MIT license. Check the license terms before using it in commercial products.
- Is ascii still maintained?
- Actively maintained. The last commit to ascii was on Oct 17, 2026.
- What can I use ascii for?
- Adding a small animated ascii element to a minimalist personal or docs site. Showing a loader or ascii banner in a CLI tool's startup output. Putting an animated logo or banner at the top of a GitHub README. Generating custom ascii art pieces with the kit API for a project's branding.
- How do I install ascii?
- Install the package from npm: npm install ascii.rest Try it in the terminal without installing: npx ascii.rest rust Use a piece in a React component
- Where can I get ascii?
- The source code and installation instructions are on GitHub: https://github.com/bas3line/ascii
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A Claude Code skill that generates Motion.dev web animations for React, Next.js, Svelte and Astro, with accessibility and performance guidance built in.
A collection of optimized, customizable SVG tech logos for developers, available as an npm package of React components.
A React and Next.js cursor animation library offering reusable cursor-follow effects, built on Tailwind CSS and motion.
A browser sketchpad for Material 3 Expressive app screens that turns your design into a prompt for AI coding tools.
A typing-practice web app that combines English vocabulary memorization with keyboard muscle-memory training, built for people who work in English on a keyboard.