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

@fieldia/angular

v0.22.0

Published

Angular binding for Fieldia: <fieldia-form> over the plain-DOM viewer, with custom fields as Angular components and slots as ng-templates.

Readme

@fieldia/angular

Fieldia forms in Angular 21 and 22: a standalone component over @fieldia/viewer, so a page looks and behaves the same as in any other framework.

npm install @fieldia/angular
import { Component } from '@angular/core';
import { FieldiaFormComponent } from '@fieldia/angular';
import { createMemoryDataSource } from '@fieldia/core';
import page from './customer.page.json';

@Component({
  selector: 'app-customer',
  imports: [FieldiaFormComponent],
  template: `<fieldia-form [page]="page" [dataSource]="dataSource" [recordId]="1" skin="underline" />`,
})
export class CustomerComponent {
  readonly page = page;
  readonly dataSource = createMemoryDataSource();
}

Custom fields can be Angular components (fieldTypes), slot content goes in <ng-template fieldiaSlot="name">, and formState(form) gives you a form's state as a signal. The viewer's options are inputs of the same names, but for the app's translator: [translator], because a [translate] binding goes to the element's own HTML attribute. A list page opens a row through the (openRecord) output.

The form's events are outputs: (fieldChange) — not (change), which on a component's element would hear its boxes' own change events too — (save), (send), (step) and (run). An output cannot answer, so the app's answer to a button or a call step is the [answer] input; (action) still tells every call:

@Component({
  imports: [FieldiaFormComponent],
  template: `<fieldia-form [page]="page" [dataSource]="dataSource" [pages]="pages"
    [answer]="answer" (fieldChange)="changed($event)" (save)="saved($event)" (run)="ran($event)" />`,
})
export class OrderComponent {
  readonly answer = async ({ action, values }: ActionRequest) =>
    action === 'check_stock' ? { values: { price: await priceOf(values['product']) } } : undefined;
}

The viewer's host and onOpen are [actionHost] and [openPage]; the handle from (ready) has on, setValues and run.

Before your app leaves the form, ask its one check: await handle.form.leave() in a route's canDeactivate, before removing <fieldia-form>, and before changing an input that mounts it again (page, form, dataSource, recordId, user, context, dir, locale, labels, fieldTypes). Angular destroys it at once, so nothing else can keep the person there. It waits for a save on its way, then asks "Discard your changes?" only when their work is at risk, and answers false when they choose to stay.

A part that throws as it is drawn or brought up to date — a field's component, a slot's content, the app's widget, a map — shows a small box that names it, and the rest of the form goes on; (partError) hears { error, where } (not (error), the DOM's own event). MIT licensed.