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

@dbrij/ship-react-native

v0.1.1

Published

Dbrij Ship code push for React Native: signed bundle updates with verify-before-apply and boot-canary rollback.

Downloads

364

Readme

@dbrij/ship-react-native

Code push for React Native on Dbrij Ship: signed bundle updates, verify-before-apply, staged rollouts, and a boot canary that reverts a bundle which crashes on launch.

Install

npm i @dbrij/ship @dbrij/ship-react-native
cd ios && pod install

Wire the bundle path (once, in the store build)

iOS — AppDelegate:

override func sourceURL(for bridge: RCTBridge) -> URL? {
  #if DEBUG
    return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
  #else
    return DbrijShip.bundleURL() ?? Bundle.main.url(forResource: "main", withExtension: "jsbundle")
  #endif
}

Android — MainApplication (inside your ReactNativeHost):

override fun getJSBundleFile(): String? =
  com.dbrij.ship.DbrijShipModule.getJSBundleFile(applicationContext)

Also register DbrijShipPackage() in getPackages() (autolinking normally handles this).

Use

import { createShip } from '@dbrij/ship';
import { notifyAppReady, syncShipUpdates } from '@dbrij/ship-react-native';
import AsyncStorage from '@react-native-async-storage/async-storage';

const ship = createShip({
  appKey: 'shp_...',
  channel: 'production',
  binaryVersion: '1.2.0',
  platform: Platform.OS,
  storage: AsyncStorage,
});

// In your root component, once the first screen mounts:
useEffect(() => {
  notifyAppReady(ship)                 // disarms the boot canary + reports 'applied'
    .then(() => syncShipUpdates(ship, { signPublicKey: 'BASE64_KEY_FROM_DASHBOARD' }))
    .catch(() => undefined);           // never let updates break the app
}, []);

A staged (non-mandatory) update applies on the next launch. Mandatory updates restart immediately. A bundle that crashes before notifyAppReady is reverted automatically on the following start, and the failure is reported so the rollout can freeze itself server-side.

Safety model

  • Bundles are verified on device: sha256 must match, and the ed25519 signature (made with your app's server-held private key) must verify against the signPublicKey you pin here. Unverified bytes are never written into place.
  • On Android below 13 the platform lacks Ed25519; the plugin refuses the update and the store binary keeps running (fail-closed).
  • The store binary's bundled JS is always the fallback: revert never bricks.