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

blipng

v0.0.5

Published

Lightweight library for Angular Signals

Readme

BlipNg

BlipNg is a lightweight, expressive and chainable utility layer for Angular Signals. It provides a Blip<T> wrapper class that allows functional-style chaining of signal transformations, as well as a simple blip() helper function to quickly create signal-backed state.

It also includes a minimal, composable store: BlipNgStore, for simple global state management without NgRx.

✨ Features

  • 🧠 Expressive API with map, filter, switchMap, etc.
  • ⚡ Works with native Angular Signals
  • 💬 Encourages a declarative, reactive mindset
  • 🧱 Includes BlipNgStore for lightweight reactive state
  • ❌ Excludes impure/asynchronous operators by design (see below)

🚀 Getting Started

Install the package:

npm install blipng

Import what you need:

import { blip, Blip, BlipNgStore, provideBlipStore } from 'blipng';

🛠 Usage

Create a Blip

const count = blip(0); // WritableSignal wrapped in a Blip

Read and write values

count.get();      // 0
count.set(1);     // set to 1
count.update(v => v + 1); // increment

Readonly access

const readonlySignal = count.asReadonly();

Access raw signal (for interop)

const angularSignal = count.signal();

📦 Operator chaining

map()

const doubled = count.map(c => c * 2);

filter()

const evenOnly = count.filter(c => c % 2 === 0);

distinctUntilChanged()

const deduped = count.distinctUntilChanged();

switchMap()

const status = count.switchMap(c => blip(c > 10 ? 'big' : 'small').signal());

🧩 Combine multiple signals

const a = blip(1);
const b = blip(2);
const combined = Blip.combine(a.signal(), b.signal());

combined.get(); // [1, 2]

🏪 BlipNgStore (Lightweight State Management)

BlipNgStore is a simple, reactive global store powered by Signals and Blip.

Provide the store in your app:

@NgModule({
  providers: [
    provideBlipStore({ count: 0, user: 'guest' })
  ]
})
export class AppModule {}

Inject and use it:

@Component({...})
export class MyComponent {
  private store = inject(BlipNgStore<{ count: number; user: string }>)

  count = this.store.select('count');

  increment() {
    this.store.update('count', c => c + 1);
  }
}

Methods:

  • select(key) → returns a Blip of the selected property
  • setState(partial) → shallow merge
  • update(key, fn) → update a specific property with a transform
  • state → returns the whole state as a Blip<T>

⚠️ Deprecated / Removed Operators

To preserve the synchronous and pure nature of Angular Signals, the following operators are marked deprecated and will be removed:

| Operator | Reason | |--------------|--------| | debounce() | Asynchronous with hidden effect() and setTimeout(); prefer RxJS interop | | merge() | Impure, creates internal effects, breaks dependency tracking | | sample() | Not traceable via Signal graph, impure effect() |

✅ Preferred alternatives:

Use toSignal() and toObservable() from @angular/core/rxjs-interop:

import { toSignal, toObservable } from '@angular/core/rxjs-interop';
import { debounceTime } from 'rxjs/operators';

const debounced = toSignal(
  toObservable(count.signal()).pipe(debounceTime(300))
);

🤔 Why BlipNg instead of using raw Signals directly?

Raw Angular Signals are great — but their ergonomics can become verbose:

const count = signal(0);
const doubled = computed(() => count() * 2);
count.set(count() + 1);

With BlipNg:

const count = blip(0);
const doubled = count.map(v => v * 2);
count.update(v => v + 1);

Benefits:

  • 👀 Clearer intent with method chaining
  • 📦 Simplifies computed logic
  • 🧩 Enables reusable, composable transformations
  • 🏪 BlipNgStore adds a lightweight alternative to NgRx

Use BlipNg when you want structure, expressiveness, and composability — all with the full power of Angular Signals under the hood.


✅ Philosophy

  • 🔒 Signals are synchronous, pull-based and pure
  • ❌ We avoid hidden side-effects and async behavior inside operators
  • 🌱 If you need advanced async logic — use RxJS. If you want lightweight reactivity — use Signals + BlipNg

📜 License

MIT


Made with ❤️ and signals.