npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

readmecast

v0.1.0

Published

Turn a Markdown file into a gorgeous, self-contained animated terminal demo SVG — no hand-authored tape files.

Downloads

143

Readme

readmecast

Turn a Markdown file into a gorgeous, self-contained animated terminal demo SVG — no hand-authored tape files, no recording session, no runtime.

readmecast reads the shell snippets you already wrote in your README, and renders an animated terminal that "types" each command character-by-character, pauses, then reveals its output line by line. The output is a single standalone SVG with pure-CSS @keyframes animation, so it animates even when embedded as a plain <img> — which is exactly how GitHub renders README images.

demo

The SVG above is the real output of readmecast examples/demo.md. On GitHub it animates.

Why

  • Your docs are the source of truth. Write the session once, in fenced code blocks, and let readmecast cast it. No .tape / cast files to keep in sync.
  • Animates on GitHub. Animated SVGs embedded with ![](demo.svg) / <img src="demo.svg"> do animate on GitHub. No GIF bloat, no external player.
  • Self-contained & safe. Pure CSS animation (no JavaScript). Commands are not executed — the output rendered is exactly the output you documented.
  • Dependency-light. Hand-rolled Markdown extraction and string-built SVG. No Markdown parser, no headless browser.

Install

npm install -g readmecast
# or run once, no install:
npx readmecast README.md -o demo.svg

Usage

Write your session in a fenced shell block (```bash, ```sh, ```shell, or ```console). Lines beginning with $ (or > ) are commands; the lines after a command, up to the next command, are its output:

```bash
$ npm install readmecast
added 1 package in 1.2s
$ readmecast README.md -o demo.svg
wrote demo.svg
```

Then cast it:

readmecast README.md -o demo.svg          # write an SVG
cat README.md | readmecast > demo.svg     # or pipe on stdin
readmecast README.md --theme light --title "my-cli" -o demo.svg

Embed the result in your README:

![demo](demo.svg)

Options

| Option | Description | Default | | --- | --- | --- | | -o, --out <file> | Write the SVG here. Omit to write to stdout. | stdout | | --theme <name> | Color theme: dark or light. | dark | | --width <cols> | Terminal width in columns. | 80 | | --speed <secs> | Typing speed in seconds per character. | 0.06 | | --title <text> | Window title shown in the title bar. | none | | --no-loop | Play the animation once instead of looping. | loops | | -h, --help | Show help. | | | -v, --version | Show version. | |

Programmatic API

readmecast is also a library. Both functions are pure (no I/O, no execution):

import { parseMarkdown, renderSvg, markdownToSvg } from "readmecast";

const steps = parseMarkdown("```bash\n$ echo hi\nhi\n```");
// → [{ command: "echo hi", output: "hi" }]

const svg = renderSvg(steps, { theme: "dark", title: "demo" });

// or in one shot:
const svg2 = markdownToSvg(myMarkdown, { theme: "light" });

How animation works on GitHub

GitHub strips <script> from SVGs but keeps CSS animations. readmecast encodes the whole demo as staggered @keyframes with animation-delay, so a single <img src="demo.svg"> plays the typing and reveal with no JavaScript and no external assets. That is why the SVG is the right format here — a GIF would be larger and lower quality, and an asciinema player needs JS that READMEs can't run.

Roadmap

  • --run: optionally execute the commands and capture live output (opt-in, off by default).

License

MIT © 2026 Abdulmunim Jemal