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 🙏

© 2025 – Pkg Stats / Ryan Hefner

aza

v1.0.27

Published

A redux/react-redux/redux-immutable/react-router packs for building store and routers in react-apps.

Downloads

49

Readme

1. 概述

我们对react16/redux/redux-sage/immutable/redux-immutable/redux-persist/react-router(v4)使用了多个项目后发现,一个高可用、多配置的前端框架很是需要,为了从框架中增加更多对immutable的支持以及对准确loading的控制,我们搭建了这个框架。

其中model的书写习惯部分参考了dvajs的书写习惯,我们还在其中新增了以下几个功能

  • 对subscription进行了拓展,支持onLocalStorage、OnXXXX等浏览器监听
  • 监听request中fetch的状态码,可在subscription中配置{request:"401",dispatch:"XX/XX"} 更方便对错误监听
  • 对react-router v4中,history不支持HashRouter的问题进行了优化,支持了自动在redux中添加routing
  • 全面支持Immutable,目前这个是默认开启的
  • 支持持久化存储,自定义persist,可选择您需要的namespace自定义是否长期存储
  • 支持清空store方法:dispatch({type:"clear/all"})(后期将会添加更多配置来丰富这个功能) (注意:clear方法不会清空routing和loading中的内容,这样可以保证你的应用还可以获取routing和loading状态)
  • 支持redux-sage的全套方法
  • 支持redux-saga-test-plan中的测试流程

2. 适用场景

  • 复杂的桌面应用
  • 需要持久化应用数据的应用
  • 需要immutable不可变数据的应用
  • 需要引入react16版本新特性的应用
  • 需要易于测试或TDD开发的应用
  • 需要多个复杂加载状态控制的应用

Peer Dependencies: react 16 和 react-dom 16

3. 文档地址

查看aza在线文档