
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
Framework for creating redux actions and reducers that get data from server via ajax of websockets
A small Redux framework for creating actions and reducers that work with AJAX or WebSocket functions and create real-time apps.
For the previous version and installation, instructions, pleas check the [https://github.com/michalkow/reduxwork/tree/v1](v1 branch).
Install from npm:
npm install reduxwork
You need to have redux and redux-offline
const reduxwork = new Reduxwork({
keyName: 'id',// Name of identificator key in your database.
addKeyOnCreate: false, // Reducers only. When creating a temporary item (before socket/fetch) random indentificator will be added.
rewriteOnUpdate: true,
socketEventName: 'redux_action_event', // Actions only. Name of event that will be send by socket.io.
socket: null, // Actions only. Socket funtion to use for transport.
transport: 'fetch',
virtualFieldsName: 'virtualFields',
localFieldsName: 'localFields',
uuidOptions: {},
uuidVersion: 'v4',
actionInject: (action) => action,
validationHook: null,
createKey: null,
schemas: {}
});
import { applyMiddleware, createStore, compose } from 'redux';
import { createOffline } from '@redux-offline/redux-offline';
import offlineConfig from '@redux-offline/redux-offline/lib/defaults';
import reduxwork from './reduxwork';
import reducers from './reducers';
const offlineOptions = Object.assign({}, offlineConfig, reduxwork.createOfflineOptions());
const { middleware, enhanceReducer, enhanceStore } = createOffline(offlineOptions);
const store = createStore(
enhanceReducer(reduxwork.createRootReducer([reducers])),
reduxwork.createInitialState(),
compose(enhanceStore, applyMiddleware(middleware))
);
import reduxwork from './reduxwork';
export default {
// Standard creator
messages: reduxwork.createIoReducers('messages'),
// Creator with added state and actions to handle
users: reduxwork.createIoReducers('users', {
WENT_ONLINE(state, action) {
return Object.assign({}, state, {
online: [...state.online, action.data]
})
},
WENT_OFFLINE(state, action) {
return Object.assign({}, state, {
online: _.reject([...state.online], action.data)
})
}
})
}
import reduxwork from './reduxwork';
export var {
findMessages,
createMessages,
updateMessages,
destroyMessages,
clearMessages,
selectMessages,
syncMessages,
receiveMessages,
resetMessages
} = reduxwork.createIoActions('Messages');
export var {
findUsers,
createUsers,
updateUsers,
destroyUsers,
clearUsers,
selectUsers,
syncUsers,
receiveUsers,
resetUsers
} = reduxwork.createIoActions('Users');
export var wentOffline = reduxwork.createPostAction('WENT_OFFLINE');
export var wentOnline = reduxwork.createPostAction('WENT_ONLINE');
I created this libary while working on my own projects. It has been really useful, so I thought others might like it as well. It was created to fit me and my own style. Did my best to turn it into an open-source project that accounts for a broad range of usecases. If you have any feedback on style, naming or other things, please let me know or submit a pull request. Thanks!
Reduxwork is released under MIT license.
Reduxwork was created by Michał Kowalkowski. You can contact me at kowalkowski.michal@gmail.com
FAQs
Framework for creating redux actions and reducers that get data from server via ajax of websockets
We found that reduxwork demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.