Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

76

Lightweight wrapper of React + Router + Redux-saga for SPA development.

Published31 May 2017
Direct dependencies0
Transitive dependenciesNot calculated

README

Current package documentation

76

Lightweight (300 lines) wrapper of React + Redux + Router + saga for SPA development.

Ver Build Status Coverage Status npm download

Install

npm i -S 76

Usage

import { Application, Module } from '76';

const app = new Application('test-app');

const module = new Module('user-list', {
  initialState,
  selectors,
  reducers,
  watchers,
});

app.addModule(module);

app.setRouter(router);

app.start('#web-container', () => { console.log('app start success!'); })

How to write initialState, selectors, reducers, watchers of module?

  • initialState

initialState is the initial state of module, used to initial store of redux. It is a pure object.

const initialState = {
  domain: {
    users: [],
  },
  ui: {
    loading: false,
  },
};
  • selectors

selectors is used to select the data of module state.

const selectors = {
  getUserList: state => state.domain.users
};
  • reducers

reducers is a pure function transform old state to new state.

const reducers = {
  addUser: (state, user) => {
    // use immutable-helper
    return update(state, {
      domain: {
        users: {
          $push: [user],
        },
      },
    });
  },
  ...
};
  • watchers

watchers is the redux action with side-effect, see document of redux-saga.

const watchers = [{
  take: 'takeEvery',
  actions: 'addUserAsync',
  generator: function*(selectors, actions, { payload }) {
    // do something with effects.
  },
}];

TODO

  • Project website developed by 76.

License

ISC@hustcc.

Downloads & popularity

1downloads
7-day window · source-reported counts22 Oct 2026
10.50
2026-10-22: 1 · observed 2026-10-22T19:19:14.6926792Z
22 Oct22 Oct

npm · 1 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-2212026-10-22T19:19:14.6926792Z

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "91e4530e308b6ddfb428f31a9219b67f501fa346",
  "tarball": "https://registry.npmjs.org/76/-/76-1.0.0.tgz",
  "integrity": "sha512-M1afK37sqiTs6C4eEDCBq7s/ru91QEYaEsV43HARCh0lDDMoaxxiSuWS+A8ugyuaSrIbfOPbgqEJl3DnyX/q1Q==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIEpT7FislO/LUAJLeqK/mSXeJLyZ4V02BkX5jHuSXM35AiEAqZAxExADsuGkQisPxEeUYd+s0pranVviWJR9MUPkJ0o="
    }
  ]
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:04 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:bee19f48c49fd2bdfb5d3252b1f3597e90fec4e0d3bdb3fd9fd8e937f5c724c3

Other collected versions

0.0.42 Jan0.0.316 Dec0.0.214 Dec0.0.15 DecView all collected versions →