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

hexcore-remill

v0.1.2

Published

N-API bindings for Remill — lifts machine code to LLVM IR bitcode

Downloads

196

Readme

hexcore-remill

Modern N-API bindings for Remill — lifts machine code to LLVM IR bitcode.

Part of HikariSystem HexCore.

Supported Architectures

| Architecture | Variants | |---|---| | x86 (32-bit) | x86, x86_avx, x86_avx512 | | x86-64 | amd64, amd64_avx, amd64_avx512 | | AArch64 | aarch64 | | SPARC | sparc32, sparc64 |

Usage

const { RemillLifter, ARCH } = require('hexcore-remill');

const lifter = new RemillLifter(ARCH.AMD64);

// push rbp; mov rbp, rsp; pop rbp; ret
const code = Buffer.from([0x55, 0x48, 0x89, 0xe5, 0x5d, 0xc3]);
const result = lifter.liftBytes(code, 0x401000);

if (result.success) {
  console.log(result.ir);           // LLVM IR text
  console.log(result.bytesConsumed); // 6
}

lifter.close();

Async (non-blocking)

const result = await lifter.liftBytesAsync(largeBuffer, 0x140001000);

Windows ABI context

const lifter = new RemillLifter(ARCH.AMD64, OS.WINDOWS);

API

new RemillLifter(arch, os?)

Create a lifter for the given architecture. Loads the Remill semantics module.

  • arch — Architecture name (use ARCH constants)
  • os — OS name for ABI context (optional, defaults to 'linux')

lifter.liftBytes(code, address) → LiftResult

Synchronous lift. Decodes and lifts instructions from the buffer.

lifter.liftBytesAsync(code, address) → Promise<LiftResult>

Async lift in a worker thread. Use for large buffers (>64KB).

LiftResult

{
  success: boolean;
  ir: string;           // LLVM IR text
  error: string;        // Error message if !success
  address: number;      // Start address
  bytesConsumed: number; // Bytes consumed from input
}

RemillLifter.getSupportedArchs() → string[]

Returns list of supported architecture names.

Building from Source

# Prerequisites: LLVM 15+, CMake 3.21+, Ninja, clang-cl (Windows)

# Build Remill deps first (see deps/README.md)
npm run build
npm test

Dependencies

  • Remill — static library
  • LLVM 18 — static libraries (Core, Support, BitReader, BitWriter, IRReader, etc.)
  • Intel XED — x86 instruction decoder (used by Remill)

Important: Must use the same LLVM version as hexcore-llvm-mc (currently LLVM 18) to avoid symbol conflicts when both are loaded in the same process.

License

MIT — Copyright (c) HikariSystem