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.
@ngneat/elf
Advanced tools
A Reactive Store with Magical Powers
Elf is a reactive immutable state management solution built on top of RxJS. It uses custom RxJS operators to query the state and pure functions to update it.
Elf encourages simplicity. It saves you the hassle of creating boilerplate code and offers powerful tools with a moderate learning curve, suitable for experienced and inexperienced developers alike.
✅ Modular by design
✅ Tree Shakeable & Fully Typed
✅ CLI
✅ First Class Entities Support
✅ Requests Status & Cache
✅ Persist State
✅ State History
✅ Pagination
✅ Devtools
import { Store, createState, withProps, select } from '@ngneat/elf';
import { withEntities, selectAll, setEntities } from '@ngneat/elf-entities';
interface TodosProps {
filter: 'ALL' | 'ACTIVE' | 'COMPLETED';
}
interface Todo {
id: string;
title: string;
status: string;
}
const { state, config } = createState(
withProps<TodosProps>({ filter: 'ALL' }),
withEntities<Todo>()
);
const store = new Store({ name: 'todos', state, config });
export const filter$ = store.pipe(select(({ filter }) => filter));
export const todos$ = store.pipe(selectAll());
export function setTodos(todos: Todo[]) {
store.update(setEntities(todos));
}
export function updateFilter(filter: TodosProps['filter']) {
store.update(state => ({
...state,
filter
}));
}
FAQs
A reactive state management for JS applications
The npm package @ngneat/elf receives a total of 24,566 weekly downloads. As such, @ngneat/elf popularity was classified as popular.
We found that @ngneat/elf demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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.