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

@se-oss/md5

v1.0.0

Published

A simple, zero-dependency MD5 hashing library for Node.js and browsers. Automatically uses native crypto in Node.js for performance.

Readme

@se-oss/md5

CI NPM Version MIT License npm bundle size Install Size Edge Runtime Compatible

@se-oss/md5 is a MD5 hashing library for JavaScript that works seamlessly in both Node.js and browser environments. It automatically detects the environment and uses the fastest available implementation, it's up to 50x faster than other popular libraries.

📦 Installation

pnpm install @se-oss/md5

npm

npm install @se-oss/md5

yarn

yarn add @se-oss/md5

📖 Usage

@se-oss/md5 provides a simple and flexible API for creating MD5 hashes. It automatically selects the best implementation for your environment.

import { md5 } from '@se-oss/md5';

// Hash a string
const hash = md5('message');
console.log(hash); // Uint8Array [120, 231, 49, 2, 125, 143, 213, 14, 214, 66, 52, 11, 124, 154, 99, 179]

// Hash a Uint8Array
const uint8Array = new TextEncoder().encode('hello world');
const bufferHash = md5(uint8Array);
console.log(bufferHash); // Uint8Array [94, 182, 59, 187, 224, 30, 238, 208, 147, 203, 34, 187, 143, 90, 205, 195]

🌐 Environments

This library is designed to be universal:

  • Node.js: It automatically uses the built-in node:crypto module for optimal performance.
  • Browsers and other environments: It falls back to a reliable pure JavaScript implementation.

You don't need to configure anything; the library handles the environment detection for you.

📚 Documentation

For all configuration options, please see the API docs.

🚀 Performance

When running in Node.js, @se-oss/md5 automatically uses the native node:crypto module, making it significantly faster than pure JavaScript implementations.

| Library | Short String Hashing | Long String (1MB) | Short Buffer Hashing | Long Buffer (1MB) | | ------------------------ | -------------------- | ----------------- | -------------------- | ----------------- | | @se-oss/md5 (Native) | 919,060 ops/sec | 682 ops/sec | 622,662 ops/sec | 849 ops/sec | | @se-oss/md5 | 874,791 ops/sec | 117 ops/sec | 685,003 ops/sec | 71 ops/sec | | md5 | 747,229 ops/sec | 56 ops/sec | 516,042 ops/sec | 16 ops/sec |

These benchmarks were run on a standard development machine. Your results may vary.

Benchmark script: src/index.bench.ts

🤝 Contributing

Want to contribute? Awesome! To show your support is to star the project, or to raise issues on GitHub.

Thanks again for your support, it is much appreciated! 🙏

License

MIT © Shahrad Elahi and contributors.