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

rozenite

v2.5.0

Published

Command-line interface for creating and managing Rozenite DevTools plugins

Readme

rozenite-banner

A command-line interface for creating and managing Rozenite DevTools plugins.

mit licence npm downloads Chat PRs Welcome

The Rozenite CLI is the primary tool for scaffolding, building, and developing Rozenite DevTools plugins. It provides an intuitive command-line experience with interactive prompts, automated project setup, and development workflows.

Features

  • Plugin Generation: Create new Rozenite DevTools plugins with a complete project structure
  • Interactive Setup: Guided prompts for plugin configuration and metadata
  • Build System: Compile plugins for different targets
  • Development Server: Hot-reload development environment with file watchers
  • Template System: Pre-configured templates with TypeScript, Vite, and Rozenite integration
  • Rozenite for Agents: Agent-facing CLI for inspecting running apps, discovering domains, and calling tools via rozenite agent
  • Tap: Stream a plugin's messages to the terminal in both directions, and optionally poke one, via rozenite agent tap

Installation

The CLI is included with the main Rozenite package:

npm install rozenite

Quick Start

Generate a New Plugin

Create a new Rozenite DevTools plugin:

npx rozenite generate

This will:

  • Create a new directory with the plugin name
  • Set up TypeScript configuration
  • Configure Vite build system
  • Install necessary dependencies
  • Initialize a Git repository
  • Create a basic plugin structure

Build a Plugin

Compile your plugin for production:

npx rozenite build

This builds the plugin for all configured targets.

Development Mode

Start the development server with hot reload:

npx rozenite dev

This starts:

  • Vite dev server for client panels
  • File watchers for React Native entry points
  • Hot reload for development

Commands

rozenite generate [path]

Generate a new React Native DevTools plugin.

Options:

  • [path] - Target directory (defaults to current directory)

Examples:

# Generate in current directory
rozenite generate

# Generate in specific directory
rozenite generate ./my-plugins/awesome-plugin

rozenite build [path]

Build a React Native DevTools plugin for production.

Options:

  • [path] - Plugin directory (defaults to current directory)

Examples:

# Build current plugin
rozenite build

# Build specific plugin
rozenite build ./my-plugin

rozenite dev [path]

Start development server with file watchers.

Options:

  • [path] - Plugin directory (defaults to current directory)

Examples:

# Start dev server for current plugin
rozenite dev

# Start dev server for specific plugin
rozenite dev ./my-plugin

rozenite open

Open the standalone Rozenite DevTools app in its own Electron window for a device connected to Metro (falling back to your default browser if Electron isn't available). Unlike the embedded DevTools panel, this app keeps installed plugin panels mounted across a JS-VM reload. This command is interactive only — it prompts you to pick a device, so it cannot be run in CI or a non-interactive shell.

Options:

  • --host <host> - Metro host (defaults to 127.0.0.1)
  • --port <port> - Metro port (defaults to 8081)
  • --deviceId <id> - Target device ID; skips the interactive picker

Examples:

# Pick a device interactively
rozenite open

# Open a specific device without the picker
rozenite open --deviceId <id>

# Point at a Metro server on a non-default host/port
rozenite open --host 192.168.1.10 --port 8082

rozenite agent

Inspect a running app from the terminal: list its domains and tools, and call them. The first command creates the agent session for the connected device (or reuses the running one); stop it when you are done, since it holds the device's only debugger connection.

rozenite agent domains                               # list domains
rozenite agent console                               # list a domain's tools
rozenite agent console getMessages --help            # a tool's arguments
rozenite agent console getMessages --levels error    # call a tool
rozenite agent session stop                          # stop the session

A tool's arguments are flags derived from its input schema; --args '<json>' passes them as one JSON object instead. With several devices connected, add --device <id> (or set ROZENITE_DEVICE); rozenite agent targets lists them. Output is JSON: compact when piped, indented on a terminal or with --pretty. See the Agent docs.

rozenite agent tap

Stream a Rozenite Agent session's plugin messages to stdout, in both directions, without opening a browser or React Native DevTools. Because it's bidirectional, it also doubles as a minimal stand-in for DevTools: send one message from the terminal with --send/--payload, then keep watching for what comes back. A device serves only one debugger connection at a time, so a tap replaces React Native DevTools if it's already attached — the same tradeoff rozenite agent makes. Stop the tap (Ctrl-C) to free the connection back up. It uses the same session as every other rozenite agent command.

Arguments and options:

  • [plugin] - Only stream this plugin ID; required with --send
  • --send <type> - Send one message of this type, then keep watching
  • --payload <json> - JSON payload for the sent message (defaults to {})
  • --session <id> / --device <id> - Which session to use, as for every rozenite agent command
  • --host <host> / --port <port> - Metro host/port (defaults to 127.0.0.1:8081)

Output is one arrow line per message on a terminal, and newline-delimited JSON when piped.

Examples:

# Watch a plugin's traffic
rozenite agent tap @acme/sqlite-plugin

# Poke a plugin and watch what comes back
rozenite agent tap @acme/sqlite-plugin --send sqlite:query --payload '{"sql":"select 1"}'

# Newline-delimited JSON, for scripts and agents
rozenite agent tap | your-script

See the Tap docs for the full output contract.

Plugin Structure

When you generate a new plugin, the CLI creates the following structure:

my-plugin/
├── src/
│   └── hello-world.tsx          # Example plugin component
├── package.json                 # Plugin dependencies and metadata
├── tsconfig.json               # TypeScript configuration
├── vite.config.ts              # Vite build configuration
├── rozenite.config.ts          # Rozenite plugin configuration
└── react-native.ts             # React Native entry point

Configuration

rozenite.config.ts

The main configuration file for your plugin:

export default {
  panels: [
    {
      name: 'Hello World!',
      source: './src/hello-world.tsx',
    },
  ],
};

Development Workflow

  1. Generate a new plugin using rozenite generate
  2. Develop your plugin using rozenite dev
  3. Build for production using rozenite build
  4. Test your plugin in React Native DevTools
  5. Publish your plugin to npm

Requirements

  • Node.js >= 22
  • pnpm, npm, or yarn package manager

Made with ❤️ at Callstack

rozenite 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! 🔥