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

v0.1.0

Published

Dbrij Ship SDK: over-the-air updates, feature flags and remote config for mobile apps. Zero dependencies.

Readme

@dbrij/ship

The Dbrij Ship SDK: over-the-air updates, feature flags and remote config for mobile apps. Zero dependencies; works anywhere fetch exists (React Native, Capacitor webviews, Node).

The core speaks the device protocol: check-in (flags + config + kill switch + the update decision) and outcome beacons. Code push itself, downloading and swapping bundles, lives in the per-stack plugins (@dbrij/ship-react-native, @dbrij/ship-capacitor), which drive this core and add the native verify/apply/rollback steps.

Quick start (flags and config, any stack)

import { createShip } from '@dbrij/ship';
import AsyncStorage from '@react-native-async-storage/async-storage'; // or any getItem/setItem pair

const ship = createShip({
  appKey: 'shp_...',            // from your Ship dashboard
  channel: 'production',
  binaryVersion: '1.2.0',       // the store build version
  platform: 'android',
  storage: AsyncStorage,        // persists the device id + last answer for offline starts
});

const { killSwitch, flags, config } = await ship.checkIn();
if (!killSwitch && ship.getFlag('new_checkout')) {
  // ...
}
const apiUrl = ship.getConfig('api_url', 'https://fallback.example.com');

Call checkIn() on app launch (and on foreground if you like). The last good answer is cached in storage, so getFlag/getConfig answer instantly and work offline; the kill-switch answer is never cached.

Raw REST (no SDK)

Any stack can integrate with two endpoints:

  • POST /api/v1/public/ship/check with { appKey, deviceId, channel?, binaryVersion?, currentRelease?, platform? } returns { killSwitch, flags, config, update, revert }.
  • POST /api/v1/public/ship/report with { appKey, deviceId, releaseId, event } where event is applied | failed | crashed | reverted.

Generate a stable random deviceId once and persist it; it is an opaque bucketing handle, never personal data.

Code push and signatures

Update descriptors carry sha256 and an ed25519 signature over the ascii hex of that hash, signed with your app's private key (server-held). The plugins verify against the signPublicKey you pin from the dashboard before a byte is applied. If you integrate by REST, do the same: hash the downloaded bundle, verify the signature, only then swap.

Privacy

Pass disabled: true (or call setDisabled(true)) to honour an app-level opt-out: nothing is sent at all. Ship stores only a hash of the device id server-side.