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

@tjamescouch/slurp

v1.1.1

Published

Self-extracting shell archives for AI agents

Readme

slurp

Pure data archives with embedded OWL spec. Pack files into a single .slurp bundle that's human-readable, LLM-friendly, and self-documenting.

Archives are not executable — they're data files with an embedded natural language format specification. Any tool or agent that reads the spec can extract them.

Install

npm install -g slurp

Or use directly:

node slurp.js pack file1.js file2.js -o patch.slurp

Quick Start

# Pack files into an archive
slurp pack src/app.js src/utils.js -o update.slurp

# Pack a directory
slurp pack src/ -o src-backup.slurp

# Extract via Node.js
slurp apply update.slurp

Commands

| Command | Description | |---------|-------------| | slurp pack <files/dirs...> | Create a .slurp archive | | slurp list <archive> | List files in an archive | | slurp info <archive> | Show archive metadata | | slurp apply <archive> | Extract files (Node.js) | | slurp verify <archive> | Verify SHA-256 checksums |

Pack Options

-o, --output <path>       Output file (default: stdout)
-n, --name <name>         Archive name
-d, --description <desc>  Description
-z, --compress            Compress archive (v2 gzip+base64)
-e, --encrypt             Encrypt archive (v3 AES-256-GCM)
-x, --exclude <glob>      Exclude files matching glob (repeatable)
-b, --base-dir <dir>      Base directory for relative paths
--no-checksum             Skip SHA-256 checksums

Archive Formats

v4 (default) — Pure data

Human-readable delimited file blocks. No shell commands, no shebang — just data with an embedded format spec.

# --- SLURP v4 ---
# <embedded OWL spec describing the format>
#
# name: my-patch
# files: 2
# MANIFEST:
#   src/app.js    1.2 KB  sha256:abcdef...
#   logo.png      4.5 KB  sha256:fedcba...  [binary]

=== src/app.js ===
console.log("hello");
=== END src/app.js ===

=== logo.png [binary] ===
iVBORw0KGgo...
=== END logo.png ===

v2 (-z) — Compressed

gzip + base64 wrapper around a v4 archive. Use for larger archives where size matters.

slurp pack -z src/ -o bundle.slurp

v3 (-e) — Encrypted

AES-256-GCM encrypted wrapper around a v4 archive.

slurp pack -e -p secret src/ -o secure.slurp

Features

  • Pure data — archives are not executable scripts; they're self-documenting data bundles
  • Human-readable — v4 archives use simple === path === delimiters you can read and edit
  • LLM-friendly — embedded OWL spec means any agent can understand and generate archives
  • Binary support — images, fonts, etc. via inline base64 with [binary] tags
  • Integrity checking — per-file SHA-256 checksums in the MANIFEST
  • Zero dependencies — Node.js stdlib only
  • Directory walking — recursive with glob exclusion patterns
  • Backward compatible — still reads v1/v2/v3 archives from older versions

Defaults

  • .git/ and node_modules/ are excluded automatically
  • Output extension is .slurp by default

Testing

node --test slurp.test.js

Security

  • slurp apply writes files to disk. Verify archives from untrusted sources with slurp verify and slurp list before extracting.
  • Archives may contain files outside the current directory if crafted with absolute or ../ paths. The extractor normalizes paths but review the manifest first.
  • Encrypted archives (-e) use AES-256-GCM. Use strong passwords and do not embed passwords in scripts.

License

MIT