
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Facebook Flux architecture implementation based on self dispatching actions and commands
Sinux is a Facebook Flux architecture implementation inspired by signal-as3 and SignalMapCommand extension for Robotlegs. Sinux use co library
Visit the book, Sinux, a flux implementation based on signal to see the documentation and examples.
Sinux is available on NPM
npm i sinux
yarn add sinux
Since version 0.2.0 Command objects are deprecated. Command are simple javascript function that can return a result or a function (see async below).
import { Store } from sinux
const store = new Store({ initialState: true }, 'action','action2');
store.action.add( (state, ...args) => {...state, ...args} );
store.action({ foo:'bar' }).then( () => console.log( store.getState() ) );
// {initialState: true, foo: 'bar'}
var sinux = require('sinux');
var Store = sinux.Store;
var store = new Store({ initialState: true }, 'action','action2');
store.action.add( function (state) {
// Array.prototype.slice.call(arguments,1)
// ...
});
store.action({ foo:'bar' }).then(function () {
console.log(store.getState())
});
// using generator function
store.action.add( (state, ...args) => {
return function *(){
let r = yield store.action2(...args)
return r
}()
});
// using Promise
store.action.add( (state, ...args) => {
return new Promise((resolve, reject) => {
setTimeout(()=> resolve(...args), 1000)
})
})
Here is a simple todo app made with Sinux and React Native. todoStore.load show how to do asynchronous call View source
MIT
FAQs
Facebook Flux architecture implementation based on self dispatching actions and commands
We found that sinux 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.