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

solijs

v2.6.2

Published

Tool that can link shared object (.so) files to your JavaScript project and expose symbols dynamically.

Downloads

25

Readme

solijs

npm version GitHub release License Issues Build Status

solijs is a prebuilt native Node.js module that links and interacts with Linux .so (shared object) files directly from JavaScript using the N-API interface.

This tool allows you to:

  • Run functions inside .so files (both void and int returning)
  • Capture their output (text or return values)
  • Inspect dynamic symbols defined inside the .so

Update Logs

Deprecated packges

  1. 1.8.0-prerelease — due to large size thr deps remove and add something better

  2. 2.4.0 — Corrupted packages(has a lot of errors)

Release packages

  1. 1.9.0-alpha — removes the deps folder(a big size folder)

  2. 2.0.0 — added new features such as outputting arrays, buffers and more!

  3. 2.3.1Now Suppport stdout prompting, and like chatbot!

  4. 2.4.5Binding gyp support are now release! Prebuilt is still supported.

  5. 2.5.6Added functions such as args and machine code output, enhances the system and fix bugs

  6. 2.6.2Supports Game Logics But with limit

updates coming soon!


Installation

1. Install the module

npm install sljs

The native node is precompiled in Pb dir


Usage

Load the module

const sljs = require('sljs');

runText(path, symbol)

Runs a void function from .so and captures stdout.

// C source example (text.c)
#include <stdio.h>
void say_hello() {
    printf("Hello from C shared object!\n");
}

Compile:

gcc -fPIC -shared -o libtext.so text.c

Call from JS:

const output = sljs.runText('./libtext.so', 'say_hello');
console.log(output); // "Hello from C shared object!"

runValue(path, symbol)

Runs an int-returning function and returns the result.

// C source example (value.c)
int give_number() {
    return 69420;
}

Compile:

gcc -fPIC -shared -o libvalue.so value.c

Call from JS:

const num = sljs.runValue('./libvalue.so', 'give_number');
console.log(num); // 69420

inspect(path)

Inspects available dynamic symbols from .so using nm.

const symbols = sljs.inspect('./libvalue.so');
console.log(symbols); // List of symbol lines (like from `nm -D`)

Use Cases

  • Custom algorithms written in C/C++ (like hashing or compression)
  • Wrapping performant native logic for JS access
  • Interfacing low-level Linux .so modules
  • Fast native extensions without recompiling every install

License

MIT
Author: Jeck Christopher Anog


Disclaimer

This module does not decompile .so files. It exposes and interacts with dynamic symbols using safe, flexible bindings.


Warning

DO NOT INSTALL ANY DEPRECATED PACKAGES AS IF DECLARED VULNERABLE TO ANY THREATS!


How to install prebuilt binaries

  1. Go to my Github Repository(Link in the bottom)

  2. Find the Pb folder

  3. After that download it raw and download all the files except binding.gyp

  4. test it and if it works, congrats u've install the npmjs package without thr node-gyp!

Note: The Prebuilt is only for device that doesn't support node-gyp.