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

revelen

v0.4.0

Published

Learn reverse engineering step by step, through MCP

Readme

 █▀█ █▀▀ █ █ █▀▀ █   █▀▀ █▄ █
 █▀▄ ██▄ ▀▄▀ ██▄ █▄▄ ██▄ █ ▀█
 [ Learn reverse engineering step by step, through MCP ]

Revelen

Revelen is an educational MCP server that helps you learn reverse engineering with an AI assistant (Claude Code, Cursor, VS Code). Instead of dumping a whole program at once, it shows you one small piece at a time, explains the instructions you meet, and keeps the output compact.

It uses REA with Ghidra to read programs. The AI talks only to Revelen; Revelen decides what to show.

Claude / Cursor ──► Revelen (MCP) ──► REA ──► Ghidra ──► lab program
                    explains, compacts,
                    only opens its own labs

Tools

| Tool | What it does | |---|---| | revelen_explain_concept | Explains an assembly instruction (MOV, CMP, TEST, SETZ, LEA, JZ…) with an analogy and example | | revelen_find_strings | Searches the text stored inside a lab program and shows where it lives | | revelen_show_function | Shows one function's assembly, compacted and labelled with clues you've found | | revelen_check_setup | Checks Node, REA, Ghidra, Java, GCC and the labs, and gives the exact fix for anything missing | | revelen_story | Teaches a lab as a real-life security story in plain words, one step at a time. Instant, with no machine code unless you ask | | revelen_progress | Lists the labs in order, what you have solved, and what to do next | | revelen_check_solution | Checks the password, PIN or word you found, without ever revealing the answer | | revelen_quiz / revelen_answer_quiz | Asks one multiple-choice question on an instruction and checks your choice |

Labs

| Lab | What you hunt | The new idea | |---|---|---| | level1_strings | A password | Text in the code is stored as readable text in the .exe | | level2_pin | A PIN | A number hides inside an instruction, written in hexadecimal | | level3_letters | A word | Letters are numbers (ASCII), so a word can hide as a row of numbers | | level4_xor | A word | XOR scrambles with a key, and the same XOR undoes it |

Your progress (labs solved, lesson cards read, quiz questions passed) is saved in .revelen\progress.json in your home folder.

Token savings

Revelen's optimizer folds standard prologue/epilogue code, shortens addresses to offsets and labels known addresses. It never removes logic (compares, tests, calls, jumps).

Measured on the Level 1 lab (check_password): ~1,366 → ~101 tokens, about 93% smaller than REA's raw JSON. Token counts are estimated at ~4 characters per token; results vary by program.

Requirements (Windows x64)

  • Node.js 22.19+ or 24.11+
  • REA: npm install --global rea-agents
  • Ghidra 12.1.4 and a full JDK 21 (e.g. Eclipse Temurin)
  • GCC to build the labs (e.g. winget install BrechtSanders.WinLibs.POSIX.UCRT)

Set these environment variables (adjust the paths):

[Environment]::SetEnvironmentVariable("GHIDRA_INSTALL_DIR", "C:\tools\ghidra_12.1.4_PUBLIC", "User")
[Environment]::SetEnvironmentVariable("REA_ANALYSIS_PROVIDER", "ghidra", "User")
[Environment]::SetEnvironmentVariable("JAVA_HOME", "C:\Program Files\Eclipse Adoptium\jdk-21...", "User")

Check with rea doctor: the ghidra checks should be ok: true.

Install

git clone https://github.com/ahmedi56/Revelen.git
cd Revelen
npm install
npm run build
gcc labs\level1_strings.c -o labs\level1_strings.exe
gcc labs\level2_pin.c -o labs\level2_pin.exe
gcc labs\level3_letters.c -o labs\level3_letters.exe
gcc labs\level4_xor.c -o labs\level4_xor.exe
npm test

Connect to your AI assistant

Claude Code:

claude mcp add revelen -- node C:\path\to\Revelen\dist\index.js

Cursor (.cursor/mcp.json):

{ "mcpServers": { "revelen": { "command": "node", "args": ["C:\\path\\to\\Revelen\\dist\\index.js"] } } }

Then ask: "Using Revelen, search the level1_strings lab for text and explain what you find."

Claude Code plugin

The repository is also a Claude Code plugin. It starts Revelen for you (through npx) and adds two skills:

| Skill | What it does | |---|---| | reverse-engineer | Leads an investigation of a lab one step at a time: clues, one function, one question | | explain-simply | Explains any instruction or idea with an everyday analogy and small steps |

/plugin marketplace add ahmedi56/Revelen
/plugin install revelen@revelen

Then ask: "Help me reverse engineer the level1_strings lab."

When Revelen runs through npx it lives in a temporary folder, so keep your built labs in a folder of your own and point REVELEN_LABS_DIR at it:

[Environment]::SetEnvironmentVariable("REVELEN_LABS_DIR", "C:\path\to\Revelen\labs", "User")

Project anatomy

src/index.ts            🧠 MCP server: the tools Claude can call
src/bridge/rea.ts       ✋ runs REA as a child process, parses its JSON
src/optimizer/compact.ts 🫁 compacts output without dropping logic
src/tutor/concepts.ts   🎓 instruction explanations
src/tutor/lessons.ts    🗺️ the labs in order, with answer fingerprints (never the answers)
src/tutor/quizzes.ts    ❓ multiple-choice questions
src/progress.ts         📓 saves what you have done in your home folder
src/doctor.ts           🩺 the setup check
src/labs.ts             🚪 only opens programs inside labs/
labs/                   🏋️ practice programs (source only; build them yourself)
test/                   ✅ smoke tests with a fake REA + optimizer tests
.claude-plugin/         🔌 plugin manifest + marketplace entry
skills/                 📚 the two teaching skills (plain Markdown)

Roadmap

  • [x] Guided lessons with quizzes and saved progress
  • [x] More labs (numbers, letters, a simple XOR disguise)
  • [x] npx revelen package
  • [x] Claude Code plugin with two skills

Responsible use

Revelen is for learning on its own lab programs and on software you own or are authorized to analyze. Follow the licenses of the tools it uses (REA, Ghidra) and of any software you study.

License

MIT