
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
DEPRECATED: This library is deprecated, please use dva or yax
Front-end framework based on react, redux, react-redux, react-router and redux-saga, inspired by elm and choo. Fork from dva.
$ npm install --save fef
Let's create an count app that changes when user click the + or - button.
import React from 'react';
import fef, { connect, router } from 'fef';
const { Router, Route } = router;
const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
// 1. Initialize
const app = fef();
// 2. Model
app.model({
namespace: 'count',
state: 0,
reducers: {
addDone(data, state) { return state + 1 },
minusDone(data, state) { return state - 1 }
},
effects: {
*add(data, state, send) {
yield delay(1000);
yield send('count:addDone');
},
*minus(data, state, send) {
yield delay(1000);
yield send('count:minusDone');
}
}
});
// 3. View
const App = connect(({ count }) => ({
count
}))(function(props) {
return (
<div>
<h2>{ props.count }</h2>
<button key="add" onClick={() => { props.dispatch({type: 'count:add'})}}>+</button>
<button key="minus" onClick={() => { props.dispatch({type: 'count:minus'})}}>-</button>
</div>
);
});
// 4. Router
app.router(({ history }) =>
<Router history={history}>
<Route path="/" component={App} />
</Router>
);
// 5. Start
app.start(document.getElementById('root'));
fef is available under the terms of the MIT License.
FAQs
Front-End Framework using react redux saga
The npm package fef receives a total of 15 weekly downloads. As such, fef popularity was classified as not popular.
We found that fef 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.