Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

<br>

240 pieces for React, Next.js, Astro or plain HTML.<br>
241 pieces for React, Next.js, Astro or plain HTML.<br>
The banner above is drawn by ascii.rest: [make your own](https://ascii.rest/banner/).

[ascii.rest](https://ascii.rest) · [docs](https://ascii.rest/docs/) · [install](#install) · [make your own](#make-your-own) · [pieces](#pieces) · [contributing](CONTRIBUTING.md)
Expand All @@ -38,7 +38,7 @@ The banner above is drawn by ascii.rest: [make your own](https://ascii.rest/bann

<br>

Written in TypeScript by [@bas3line](https://github.com/bas3line). 240 pieces, from full-colour scenes to loaders, charts, language logos, Linux distros, spinning shapes and physics. The donut above turns on a page with one tag: `<ascii-art piece="donut"></ascii-art>`. See them all at [ascii.rest](https://ascii.rest).
Written in TypeScript by [@bas3line](https://github.com/bas3line). 241 pieces, from full-colour scenes to loaders, charts, language logos, Linux distros, spinning shapes and physics. The donut above turns on a page with one tag: `<ascii-art piece="donut"></ascii-art>`. See them all at [ascii.rest](https://ascii.rest).

<p align="center">
<a href="https://ascii.rest/night-coast/"><img src="https://ascii.rest/og/night-coast.png" width="32%" alt="night coast"></a>
Expand Down Expand Up @@ -338,7 +338,7 @@ pre.art { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberatio
| data | [bar chart](https://ascii.rest/bar-chart/), [candlesticks](https://ascii.rest/candlesticks/), [cpu meters](https://ascii.rest/cpu-meters/), [equalizer](https://ascii.rest/equalizer/), [gauge](https://ascii.rest/gauge/), [heartbeat](https://ascii.rest/heartbeat/), [heatmap](https://ascii.rest/heatmap/), [radar](https://ascii.rest/radar/), [sparkline](https://ascii.rest/sparkline/), [uptime bar](https://ascii.rest/uptime-bar/) |
| type | [big text](https://ascii.rest/big-text/), [dissolve](https://ascii.rest/dissolve/), [glitch](https://ascii.rest/glitch/), [marquee](https://ascii.rest/marquee/), [morse](https://ascii.rest/morse/), [scramble](https://ascii.rest/scramble/), [split-flap](https://ascii.rest/split-flap/), [typewriter](https://ascii.rest/typewriter/), [wave text](https://ascii.rest/wave-text/) |
| logos | [c](https://ascii.rest/c/), [c#](https://ascii.rest/csharp/), [c++](https://ascii.rest/cpp/), [clojure](https://ascii.rest/clojure/), [css](https://ascii.rest/css/), [dart](https://ascii.rest/dart/), [elixir](https://ascii.rest/elixir/), [elm](https://ascii.rest/elm/), [erlang](https://ascii.rest/erlang/), [go](https://ascii.rest/go/), [haskell](https://ascii.rest/haskell/), [html](https://ascii.rest/html/), [java](https://ascii.rest/java/), [javascript](https://ascii.rest/javascript/), [julia](https://ascii.rest/julia/), [kotlin](https://ascii.rest/kotlin/), [lua](https://ascii.rest/lua/), [ocaml](https://ascii.rest/ocaml/), [perl](https://ascii.rest/perl/), [php](https://ascii.rest/php/), [python](https://ascii.rest/python/), [r](https://ascii.rest/r/), [ruby](https://ascii.rest/ruby/), [rust](https://ascii.rest/rust/), [scala](https://ascii.rest/scala/), [svelte](https://ascii.rest/svelte/), [swift](https://ascii.rest/swift/), [typescript](https://ascii.rest/typescript/), [zig](https://ascii.rest/zig/) |
| companies | [a0](https://ascii.rest/a0/), [agentmail](https://ascii.rest/agentmail/), [apple](https://ascii.rest/apple/), [autumn](https://ascii.rest/autumn/), [cloudflare](https://ascii.rest/cloudflare/), [coderabbit](https://ascii.rest/coderabbit/), [collabute](https://ascii.rest/collabute/), [command code](https://ascii.rest/command-code/), [databuddy](https://ascii.rest/databuddy/), [greptile](https://ascii.rest/greptile/), [helium](https://ascii.rest/helium/), [helixdb](https://ascii.rest/helixdb/), [helmcode](https://ascii.rest/helmcode/), [keiki](https://ascii.rest/keiki/), [mintlify](https://ascii.rest/mintlify/), [orchid](https://ascii.rest/orchid/), [planetscale](https://ascii.rest/planetscale/), [playstation](https://ascii.rest/playstation/), [polar](https://ascii.rest/polar/), [supabase](https://ascii.rest/supabase/), [supermemory](https://ascii.rest/supermemory/), [vercel](https://ascii.rest/vercel/) |
| companies | [a0](https://ascii.rest/a0/), [agentmail](https://ascii.rest/agentmail/), [apple](https://ascii.rest/apple/), [autumn](https://ascii.rest/autumn/), [cloudflare](https://ascii.rest/cloudflare/), [coderabbit](https://ascii.rest/coderabbit/), [collabute](https://ascii.rest/collabute/), [command code](https://ascii.rest/command-code/), [databuddy](https://ascii.rest/databuddy/), [greptile](https://ascii.rest/greptile/), [gta vi](https://ascii.rest/gta-vi/), [helium](https://ascii.rest/helium/), [helixdb](https://ascii.rest/helixdb/), [helmcode](https://ascii.rest/helmcode/), [keiki](https://ascii.rest/keiki/), [mintlify](https://ascii.rest/mintlify/), [orchid](https://ascii.rest/orchid/), [planetscale](https://ascii.rest/planetscale/), [playstation](https://ascii.rest/playstation/), [polar](https://ascii.rest/polar/), [supabase](https://ascii.rest/supabase/), [supermemory](https://ascii.rest/supermemory/), [vercel](https://ascii.rest/vercel/) |
| distros | [almalinux](https://ascii.rest/almalinux/), [alpine linux](https://ascii.rest/alpine-linux/), [arch linux](https://ascii.rest/arch-linux/), [centos](https://ascii.rest/centos/), [debian](https://ascii.rest/debian/), [deepin](https://ascii.rest/deepin/), [elementary os](https://ascii.rest/elementary-os/), [endeavouros](https://ascii.rest/endeavouros/), [fedora](https://ascii.rest/fedora/), [gentoo](https://ascii.rest/gentoo/), [kali linux](https://ascii.rest/kali-linux/), [linux mint](https://ascii.rest/linux-mint/), [manjaro](https://ascii.rest/manjaro/), [nixos](https://ascii.rest/nixos/), [omarchy](https://ascii.rest/omarchy/), [opensuse](https://ascii.rest/opensuse/), [pop!_os](https://ascii.rest/pop-os/), [red hat](https://ascii.rest/red-hat/), [rocky linux](https://ascii.rest/rocky-linux/), [tux](https://ascii.rest/tux/), [ubuntu](https://ascii.rest/ubuntu/), [void linux](https://ascii.rest/void-linux/), [zorin os](https://ascii.rest/zorin-os/) |
| shapes | [cube](https://ascii.rest/cube/), [dna helix](https://ascii.rest/dna-helix/), [donut](https://ascii.rest/donut/), [glxgears](https://ascii.rest/glxgears/), [gyroscope](https://ascii.rest/gyroscope/), [heart](https://ascii.rest/heart/), [icosahedron](https://ascii.rest/icosahedron/), [mobius strip](https://ascii.rest/mobius-strip/), [spring](https://ascii.rest/spring/), [tesseract](https://ascii.rest/tesseract/), [torus knot](https://ascii.rest/torus-knot/), [twisted ring](https://ascii.rest/twisted-ring/) |
| space | [black hole](https://ascii.rest/black-hole/), [earth](https://ascii.rest/earth/), [eclipse](https://ascii.rest/eclipse/), [galaxy](https://ascii.rest/galaxy/), [moon phases](https://ascii.rest/moon-phases/), [planet](https://ascii.rest/planet/), [rocket](https://ascii.rest/rocket/), [saptarishi](https://ascii.rest/saptarishi/), [solar system](https://ascii.rest/solar-system/), [starfield](https://ascii.rest/starfield/), [three-body](https://ascii.rest/three-body/) |
Expand All @@ -349,7 +349,7 @@ pre.art { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberatio
| generative | [epicycles](https://ascii.rest/epicycles/), [flow field](https://ascii.rest/flow-field/), [glider gun](https://ascii.rest/glider-gun/), [hilbert curve](https://ascii.rest/hilbert-curve/), [julia set](https://ascii.rest/julia-set/), [langton's ant](https://ascii.rest/langtons-ant/), [mandelbrot](https://ascii.rest/mandelbrot/), [maze](https://ascii.rest/maze/), [plasma](https://ascii.rest/plasma/), [reaction diffusion](https://ascii.rest/reaction-diffusion/), [rule 30](https://ascii.rest/rule-30/), [sierpinski](https://ascii.rest/sierpinski/), [voronoi](https://ascii.rest/voronoi/) |
| effects | [doom fire](https://ascii.rest/doom-fire/), [fireworks](https://ascii.rest/fireworks/), [matrix rain](https://ascii.rest/matrix-rain/), [rotozoomer](https://ascii.rest/rotozoomer/), [sparks](https://ascii.rest/sparks/), [synthwave](https://ascii.rest/synthwave/), [tunnel](https://ascii.rest/tunnel/), [tv static](https://ascii.rest/tv-static/) |

The logos and distros are drawn from [devicon](https://github.com/devicons/devicon) (MIT) and [Simple Icons](https://github.com/simple-icons/simple-icons) (CC0); omarchy's mark there is its own, MIT licensed, from [omarchy.org](https://omarchy.org). The companies are drawn from Simple Icons too, and a0, agentmail, autumn, coderabbit, collabute, command code, databuddy, greptile, helixdb, helmcode, keiki, orchid, polar and supermemory from their own marks on [a0.dev](https://a0.dev), [agentmail.to](https://www.agentmail.to), [useautumn.com](https://useautumn.com), [coderabbit.ai](https://www.coderabbit.ai/press-kit), [collabute.ai](https://collabute.ai), [commandcode.ai](https://commandcode.ai), [databuddy.cc](https://www.databuddy.cc), [greptile.com](https://www.greptile.com), [helix-db.com](https://www.helix-db.com), [helmcode.com](https://helmcode.com/brand), [onkeiki.com](https://onkeiki.com), [orchid.ai](https://orchid.ai/brand), [polar.sh](https://polar.sh/brand) and [supermemory.ai](https://supermemory.ai). Each is a trademark of its owner, shown here to name the language, the distribution or the company.
The logos and distros are drawn from [devicon](https://github.com/devicons/devicon) (MIT) and [Simple Icons](https://github.com/simple-icons/simple-icons) (CC0); omarchy's mark there is its own, MIT licensed, from [omarchy.org](https://omarchy.org). The companies are drawn from Simple Icons too, and a0, agentmail, autumn, coderabbit, collabute, command code, databuddy, greptile, gta vi, helixdb, helmcode, keiki, orchid, polar and supermemory from their own marks on [a0.dev](https://a0.dev), [agentmail.to](https://www.agentmail.to), [useautumn.com](https://useautumn.com), [coderabbit.ai](https://www.coderabbit.ai/press-kit), [collabute.ai](https://collabute.ai), [commandcode.ai](https://commandcode.ai), [databuddy.cc](https://www.databuddy.cc), [greptile.com](https://www.greptile.com), [rockstargames.com](https://www.rockstargames.com/VI), [helix-db.com](https://www.helix-db.com), [helmcode.com](https://helmcode.com/brand), [onkeiki.com](https://onkeiki.com), [orchid.ai](https://orchid.ai/brand), [polar.sh](https://polar.sh/brand) and [supermemory.ai](https://supermemory.ai). Each is a trademark of its owner, shown here to name the language, the distribution or the company.

## Contributing

Expand Down
4 changes: 2 additions & 2 deletions skills/ascii-rest/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
name: ascii-rest
description: Add animated ascii art with ascii.rest to web pages, GitHub READMEs and terminals. 240 ready pieces (scenes, spinners, charts, language, company and Linux distro logos, 3D shapes, weather, creatures), text in big block-letter banners, any image or logo turned to ascii, and a kit for making new ones. Use when the user wants ascii art, a retro or terminal look, a text animation or loader, an animated README banner or logo, a CLI splash screen, or names ascii.rest, in React, Next.js, Astro, Vue, Svelte, plain HTML, a README or a terminal.
description: Add animated ascii art with ascii.rest to web pages, GitHub READMEs and terminals. 241 ready pieces (scenes, spinners, charts, language, company and Linux distro logos, 3D shapes, weather, creatures), text in big block-letter banners, any image or logo turned to ascii, and a kit for making new ones. Use when the user wants ascii art, a retro or terminal look, a text animation or loader, an animated README banner or logo, a CLI splash screen, or names ascii.rest, in React, Next.js, Astro, Vue, Svelte, plain HTML, a README or a terminal.
---

<!-- Generated by scripts/skill.ts from scripts/skill/SKILL.md. Edit that, then run npm run gen. -->

# ascii.rest

ascii.rest is an npm package, `ascii.rest`, with no dependencies: 240 animated pieces of ascii art, each one a small TypeScript module, plus banners (any text in block letters) and a kit to make more. Every piece plays only while it is on screen and holds one still frame for readers who prefer reduced motion, so it needs no extra code for either.
ascii.rest is an npm package, `ascii.rest`, with no dependencies: 241 animated pieces of ascii art, each one a small TypeScript module, plus banners (any text in block letters) and a kit to make more. Every piece plays only while it is on screen and holds one still frame for readers who prefer reduced motion, so it needs no extra code for either.

## Work in this order

Expand Down
5 changes: 3 additions & 2 deletions skills/ascii-rest/references/pieces.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- Generated by scripts/skill.ts from each piece's meta. Run npm run gen after adding one. -->
# Every piece

240 pieces. The name is what `<Ascii piece="…">`, `<ascii-art piece="…">`, and `npx ascii.rest …` take; the export is what `import { … } from "ascii.rest/pieces"` gives. A **canvas** piece has colours of its own and draws on a `<canvas>`: size it with `width`. A **text** piece draws in a `<pre>` in the page's colour: size it with `font-size`. Options are the piece's own, with their defaults; pass them as `options`. Each piece plays at https://ascii.rest/<name>/. Only logos, companies and distros have hosted README SVGs, at https://ascii.rest/svg/<name>.svg and .dark.svg; any other piece needs `svg()` from `ascii.rest/svg` and a committed file.
241 pieces. The name is what `<Ascii piece="…">`, `<ascii-art piece="…">`, and `npx ascii.rest …` take; the export is what `import { … } from "ascii.rest/pieces"` gives. A **canvas** piece has colours of its own and draws on a `<canvas>`: size it with `width`. A **text** piece draws in a `<pre>` in the page's colour: size it with `font-size`. Options are the piece's own, with their defaults; pass them as `options`. Each piece plays at https://ascii.rest/<name>/. Only logos, companies and distros have hosted README SVGs, at https://ascii.rest/svg/<name>.svg and .dark.svg; any other piece needs `svg()` from `ascii.rest/svg` and a committed file.

## scenes (34)

Expand Down Expand Up @@ -125,7 +125,7 @@
| `typescript` | `typescript` | canvas | 56×28 | 30 | ts on a blue square, glinting now and then | `{"shine":5}` |
| `zig` | `zig` | canvas | 61×28 | 30 | the slanted z in brackets, glinting now and then | `{"shine":5}` |

## companies (22)
## companies (23)

| name | export | draws | size | fps | what you see | options |
| --- | --- | --- | --- | --- | --- | --- |
Expand All @@ -139,6 +139,7 @@
| `command-code` | `commandCode` | canvas | 64×32 | 30 | the command key in a rounded square, glinting now and then | `{"shine":5}` |
| `databuddy` | `databuddy` | canvas | 56×28 | 30 | the databuddy bunny, glinting now and then | `{"shine":5}` |
| `greptile` | `greptile` | canvas | 49×28 | 30 | the g folded into a cube, in green, glinting now and then | `{"shine":5}` |
| `gta-vi` | `gtaVi` | canvas | 70×24 | 30 | the vi of grand theft auto vi, in pink, glinting now and then | `{"shine":5}` |
| `helium` | `helium` | canvas | 49×28 | 30 | the six-point asterisk, in blue, glinting now and then | `{"shine":5}` |
| `helixdb` | `helixdb` | canvas | 64×32 | 30 | the stepped rungs of a helix between two posts, glinting now and then | `{"shine":5}` |
| `helmcode` | `helmcode` | canvas | 53×30 | 30 | the helmcode hexagon in its violet, glinting now and then | `{"shine":5}` |
Expand Down
3 changes: 2 additions & 1 deletion src/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const load = {
"go": () => import("./pieces/go.ts"),
"green-storm": () => import("./pieces/green-storm.ts"),
"greptile": () => import("./pieces/greptile.ts"),
"gta-vi": () => import("./pieces/gta-vi.ts"),
"gyroscope": () => import("./pieces/gyroscope.ts"),
"harmonograph": () => import("./pieces/harmonograph.ts"),
"haskell": () => import("./pieces/haskell.ts"),
Expand Down Expand Up @@ -252,7 +253,7 @@ export type PieceName = keyof typeof load;
export const names = Object.keys(load) as PieceName[];

/** The coloured pieces, which draw on a <canvas> rather than a <pre>. */
export const canvas: ReadonlySet<PieceName> = new Set<PieceName>(["a0","agentmail","almalinux","alpine-dawn","alpine-linux","amer-fort","apple","arch-linux","aurora-fjord","autumn","black-prism","c","centos","clojure","cloud-sea","cloudflare","coderabbit","collabute","command-city","command-code","cpp","csharp","css","dart","databuddy","debian","deep-reef","deepin","desert-night","earthrise","edge-orbit","elementary-os","elixir","elm","endeavouros","erlang","fedora","gangaur-ghat","gentoo","go","green-storm","greptile","haskell","helium","helixdb","helmcode","html","jal-mahal","java","javascript","julia","jungle-falls","kali-linux","keiki","kite-festival","kotlin","kyoto-dusk","lake-pichola","lantern-lake","lava-wall","linux-mint","lua","manjaro","marine-drive","mintlify","misty-forest","night-coast","night-highway","nixos","ocaml","ocean-sunset","omarchy","opensuse","orchid","perl","php","planet-scale","planetscale","playstation","polar","pop-os","prism-city","python","r","red-hat","rocky-linux","ruby","rust","salt-flat","saturn-rise","scala","snow-train","storm-plains","supabase","supermemory","svelte","swift","taj-dawn","tokyo-rain","tux","typescript","ubuntu","varanasi-ghats","vercel","void-linux","volcano-night","zig","zorin-os"]);
export const canvas: ReadonlySet<PieceName> = new Set<PieceName>(["a0","agentmail","almalinux","alpine-dawn","alpine-linux","amer-fort","apple","arch-linux","aurora-fjord","autumn","black-prism","c","centos","clojure","cloud-sea","cloudflare","coderabbit","collabute","command-city","command-code","cpp","csharp","css","dart","databuddy","debian","deep-reef","deepin","desert-night","earthrise","edge-orbit","elementary-os","elixir","elm","endeavouros","erlang","fedora","gangaur-ghat","gentoo","go","green-storm","greptile","gta-vi","haskell","helium","helixdb","helmcode","html","jal-mahal","java","javascript","julia","jungle-falls","kali-linux","keiki","kite-festival","kotlin","kyoto-dusk","lake-pichola","lantern-lake","lava-wall","linux-mint","lua","manjaro","marine-drive","mintlify","misty-forest","night-coast","night-highway","nixos","ocaml","ocean-sunset","omarchy","opensuse","orchid","perl","php","planet-scale","planetscale","playstation","polar","pop-os","prism-city","python","r","red-hat","rocky-linux","ruby","rust","salt-flat","saturn-rise","scala","snow-train","storm-plains","supabase","supermemory","svelte","swift","taj-dawn","tokyo-rain","tux","typescript","ubuntu","varanasi-ghats","vercel","void-linux","volcano-night","zig","zorin-os"]);

/** Whether a name is a piece in the library. */
export const isPiece = (name: string): name is PieceName => Object.hasOwn(load, name);
Loading
Loading