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

neozipkit

v0.7.0

Published

NeoZipKit - Advanced ZIP file creation, compression, and encryption

Readme

neozipkit

Advanced ZIP file creation, compression, and encryption library for Node.js and the browser.

Scope of this package: NeoZipKit focuses solely on creating and manipulating ZIP files (compression, encryption, extraction). All blockchain-related functionality—timestamping, NFT tokenization, verification, wallet integration, and smart contracts—lives in the sibling neozip-blockchain package within this monorepo. Use that package when you need to link ZIPs to the blockchain.

⚠️ Alpha Version Warning: NeoZipKit is currently in alpha status. This means:

  • The API may change in future releases
  • Some features may be incomplete or experimental
  • Breaking changes may occur before the stable release
  • Use in production with caution and thorough testing

We welcome feedback and contributions! Please report issues on GitHub. This package is part of the neozipkit monorepo.

Features

  • Advanced ZIP compression with support for multiple compression methods (Deflate, ZStandard, Stored)
  • Streaming compression for memory-efficient processing of large files
  • Encryption with ZIP (Legacy), AES-256 (WinZip-compatible AE-1/AE-2), and NeoEncrypt (NEO AES-256 via extra field 0x024E, standard compression method in headers); create and extract in Node and browser
  • Hash-based verification with Merkle tree support (CRC-32, SHA-256)
  • Real-time progress tracking for long-running operations
  • Browser and Node.js compatibility with clean platform separation
  • TypeScript support with full type definitions

Installation

yarn add neozipkit

Or with npm:

npm install neozipkit

Quick Start

Node.js

import { ZipkitNode } from 'neozipkit/node';

const zip = new ZipkitNode();

// Create a ZIP from files
await zip.createZipFromFiles(['file1.txt', 'file2.txt'], 'output.zip');

// Extract a ZIP file
await zip.extractZipFile('archive.zip', './output');

Browser

import { ZipkitBrowser } from 'neozipkit/browser-esm';

const zip = new ZipkitBrowser();
await zip.addFile(file, { level: 6 });
const zipBlob = await zip.createZipBlob();

Examples

Runnable examples live only in this repository—they are not shipped in the npm package (package.json "files" is dist/, src/, and README.md). Browse or clone the repo to use them.

On GitHub: packages/neozipkit/examples/ — see examples/README.md for scripts (create/extract/list/copy ZIP, AES demos, encrypted listing) and how to run them from a checkout.

# From monorepo root, after yarn install
cd packages/neozipkit
npx ts-node examples/create-zip.ts

Blockchain integration

All blockchain code lives in the sibling neozip-blockchain package within this monorepo. For timestamping, NFT tokenization, on-chain verification, wallet management, and OpenTimestamps, install neozip-blockchain alongside this package. It depends on neozipkit for ZIP handling and adds all blockchain features on top. NeoZipKit itself contains no blockchain, contract, or wallet code.

Package layout

  • neozipkit – Main entry (core + platform detection)
  • neozipkit/node – Node.js-only (ZipkitNode, file I/O, streaming)
  • neozipkit/browser – Browser-only (ZipkitBrowser, Blob API)
  • neozipkit/browser-esm – Browser ESM bundle (tree-shaking)

Publishing (npm)

The published tarball includes dist/, src/ (for neozipkit/src conditional exports), and the package root README.md only. examples/ and other repo-only folders are excluded—use yarn publish:dry-run (npm publish --dry-run) to preview the file list.

Development

This package is part of the neozipkit monorepo. From the repository root:

# Install all dependencies
yarn install

# Build all packages (topological order)
yarn build

# Run all unit tests
yarn test:unit

To work on this package alone:

cd packages/neozipkit
yarn build
yarn test

See docs/DEV_BUILD.md for the development build system and the monorepo README for version management and release workflow.

API overview

ZipkitNode and file handles (Node.js)

ZipkitNode.loadZipFile() opens the archive with fs.promises.open(). You should call closeFile() when you are done reading so the FileHandle is released promptly. Node deprecates relying on garbage collection to close handles (DEP0137).

As of v0.6.1, loadZipFile() automatically closes any prior read handle before loading another path on the same instance, so reusing a ZipkitNode does not leak descriptors. closeFile() remains the right way to finish with the current archive.

Core

  • Zipkit – Core ZIP handling (buffer-based, shared)
  • ZipkitNode – Node.js file-based operations (extends Zipkit)
  • ZipkitBrowser – Browser Blob-based operations (extends Zipkit)
  • ZipEntry – ZIP entry representation
  • ZipCompress / ZipDecompress – Compression and decompression
  • HashCalculator – CRC-32, SHA-256, Merkle root
  • EncryptionManager / ZipCrypto – Legacy ZIP encryption
  • AesCrypto / EncryptionMethod.AES_256 – AES-256 encryption (WinZip AE-1/AE-2)

Compression methods

  • STORED (0) – No compression
  • DEFLATED (8) – Deflate (default)
  • ZSTD (93) – Zstandard

Encryption

  • ZIP (Legacy) – Classic ZIP encryption; use password in options (no encryptionMethod).
  • AES-256 – WinZip-compatible (AE-1/AE-2); use password and encryptionMethod: 'aes256' in compress options. Create and extract supported in Node and browser. See WHATS_NEW.md for details. For on-disk layout (headers, extra field 0x9901), AE-1 vs AE-2, and how this differs from ZipCrypto and PKWARE strong encryption, see docs/WINZIP_AES_FORMAT.md.
  • NeoEncrypt (NEO AES-256) – NeoZip-specific: use password and encryptionMethod: 'neo-aes256'. The LO/CEN compression method stays a normal ZIP code (e.g. deflate, zstd); encryption is indicated by the encrypted flag plus extra field 0x024E. Ciphertext layout matches the WinZip AES stream (PBKDF2, CTR, HMAC). Specification: docs/NEO_CRYPTO_FORMAT.md.

What’s new

See WHATS_NEW.md for release notes. v0.6.1 fixes ZipkitNode read handle lifecycle (reuse and failed loads; see above). v0.6.0 adds full AES-256 encryption (create and extract, Node and browser, WinZip-compatible).

Security

See SECURITY.md for security considerations and best practices.

License

MIT