# ascii.rest
> Animated ascii art for web pages, READMEs and terminals: 217 pieces, a banner for any text and an SVG writer, in TypeScript with no dependencies. npm install ascii.rest, one script tag, or the source copied in through a shadcn registry.
## rules for AI coding agents
If your agent can't read web pages, paste these rules into its prompt.
- The npm package is `ascii.rest`. It has no dependencies, and only `ascii.rest/react` needs React.
- A piece's name has dashes, like `night-coast`. Its export from `ascii.rest/pieces` is in camelCase, like `nightCoast`.
- `npx ascii.rest list` prints every piece's name.
- React: `import { Ascii, Banner } from "ascii.rest/react"`. Both are client components already (`"use client"`).
- In a React server component, pass a piece's name, ``, not an imported module.
- Plain HTML: ``, then `` or ``. Always write the closing tag.
- Astro: `import Ascii from "ascii.rest/astro"` and `import Banner from "ascii.rest/astro/banner"`.
- Text pieces draw in a `
`. Coloured pieces (scenes, logos, companies, distros) and banners with a colour draw on a `