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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@resonix/node

v0.3.0

Published

Meta package that installs the platform-specific Resonix node binary and exposes the 'resonix' CLI.

Readme

@resonix/node

Meta package that pulls in the platform-specific Resonix native binary (declared as an optional dependency) and exposes the cross‑platform resonix CLI.

How it works

No build hooks, no postinstall script. A single runtime resolver bin/resonix.js:

  1. Determines the expected package name from process.platform + process.arch.
  2. (Optional override) If RESONIX_PLATFORM_PKG is set, that value wins (e.g. RESONIX_PLATFORM_PKG=@resonix/linux-x86_64).
  3. Attempts to locate that package's package.json, then its bin/ directory and the native executable inside.
  4. If that fails (e.g., monorepo dev where multiple platform packages are present), it performs a prioritized scan over all known platform packages to find any installed binary matching the current platform/arch first.
  5. Spawns the resolved native executable, passing through all CLI arguments and stdio.

If no supported binary can be found, it prints a warning and exits with code 1.

Why optionalDependencies?

Only the matching platform package is actually installed by most package managers; the rest are skipped instead of causing install failures. This keeps installs clean and avoids conditional download logic in scripts.

Supported targets

linux  (x64, arm64, armv7)
darwin (x64, arm64)
win32  (x64, arm64)

Forcing / cross‑compiling

If you need to run the resolver against a specific platform binary (e.g. in CI artifacts or inside a container) set:

RESONIX_PLATFORM_PKG=@resonix/linux-x86_64 resonix --version

You are responsible for ensuring that binary is actually installed (e.g. via adding it as a direct dependency in that environment).

Local monorepo development

When working inside this monorepo (or if multiple platform binary packages are present) the fallback scan means the first suitable binary will be used, prioritizing your current platform/arch. This makes local iteration easier without publishing every change.

Installation

npm install @resonix/node --global
# or
pnpm install @resonix/node --global
# or
yarn global add @resonix/node
# or
bun add @resonix/node --global

You can also add it as a normal dependency and use npx resonix (or your package manager's equivalent) without global install.

Usage

resonix --help
resonix --version

All arguments are forwarded directly to the underlying native binary.

Troubleshooting

  • Warning: "Unable to locate a platform-specific binary" – The optional dependency for your platform was likely skipped or pruned. Ensure:
    • You're on a supported OS/architecture.
    • Optional dependencies are not disabled (e.g. --no-optional).
    • You did not prune node_modules after install (some CI images prune optional deps by default).
  • Force resolution: set RESONIX_PLATFORM_PKG explicitly (see above).
  • Still stuck? List installed platform packages: ls node_modules/@resonix (PowerShell: Get-ChildItem node_modules/@resonix). There should be exactly one matching your platform.

License

BSD-3-Clause