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

kayforms

v0.1.3

Published

The first framework-agnostic reactive form library with time-travel debugging

Downloads

404

Readme

██╗  ██╗ █████╗ ██╗   ██╗███████╗ ██████╗ ██████╗ ███╗   ███╗███████╗
██║ ██╔╝██╔══██╗╚██╗ ██╔╝██╔════╝██╔═══██╗██╔══██╗████╗ ████║██╔════╝
█████╔╝ ███████║ ╚████╔╝ █████╗  ██║   ██║██████╔╝██╔████╔██║███████╗
██╔═██╗ ██╔══██║  ╚██╔╝  ██╔══╝  ██║   ██║██╔══██╗██║╚██╔╝██║╚════██║
██║  ██╗██║  ██║   ██║   ██║     ╚██████╔╝██║  ██║██║ ╚═╝ ██║███████║
╚═╝  ╚═╝╚═╝  ╚═╝   ╚═╝   ╚═╝      ╚═════╝ ╚═╝  ╚═╝╚═╝     ╚═╝╚══════╝

⏰ Forms with superpowers. Under 3KB. Runs at 60fps. Travels through time.

npm version license TypeScript GitHub stars

✨ Quick Start · ⏳ Time Travel · 📦 Frameworks · 📖 API Docs · 🚀 Performance · 🤝 Contributing

Kayforms

🤔 Why does this exist?

Every form library forces a trade-off.

Fast but inflexible. Or flexible but slow. Or React-only. Or too big.

KayForms says: nah. You get speed, flexibility, framework freedom, and a debugging superpower no other form library has.

Your form bugs? Rewind them. Literally.

✨ What makes KayForms different


⚡ Quick Start

Install

# Core (required)
npm install @kayforms/core

# Pick your framework
npm install @kayforms/react    # or vue, solid, svelte, angular, vanilla

Your first form (React)

import { createForm, field } from '@kayforms/react';
import { required, email, minLength } from '@kayforms/core';

function SignupForm() {
  const form = createForm({
    email:    field('', [required(), email()]),
    password: field('', [minLength(8)]),
  });

  return (
    <form onSubmit={form.handleSubmit}>
      <input {...form.email.bind} placeholder="Email" />
      {form.email.error && <span className="error">{form.email.error}</span>}

      <input {...form.password.bind} type="password" placeholder="Password" />
      {form.password.error && <span className="error">{form.password.error}</span>}

      <button type="submit" disabled={!form.isValid()}>
        Sign up
      </button>
    </form>
  );
}

That's it. No register(). No watch(). No wrapping your brain around controlled vs uncontrolled.


⏳ Time Travel Debugging

"It's like a dashcam for your forms."

This is the feature that makes KayForms genuinely different.

What it actually does

Every keystroke is recorded.
Every validation error is timestamped.
Every async API call is logged.

Then you can:

  • Rewind 50 steps in one click
  • 📤 Export the full timeline as JSON
  • 📥 Import it on any machine
  • 🔁 Replay the exact bug your user saw — on your laptop

All of this in less than 1KB.

Enable it

import { createForm, field, enableTimeTravel } from '@kayforms/react';

function DebuggableForm() {
  const form = createForm({
    email:    field(''),
    password: field(''),
  });

  enableTimeTravel(form, { maxHistory: 100 });

  return (
    <div>
      <form onSubmit={form.handleSubmit}>
        <input {...form.email.bind} placeholder="Email" />
        <input {...form.password.bind} type="password" placeholder="Password" />
        <button type="submit">Submit</button>
      </form>

      {/* Time travel controls */}
      <div className="debug-controls">
        <button onClick={() => form.undo()}>⏪ Undo</button>
        <button onClick={() => form.redo()}>⏩ Redo</button>
        <button onClick={() => console.log(form.exportHistory())}>📤 Export</button>
      </div>
    </div>
  );
}

Report a bug with proof

// Attach this JSON to your GitHub issue and we can replay it exactly
const timeline = form.exportHistory();
console.log(JSON.stringify(timeline, null, 2));

No more "I can't reproduce it." No more guessing. Just facts.


📦 Framework Support

KayForms runs anywhere JavaScript runs.

| Framework | Package | Status | |------------|-----------------------|-------------| | ⚛️ React | @kayforms/react | ✅ Stable | | 💚 Vue | @kayforms/vue | ✅ Stable | | 🔥 Solid | @kayforms/solid | ✅ Stable | | 🔶 Svelte | @kayforms/svelte | ✅ Stable | | 🔴 Angular | @kayforms/angular | ✅ Stable | | 🟨 Vanilla | @kayforms/vanilla | ✅ Stable |

npm install @kayforms/core          # Always required
npm install @kayforms/[framework]   # Your choice
npm install @kayforms/devtools      # Optional Chrome DevTools panel

📖 API Reference

createForm

import { createForm, field, fieldGroup, fieldArray } from '@kayforms/core';

const form = createForm(schema, options);

form.getValue()            // → entire form state
form.setValue(data)        // ← set entire form state
form.reset()               // ← reset to initial values
form.validate()            // → runs all validators
form.isValid()             // → boolean
form.subscribe(callback)   // → unsubscribe function

Time Travel

enableTimeTravel(form, { maxHistory: 100 });

form.undo()                // step back
form.redo()                // step forward
form.jumpTo(index)         // jump to specific point in history
form.getHistory()          // → full history array
form.clearHistory()        // wipe the timeline
form.exportHistory()       // → JSON string
form.importHistory(json)   // ← load from JSON

Built-in Validators

import { required, email, minLength, maxLength, pattern, match } from '@kayforms/core';

const form = createForm({
  username: field('',  [required()]),
  email:    field('',  [required(), email()]),
  password: field('',  [required(), minLength(8), maxLength(100)]),
  confirm:  field('',  [match('password')]),
});

Custom Async Validators

const uniqueUsername = async (value: string) => {
  const res = await fetch(`/api/users/check/${value}`);
  const { exists } = await res.json();
  return exists ? 'Username is already taken' : null;
};

const form = createForm({
  username: field('', [required(), uniqueUsername]),
});

🚀 Performance

Benchmarked on MacBook Pro M1 · Chrome 120 · 10 runs averaged

| Fields | KayForms | React Hook Form | Formik | |---------|------------|-----------------|----------| | 10 | 60fps | 60fps | 55fps | | 100 | 60fps | 58fps | 42fps | | 500 | 60fps | 52fps | 28fps | | 1,000+ | 60fps | 45fps | 15fps |

KayForms uses a fine-grained signal architecture — only the exact field that changed re-renders. Nothing else. Not the parent. Not the siblings. Just the signal.


🤝 Contributing

Open source. PRs welcome. Here's how to jump in.

Setup

git clone https://github.com/kelvinagyareyeboah/kayforms.git
cd kayforms
npm install
npm run dev    # start dev server
npm run test   # run test suite

Ways to help

  • 🐛 Found a bug? Export your timeline JSON and open an issue — we can replay it exactly
  • 💡 Have an idea? Open a discussion before a PR so we can align first
  • 📝 Docs unclear? PRs for docs are always welcome, no issue needed
  • Just want to help? Star the repo — it matters more than you'd think

📄 License

MIT © Kelvin Agyare-Yeboah

Use it. Modify it. Ship it. Just keep the copyright notice.


Built for developers tired of fighting their form library.

If KayForms made your life easier, give it a star

It helps more people find it.