
Security News
Researcher Exposes Zero-Day Clickjacking Vulnerabilities in Major Password Managers
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
@ngrx/entity
Advanced tools
@ngrx/entity is a library for managing collections of entities within an Angular application. It provides a set of methods and utilities to simplify the process of managing entity collections, including CRUD operations, sorting, and filtering.
Entity Adapter
The Entity Adapter is a core feature of @ngrx/entity. It provides methods to manage a collection of entities, including adding, updating, and removing entities.
const adapter = createEntityAdapter<User>();Selectors
Selectors are used to query the state of the entity collection. @ngrx/entity provides built-in selectors to get all entities, entities as a dictionary, entity IDs, and the total count of entities.
const { selectAll, selectEntities, selectIds, selectTotal } = adapter.getSelectors();Reducers
Reducers are used to handle actions and update the state. @ngrx/entity provides utility functions to create reducers that can handle adding, updating, and removing entities.
const userReducer = createReducer(initialState, on(addUser, (state, { user }) => adapter.addOne(user, state)));Redux Toolkit is a package that provides tools to simplify Redux development. It includes utilities for creating slices, which can manage collections of entities similar to @ngrx/entity. However, Redux Toolkit is more general-purpose and can be used with any JavaScript framework, not just Angular.
Normalizr is a library for normalizing nested JSON data. It can be used to manage collections of entities by transforming nested data into a flat structure. While it does not provide the same level of integration with state management libraries as @ngrx/entity, it is useful for preparing data to be stored in a state management system.
NGRX Data is an extension of @ngrx/entity that provides additional features for managing entity collections, including entity services and HTTP data access. It builds on top of @ngrx/entity and provides a higher-level API for common entity operations.
The sources for this package are in the main NgRx repo. Please file issues and pull requests against that repo.
License: MIT
20.0.0 (2025-06-09)
BEFORE:
The minimum required version is Angular 19.x
AFTER:
The minimum required version is Angular 20.x
<a name="19.2.1"></a>
FAQs
Common utilities for entity reducers
The npm package @ngrx/entity receives a total of 299,499 weekly downloads. As such, @ngrx/entity popularity was classified as popular.
We found that @ngrx/entity demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers

Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.

Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.