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 🙏

© 2024 – Pkg Stats / Ryan Hefner

remoteredux-standalone

v1.4.0

Published

A standalone monitor, debugging redux even without internet.

Downloads

20

Readme

remoteredux-standalone

A standalone monitor, debugging redux even without internet. Bridge for communicating with an application remotely via Remote Redux DevTools. Based on remotedev-server.

remoteredux-standalone

Installation

Install the package globally just run:
$ npm install -g remoteredux-standalone
for macOS/linux
$ sudo npm install -g remoteredux-standalone --unsafe-perm=true --allow-root

Or install in package.json

$ npm install remoteredux-standalone --save-dev

Usage

Run remoteredux globally from the terminal to launch the standalone app:
$ remoteredux
Run remoteredux by npm script (if you didn't install globally):

Add in your app's package.json:

"scripts": {
  "remoteredux": "remoteredux --hostname=localhost --port=8000"
}

Then run remoteredux from the terminal

$ npm run remoteredux

Or run in your server.js script for starting a development server:

var remoteredux = require('remoteredux-standalone');
remoteredux({ hostname: 'localhost', port: 8000 });

This server.js will start remoteredux together with your dev server without electron interface, you will have to use your own browser go into your host address.

Connection settings

Set hostname and port to the values you want. hostname by default is localhost and port is 8000.

To use WSS, set protocol argument to https and provide key, cert and passphrase arguments.

$ remoteredux --hostname=localhost --port=8000

Inject to React Native local server

Add in your React Native app's package.json:
"scripts": {
  "remoteredux": "remoteredux --hostname=localhost --port=8000 --injectserver=reactnative"
}

The injectserver value can be reactnative or macos (react-native-macos), it used reactnative by default.

Then, we can start React Native server and RemoteDev server with one command (npm start).

Revert the injection

Add in your React Native app's package.json:

"scripts": {
  "remoteredux-revert": "remoteredux --revert=reactnative"
}

Connect from Android device or emulator

Note that if you're using injectserver argument explained above, this step is not necessary.

If you're running an Android 5.0+ device connected via USB or an Android emulator, use adb command line tool to setup port forwarding from the device to your computer:

adb reverse tcp:8000 tcp:8000

If you're still use Android 4.0, you should use 10.0.2.2 (Genymotion: 10.0.3.2) instead of localhost in remote-redux-devtools or remotedev.

Save reports and logs

You can store reports via redux-remotedev and get them replicated with Redux DevTools extension or Remote Redux DevTools. You can get action history right in the extension just by clicking the link from a report.

Remotedev server is database agnostic. By default everything is stored in the memory, but you can persist data by specifying one of the jsData adapters above for adapter argument. Also you can add an dbOptions argument for database configuration. If not provided the default options will be used (for some adapters, like sql, it's required). You have to install the required adapter's npm package.

| Storage | adapter | dbOptions argument example (optional) | install | |-----------|-----------|------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------| | Firebase | firebase | { basePath: 'https://my-app.firebase.io' } | npm install --save js-data-firebase | | HTTP | http | { basePath: 'https://my-rest-server/api' } | npm install --save js-data-http | | LevelUp | levelup | './db' (the levelup "db" object will be available at "adapter.db") | npm install --save js-data-levelup | | MongoDB | mongodb | { name: 'user', idAttribute: '_id', table: 'users' } | npm install --save js-data-mongodb | | MySQL | sql | { client: 'mysql', connection: { host: '123.45.67.890', user: 'ubuntu', password: 'welcome1234', database: 'db1' } | npm install --save js-data-sql | | Postgres | sql | { client: 'pg', connection: { host: '123.45.67.890', user: 'ubuntu', password: 'welcome1234', database: 'db1' } | npm install --save js-data-sql | | Redis | redis | See the configurable options for node_redis | npm install --save js-data-redis | | RethinkDB | rethinkdb | { host: '123.456.68.987', db: 'my_db' } | npm install --save rethinkdbdash js-data-rethinkdb | | SQLite3 | sql | { client: 'sqlite3', connection: { host: '123.45.67.890', user: 'ubuntu', password: 'welcome1234', database: 'db1' } | npm install --save js-data-sql |

Implement a custom adapter for JSData.

License

MIT