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

ngx-signal-plus

v2.8.0

Published

A comprehensive utility library for Angular Signals that provides enhanced functionality, operators, and utilities

Readme

ngx-signal-plus

Angular 16-21 npm version Coverage

Bring validation, persistence, undo/redo, and reactive queries to Angular Signals on Angular 16+.

  • Full API docs: https://github.com/milad-hub/ngx-signal-plus/blob/main/projects/signal-plus/docs/API.md
  • Repository README (contributors): https://github.com/milad-hub/ngx-signal-plus/blob/main/README.md

Installation

npm install ngx-signal-plus

Requirements

  • Angular >=16.0.0 <=21.0.0
  • TypeScript >=5.0.0

Why this library?

| Capability | Angular native | ngx-signal-plus | | --- | --- | --- | | Signal validation and validation helpers | Limited | sp().validate(), presets, schema helpers | | localStorage persistence | Manual | sp().persist() | | Undo/redo history | Manual | sp().withHistory() | | Transaction rollback | Manual | spTransaction() | | Middleware/interceptors | No built-in | spUseMiddleware() | | Query cache/retry/invalidation | resource/httpResource (basic) | spQuery(), spMutation(), QueryClient | | Collection CRUD helpers | Manual | spCollection() |

Quick Start

import { Component, computed } from "@angular/core";
import { sp } from "ngx-signal-plus";

@Component({
  standalone: true,
  selector: "app-counter",
  template: `
    <p>Count: {{ counter.value }}</p>
    <p>Doubled: {{ doubled() }}</p>
    <button (click)="inc()">+</button>
    <button (click)="dec()">-</button>
    @if (counter.history().length > 1) {
      <button (click)="counter.undo()">Undo</button>
    }
  `,
})
export class CounterComponent {
  counter = sp(0).persist("counter").withHistory(10).validate((n) => n >= 0).build();
  doubled = computed(() => this.counter.value * 2);

  inc() {
    this.counter.setValue(this.counter.value + 1);
  }

  dec() {
    if (this.counter.value > 0) this.counter.setValue(this.counter.value - 1);
  }
}

Core APIs

  • Signal creation: sp, spCounter, spToggle, spForm, spComputed
  • Signal enhancement: enhance
  • Operators: spMap, spFilter, spDebounceTime, spThrottleTime, spDelay, spDistinctUntilChanged
  • Developer experience: spCombine, spAll, spAny, spEffect, spDebug, spMonitor, sp().debug(label), sp().monitor(options)
  • Forms and groups: spForm, spFormGroup
  • Async helpers: spAsync, spCollection
  • Reactive queries: spQuery, createDependentQuery, spInfiniteQuery, spMutation, QueryClient, setGlobalQueryClient, getGlobalQueryClient
  • Transactions: spTransaction, spBatch
  • Schema validation: spSchema, spSchemaValidator
  • Middleware: spUseMiddleware, spRemoveMiddleware, spLoggerMiddleware, spAnalyticsMiddleware

Foundations Updates

  • spComputed() now exposes a read-only surface via ReadonlySignalPlus<T>.
  • SignalPlus<T> now includes errors: Signal<string[]> for consistent validation error access.
  • Builder monitoring is available via sp().monitor(options) and records updates through spMonitor.
  • Registered middleware now runs in normal set/setValue/update runtime paths for built signals.

Comparisons

ngx-signal-plus vs Angular native signals

  • Angular provides core signal primitives (signal, computed, effect) and now also resource/httpResource for async patterns.
  • ngx-signal-plus focuses on higher-level utilities on top of signals: validation, persistence, undo/redo, middleware, transactions, collections, and query-style helpers.
  • Angular resource and httpResource are still marked experimental in Angular docs.

ngx-signal-plus vs NgRx Signals (@ngrx/signals)

  • NgRx Signals is a full state-management approach centered on Signal Store architecture (store features, methods/hooks, and structured app state patterns).
  • ngx-signal-plus is intentionally lighter: composable utilities that keep you close to native Angular signal usage without adopting a full store architecture.
  • @ngrx/signals is actively maintained (current npm line is 20.x).

ngx-signal-plus vs TanStack Query (Angular)

  • TanStack Query is a dedicated server-state library (fetching, cache lifecycle, invalidation, retries, mutations).
  • The Angular adapter package is @tanstack/angular-query-experimental, and TanStack currently labels it experimental.
  • ngx-signal-plus includes query-style capabilities inside one package that also covers local signal utilities.

ngx-signal-plus vs Akita

  • Akita is a store-centric architecture built around RxJS stores/queries.
  • ngx-signal-plus is signal-first and utility-first, designed for composable local/global signal state without store boilerplate.
  • Akita is no longer actively evolving like modern signal-first tools: the npm package is old (8.0.1, last published years ago), and the GitHub repository is archived.

Documentation

  • API documentation: https://github.com/milad-hub/ngx-signal-plus/blob/main/projects/signal-plus/docs/API.md
  • Contributing guide: https://github.com/milad-hub/ngx-signal-plus/blob/main/projects/signal-plus/CONTRIBUTING.md
  • Issues: https://github.com/milad-hub/ngx-signal-plus/issues

License

MIT