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

eru-devtools-sdk

v0.1.0

Published

Lightweight SDK that connects apps to Eru Dev Tools for real-time console logs and network inspection

Readme

@eru/devtools-sdk

Lightweight SDK that connects your app to Eru Dev Tools for real-time console log and network request inspection. Works with React Native, Web, and Node.js.

Think Reactotron / Flipper, but built into Eru so you get proxy capture + SDK capture + API testing in one tool.

Install

npm install @eru/devtools-sdk
# or
yarn add @eru/devtools-sdk
# or
pnpm add @eru/devtools-sdk

Quick Start

import { EruDevTools } from '@eru/devtools-sdk';

if (__DEV__) {
  EruDevTools.connect({
    host: 'localhost',
    port: 9091,
    appName: 'MyApp',
  });
}

That's it. All console.log/warn/error/debug/info calls and all fetch() / XMLHttpRequest traffic will stream to Eru in real time.

Platform Setup

React Native

// index.js — add after any XMLHttpRequest polyfill overrides
import { EruDevTools } from '@eru/devtools-sdk';

if (__DEV__) {
  EruDevTools.connect({
    host: 'localhost',
    port: 9091,
    appName: 'MyApp',
    platform: 'react-native',
  });
}

iOS Simulatorlocalhost works out of the box.

Android Emulator — run adb reverse tcp:9091 tcp:9091 first, then localhost works.

Physical Device — use your machine's local IP (e.g. 192.168.1.42) instead of localhost.

Web (React, Vue, Svelte, etc.)

// main.ts or index.ts
import { EruDevTools } from '@eru/devtools-sdk';

if (import.meta.env.DEV) {
  EruDevTools.connect({
    host: 'localhost',
    port: 9091,
    appName: 'MyWebApp',
    platform: 'web',
  });
}

Node.js

import { EruDevTools } from '@eru/devtools-sdk';

if (process.env.NODE_ENV !== 'production') {
  EruDevTools.connect({
    host: 'localhost',
    port: 9091,
    appName: 'MyServer',
    platform: 'node',
    interceptConsole: true,
    interceptNetwork: false, // Node's fetch differs from browser
  });
}

API

EruDevTools.connect(options)

Connect to Eru's DevTools server and start intercepting.

| Option | Type | Default | Description | |--------|------|---------|-------------| | host | string | 'localhost' | Eru DevTools server host | | port | number | 9091 | Eru DevTools server port | | appName | string | 'App' | Display name in Eru | | appVersion | string | '' | App version shown in connection info | | platform | string | auto-detected | 'react-native', 'web', 'ios', 'android', 'node' | | deviceName | string | '' | Device name (e.g. "iPhone 15 Pro") | | bundleId | string | '' | Bundle identifier | | interceptConsole | boolean | true | Auto-patch console.log/warn/error/debug/info | | interceptNetwork | boolean | true | Auto-patch fetch() and XMLHttpRequest |

EruDevTools.disconnect()

Disconnect and restore original console and fetch / XMLHttpRequest methods.

EruDevTools.log(message, ...args)

Send a manual log entry.

EruDevTools.warn(message, ...args)

Send a manual warning.

EruDevTools.error(message, ...args)

Send a manual error.

EruDevTools.debug(message, ...args)

Send a manual debug log.

EruDevTools.tagged(tag, message, ...args)

Send a log with a category tag. Tags appear as colored badges in Eru's console.

EruDevTools.tagged('auth', 'Token refreshed', { expiresIn: 3600 });
EruDevTools.tagged('navigation', 'Screen changed', { screen: 'Profile' });
EruDevTools.tagged('redux', 'Action dispatched', action);

EruDevTools.isConnected

Returns true if currently connected to the Eru server.

What Gets Captured

Console (automatic)

  • console.log(), console.warn(), console.error(), console.debug(), console.info()
  • Original console methods are always called first — output is never suppressed
  • Arguments are safely serialized (handles circular refs, Error objects, DOM nodes)
  • Individual args truncated at 10KB

Network (automatic)

  • All fetch() requests and responses
  • All XMLHttpRequest traffic (React Native uses this under the hood)
  • Captured: method, URL, headers, body, status code, duration
  • Bodies truncated at 100KB
  • Does not interfere with your app's network behavior

Auto-Reconnect

The SDK automatically reconnects with exponential backoff (1s → 30s) if the connection drops. Logs and network events are queued (up to 500 messages) while disconnected and flushed when reconnected.

Size

< 5KB minified + gzipped. Zero dependencies.

License

MIT