@amadeus-it-group/ngrx-devtool
v0.1.3
Published
A development tool for visualizing and debugging NgRx state management in Angular applications. Real-time action monitoring, effect tracking, state visualization, diff viewer, and performance metrics — no browser extensions needed.
Keywords
Readme
NgRx DevTool
A development tool for visualizing and debugging NgRx state management in Angular applications. Real-time action monitoring, effect tracking, state visualization, diff viewer, and performance metrics — no browser extensions needed.
Install
npm install @amadeus-it-group/ngrx-devtoolIf your project uses a private npm registry and you get an E401 error:
npm install @amadeus-it-group/ngrx-devtool --registry=https://registry.npmjs.org/
Setup
// app.config.ts
import { provideNgrxDevTool, createDevToolMetaReducer } from '@amadeus-it-group/ngrx-devtool';
export const appConfig: ApplicationConfig = {
providers: [
provideStore(
{ /* your reducers */ },
{ metaReducers: [createDevToolMetaReducer()] }
),
provideEffects([YourEffects]),
provideNgrxDevTool({
wsUrl: 'ws://localhost:4000',
trackEffects: true,
}),
]
};If you have a separate store module (e.g.
RootStoreModule), addcreateDevToolMetaReducer()inside that module'sStoreModule.forRoot(), not inapp.config.ts:// store.module.ts @NgModule({ imports: [ StoreModule.forRoot( { /* your reducers */ }, { metaReducers: [createDevToolMetaReducer()] } ), EffectsModule.forRoot([YourEffects]) ] }) export class RootStoreModule {} // app.config.ts - only add the devtool provider here providers: [ provideNgrxDevTool({ wsUrl: 'ws://localhost:4000', trackEffects: true }), ]
Run
npx ngrx-devtoolIf your project uses a private registry:
npm_config_registry=https://registry.npmjs.org/ npx ngrx-devtool
Open http://localhost:3000 and start your Angular app.
GitHub
github.com/amadeusitgroup/ngrx-devtool
License
MIT
