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

notform

v2.2.4

Published

Vue Forms Without the Friction

Downloads

786

Readme

notform is the core NotForm package for Vue 3.

It provides reactive form state, schema-based validation, field state, submission handling, and renderless components that work with any UI you choose.

Installation

pnpm add notform

Install a Standard Schema-compatible validator separately, for example:

pnpm add zod

Basic Usage

<script setup lang="ts">
import { NotField, NotForm, NotMessage, useNotForm } from 'notform'
import { z } from 'zod'

const schema = z.object({
  email: z.email('Enter a valid email address'),
  name: z.string('Enter a valid name'),
})

const form = useNotForm({
  initialValues: {
    email: '',
    name: '',
  },
  onSubmit(values) {
    console.log('Submitted:', values)
  },
  schema,
})
</script>

<template>
  <NotForm
    :form="form"
    @submit.prevent="form.submit"
    @reset="form.reset()"
  >
    <NotField
      v-slot="{ events, path }"
      path="name"
    >
      <div>
        <label :for="path">Name</label>

        <input
          :id="path"
          v-model="form.values.name"
          v-bind="events"
          name="name"
          type="text"
          autocomplete="name"
        >

        <NotMessage :path="path" />
      </div>
    </NotField>

    <NotField
      v-slot="{ events, path }"
      path="email"
    >
      <div>
        <label :for="path">Email address</label>

        <input
          :id="path"
          v-model="form.values.email"
          v-bind="events"
          name="email"
          type="email"
          autocomplete="email"
        >

        <NotMessage :path="path" />
      </div>
    </NotField>

    <button type="submit">
      Submit
    </button>

    <button type="reset">
      Reset
    </button>
  </NotForm>
</template>

API

The core package exports:

  • useNotForm
  • NotForm
  • NotField
  • NotMessage
  • NotArrayField

The form instance manages values, errors, touched and dirty state, validation, submission state, and reset behavior.

Array Fields

NotArrayField provides renderless operations for dynamic arrays while preserving stable item keys during reordering.

<NotArrayField
  path="tags"
  v-slot="{ items, append, remove }"
>
  <div
    v-for="(item, index) in items"
    :key="item.key"
  >
    <NotField :path="item.path" v-slot="{ events, path }">
      <label :for="path">Tag {{ index + 1 }}</label>
      <input
        :id="path"
        v-model="form.values.tags[index]"
        v-bind="events"
        :name="path"
        type="text"
      >
      <NotMessage :path="path" />
    </NotField>

    <button type="button" @click="remove(index)">
      Remove
    </button>
  </div>

  <button type="button" @click="append('')">
    Add tag
  </button>
</NotArrayField>

Type Safety

Field paths and related APIs are inferred from your schema, including nested paths.

form.setValue('email', '[email protected]')
await form.validateField('email')
const errors = form.getFieldErrors('email')

Requirements

  • Vue 3
  • Node.js 24 or later for development in this repository
  • A Standard Schema-compatible validator

Development

From the repository root:

pnpm install
pnpm --filter notform test
pnpm --filter notform typecheck
pnpm --filter notform build

License

MIT © Favour Emeka