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

fkobf

v0.1.0

Published

Self-hosted local file encryption and code obfuscation tool

Readme

fkobf

Self-hosted local file encryption and code obfuscation tool. Clone it, run it on your own device, nothing leaves your machine.

Tests

What it does

fkobf has two independent modes.

Encrypt / Decrypt: real AES-256-GCM encryption for files, folders, or zips. Unlock with an auto-generated 64 character key, a password you choose, or both. Either one independently unlocks the file. Lose both and the data is permanently unrecoverable, there is no backdoor and no recovery mechanism.

Obfuscate: transforms JavaScript source code so it is difficult to read while still running exactly as before. No key involved, the output is directly executable. This is code hardening, not encryption: it raises the cost of reverse engineering, it does not make it impossible.

Install

npm install -g fkobf

Or run it directly without installing:

npx fkobf encrypt ./myfolder

Usage

Encrypt

fkobf encrypt ./myfolder
fkobf encrypt ./photos.zip --mode password
fkobf encrypt ./secrets --mode both --hide-names

Every file inside a folder or zip is encrypted individually. Folder structure and filenames are preserved by default. For zips, --hide-names renames entries to index based names and stores the real filename encrypted inside the payload.

Decrypt

fkobf decrypt ./myfolder
fkobf decrypt ./photos.fkob.zip

Always prompts interactively for the key or password. There is no flag that accepts a raw key or password on the command line, since that would end up in shell history.

Obfuscate

fkobf obfuscate ./src
fkobf obfuscate ./index.js --preset heavy

Presets: light, medium, heavy. Heavier presets add control flow flattening, dead code injection, self defending code, and anti debugging measures, at the cost of larger output and slower runtime.

Non interactive use, for CI and deployment

fkobf decrypt ./index.js.fkob --password-env FKOBF_SECRET --out ./index.js

Reads the secret from an environment variable instead of prompting. Useful for deploy pipelines where you encrypt source before committing it, then decrypt it at build time using a secret only you control.

{
  "scripts": {
    "prestart": "fkobf decrypt index.js.fkob --password-env FKOBF_SECRET --out index.js",
    "start": "node index.js"
  }
}

Anyone who forks the repo without the secret gets a build that fails cleanly at the decrypt step. Only deployments where the secret is set can produce working code.

This protects source code at rest, for example on a public GitHub repo. It does not protect code once it is running: whoever controls the runtime environment can always recover the plaintext at that point, since the code has to be decrypted before it can execute. No tool can change that.

GUI

fkobf gui

Starts a local web server and opens in your browser. Drag and drop files, or use the folder picker to select an entire directory. Same engine as the CLI underneath.

Verify

fkobf verify ./somefile.fkob

Checks whether a file is a valid fkobf container and which unlock methods it supports, without decrypting it.

How it works

AES-256-GCM authenticated encryption. A random Data Encryption Key is generated per operation and wrapped independently by whichever unlock methods you choose, either the raw key or an Argon2id derived key from your password. Both wrapped copies, if present, live in the file header, so either one independently unlocks the file.

Every encrypted file is self contained: the full header, including wrapped key material, travels with that file. There is no external manifest that can be lost and strand the rest of a batch.

Wrong key, wrong password, or a tampered file all fail loudly during decryption. GCM's authentication tag check means there is no such thing as silent corruption, only rejection.

The source code is public. This is deliberate. A cryptographic tool being secure only because its implementation is secret is not real security, real security comes from the key being the only secret, ever.

License

GPL-3.0. See LICENSE.