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

@anycms/a2ui-angular

v0.2.0

Published

Angular renderer for A2UI v1.0.

Readme

@anycms/a2ui-angular

An Angular 21 renderer for A2UI v1.0. It renders the same server-driven A2UI message stream as the React and Vue renderers, but with native standalone Angular components — fully zoneless and signal-driven.

It is a peer of @anycms/a2ui-react, @anycms/a2ui-vue, and @anycms/a2ui-dom. The A2UI binders, reactive runtime, and message processor are reused unchanged from @anycms/a2ui-core; only the adapter (A2uiBoundComponent / <a2ui-surface> / <a2ui-node>) and the 18 component Views are reimplemented for Angular.

Why

Drop-in A2UI rendering for Angular apps — no React or Vue runtime, no manual DOM. Each bound node subscribes to its own reactive props stream from core and writes it into a signal, so under zoneless change detection data-model updates repaint the UI granularly, inputs preserve focus across re-renders, and Tabs/Modal preserve local UI state (held in component signals).

Install

pnpm add @anycms/a2ui-angular @anycms/a2ui-core

@angular/core (^21) and rxjs are peer dependencies. Zoneless change detection is the default — zone.js is not required.

Usage

import { Component } from '@angular/core';
import { A2uiSurfaceComponent } from '@anycms/a2ui-angular';
// `surface` is a SurfaceModel produced by MessageProcessor.processMessages(...)

@Component({
  selector: 'app-demo',
  standalone: true,
  imports: [A2uiSurfaceComponent],
  template: `<a2ui-surface [surface]="surface" />`,
})
export class DemoComponent {
  surface = /* a SurfaceModel */;
}

<a2ui-surface [surface] [catalog?] [registry?]> renders the root component of a surface and provides the surface/catalog/registry to the tree. Each bound node self-subscribes to structural events (onCreated/onDeleted), so a component type-change rebuilds its binding and a late-arriving child mounts — without a top-level force-rerender.

The default registry (basicAngularComponents) renders all 18 Basic Catalog components. Pass a custom registry to override individual components:

import { createAngularComponent, basicAngularComponents } from '@anycms/a2ui-angular';
import { textBinder } from '@anycms/a2ui-core';

const registry = new Map(basicAngularComponents);
registry.set('Text', createAngularComponent(textBinder, MyTextView));

A View is a standalone @Component with props / ctx signal inputs (optional for a leaf, read with props()?.…). For local UI state (Tabs, Modal), hold a component signal:

import { ChangeDetectionStrategy, Component, computed, input, signal } from '@angular/core';
import type { TextProps } from '@anycms/a2ui-core';
import { createAngularComponent, type ComponentViewProps } from '@anycms/a2ui-angular';

@Component({
  selector: 'my-text',
  standalone: true,
  template: `<p class="a2ui-leaf">{{ props()?.text }}</p>`,
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class MyTextViewComponent {
  readonly props = input<TextProps>();
  // ComponentViewProps<TextProps> documents the { props, ctx } shape.
}

export const registry = new Map([['Text', createAngularComponent(textBinder, MyTextViewComponent)]]);

How it maps to the React / Vue adapters

| React / Vue | Angular | | --- | --- | | createReactComponent / createVueComponent | createAngularComponent(binder, view) (pairing); binding done in A2uiBoundComponent | | <A2uiSurface> provides context | <a2ui-surface> provides via A2UI_SURFACE InjectionToken | | useState / shallowRef for the props stream | a signal updated from propsStream.subscribe in A2uiBoundComponent | | useState / local ref in Tabs/Modal | a component signal | | reactivity via propsStream subscription | same, bridged to signals (zoneless CD) |

Styling

Mirrors the React/Vue vanilla preset: inline styles with the leaf-margin strategy (leaves carry 8px; containers flush) and semantic class hooks (a2ui-surface, a2ui-row, a2ui-column, a2ui-list, a2ui-leaf, a2ui-modal). No CSS framework required.

License

MIT © Liangdi