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

form0-core

v0.1.22

Published

Schema-driven engine that powers form0 ecosystem. Looking for the full form0 ecosystem? Install the CLI: `npm install -g form0-cli`

Downloads

316

Readme

form0-core

NPM Version NPM Downloads NPM License Docs Website NPM Last Update

[!WARNING] form0 is in active, very early development. Do not use in production. Expect breaking changes and unstable behavior.

form0-core is the schema-driven engine that powers form0 open-source ecosystem. It is framework-agnostic and runs in any JavaScript runtime (Node.js, browsers, React Native, etc.)

🚀 Start with the CLI (recommended)

The entry point for most users is form0-cli. Follow the quickstart to create a project and preview your schema.

🗂️ Documentation

  • Overview: https://docs.form0.dev/core/overview
  • Concepts: https://docs.form0.dev/core/concepts
  • Full docs: https://docs.form0.dev

Direct usage (advanced)

If you are integrating the engine directly:

npm install form0-core

form0-core owns behavioral schema concerns such as fields, conditions, calculations, events, and AI metadata. Applications may still attach optional top-level metadata such as id (unique form identifier), status (publication state), version (schema version), scope fields like main_org_id, and media or location settings. Operational counters like record_count and record_last_change_at should stay platform-owned and be injected at application or API boundaries, not treated as engine-authored schema. A top-level form.version may still exist, but the engine does not bump or consume it.

Record-side contract

form0-core intentionally uses two different choice-value shapes:

  • Live engine / renderer values use renderer shape:
    • single / boolean: { choice, other }
    • multi: { choices, other }
  • Structured records use canonical stored shape:
    • single / boolean: { choice_value, other_value }
    • multi: { choices_value, other_value }

Record-side utilities follow this contract:

  • createStructuredRecord() outputs canonical stored records
  • normalizeStructuredRecord() consumes and returns canonical stored records
  • buildFormRecordSnapshot() consumes canonical stored records and returns renderer snapshot values
  • projectDatasetRowValues() consumes canonical stored rows
  • Choice FIELD_SPECS keep separate validators by context:
    • valueValidator validates live engine / renderer values
    • recordValueValidator validates canonical stored record values

Record status remains top-level as @status; it is not stored inside form_values.

Security

See SECURITY.md for security modes and configuration.

Requirements

  • Node.js 18+

Related repositories

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.