Monitoring flux app's actions along with states to a remote monitor. Meant to be used even in production with any flux architecture for web, universal, React Native, hybrid, desktop and server side apps.
npm install --save-dev remotedev
<script src="https://npmcdn.com/remotedev/dist/remotedev.min.js"></script>
// Send initial state to the monitor
RemoteDev.init({});
// Subscribe to RemoteDev to change state (for time travelling)
RemoteDev.subscribe(state => {
this.setState(state);
});
// Send changes to the remote monitor
this.on('afterEach', action => {
RemoteDev.send(action, this.state);
});
See the examples for different flux architectures.
Use one of our monitor apps to inspect action -> state
changes:
- web
- chrome app (recommended)
- electron app.
The source code is here.
Also, it can be used in React Native debugger as a dock monitor.
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.
Also, we'll add later the ability to be used with redux-devtools-extension, so there wouldn't be any server necessary for local deployment of web apps.
- Not ready for production yet, use it only for development.
- The app and the monitor should be under the same external IP address (will remove this restriction later).
MIT