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

@vue-uform/vite-plugin

v0.3.1

Published

A plugin used in conjunction with vue-uform.

Readme

@vue-uform/vite-plugin

This is a vite plugin, A plugin used in conjunction with vue-uform.

Features

  • Works with all native HTML input types
  • Supports checkbox/radio/select (single/multiple)
  • Supports third-party UI components (Element Plus, Naive UI, etc.)
  • Minimal syntax, similar to v-model

Documents

Quick Start

  1. Install
pnpm install @vue-uform/vite-plugin -D
  1. configure vite:
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import uForm from "@vue-uform/vite-plugin";

export default defineConfig({
  plugins: [vue(), uForm()],
});

used before:

<template>
  <u-field v-slot="{ value, update }">
    <input :value="value" @input="($event) => update($event.target.value)" />
  </u-field>
</template>

used after:

<template>
  <u-field v-slot="{ value, update }">
    <input f-model />
  </u-field>
</template>

As you can see, it's like a v-model, is also syntactic sugar.

Usage

  1. basic input type,e.g. text,password,tel,email...

The sugar code:

<input type="text" f-model />

will generate this code:

<input
  type="text"
  :value="value"
  @input="($event) => update($event.target.value)"
/>
  1. radio input

Bind the radio button value directly. The field will be updated when selected.

the sugar code:

<input type="radio" value="foo" f-model />

will generate this code:

<input
  type="radio"
  value="foo"
  :checked="value == 'foo'"
  @change="($event) => update('foo')"
/>
  1. checkbox input

Bind the checkbox value directly. The field will be updated when selected.

the sugar code:

<input type="checkbox" f-model />

will generate this code:

<input
  type="checkbox"
  :checked="value"
  @change="($event) => update($event.target.checked)"
/>
  1. checkbox group input, this u-field's value is an array

the sugar code:

<input type="checkbox" value="foo1" f-model />

will generate this code:

<input
  type="checkbox"
  value="foo1"
  :checked="value.find((res) => res == 'foo1') != undefined"
  @change="($event) => update('foo1', 'array')"
/>
  1. select input

Bind the select value directly. The field will be updated when selected.

the sugar code:

<select f-model>
  <option disabled value="">Please select one</option>
  <option>A</option>
  <option>B</option>
  <option>C</option>
</select>

will generate this code:

<select :value="value" @change="update($event.target.value)">
  <option disabled value="">Please select one</option>
  <option>A</option>
  <option>B</option>
  <option>C</option>
</select>
  1. select with multiple

the sugar code:

<select f-model multiple>
  <option disabled value="">Please select one</option>
  <option>A</option>
  <option>B</option>
  <option>C</option>
</select>

will generate this code:

<select
  multiple
  @change="
    update(
      Array.from($event.target.selectedOptions).map((option) => option.value)
    )
  "
>
  <option disabled value="" :selected="value.find((res) => res == '')">Please select one</option>
  <option :selected="value.find((res) => res == 'A')">A</option>
  <option :selected="value.find((res) => res == 'B')">B</option>
  <option :selected="value.find((res) => res == 'C')">C</option>
</select>
  1. third UI component examples:
<n-input f-model:value></n-input>
<el-input f-model></el-input>