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

v1.0.0

Published

Ruby Fiddle source binding for libpolycall 1.5

Readme

@obinexusltd/ruby-polycall

Ruby Fiddle source binding for libpolycall 1.5, packaged for public distribution through npmjs.org.

The binding declares only polycall_ffi_run_config, passes a UTF-8 configuration path with validation mode 1, and returns the core status unchanged. Configuration parsing and runtime behavior stay inside libpolycall.

Install from npm

npm install @obinexusltd/ruby-polycall

The npm package contains portable Ruby source, RubyGems metadata, the generated FFI declaration, examples, tests, configuration, and documentation. It does not bundle a platform-specific libpolycall library.

Requirements

  • Ruby 2.7 or newer
  • Ruby's standard fiddle library
  • A libpolycall shared library exporting polycall_ffi_run_config

Set the shared-library path explicitly for reliable deployment:

$env:POLYCALL_LIBRARY = 'C:\path\to\libpolycall.dll'

Without POLYCALL_LIBRARY, the adapter searches the package and its parent workspace under build, bin, and lib using common platform library names.

Ruby API

require "obinexus/polycall"

status = OBINexus::Polycall.run_config("ruby-polycallrc")
exit status unless status.zero?

For exception-oriented startup code:

begin
  OBINexus::Polycall.run_config!("ruby-polycallrc")
rescue OBINexus::Polycall::Error => error
  warn "libpolycall status: #{error.status}"
end
  • run_config(path) returns the core status unchanged.
  • run_config!(path) raises OBINexus::Polycall::Error when nonzero.
  • Omitting the path uses this package's ruby-polycallrc.
  • Runtime.new(library_path: path) selects a specific shared library.
  • Error#code remains an alias for Error#status for compatibility.

The original src/polycall.rb entry point remains as a compatibility loader and exposes Polycall as an alias for OBINexus::Polycall.

RubyGems compatibility

ruby-polycall.gemspec provides a conventional gem named obinexus-ruby-polycall:

gem build ruby-polycall.gemspec

No third-party Ruby gems are required.

Test

npm test

The mandatory tests validate npm metadata, RubyGems layout, relative directory indexing, and the one-function Fiddle boundary. When Ruby is on PATH, the suite compiles a mock shared library with GCC and exercises the real Ruby Fiddle call automatically.

Ruby is not installed in the current tool environment, so that smoke test is reported as skipped. Require it explicitly after installing Ruby:

npm run test:ruby

Run the example

ruby -Ilib examples/run.rb ruby-polycallrc

JavaScript build-tool entry point

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

console.log(binding.rubyLibrary);
console.log(binding.directories.lib.relativeFiles);
console.log(binding.resolve('examples', 'run.rb'));

All package.json directory metadata is project-relative. The CommonJS entry point converts it to absolute paths and rejects traversal outside each indexed directory.

Publish publicly

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

publishConfig.access is already public. Publishing is not automatic.

Author and license

Nnamdi Michael Okpala ([email protected]). Licensed under MIT.