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/smalltalk-polycall

v1.0.0

Published

GNU Smalltalk FFI source binding for libpolycall 1.5

Readme

@obinexusltd/smalltalk-polycall

GNU Smalltalk FFI source binding for libpolycall 1.5. The package provides a Smalltalk API and a one-function native shim:

Polycall class >> runConfigStatus:
  -> smalltalk_polycall_run_config(path)
  -> polycall_ffi_run_config(path, 1)

The adapter performs no configuration parsing, networking, or runtime work. Those responsibilities remain in libpolycall.

Dialect

Smalltalk dialects do not share one FFI syntax. This implementation targets GNU Smalltalk (gst) and its <cCall:...> declarations. Porting to Pharo, Squeak, or VisualWorks requires a dialect-specific FFI declaration while the native C ABI remains unchanged.

Install the npm source package

npm install @obinexusltd/smalltalk-polycall

The CommonJS entry point indexes the source distribution without executing it:

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

console.log(smalltalkPolycall.directories.src.relativeFiles);
console.log(smalltalkPolycall.resolve('examples', 'run.st'));

src, include, generated, dist, examples, tests, and scripts are recursively available as absolute and package-relative paths.

Build the native shim

Build libpolycall first, then provide its library directory:

$env:POLYCALL_LIB_DIR = 'C:\path\to\libpolycall\lib'
$env:POLYCALL_LIB_NAME = 'polycall' # optional default
npm run build

The output is dist/smalltalk_polycall.dll, .so, or .dylib according to the platform. Ensure the libpolycall shared library is also discoverable by the operating system loader, or link against a compatible static library.

Smalltalk API

Polycall loadLibrary: 'dist/smalltalk_polycall'.

"Return the exact core status."
Polycall runConfigStatus: 'smalltalk-polycallrc'.

"Raise PolycallError when the status is nonzero."
Polycall runConfig: 'smalltalk-polycallrc'.

Run the included example from the project root:

gst -q src/Polycall.st examples/run.st

PolycallError>>status exposes the unchanged libpolycall status code.

Verification and publishing

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

The mandatory suite compiles the C shim against a mock libpolycall ABI, checks status/path forwarding, validates npm metadata and source indexes, and enforces the thin boundary. When gst is installed it also parses src/Polycall.st; otherwise that dialect-specific check is reported as skipped.

Author: Nnamdi Michael Okpala [email protected]

License: MIT