RemoteDev Server for Redux DevTools

0.3.1 · abandoned · verified Tue Apr 21

remotedev-server provides a local server bridge for the Redux DevTools ecosystem, enabling remote communication with applications through the Redux DevTools extension, Remote Redux DevTools, or the RemoteDev client. This allows developers to self-host the devtools monitoring server, offering an alternative to the public remotedev.io service for greater control and privacy. The current stable version is 0.3.1, last published in February 2021. The project appears to be largely unmaintained since then, suggesting an abandoned release cadence. Its key differentiator is the ability to run a dedicated, configurable WebSocket server (supporting HTTP/S and custom database options for log persistence) directly within a development environment or as a standalone process to capture and display Redux state changes from connected applications, including React Native. It primarily functions as a CommonJS module.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to programmatically start the remotedev-server with configurable host, port, and protocol, reading options from environment variables. It illustrates the core usage of the default export function.

import remotedev from 'remotedev-server';
import http from 'http';

const PORT = process.env.REMOTEDEV_PORT ? parseInt(process.env.REMOTEDEV_PORT, 10) : 8000;
const HOSTNAME = process.env.REMOTEDEV_HOSTNAME || 'localhost';
const PROTOCOL = process.env.REMOTEDEV_PROTOCOL || 'http';

const serverOptions = {
  hostname: HOSTNAME,
  port: PORT,
  protocol: PROTOCOL
};

// To enable HTTPS, provide key, cert, and passphrase
// if (PROTOCOL === 'https') {
//   serverOptions.key = process.env.REMOTEDEV_KEY_PATH ?? '';
//   serverOptions.cert = process.env.REMOTEDEV_CERT_PATH ?? '';
//   serverOptions.passphrase = process.env.REMOTEDEV_PASSPHRASE ?? '';
// }

remotedev(serverOptions);

console.log(`RemoteDev server running on ${PROTOCOL}://${HOSTNAME}:${PORT}`);
console.log('Connect your Redux DevTools extension to this address.');

view raw JSON →