Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
The state manager to reduce developers' coding time and increase the lifetime of your codebase.
Realar targeted to all scale applications up to complex enterprise solutions on modular architecture.
You can make stores and "actions" play on runkit
const store = value(0)
const add = store.updater((state, num) => state + num)
const inc = store.updater(state => state + 1)
And bind to React easily play on codesandbox
const App = () => {
const state = useValue(store)
return <p>{state}
<button onClick={inc}>+</button>
</p>
}
You can make streams play on runkit
const addendum = value('0').pre(ev => ev.target.value)
const sum = signal()
.map(() => +addendum.val)
.filter()
.to(add)
And bind to React play on codesandbox
const App = () => {
const addendumState = useValue(addendum)
return <p>
<input value={addendumState} onChange={addendum} />
<button onClick={sum}>sum</button>
</p>
}
You can use classes with decorators
class Counter {
@prop state = 0
add = (num) => this.state += num
inc = () => this.add(1)
}
And bind to React play on codesandbox
const App = observe(() => {
const { state, inc } = useLocal(Counter)
return <p>{state}
<button onClick={inc}>+</button>
</p>
})
And you can use it together play on codesandbox
const counter = new Counter()
const store = value.from(() => counter.state)
const App = () => {
const state = useValue(() => store.val)
return <p>{state}
<button onClick={counter.inc}>+</button>
</p>
}
npm install realar
# or
yarn add realar
Enjoy and happy coding!
FAQs
Advanced state manager for React
The npm package realar receives a total of 6 weekly downloads. As such, realar popularity was classified as not popular.
We found that realar 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
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.