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

astroshot

v0.2.1

Published

One CLI for deterministic React, terminal, and movie UI captures — installable with a plain npx astroshot

Downloads

223

Readme

astroshot

One command for deterministic React, Ink, and arbitrary terminal screenshots — plus journey movies into .astroshot/.

npx astroshot --help
npx astroshot init react
npx astroshot react ./react.shot.tsx -o ./react.png
npx astroshot ink ./ink.shot.tsx -o ./ink.png
npx astroshot pty ./pty.shot.yaml -o ./terminal.png
npx astroshot movie which-source "ratatui truecolor dashboard"

No registry flags, no scope configuration, no --registry override.

What this package is

astroshot is the public, unscoped entry point for @archastro/astroshot. It ships the unified CLI and all three capture engines (@archastro/react-shot, @archastro/tui-shot, @archastro/movie-harness) inside its own tarball using npm bundleDependencies.

That matters because many developers have a ~/.npmrc that maps the whole @archastro scope to a private registry:

@archastro:registry=https://npm.pkg.github.com

With that config, npx @archastro/astroshot fails with E404 — npm never asks the public registry for the package at all. Because this package bundles everything scoped, nothing scoped is fetched at install time, so a plain npx astroshot works regardless of scope configuration.

The scoped packages remain fully supported and unchanged; use them directly if you prefer, or if you already have the scope pointed at the public registry.

Install

# one-off
npx astroshot --help

# project dev dependency
npm install --save-dev astroshot

Install the shared Chromium runtime once before browser-backed captures:

npx astroshot install-browser

On Linux CI images that also need Chromium's system libraries, add --with-deps.

Peer dependencies you supply

This package deliberately does not pin your framework versions. Install the peers for the modes you use:

| Mode | Peers | |------|-------| | astroshot react | react, react-dom (>=18) | | astroshot ink | ink@^7.1, react@^19 | | astroshot pty, astroshot movie | none |

npm install --save-dev ink@^7.1 react@^19

node-pty is an optional dependency. PTY and movie-PTY capture need it; every other mode works without it, so an environment that cannot build the native addon still installs successfully.

Documentation

Full fixture APIs, the PTY action contract, manifest formats, and movie sources are documented in the repository README and in @archastro/astroshot.

Fixtures, imported modules, and PTY commands execute with the current user's permissions. Review untrusted files before capture and never include credentials or private customer data in fixtures or generated images.