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

@haneinfo/form

v0.7.9

Published

Dynamic structure mechanism: Form definitions (kind Form) with fields, conditions, formulas and subforms, registered with @haneinfo/definition-registry.

Readme

Date comparisons

GT/GTE/LT/LTE compare numbers, valid calendar dates (YYYY-MM-DD), or timezone-qualified datetimes (YYYY-MM-DDTHH:mm:ss with optional fractional seconds and Z or +/-HH:mm). Both operands must have the same category. Dates use calendar order; datetimes compare UTC instants at millisecond precision. Invalid dates, mixed categories and empty operands yield false. EQ/NEQ/IN retain strict scalar equality; matching instants with different textual offsets are still unequal for those operators.

Draft validation (draft 202610-8b3e)

Implemented from draft decision 202610-8b3e; the decision remains draft. fillForm(spec, values, { requireRequired: false }) skips only required checks. Omission or true retains full validation. The registered Form prepareData accepts the same optional plugin-api PrepareDataOptions; upgrade Form, definition-registry (which forwards it), state-machine and plugin-api contract 1.18.0 together. Visible required fields, dynamically enabled required fields and required subform columns all follow the option. Form has no separate requiredWhen declaration: conditional required behavior uses required with visibleWhen/disabledWhen. Type, option, numeric/row bounds, patterns, dates, formula evaluation and conditional visibility retain their existing checks. test_fill_form keeps full validation and gains no client draft parameter. State-machine selects draft mode only for INITIAL data edits, while every transition validates required fields. No schema or widget changes.

Localized labels (draft 202610-a8d3)

Draft implementation; the decision remains draft. Field label, description and option label (at every depth, subform columns included) accept a plain string, unchanged, or a locale map such as { "zh-TW": "借用人", "en": "Borrower" } (plugin-api LocalizedText). The JSON Schema embeds plugin-api's localizedTextJsonSchema ($defs/label: 1–200 code points; $defs/description: up to 2,000); semantic validation adds INVALID_LOCALIZED_TEXT for whitespace-only translations. Every translation is a draft free-text path (/label/*, /description/*, /options/*/label/*), so drafts wrap each one as $userContent. localizeFormSpec(spec, locale?) / localizeFormField return copies with one string per text (default zh-TW); outputs use them so clients never see a map. Fill diagnostics use the default locale. validation.message and placeholder stay strings. Requires plugin API 1.26.0.