
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
A simple way to manage UI state and side effects with RxJS.
npm install @kahlil/flow-state
import { createFlowState } from '@kahlil/flow-state';
const flowState = createFlowState();
In your components dispatch actions by passing the action constant and optionally an action payload. The payload can be any value.
flowState.dispatch({ type: 'SOME_ACTION', payload: { some: 'state' } });
In a file that you could call Store, create and expose state streams for your components by passing the respective reducers.
Here is also the place where you can combine state streams if they depend on one another.
// A collection of reducers.
const itemListReducers = {
deleteItem: (action, state) =>
state.filter(item => state.filter(item.id !== action.payload.id)),
addItem: (action, state) => [...state, action.payload],
// ...
};
itemListState$ = flowState.createState$(itemListReducers, initialState);
In your component you can now subscribe to the component state stream:
itemListState$.subscribe(state => console.log(state));
You can trigger your side effects similar to redux-observable by listening to the actions stream, triggering your side effect and return a new action.
Each side effect is a function and has to be passed to
flowState.runSideEffects.
The action that the result of each side effect maps to
// An imaginary API.
const serverApi = new serverApi();
const action$ = flowState.getAction$();
const sideEffect1 = action$ => action$
.filter(action => action.type === 'DELETE_ITEM')
.switchMap(action => serverApi.deleteItem(action.payload))
.map(response => ({ type: 'RECEIVE_ITEMS', payload: response }))
.catch(response => ({ type: 'DELETE_ITEM_ERROR', payload: response.error });
const sideEffect1 = action$ => action$
.filter(action => action.type === 'ADD_ITEM')
.switchMap(action => serverApi.addItem(action.payload))
.map(response => ({ type: 'RECEIVE_ITEMS', payload: response }))
.catch(response => ({ type: 'ADD_ITEM_ERROR', payload: response.error });
flowState.runSideEffects(sideEffect1, sideEffect2);
MIT © Kahlil Lechelt
FAQs
A simple way to manage UI state and side effects with RxJS.
The npm package kunley receives a total of 0 weekly downloads. As such, kunley popularity was classified as not popular.
We found that kunley 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
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.