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

packup-cli

v1.5.0

Published

Pack folders into portable, integrity-verified strings

Downloads

630

Readme

packup-cli

Pack folders into portable, integrity-verified strings. Supports encryption for secure sharing.

How it works

Pack Flow (default: encrypted)

┌─────────────┐     ┌─────────────┐     ┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│   Folder    │────▶│  ZIP Buffer │────▶│  AES-256   │────▶│   Base64    │────▶│  PACKUP:2:  │
│  ./src/*    │     │  (in memory)│     │  encrypt    │     │   encode    │     │  hash:data  │
└─────────────┘     └─────────────┘     └─────────────┘     └─────────────┘     └─────────────┘
                                               │
                                        ┌──────┴──────┐
                                        │  Password   │
                                        │  + PBKDF2   │
                                        └─────────────┘

Pack Flow (with -u: unencrypted)

┌─────────────┐     ┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│   Folder    │────▶│  ZIP Buffer │────▶│   Base64    │────▶│  PACKUP:1:  │
│  ./src/*    │     │  (in memory)│     │   encode    │     │  hash:data  │
└─────────────┘     └─────────────┘     └─────────────┘     └─────────────┘

Unpack Flow

┌─────────────┐     ┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│  PACKUP:1:  │────▶│   Verify    │────▶│   Base64    │────▶│   Extract   │
│  hash:data  │     │  SHA-256    │     │   decode    │     │   to disk   │
└─────────────┘     └─────────────┘     └─────────────┘     └─────────────┘

Installation

npm install -g packup-cli   # global install (recommended)
npm install packup-cli      # local install

CLI Usage

Pack a folder

# Pack to clipboard (encrypted, code only)
packup pack ./my-folder

# Pack to file
packup pack ./my-folder -o packed.txt

# Pack without encryption
packup pack ./my-folder -u

# Pack with binary media (images, video, audio, pdf, fonts)
packup pack ./my-folder -m

Unpack

# Unpack from clipboard
packup unpack ./destination

# Unpack from file
packup unpack ./destination -i packed.txt

If the packed string is encrypted, you'll be prompted for the password.

Info

# Show info from clipboard
packup info

# Show info from file
packup info -i packed.txt

Encryption

Encryption is enabled by default. Use -u to disable:

packup pack ./folder              # encrypted (default)
packup pack ./folder -u           # unencrypted

Features:

  • AES-256-CBC encryption (default)
  • PBKDF2 key derivation (100,000 iterations)
  • SHA-256 integrity verification
  • Cross-compatible with the bash version

Media Handling

By default, packup excludes binary media for clean code sharing:

packup pack ./project        # code only (default)
packup pack ./project -m     # include media files

Default (code only): excludes .jpg, .png, .gif, .mp4, .mp3, .pdf, .ttf, .woff, etc.

Always included: .svg (text-based), .css, .js, .html, .json, .md, etc.

AI Agent / Automation

For non-interactive use, set the PACKUP_PASSWORD environment variable:

export PACKUP_PASSWORD="mysecretpassword"
packup pack ./folder -o packed.txt
packup unpack ./dest -i packed.txt

API Usage

import { pack, unpack, info, isEncrypted } from 'packup-cli';

// Pack a folder
const packedString = await pack('./my-folder');

// Pack with encryption
const encrypted = await pack('./my-folder', { password: 'secret' });

// Check if encrypted
if (isEncrypted(packedString)) {
  console.log('This package is encrypted');
}

// Unpack
await unpack(packedString, './destination');
await unpack(encrypted, './destination', { password: 'secret' });

// Get info
const metadata = await info(packedString);
console.log(metadata.files);

Format

Packup strings follow this format:

PACKUP:<version>:<sha256-hash>:<base64-data>
  • Version 1: Unencrypted
  • Version 2: Encrypted (AES-256-CBC)

License

MIT