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

@kingsword/asg

v0.1.0

Published

Asciinema SVG Generator - Convert .cast files to animated SVG

Readme

@kingsword/asg (Asciinema SVG Generator)

Convert asciinema .cast recordings into animated SVGs.

This is the npm distribution of ASG. It provides the asg CLI command via Node.js (WASI component under the hood).

Installation

  • Global install:

    • npm: npm i -g @kingsword/asg
    • pnpm: pnpm add -g @kingsword/asg
    • yarn: yarn global add @kingsword/asg
  • One-off usage (no global install):

    • npx: npx -p @kingsword/asg asg --help

Note: The package name is @kingsword/asg, but the installed command is asg (from the bin field).

Usage

Same as described in the root README. Quick reference:

Usage: asg [OPTIONS] <INPUT> <OUTPUT>

Arguments:
  <INPUT>   Input .cast file or URL
  <OUTPUT>  Output file path (.svg)

Options:
      --cols <COLS>                Fixed terminal width (columns)
      --rows <ROWS>                Fixed terminal height (rows)
      --font-family <FONT>         Font family override
      --font-size <PX>             Font size [default: 14]
      --theme <NAME>               Theme name (e.g., asciinema, nord, dracula)
      --bg <COLOR>                 Background color, e.g. #000, transparent
      --fps <FPS>                  Frames per second [default: 30]
      --speed <MULTIPLIER>         Speed multiplier [default: 1.0]
      --no-loop                    Disable animation loop
      --line-height <FLOAT>        Line height [default: 1.4]
      --at <SECS>                  Timestamp of frame to render (static image)
      --from <SECS>                Lower range of timeline to render
      --to <SECS>                  Upper range of timeline to render
      --no-cursor                  Disable cursor rendering
      --window                     Render with window decorations
      --padding <PX>               Distance between text and image bounds [default: 10]
      --padding-x <PX>             Override padding on x axis
      --padding-y <PX>             Override padding on y axis
      --timeline <MODE>            Timeline mode: original|fixed [default: original]
  -v, --verbose                    Verbose output (-v, -vv, -vvv)
  -h, --help                       Print help information

Examples:

  • Convert a local .cast to SVG:
asg examples/demo.cast examples/demo.svg
  • Render a single frame at 2.5s to a static SVG:
asg --at 2.5 examples/demo.cast examples/still.svg
  • Faster playback and different theme:
asg --speed 1.5 --theme dracula examples/demo.cast examples/fast.svg

Notes

  • On Node.js, asg uses a WASI component under the hood. Paths should be provided as normal host paths; the CLI maps them internally as needed.
  • If another global package also provides an asg binary, whichever is installed last will win. You can uninstall the conflicting package or use npx -p @kingsword/asg asg ....