npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@pawel-li/signal-store-logger

v0.1.0

Published

Dev-only, zero-config, diff-aware state logger for **NgRx Signal Stores**, plain **Angular services**, and **components** that use Angular signals.

Downloads

56

Readme

@pawel-li/signal-store-logger

Dev-only, zero-config, diff-aware state logger for NgRx Signal Stores, plain Angular services, and components that use Angular signals.

  • Timestamped, color-coded console output
  • Tracks what changed, why (action + UI interaction), and when (wall-clock + delta)
  • Source-map–aware stack traces
  • Pattern warnings (oscillation, stuck loaders, rapid fire, redundant dispatches)
  • Tree-shaken to nothing in production

Quick start

npm install @pawel-li/signal-store-logger
// app.config.ts
import { provideSignalStoreLogger, withStore } from '@pawel-li/signal-store-logger';

export const appConfig: ApplicationConfig = {
  providers: [
    provideSignalStoreLogger({
      stores: [withStore(CartStore)],
      captureInitial: true,
      trace: true,
    }),
  ],
};

Console output:

── CartStore ────────────────────────────────────
what   items    [] → [3 items]
       total    0 → 42.99
why    (click) [Add to Cart] → CartStore.addItem(id: 7)
when   14:23:01.442  (+0.8s)

Track plain services

Use withSignals() to observe any @Injectable() that exposes Angular signals:

provideSignalStoreLogger({
  stores: [withStore(CartStore)],
  targets: [
    withSignals(PulseService, {
      pick: s => ({ count: s.count, isLive: s.isLive }),
    }),
  ],
});

Console badge differentiates services from stores:

── [svc] PulseService ──────────────────────────
what   count    0 → 1
why    (click) [Start] → PulseService.start()
when   14:23:02.110  (+0.7s)

Track components

Call injectSignalLogger() inside any component (or directive) constructor:

import { injectSignalLogger } from '@pawel-li/signal-store-logger';

@Component({ ... })
export class CounterComponent {
  readonly count = signal(0);

  constructor() {
    injectSignalLogger('CounterComponent', () => ({
      count: this.count,
    }));
  }
}
── [cmp] CounterComponent ──────────────────────
what   count    4 → 5
when   14:23:03.002  (+0.4s)

Documentation

| Topic | File | |---|---| | Installation & first log | docs/getting-started.md | | Tracking services | docs/tracking-services.md | | Tracking components | docs/tracking-components.md | | LoggerConfig full reference | docs/configuration.md | | Console output & OutputConfig | docs/output-config.md | | StateChangeEntry type reference | docs/state-change-entry.md | | Pattern warnings | docs/pattern-warnings.md | | Advanced (sanitize, filter, SSR, custom logger) | docs/advanced.md | | Source tracing & source maps | docs/source-tracing.md |


Running tests

nx test signal-store-logger

v0.1.0 Architecture

The internal architecture was redesigned in v0.1.0:

  • Orchestrator pipeline: LoggerOrchestratorService drives the detect → enrich → resolve → render pipeline
  • Decoupled renderer: ConsoleRendererService extends abstract LoggerRenderer — display-only, no business logic
  • Pattern detection for all targets: PatternDetectorService now runs in the pipeline, applying to stores, services, and components
  • EnrichedStateChangeEntry: State change entries carry pre-computed warnings: string[]
  • Zero production overhead: provideSignalStoreLogger() returns makeEnvironmentProviders([]) in prod — no DI tokens, no services, complete tree-shaking
  • Simplified injectSignalLogger: Delegates to the orchestrator instead of duplicating tracking logic