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

@spacesops/react-native-bare-kit

v0.11.0-beta.49

Published

Bare Kit for React Native (Spacesops fork with nested addon linking)

Readme

@spacesops/react-native-bare-kit

Fork of holepunchto/react-native-bare-kit for Spacesops WDK apps. Based on upstream v0.11.0, with custom native addon linking for nested node_modules (e.g. bare-tls, bare-tcp, Electrum/BTC addons) and minimal Android SONAME handling aligned with @spacesops/pear-wrk-wdk --linked bundles.

npm i @spacesops/react-native-bare-kit

Usage

import { Worklet } from '@spacesops/react-native-bare-kit'
import b4a from 'b4a'

const worklet = new Worklet()

const source = `\
const { IPC } = BareKit

IPC.on('data', (data) => console.log(data.toString()))
IPC.write(Buffer.from('Hello from Bare!'))
`

worklet.start('/app.js', source)

const { IPC } = worklet

IPC.on('data', (data) => console.log(b4a.toString(data)))
IPC.write(b4a.from('Hello from React Native!'))

Alternatively to load from a bundle:

import { Worklet } from '@spacesops/react-native-bare-kit'

// Bundle output by `bare-pack`
// Extension can be .bundle, .js, .cjs, .mjs
import bundle from './my.bundle.js'

const worklet = new Worklet()
// First arg (filename)'s extension *must* be .bundle
worklet.start('/app.bundle', source)

// [...]

Refer to https://github.com/holepunchto/bare-expo for an example of using the library in an Expo application.

Logging

The console.* logging APIs used in the worklet write to the system log using https://github.com/holepunchto/liblog with the bare identifier. Refer to https://github.com/holepunchto/liblog#consuming-logs for instructions on how to consume the logs.

Native addon linking

On npm install, host apps do not need separate relink scripts. Gradle preBuild runs android/link.mjs, which:

  • Walks all nested node_modules for packages with "addon": true
  • Copies Android prebuilds to android/src/main/addons/<abi>/lib<name>.<version>.so (scoped names use libscope__pkg.<version>.so)
  • Applies a minimal SONAME / RUNPATH patch (no full bare-link ELF rewrite that breaks some layouts)

iOS uses the same addon discovery via ios/link.mjs.

Android packaging (host app)

Addons are dlopened by filename and the loader reads their symbol tables directly, so stripping JNI debug symbols corrupts them. Because only some builds strip, this typically fails in release only, and surfaces as ADDON_NOT_FOUND with a truncated dlopen cause.

Expo apps get this from the bundled config plugin — add it to app.json:

{ "expo": { "plugins": ["@spacesops/react-native-bare-kit"] } }

The plugin derives the pattern list by discovering every "addon": true package in the tree, the same way link.mjs does, so it stays correct as addons come and go. Do not hand-maintain a list of prefixes: libudx-native is a real counter-example that a libbare* glob silently misses. Pass extraJniLibPatterns if you have addons the discovery cannot see.

Consumers of @spacesops/wdk-react-native-core do not need this entry — its plugin applies this one.

Bare React Native apps without Expo config plugins should keep the equivalent in android/app/build.gradle:

android {
  packaging {
    jniLibs {
      // every addon, plus the runtime itself
      keepDebugSymbols += ["**/libbare*.so", "**/libsodium-native.*.so", "**/libudx-native.*.so"]
    }
  }
}

See TROUBLESHOOTING.md when addons fail to load.

Publishing (maintainers)

Holepunch libbare-kit.so and BareKit.xcframework are not stored in this git repo (same as upstream). They are copied from the upstream react-native-bare-kit version pinned in scripts/sync-holepunch-native.mjs (currently 0.14.5; do not raise it to 0.15.x — see TROUBLESHOOTING.md) before pack:

npm run sync-native
npm run verify-pack
npm publish --access public

prepack runs those steps automatically; never publish with --ignore-scripts.

License

Apache-2.0