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

@mauricelam/ghidra-decompiler-wasm

v0.0.4

Published

Ghidra C++ Decompiler built for WebAssembly

Readme

Ghidra C++ Decompiler Standalone & WebAssembly

ADDITION IN THIS FORK: Documentation for standalone and WebAssembly support.

This project provides a standalone build configuration and a WebAssembly bridge in this fork.

Standalone Native Build

To build the decompiler as a standalone static library and executable:

make -f Makefile.standalone

This builds libdecomp.a and decomp_standalone.

Native Verification

You can verify the decompiler functionality natively by running the verification script:

bash verify_native.sh

This script compiles a small C program and uses decomp_standalone to decompile it.

WebAssembly Build

To build for the browser using Emscripten:

make -f Makefile.wasm

Produces ghidra_decompiler.js and ghidra_decompiler.wasm.

Browser Usage Example

A complete example showing how to load and use the WASM module in a browser is provided in the wasm_examples/ directory:

  • wasm_examples/example_wasm.html
  • wasm_examples/example_wasm.js

Detailed Steps to Run the Example:

  1. Build the WASM module: Ensure you have Emscripten installed, then run:

    make -f Makefile.wasm
  2. Serve the repository: IMPORTANT: WebAssembly modules must be served via HTTP(S) to be loaded correctly by browsers. Opening the HTML file directly from your disk (file://) will NOT work due to security restrictions.

    Use any local web server. For example, using Python:

    python3 -m http.server 8000
  3. Open the example in a browser: Navigate to http://localhost:8000/wasm_examples/example_wasm.html.

  4. Verify the output:

    • The page should display "Module ready" once the WASM module is initialized.
    • Upload a binary (e.g., an ELF or PE file).
    • The system will attempt to auto-detect the architecture.
    • Click "Run Decompiler".

Implementation Notes

  • Memory-based: The WASM implementation (wasm_wrapper.cc) uses custom WasmArchitecture and WasmSleigh classes to load all specifications from memory, bypassing the need for a virtual file system.
  • Auto-detection: The bridge includes logic to identify ELF and PE headers and automatically select the correct Ghidra language ID.
  • Standalone compatibility: The GHIDRA_NO_BFD macro is used to ensure portability and avoid GPL3 requirements.