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

woofnals

v1.0.0

Published

Lightweight, Akita-inspired state management for Angular Signals

Downloads

4

Readme

woofnals

Lightweight, Akita-inspired state management for Angular Signals.

Installation

Install the library via npm:

npm install woofnals

Usage

Basic Store Usage

import { Store } from 'woofnals';

interface User {
  id: number;
  name: string;
  email: string;
}

// Create a store for User entities
const userStore = new Store<User>();

// Add entities
userStore.add({ id: 1, name: 'John Doe', email: '[email protected]' });
userStore.addMany([
  { id: 2, name: 'Jane Smith', email: '[email protected]' },
  { id: 3, name: 'Bob Johnson', email: '[email protected]' }
]);

// Get all entities
const users = userStore.getAll();

// Update an entity
userStore.update(1, { name: 'John Updated' });

// Remove an entity
userStore.remove(2);

Query Usage

import { Query } from 'woofnals';

// Create a query for the store
const userQuery = new Query(userStore);

// Get filtered results
const activeUsers = userQuery.selectAll(user => user.active);

// Get a specific entity
const user = userQuery.selectEntity(1);

// Check if loading
const isLoading = userQuery.selectLoading();

EntityStore Usage

import { EntityStore } from 'woofnals';

// EntityStore extends Store with additional query capabilities
const userEntityStore = new EntityStore<User>();

// All Store methods are available
userEntityStore.add({ id: 1, name: 'John', email: '[email protected]' });

// Plus additional query methods
const allUsers = userEntityStore.selectAll();
const specificUser = userEntityStore.selectEntity(1);

Requirements

  • Angular 17+ (supports Angular 17, 18, 19, and 20)
  • TypeScript 4.9+

API Reference

Store

Core store class for managing entities.

Methods

  • add(entity: T): void - Add a single entity
  • addMany(entities: T[]): void - Add multiple entities
  • remove(id: string | number): void - Remove an entity by ID
  • update(id: string | number, changes: Partial<T>): void - Update an entity
  • getAll(): T[] - Get all entities

Query

Query class for reactive data selection.

Methods

  • selectAll(filterFn?: (entity: T) => boolean): T[] - Select all entities with optional filter
  • selectEntity(id: string | number): T | undefined - Select a specific entity
  • selectLoading(): boolean - Check loading state

EntityStore

Extended store with built-in query capabilities.

Inherits all methods from Store<T> and Query<T>.

Development

This section is for contributors who want to develop the library itself.

Prerequisites

  • Node.js 18+
  • npm 9+

Setup

# Clone the repository
git clone <repository-url>
cd woofnals

# Install dependencies
npm install

Building the library

npm run build

The built library will be available in the dist/woofnals/ directory.

Running tests

npm run test

For watch mode during development:

npm run test:watch

Linting

npm run lint

Publishing

To publish a new version:

# Build and publish (dry run first)
npm run publish:dry-run

# Actual publish
npm run release

Project Structure

woofnals/
├── projects/signals/          # Library source code (named signals for Angular CLI compatibility)
│   ├── src/
│   │   ├── lib/
│   │   │   ├── core/         # Core functionality
│   │   │   │   ├── store.ts
│   │   │   │   ├── query.ts
│   │   │   │   ├── entity-store.ts
│   │   │   │   └── signals.ts
│   │   │   └── __tests__/    # Test files
│   │   └── public-api.ts     # Public API exports
│   ├── ng-package.json       # Library build configuration
│   ├── package.json          # Library package configuration
│   └── jest.config.js        # Test configuration
├── dist/                     # Build output
├── angular.json              # Angular CLI configuration
└── package.json              # Workspace dependencies

License

MIT