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

@obinexusltd/asm-polycall

v1.0.0

Published

Cross-platform assembly ABI binding for the libpolycall 1.5.0 C FFI.

Readme

asm-polycall

Cross-platform assembly binding for libpolycall 1.5.0, published as @obinexusltd/asm-polycall.

The binding is deliberately tiny: it preserves the incoming configuration path, supplies run=1 in the platform C ABI's second argument location, and forwards control to polycall_ffi_run_config. It contains no configuration parser, network stack, or duplicated runtime logic.

Install from npm

npm install @obinexusltd/asm-polycall

The CommonJS entry point exposes absolute paths for build tooling:

const polycall = require('@obinexusltd/asm-polycall');

console.log(polycall.assembly);
console.log(polycall.publicHeader);
console.log(polycall.ffiHeader);
console.log(polycall.config);
console.log(polycall.manifest);

Direct package subpaths are also exported, including @obinexusltd/asm-polycall/src/asm_polycall.S and @obinexusltd/asm-polycall/include/asm_polycall.h.

C-callable API

#include <asm_polycall.h>

int status = asm_polycall_run_config("asm-polycallrc");
if (status != 0) {
    /* Apply the host application's error policy. */
}

The function returns the libpolycall status unchanged. Assembly callers can call the same symbol using their platform's C calling convention.

Supported ABIs

| Target | First argument | Injected second argument | |---|---:|---:| | Windows x86-64 | RCX | EDX = 1 | | System V x86-64 | RDI | ESI = 1 | | Windows/System V x86-32 | cdecl stack | cdecl stack value 1 | | AArch64 | X0 | W1 = 1 | | AArch32 | R0 | R1 = 1 |

macOS underscore-prefixed external symbols are handled for x86-64 and AArch64. The source uses a preprocessed GNU-compatible .S file, so the C compiler selects the correct branch for the target architecture.

The implementation follows the Microsoft x64 calling convention, x86-64 System V psABI, and Arm procedure-call standards.

Build and test

Build the static adapter archive:

make
# or
npm run build

Run the real assembly shim against the mock libpolycall boundary:

npm test
npm run verify

The test verifies the configuration pointer, run=1, and unchanged success and failure statuses. Platform-specific binaries and archives are excluded from the npm tarball; source, headers, tests, examples, scripts, manifest, and configuration are included.

Link with libpolycall

A real integration requires libpolycall v1.5 exporting polycall_ffi_run_config:

make example POLYCALL_LDFLAGS="-L/path/to/libpolycall/lib -lpolycall"

The example host is examples/basic.c. The read-only shared-schema override is asm-polycallrc.

Publishing

Inspect the exact package contents and then publish the public scoped package:

npm pack --dry-run
npm publish --access public

Publishing is intentionally not performed by the build or test scripts.

Author

Nnamdi Michael Okpala — [email protected]