Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@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 { createStore, withProps, select, setProp } from '@ngneat/elf';
import { withEntities, selectAllEntities, setEntities } from '@ngneat/elf-entities';
interface TodosProps {
filter: 'ALL' | 'ACTIVE' | 'COMPLETED';
}
interface Todo {
id: string;
title: string;
status: string;
}
const store = createStore(
{ name: 'todos' },
withProps<TodosProps>({ filter: 'ALL' }),
withEntities<Todo>()
);
export const filter$ = store.pipe(select(({ filter }) => filter));
export const todos$ = store.pipe(selectAllEntities());
export function setTodos(todos: Todo[]) {
store.update(setEntities(todos));
}
export function updateFilter(filter: TodosProps['filter']) {
store.update(setProp('filter', filter));
}
@ngneat/elf
@ngneat/elf-cli
@ngneat/elf-devtools
@ngneat/elf-entities
@ngneat/pagination
@ngneat/persist-state
@ngneat/requests
@ngneat/state-history
FAQs
A reactive state management for JS applications
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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.