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

@jayoncode/form-intelligent

v3.1.0

Published

Form Intelligent — Typed, framework-agnostic headless form engine for validation, submission, state, drafts, wizards, and plugins. Works with native HTML or any UI framework.

Readme

Form Intelligent — Typed, framework-agnostic headless form workflows for modern web apps.

npm version license docs

Published as @jayoncode/form-intelligent on npm.

Stop rebuilding form workflows in every app. Orchestrate validation, submission, drafts, autosave, multi-step wizards, and conditional when() rules through one headless TypeScript API — without owning your UI. Use it with native HTML or React, Vue, Angular, Svelte, Next.js, and vanilla JavaScript.

Install

npm install @jayoncode/form-intelligent
pnpm add @jayoncode/form-intelligent

The problem it solves

Conditional fields, draft saving, and submit guards usually turn into scattered useEffect / change-handler glue:

// show company fields? require seats? autosave? disable submit?
// → 4 effects, 2 state flags, and a race on every keystroke

@jayoncode/form-intelligent makes those workflows declarative.

Quick start — conditional fields without useEffect

import { createForm, when } from "@jayoncode/form-intelligent";

createForm({
  target: "#checkout",
  schema: {
    plan: { required: true },
    companyName: { minLength: 2 },
  },
  rules: [
    when("plan")
      .equals("enterprise")
      .show("seatCount", "companyName")
      .require("seatCount", "companyName"),
  ],
  workflow: {
    autosave: {
      enabled: true,
      debounceMs: 800,
      onSave: (values) => api.saveDraft(values),
    },
  },
  async onSubmit(values) {
    await api.checkout(values);
  },
});
<form id="checkout">
  <select name="plan">
    <option value="starter">Starter</option>
    <option value="enterprise">Enterprise</option>
  </select>
  <input name="seatCount" type="number" />
  <input name="companyName" />
  <button type="submit">Continue</button>
</form>

More problem → solution snippets

Enhance existing markup in one call

import { createForm } from "@jayoncode/form-intelligent";

createForm({
  target: "#signup",
  schema: { email: "email", name: { required: true, minLength: 2 } },
  validateOn: "onBlur",
  async onSubmit(values) {
    await api.signup(values);
  },
});

Headless bind for your own UI

import { createForm, email, required } from "@jayoncode/form-intelligent";

const form = createForm({
  initialValues: { email: "" },
  validators: { email: [required, email] },
  onSubmit: async (values) => api.save(values),
});

const emailField = form.field("email").bind();
// { name, value, onChange, onBlur, onFocus }
await form.submit();

React adapter

npm install @jayoncode/form-intelligent @jayoncode/form-intelligent-react
import { useForm } from "@jayoncode/form-intelligent-react";

const form = useForm({
  schema: { email: "email" },
  onSubmit: async (values) => api.save(values),
});

return (
  <form {...form.form()}>
    <input {...form.field("email")} />
    <button {...form.submit()}>Submit</button>
  </form>
);

Philosophy

  • Headless — no UI components
  • Workflow-first — autosave, drafts, wizards, retry
  • Rules without effectswhen().equals().show().require()
  • Framework-agnostic — optional React/Vue adapters ship separately

Docs

https://itsjayoncode.github.io/joc/packages/form-intelligent/

Learning path: Overview → Tutorial → Validation → Submission → State → Workflow → RulesPatterns

Playground

https://itsjayoncode.github.io/joc/playground/form-intelligent/

License

MIT © JayOnCode