</>PackageGraphPackageGraph

snappy

npmv7.3.3TypeScript

Fastest Snappy compression library in Node.js

Safe to adopt

Yes — snappy scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 364 days ago. 4 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 364 days ago. 4 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 25 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 2 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding snappy to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

25 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node >= 10
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the snappy README.

export function compressSync(input: Buffer | string | ArrayBuffer | Uint8Array): Buffer
export function compress(input: Buffer | string | ArrayBuffer | Uint8Array): Promise<Buffer>
export function uncompressSync(compressed: Buffer): Buffer
export function uncompress(compressed: Buffer): Promise<Buffer>

snappy vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
snappythis page01MIT1 year ago
fflate53.5M1MIT1 day ago
minimizer-webpack-plugin01MIT7 days ago
minizlib02MIT1 day ago

Dependencies

Declared by snappy v7.3.3. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (18)

@napi-rs/cli ^3.1.5@oxc-node/core ^0.0.32@taplo/cli ^0.7.0@types/node ^24.3.0ava ^6.4.1chalk ^5.5.0conventional-changelog-cli ^5.0.0esbuild ^0.25.9husky ^9.1.7legacy-snappy npm:snappy@6lint-staged ^16.1.5npm-run-all2 ^8.0.4oxlint ^1.11.2prettier ^3.6.2pretty-bytes ^7.0.1table ^6.9.0tinybench ^5.0.0typescript ^5.9.2

Used by

Popular packages that depend on snappy.

Relationship graph

Dependencies (left) and dependents (right) of snappy.

mongodbsnappy
snappy dependencies dependents

Frequently installed together

socksnpm

Fully featured SOCKS proxy client supporting SOCKSv4, SOCKSv4a, and SOCKSv5. Includes Bind and Associate functionality.

51.6M/wk2 dependentsMITTS
@aws-sdk/credential-providersnpm

A collection of credential providers, without requiring service clients like STS, Cognito

16M/wk1 dependentsApache-2.0TS
mongodb-client-encryptionnpm

Official client encryption module for the MongoDB Node.js driver

211.1K/wk2 dependentsApache-2.0TS
gcp-metadatanpm

Get the metadata from a Google Cloud Platform environment

0/wk1 dependentsApache-2.0TS
@mongodb-js/zstdnpm

[![CI](https://github.com/mongodb-js/zstd/actions/workflows/test.yml/badge.svg)](https://github.com/mongodb-js/zstd/actions/workflows/test.yml)

0/wk2 dependentsApache-2.0TS
esbuildnpm

An extremely fast JavaScript and CSS bundler and minifier.

242.4M/wk42 dependentsMITTS
eslintnpm

An AST-based pattern checker for JavaScript.

138.4M/wk279 dependentsMITTS
prettiernpm

Prettier is an opinionated code formatter

114.2M/wk159 dependentsMITTS
expressnpm

Fast, unopinionated, minimalist web framework

92.8M/wk17 dependentsMIT
ts-nodenpm

TypeScript execution environment and REPL for node.js, with source map support

42.2M/wk38 dependentsMITTS
aws4npm

Signs and prepares requests using AWS Signature Version 4

22.9M/wk2 dependentsMIT
mongodb-connection-string-urlnpm

MongoDB connection strings, based on the WhatWG URL API

8.8M/wk1 dependentsApache-2.0TS

Release history

4 releases in the last two years, typically about 20 days apart.

Recent versions of snappy
VersionPublishedSizeLicense
7.3.3latest1 year ago25 KBMIT
7.3.21 year ago25 KBMIT
7.3.11 year ago18 KBMIT
7.3.01 year ago18 KBMIT
7.2.23 years ago14 KBMIT
7.2.13 years ago14 KBMIT
7.2.03 years ago14 KBMIT
7.1.24 years ago13 KBMIT
7.1.14 years ago13 KBMIT
7.1.04 years ago14 KBMIT
7.0.54 years ago12 KBMIT
7.0.44 years ago12 KBMIT
7.0.35 years ago11 KBMIT
7.0.25 years ago11 KBMIT
7.0.15 years ago9.7 KBMIT

Overview

snappy is an npm package that fastest Snappy compression library in Node.js. It has 1 known dependents in the graph. The latest version is 7.3.3, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need fastest Snappy compression library in Node.js and value a focused solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (36 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use snappy?

Yes — snappy scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 364 days ago. 4 releases in the last 2 years.

How do I install snappy?

Run `npm install snappy` to add snappy to your npm project.

What license is snappy released under?

snappy is distributed under the MIT license.

How popular is snappy?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on snappy.

Is snappy still maintained?

The most recent release of snappy (v7.3.3) was published 1 year ago.

Does snappy run install scripts?

No. snappy does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.