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

v-vite-plugin

v0.0.0

Published

A Vite.js plugin for integrating the V programming language with modern frontend tooling.

Downloads

17

Readme

V-Vite Plugin 🔥

V-Vite Plugin is a Vite.js plugin designed to enhance the development experience of projects built with the V programming language.

✨ Features

  • 🔄 Seamless integration of V with Vite.
  • ⚡ Hot Module Replacement (HMR) support.
  • 🚀 Efficient build process optimized for V projects.

📦 Installation

Using npm:

npm install v-vite-plugin --save-dev

Using pnpm:

pnpm add v-vite-plugin --save-dev

Using yarn:

yarn add v-vite-plugin --dev

Using Bun:

bun add v-vite-plugin --dev

Using Deno:

deno add npm:v-vite-plugin

⚙️ Usage

Add v-vite-plugin to your vite.config.js or vite.config.ts:

import { defineConfig } from 'vite';
import v from 'v-vite-plugin';

export default defineConfig({
  plugins: [v('src/resources/main.js')],
});

🔧 Configuration

The plugin requires you to specify the entry points of your application. These can be JavaScript or CSS files, as well as preprocessed language elements like TypeScript, JSX, TSX, Sass, etc. You can provide a string, an array of entries, or a configuration object as specified below:

interface PluginConfig {
  /** The path or paths of the entry points to compile. */
  input: InputOption;

  /** V's public directory. @default 'public' */
  publicDirectory?: string;

  /** The public subdirectory where compiled assets should be written. @default 'build' */
  buildDirectory?: string;

  /** The path to the "hot" file. @default `${publicDirectory}/hot` */
  hotFile?: string;

  /** The path of the SSR entry point. */
  ssr?: InputOption;

  /** The directory where the SSR bundle should be written. @default 'ssr' */
  ssrOutputDirectory?: string;

  /** Configuration for full page refresh on file changes. @default false */
  refresh?: boolean | string | string[] | RefreshConfig | RefreshConfig[];

  /** Transform the code while serving. */
  transformOnServe?: (code: string, url: DevServerUrl) => string;
}

interface RefreshConfig {
  paths: string[];
  config?: FullReloadConfig;
}

Example usage:

v({
  input: ['src/rsources/main.css', 'src/resources/main.js'],
  publicDirectory: 'static',
  buildDirectory: 'dist',
  hotFile: 'static/hot',
  ssr: 'src/ssr-entry.v',
  ssrOutputDirectory: 'server',
  refresh: ['src/resources/**', 'src/templates/**'],
});

🤝 Contribution

We welcome contributions! If you find an issue or have an idea for improvement, feel free to submit a pull request or open an issue.

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.