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

@realboltopen/bolt-hash

v1.2.4

Published

TUI/CLI tool for JS/TS obfuscation, byte encoding, and runtime integrity protection

Readme


What is bolt-hash?

bolt-hash is a CLI tool that protects Node.js and TypeScript projects before you hand the code to a client or deploy to an untrusted server.

It does three things to every .js / .ts file in your project:

  1. Obfuscates — variable names, strings, and structure are scrambled
  2. Byte-encodes — the obfuscated source is stored as a byte array, not readable text
  3. Integrity-locks — a SHA-256 manifest records the hash of every output file; any modification causes an immediate crash at startup

Non-code files (package.json, assets, configs) are copied as-is.


Who is it for?

  • Freelancers & agencies delivering Node.js / TypeScript backends to clients
  • SaaS vendors distributing self-hosted installers
  • Teams that need to ship code to a third-party server without exposing source

Need to protect React, Vue, Angular, Next.js, or Nuxt apps?
Need online license keys, device fingerprinting, IP restrictions, heartbeat kill-timer, BGit version control, or a web dashboard?
→ See hash.boltopen.com/pricing for Premium plans.


Install

npm install -g @realboltopen/bolt-hash

Verify:

bolt -h

How it works — step by step

1. Your source project (before)

A normal Node.js / TypeScript project folder.


2. Run bolt to protect

cd my-app
bolt

The interactive TUI prompts for source dir, output dir, and an optional signing secret.


3. Protected output folder

Every .js / .ts file is now obfuscated and byte-encoded. Two extra files are generated:

  • __bolt_manifest.json — SHA-256 hashes of all protected files
  • __bolt_integrity.js — runtime checker loaded by every protected file at startup

4. Protected source is unreadable

Opening any protected .js file shows byte-encoded, obfuscated code.


5. Deploy & run on the client server

cd protected_output
npm install
bolt start

bolt start verifies every file hash before launching. Any modification → immediate crash.


Commands

| Command | Description | |---|---| | bolt | Protect a project (interactive TUI) | | bolt start | Verify integrity then launch (npm start) | | bolt run <script> | Verify integrity then run any npm script | | bolt help / bolt -h | Show help |


Signing secret (optional but recommended)

When you enable manifest signing, a random 32-byte hex secret is generated. This secret HMAC-signs the manifest so an attacker cannot edit files, recompute hashes, and replace the manifest.

bolt start will prompt for the secret, or read it from the environment:

# PowerShell
$env:BOLT_HASH_SECRET="your-secret-here"; bolt start

# Bash / zsh
BOLT_HASH_SECRET="your-secret-here" bolt start

Without a secret the manifest uses SHA-256 only (still detects tampering, but not cryptographic forgery).


What gets protected

your-project/
├── src/index.ts        ──►  protected_output/src/index.js   (obfuscated + byte-encoded)
├── src/utils.ts        ──►  protected_output/src/utils.js   (obfuscated + byte-encoded)
├── package.json        ──►  protected_output/package.json   (copied as-is)
├── package-lock.json   ──►  protected_output/package-lock.json
│
│   [always excluded]
├── node_modules/
├── .env / .env.*
├── dist/ build/ .next/ .nuxt/
└── .git/

Supported project types

bolt-hash supports server-side Node.js and TypeScript projects: Express · Fastify · NestJS · Koa · Hapi · plain Node.js scripts

SPA / SSR frameworks (React, Vue, Nuxt, Next.js, Angular, SvelteKit) require the Premium edition. → hash.boltopen.com/pricing


Requirements

  • Node.js >= 18

License

MIT — see LICENSE