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

stencyption

v3.1.0

Published

Military-grade JavaScript encryption with AES-256-GCM, polymorphic obfuscation, and anti-debugging protection. Each file gets unique encryption keys embedded in heavily obfuscated code.

Downloads

1,042

Readme

Stencyption - JavaScript Code Encryption

Advanced JavaScript code encryption tool that protects your source code while keeping it executable.

Installation

npm link

After linking, you can use the stencyption command globally.

Quick Start

1. Encrypt a file

stencyption encrypt myfile.js

This creates myfile.encrypted.js

2. Run encrypted file

node myfile.encrypted.js

Usage Examples

# Encrypt with custom output name
stencyption encrypt app.js -o protected.js

# Encrypt files with relative imports
stencyption encrypt bot/login/login.js -o bot/login/login.encrypted.js

# Encrypt complex projects
stencyption encrypt src/index.js -o dist/index.encrypted.js

Features

Global context preservation - Works with files that use global variables (NEW in v1.0.10!)
Complete file encryption - Encrypts entire source code as-is
Relative imports - Works with require("./local/module")
npm packages - Works with axios, crypto, cheerio, lodash, etc.
AES-256 encryption - Military-grade encryption
5-layer obfuscation - Advanced code protection
Zero performance overhead - Fast execution

Programmatic Usage

Use the provided encrypt.js script or create your own:

const fs = require('fs');
const { Encryptor } = require('./src/index.js');

// Read your source code
const sourceCode = fs.readFileSync('myfile.js', 'utf8');

// Encrypt it
const encrypted = Encryptor.encrypt(sourceCode);

// Save encrypted version
fs.writeFileSync('myfile.encrypted.js', encrypted, 'utf8');

console.log('✅ Encryption complete!');

What Gets Encrypted

The tool encrypts your entire JavaScript file including:

  • All imports and requires (both relative and npm packages)
  • All variables, functions, and classes
  • All code logic and algorithms
  • Comments and code structure

Nothing becomes undefined - everything is preserved exactly as you wrote it.

Fixed Issues

v1.0.10 (Latest)

Global context preservation - Files using global.utils, global.GoatBot, etc. now work correctly
Large file encryption - login.js and utils.js type files encrypt without errors

v1.0.5

Relative imports now work - require("./logger/log.js") works perfectly
No more undefined errors - Properties like .hex, .toString() work correctly
Complete file encryption - No missing imports or variables
Proper path resolution - Encrypted files execute from correct directory

CLI Commands

# Show help
stencyption help

# Encrypt a file
stencyption encrypt <input-file> [-o <output-file>]

Requirements

  • Node.js 14 or higher
  • stencyption package linked (or installed) to run encrypted files

Version

1.0.10 - Latest version with global context preservation fix

License

ISC