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

@paris-ias/form

v1.0.32

Published

A comprehensive Nuxt form module with components, composables, stores and GraphQL mutations

Readme

Apex Nuxt Form Module

A comprehensive Nuxt 3 module that provides form components, composables, stores, and GraphQL mutations for building dynamic forms with Vuetify.

Features

  • 🎨 Vuetify Components: Pre-built form components using Vuetify design system
  • 🔄 Reactive Forms: Pinia-based form state management
  • 🧩 Dynamic Forms: Support for nested objects and arrays
  • 📝 Validation: Built-in validation rules
  • 🚀 TypeScript: Full TypeScript support
  • 📊 GraphQL: Ready-to-use GraphQL mutations
  • 🎯 Composables: Utility functions for form handling

Installation

npm install @apex/nuxt-form-module

Setup

Add the module to your nuxt.config.ts:

export default defineNuxtConfig({
  modules: [
    '@apex/nuxt-form-module'
  ],
  formModule: {
    // Configuration options
    enableGraphQL: true,
    enableStore: true,
    componentPrefix: 'Form'
  }
})

Make sure you have the required peer dependencies:

npm install vuetify @pinia/nuxt

Components

Atomic Components

  • FormTextField - Text input field
  • FormTextArea - Multi-line text input
  • FormSelect - Dropdown selection
  • FormAutoComplete - Autocomplete field
  • FormCheckbox - Checkbox input
  • FormBooleanSwitch - Toggle switch
  • FormFileInput - File upload input

Organism Components

  • FormForm - Complete form wrapper
  • FormRecursiveFormblock - Recursive form field renderer

Usage

Basic Form

<template>
  <FormForm 
    category="myForm" 
    @save="handleSave"
    @validate="handleValidate"
  />
</template>

<script setup>
const handleSave = (result) => {
  console.log('Form saved:', result)
}

const handleValidate = (validation) => {
  console.log('Form validation:', validation)
}
</script>

Individual Components

<template>
  <div>
    <FormTextField
      :args="{
        key: 'name',
        label: 'Full Name',
        required: true,
        placeholder: 'Enter your name'
      }"
      :level="['name']"
      category="user"
    />
    
    <FormSelect
      :args="{
        key: 'country',
        label: 'Country',
        items: countries,
        required: true
      }"
      :level="['country']"
      category="user"
    />
  </div>
</template>

Store Usage

The module provides a form store that you can use in your components:

// composables/useMyForm.ts
export const useMyForm = () => {
  const formStore = useFormStore()
  
  // Initialize form
  const initForm = (schema: any, values: any = {}) => {
    formStore.initializeForm('myForm', schema, values)
  }
  
  // Get form values
  const getValues = () => {
    return formStore.myForm?.form?.values || {}
  }
  
  // Save form
  const save = async () => {
    return await formStore.save('myForm')
  }
  
  return {
    initForm,
    getValues,
    save
  }
}

Composables

useFormValidation

const { validateField, validateForm } = useFormValidation()

// Validate individual field
const isValid = validateField(value, rules)

// Validate entire form
const formValidation = validateForm(formData, schema)

Configuration

// nuxt.config.ts
export default defineNuxtConfig({
  formModule: {
    // Enable/disable GraphQL mutations
    enableGraphQL: true,
    
    // Enable/disable Pinia store
    enableStore: true,
    
    // Customize component prefix
    componentPrefix: 'Form', // Components will be named FormTextField, FormSelect, etc.
  }
})

GraphQL Integration

The module includes GraphQL mutations for form operations. Example usage:

// In your component
import eventsMutation from '#form-graphql/mutations/events.gql'

const { mutate } = useMutation(eventsMutation)

const bookEvent = async (itemId: string, slot: any) => {
  const result = await mutate({
    itemId,
    slot
  })
  return result
}

TypeScript Support

The module provides full TypeScript support with proper type definitions:

interface FormArgs {
  key: string
  label?: string
  required?: boolean
  placeholder?: string
  hint?: string
  disabled?: boolean
  readonly?: boolean
  rules?: Array<(value: any) => boolean | string>
}

interface FormProps {
  args: FormArgs
  level: Array<string | number>
  category: string
}

Development

To contribute to this module:

  1. Clone the repository
  2. Install dependencies: npm install
  3. Start development: npm run dev:prepare && npm run dev
  4. Build: npm run prepack

License

MIT License - see LICENSE file for details.

personal notes/ way forward/plan

  • rework default values
  • Fix the ObjectKeypariContainer validation
  • Fix object in array (e.g. people videos)
  • disable tooltip when collectionContainer addBtn is enabled
  • Add a proper AGPL licences to packages
  • implement group control in form display (could match with a dedicated admin export)

...

  • BAck office navigation
  • Add github auth provider similar to sleipnir