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

@modyra/angular

v0.12.0

Published

Type-safe Angular forms built entirely on native Signals.

Downloads

281

Readme

@modyra/angular

Angular binding for the Modyra form engine — one of eight adapters over the same form model, and one of the three that ship a rendered UI catalogue: typed forms on native signals, a full accessible UI catalog, devtools, multi-step wizard, declarative mode and Reactive Forms interop. No FormControl, no FormGroup, no RxJS.

Install

npm install @modyra/angular
# optional theme package (skip if you go headless):
npm install @modyra/styles
// angular.json → styles
"styles": ["@modyra/styles/default.css", "src/styles.scss"]

Angular 21+ is required (the library relies on stable signal APIs — linkedSignal, effect semantics, signal-based inputs/queries).

Entry points

| Import | Contents | Extra peer deps | | :------------------------ | :---------------------------------------- | :------------------------------- | | @modyra/angular | Full bundle: adapter + UI + tools | — | | @modyra/angular/adapter | Headless Angular adapter layer only | — | | @modyra/angular/ui | UI primitives and built-in renderers only | — | | @modyra/angular/zod | mdyFormFromSchema() | @modyra/zod + zod (optional) | | @modyra/angular/interop | mdyCva for Reactive Forms | @angular/forms (optional) |

60-second example

import { Component } from "@angular/core";
import { field, group, mdyForm } from "@modyra/angular/adapter";
import {
  MdyFormComponent,
  MdyTextComponent,
  MdyNumberComponent,
} from "@modyra/angular/ui";
import {
  email as mdyEmail,
  min as mdyMin,
  required as mdyRequired,
} from "@modyra/core";

@Component({
  selector: "app-signup",
  standalone: true,
  imports: [MdyFormComponent, MdyTextComponent, MdyNumberComponent],
  template: `
    <mdy-form [form]="form" [action]="save">
      <mdy-control-text [field]="form.f.email" label="Email" />
      <mdy-control-number [field]="form.f.age" label="Age" />
      <mdy-control-text [field]="form.f.address.city" label="City" />
      <button type="submit" [disabled]="!form.state.canSubmit()">
        Sign up
      </button>
      <button type="button" (click)="form.reset()">Reset</button>
    </mdy-form>
  `,
})
export class SignupComponent {
  readonly form = mdyForm({
    email: field("", [mdyRequired(), mdyEmail()], {
      asyncValidators: [
        async (v) => ((await isTaken(v)) ? ["Email taken"] : []),
      ],
      asyncDebounceMs: 300,
    }),
    age: field<number | null>(null, [mdyMin(18)]),
    address: group({ city: field("Rome"), zip: field("") }),
  });

  save = async (value: Record<string, unknown>) => {
    const res = await api.signup(value);
    if (!res.ok) {
      return [
        { path: "email", kind: "server", message: "Email already registered" },
      ];
    }
  };
}

Validators are factories: write required(), not required (Reactive Forms muscle memory trips here). Errors come back as arrays of message strings; use composeFirst() to stop at the first failure.

What you get

  • Compile-checked field paths[field]="form.f.emial" does not compile (enforced by the library's own @ts-expect-error type tests).
  • Sync, async and cross-field validation — debounced, cancellable (AbortSignal), last-wins async runs with pending state; server-side checks that read the rest of the form via serverValidator().
  • Typed field arraysarray() for repeatable rows: form.f.items.push(...), @for over form.f.items.rows().
  • Drafts, undo/redo, getChanges() — autosave/restore (versioned, TTL'd, sensitive-field aware), history, minimal-patch tracking.
  • Accessible UI catalog — text, textarea, number, checkbox, toggle, radio, segmented, select (search/multi/chips), slider, datepicker, daterange, timepicker, colors, file — themed by @modyra/styles.
  • Devtools overlay — inspect state live; sensitive-looking paths are masked.
  • Wizard — multi-step forms over the same engine.
  • Declarative mode — template-only forms when the typed API is overkill.

Documentation

Status: young library (0.x), actively developed, single maintainer — pin your version and read release notes.

License

MIT © Lorenzo Muscherà