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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@quickflo/quickforms-vue

v1.16.16

Published

Vue 3 bindings for QuickForms - JSON Schema form generator

Readme

@quickforms/vue

Vue 3 bindings for QuickForms - JSON Schema form generator.

Features

  • DynamicForm - Main form component with VeeValidate integration
  • Field Components - Pre-built components for basic types (string, number, boolean, enum, date)
  • FieldRenderer - Automatic component selection based on schema
  • VeeValidate Integration - Form validation and state management
  • TypeScript - Full type safety

Installation

pnpm add @quickforms/vue vue vee-validate

Quick Start

<script setup lang="ts">
import { ref } from 'vue';
import { DynamicForm, type JSONSchema } from '@quickforms/vue';

const schema: JSONSchema = {
  type: 'object',
  properties: {
    name: {
      type: 'string',
      title: 'Full Name',
      minLength: 2
    },
    email: {
      type: 'string',
      format: 'email',
      title: 'Email'
    },
    age: {
      type: 'number',
      title: 'Age',
      minimum: 0
    }
  },
  required: ['name', 'email']
};

const formData = ref({});

const handleSubmit = (data: any) => {
  console.log('Form submitted:', data);
};
</script>

<template>
  <DynamicForm
    :schema="schema"
    v-model="formData"
    @submit="handleSubmit"
  />
</template>

Components

DynamicForm

Main form component that generates form fields from JSON Schema.

Props:

  • schema: JSONSchema - JSON Schema definition
  • modelValue?: Record<string, any> - Form data (v-model)
  • options?: FormOptions - Form configuration

Events:

  • @update:modelValue - Emitted when form data changes
  • @submit - Emitted when form is submitted with valid data

Slots:

  • actions - Custom submit button area

Field Components

Pre-built field components:

  • StringField - Text inputs, email, url, textarea
  • NumberField - Number inputs with min/max/step
  • BooleanField - Checkbox
  • EnumField - Select dropdown
  • DateField - Date, time, datetime inputs

Each field supports:

  • Validation via VeeValidate
  • Error messages
  • Required field indicators
  • Disabled/readonly states
  • Accessibility (ARIA labels)

Composables

useFormField

Hook for individual field state management.

const { value, errorMessage, label, hint } = useFormField(path, schema);

useFormContext

Access form-level context.

const context = useFormContext();
// { readonly, disabled, schema, rootPath }

Customization

Custom Submit Button

<template>
  <DynamicForm :schema="schema" v-model="formData" @submit="handleSubmit">
    <template #actions="{ isValid, errors }">
      <button type="submit" :disabled="!isValid">
        Save Form
      </button>
      <button type="button" @click="cancel">
        Cancel
      </button>
    </template>
  </DynamicForm>
</template>

Form Options

<template>
  <DynamicForm
    :schema="schema"
    v-model="formData"
    :options="{
      readonly: false,
      disabled: false
    }"
  />
</template>

Styling

All components use scoped styles with CSS classes prefixed with quickform-. You can override styles globally or use custom field components.

License

MIT