Compare NPM Packages

1 Year
@ngneat/elfSimilar Packages:
NPM Package Downloads Trend
Stat Detail
Package
Weekly Downloads
Github Stars
Issues
Commit
License
@ngneat/elf29,0781,551419 days agoMIT License
Similar Npm Packages to @ngneat/elf

@ngneat/elf is a library that provides a set of Angular components and utilities to help developers build applications more efficiently. It offers a range of tools and components to streamline the development process and enhance the user experience. While @ngneat/elf is a powerful library, there are other popular libraries in the Angular ecosystem that offer similar functionalities. Here are a couple of alternatives:

  • @angular/material is a UI component library for Angular applications. It provides a wide range of pre-built components, theming options, and accessibility features to help developers create visually appealing and user-friendly interfaces.
  • @ng-bootstrap/ng-bootstrap is another library that offers a collection of Bootstrap components and directives for Angular applications. It allows developers to easily integrate Bootstrap's styling and functionality into their Angular projects.

To see how @ngneat/elf compares with @angular/material and @ng-bootstrap/ng-bootstrap, check out this comparison: Comparing @angular/material vs @ng-bootstrap/ng-bootstrap vs @ngneat/elf.

README for @ngneat/elf

Elf

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


@ngneat/elf commitizen PRs coc-badge semantic-release styled with prettier

🤓 Learn about it on the docs site

👩‍🎓 Check out the React Todos example

😋 Check out the Angular Todos example or Books example


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));
}

🗒️ Review the Change Logs

⭐ Usage Trend of Elf Packages

Usage Trend of Elf Packages