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

@processpuzzle/design

v0.2.1

Published

![Build and Test](https://github.com/ZsZs/processpuzzle/actions/workflows/build-design.yml/badge.svg) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=processpuzzle_design&metric=alert_status)](https://sonarcloud.io/summary

Readme

@processpuzzle/design

Build and Test Quality Gate Status Node version

Introduction

@processpuzzle/design is the Design-time module of the ProcessPuzzle Low-Code platform. It provides the Angular entry point through which end-users author the artifacts that make up a business application: entities, rules, states, workflows, and desktops. The library ships a routable landing page, child routes for each building block, and a route-awareness service that lets host applications react to the user entering or leaving the /design area.

It sits alongside the corresponding runtime libraries (base-entity-frontend, base-rule-frontend, base-state-frontend, base-desktop-frontend, base-workflow-frontend) and composes their routes into a single design experience.

Features

  • Design landing page (DesignContentComponent) — a card grid, powered by MatCardsGridComponent from @processpuzzle/widgets, that links to each design building block.
  • Aggregated routing (DESIGN_ROUTES) — a Routes array to be mounted under /design in the host application; automatically pulls in the child routes exposed by sibling design libraries (currently BASE_RULE_ROUTES).
  • Route awareness (DesignRouteService) — a root-provided Angular service exposing an isDesignRoute signal so surrounding UI (menus, breadcrumbs, toolbars) can adapt when the user is inside /design.
  • i18n scoped translations — the landing page registers a Transloco scope (design), so card titles, subtitles, content, and action captions are fully localizable.

Public API

| Export | Kind | Purpose | |------------------------|-----------------------|--------------------------------------------------------------------------------------------| | DESIGN_LIBRARY | const string | Library identifier ('@processpuzzle/design') — useful for logging and diagnostics. | | DESIGN_ROUTES | Routes | Angular route array to mount under /design; includes the landing page and child routes. | | DesignContentComponent | Component | Standalone card-grid landing page shown at /design. | | DesignRouteService | @Injectable (root) | Exposes the isDesignRoute: Signal<boolean> for route-aware UI. |

Setup and Usage

Installation

npm install @processpuzzle/design

Mounting the routes

In the host application's route configuration, lazy-load the design area under /design:

import { Routes } from '@angular/router';

export const APP_ROUTES: Routes = [
  {
    path: 'design',
    loadChildren: () => import('@processpuzzle/design').then((m) => m.DESIGN_ROUTES),
  },
];

The path segment must be designDesignRouteService matches URLs starting with /design.

Using the route-awareness signal

import { Component, inject } from '@angular/core';
import { DesignRouteService } from '@processpuzzle/design';

@Component({ /* ... */ })
export class ToolbarComponent {
  private readonly designRoute = inject(DesignRouteService);
  readonly isDesignRoute = this.designRoute.isDesignRoute;
}

Then in a template:

@if (isDesignRoute()) {
  <pp-design-toolbar />
}

Technical Details

Dependencies

Runtime peer dependencies (see package.json):

  • @angular/common, @angular/core, @angular/router~22.0.5
  • @jsverse/transloco8.4.0
  • @processpuzzle/widgets^0.8.0
  • rxjs~7.8.2

Architecture Notes

  • Standalone components — no NgModule; everything is standalone: true and consumed via imports.
  • Signals over observablesDesignRouteService exposes state as a Signal<boolean> rather than an Observable, aligning with Angular 21's signal-first direction. The router subscription uses takeUntilDestroyed() for automatic cleanup.
  • Composable routesDESIGN_ROUTES spreads child libraries' route arrays, so adding a new design building block only requires extending the array.
  • Scoped i18n — the design Transloco scope is provided at the component level, keeping translation keys isolated from the host application.

Testing

  • Vitest with happy-dom (see vitest.config.ts).
  • Coverage collected via @vitest/coverage-v8; run with pnpm nx test design --configuration=ci --coverage.

Build

  • Packaged with ng-packagr via @nx/angular:package.
  • Build with pnpm nx build design --configuration=production.

Status

Early-stage — the current API surface covers the design landing page, aggregated routing, and route-awareness. Additional building blocks (entities, states, workflows, desktops) will be linked in as their route arrays become available.