Socket
Socket
Sign inDemoInstall

remote-redux-devtools

Package Overview
Dependencies
20
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    remote-redux-devtools

Relay Redux actions to remote Redux DevTools.


Version published
Weekly downloads
23K
increased by1.06%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Remote Redux DevTools

Demo

Use Redux DevTools remotely for React Native, hybrid, desktop and server side Redux apps.

Installation

npm install --save-dev remote-redux-devtools

Usage

Just add our store enhancer to your store:

store/configureStore.js
import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import devTools from 'remote-redux-devtools';
import reducer from '../reducers';

export default function configureStore(initialState) {
  const enhancer = compose(
    applyMiddleware(thunk),
    devTools()
  );
  // Note: passing enhancer as last argument requires redux@>=3.1.0
  return createStore(reducer, initialState, enhancer);
}

Remote monitoring

Use one of our monitor apps to inspect and redo actions:

The source code is here.

It also included in following projects:

Communicate via local server

In order to make it simple to use, by default, the module and the monitor app communicate via remotedev.io server. Use remotedev-server cli to run it locally in order to make the connection faster and not to require an internet connection.

Parameters

NameDescription
nameInstance name to be showed in the app.
hostnameIf port is specified, default value is localhost.
portLocal host's port.
filtersMap of arrays named whitelist or blacklist to filter action types.
maxAgeNumber of maximum allowed actions to be stored on the history tree, the oldest actions are removed once maxAge is reached. Default is 30.

All props are optional. You have to provide at least port property to use localhost instead of remotedev.io server.

Example:

export default function configureStore(initialState) {
  // Note: passing enhancer as last argument requires redux@>=3.1.0
  return createStore(
    rootReducer,
    initialState,
    devTools({ name: 'Android app', hostname: 'localhost', port: 8000, maxAge: 30, filters: { blacklist: ['EFFECT_RESOLVED'] }})
  );
}

Examples

Limitations

  • Use it only for development, NOT in production!
  • The app and the monitor should be under the same external IP address.
  • For web apps it's easier and way faster to use Chrome extension instead. The remote monitoring is meant to be used for React Native, hybrid, desktop and server side apps.

License

MIT

Keywords

FAQs

Last updated on 22 Apr 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc