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

cordierite

v0.3.1

Published

Driving React Native tools without in-app debug UI.

Readme

Cordierite

Drive app tools without shipping debug UI

MIT license npm downloads PRs Welcome

The cordierite package is the operator side of Cordierite: run a TLS-terminated WebSocket host, create bootstrap sessions, and list, inspect, and invoke tools registered in the React Native app—so developers, QA, and agents can steer state from a terminal or script instead of hidden in-app debug menus.

Why use this package

  • Host + session flow: host serves wss:// with a certificate generated from your private key and the resolved local IP; the app follows the deep link and claims a short-lived pending session.
  • Tooling from the shell: tools and invoke talk to the device-side registry once the session is active—same conceptual surface automation uses.
  • Fits production-minded apps: the app still only exposes what you register; trust boundaries are pins + TLS on the client (see HANDSHAKE.md).

Security notes

  • You hold the private key for the host cert; the app pins the matching SPKI—no cleartext control plane, no trust in “just” the deep link or LAN.
  • Bootstrap payloads are hints; authorization to speak to your host comes from TLS + pinning, not from payload secrecy alone.

Key setup

Generate a host key with:

cordierite keygen

The command writes an unencrypted PEM private key (PKCS#8) and prints the exact sha256/... SPKI fingerprint your app should place into cliPins. Use the generated file with cordierite host --tls-key ....

Commands (overview)

| Command | Role | | --- | --- | | host | Start the Cordierite wss:// host (generated cert, private key, scheme, optional open-on-macOS). | | connect | Validate a base64url binary v1 bootstrap payload. | | keygen | Interactively generate a host private key and print the app fingerprint for cliPins. | | session | Show the currently active host session. | | tools | List tools on the connected device or inspect one by name. | | invoke | Invoke a device tool with JSON input. |

Global options include --json for machine-readable output. See cordierite --help after install.

Programmatic use

The package exports runCli, createCli, and command helpers from src/index.ts so you can embed the same behavior in Node, Bun, Deno, or other JS runtimes that can execute the bundle and open TLS sockets.

Related packages

Documentation

Made with ❤️ at Callstack

cordierite is an open source project and will always remain free to use. If you think it's cool, please star it 🌟. Callstack is a group of React and React Native geeks, contact us at [email protected] if you need any help with these or just want to say hi!

Like the project? ⚛️ Join the team who does amazing stuff for clients and drives React Native Open Source! 🔥