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

vize

v0.818.0

Published

Vize - High-performance Vue.js toolchain in Rust

Downloads

251,483

Readme

Vize

The vize npm package is the default application-facing entry point for package scripts and shared configuration. It provides:

  • shared config utilities (defineConfig, loadConfig)
  • package-script commands backed by the native binding: build, fmt, lint, and check
  • ready for fmt --write -> lint -> check -> build
  • upgrade for updating the npm package

For Vite integration, pair it with @vizejs/vite-plugin. For the full Rust-native CLI (lsp, ide, project-backed check, and check-server), use the GitHub release binaries or the Nix entry point. The Rust CLI is not published through crates.io for v1 alpha.

Native target discovery

On macOS, the npm CLI lists the installed iOS simulators without changing them:

vp exec vize native devices
vp exec vize native devices --json

--json prints the selected Xcode SDK, the installed iOS runtimes and every simulator with its SDK match. Unsupported hosts, missing tools and the absence of a matching simulator exit with status one and a diagnostic. The standalone Rust release binary does not have this command.

Need vp first? Install Vite+ once from the Vite+ install guide.

Installation

For an existing Vite or Vite+ project, run the setup command from the project root:

vp dlx vize setup

The command:

  • installs vize, the Vite and Musea plugins, Oxlint, and oxlint-plugin-vize;
  • keeps Vue settings in the existing vite.config.*, creates tsconfig.json when absent, and creates oxlint.config.ts for plain Vite projects when needed;
  • enables the Vize Oxlint preset in the lint block of a standard Vite+ config, so vp lint checks Vue files;
  • adds non-conflicting vize:* package scripts for build, format, lint, check, Musea, and ready;
  • replaces a canonical zero-option @vitejs/plugin-vue import with @vizejs/vite-plugin, then removes the old dependency.

Setup is idempotent. It preserves existing config files and package scripts. Dedicated vize.config.* files are retired: setup leaves them unchanged and reports the migration to vue: in vite.config.* and vueCompilerOptions in tsconfig.json. A dedicated-only project must migrate before setup can complete. Setup leaves custom Vite plugin calls such as vue({ ... }) unchanged because those options need a deliberate migration. Use vize setup --no-install to generate the files and scripts without changing dependencies.

After installation, vz is a short alias for the same CLI:

vz ready src

The remaining work for the full Vize Plus proposal is safe merging into existing Vize and Vite+ lint/Oxlint configs, option-aware migration of custom or multiple Vite configs, and project-specific Musea plugin injection. Those cases are intentionally reported and preserved by this first setup slice instead of being rewritten heuristically.

For manual installation:

vp install -D vize

The native TypeScript compiler is provided by your project, not bundled or downloaded by Vize. For project type checking, install [email protected] and use its content mapper as described in the Type Checking guide. vize check, the language server, and type-aware linting use the same native runtime resolver. Explicit runtime settings such as --corsa-path, typeChecker.corsaPath, and CORSA_PATH take priority over discovery in the selected project's dependency graph. Global compiler installations require an explicit path; Vize does not search HOME, global npm installations, or PATH. A missing runtime reports an actionable error; formatting and other commands that do not need type information remain available.

To keep TypeScript 6 for other tools, install the native compiler under an npm alias:

vp install -D typescript-native@npm:[email protected]

Vize does not declare a compiler peer dependency, because a canonical typescript package, a project alias, and an explicitly configured external executable are all valid runtime sources. The selected compiler must support the operation being requested; a TypeScript 6 JavaScript compiler is not a native checker runtime.

Package Scripts

Add scripts to your project and run Vize through your package manager:

{
  "scripts": {
    "vize:build": "vize build src",
    "vize:fmt": "vize fmt --write src",
    "vize:lint": "vize lint --preset happy-path src",
    "vize:check": "vize check",
    "vize:ready": "vize ready src",
    "vize:upgrade": "vize upgrade"
  }
}

Then run:

vp run vize:build
vp run vize:fmt
vp run vize:lint
vp run vize:check
vp run vize:ready
vp run vize:upgrade

For one-off local debugging, the installed binary is also available through npm exec:

vp exec vize lint --preset essential src

The npm commands read the selected project's vite.config.ts, .mts, .cts, .js, .mjs or .cjs. Put native Vue settings in vue:. With Vite+, keep your existing configuration and add native settings through the fluent helper:

// vite.config.ts
import { defineConfig } from "@vizejs/vite-plugin/vite-plus";

const vpConfig = { server: { port: 3000 } };

export default defineConfig(vpConfig).withVue({
  compiler: {
    sourceMap: true,
    vapor: false,
    customRenderer: false,
    templateSyntax: "standard",
  },
  experimentals: {
    vapor: false,
    jsxVapor: false,
    inTagComment: false,
    patternedTemplate: false,
    selfComponent: false,
    strictSlotChildren: false,
    serverScript: false,
  },
  vite: { scanPatterns: ["src/**/*.vue"] },
  linter: { preset: "opinionated" },
  typeChecker: {
    enabled: true,
    // Large cold LSP projects can raise the default 60-second Corsa request bound.
    lspRequestTimeoutMs: 90000,
  },
});

For ordinary Vite, use defineConfig from vite, keep plugins: [vize()], and place the same native settings in vue: { ... }.

Keep TypeScript strictness and Vue template options in tsconfig.json:

{
  "compilerOptions": { "strict": true, "noEmit": true },
  "vueCompilerOptions": { "strictTemplates": true },
  "include": ["src/**/*"]
}

Standard TypeScript extends and project references remain supported. There is no Vize-specific config extends; import ordinary JavaScript settings and pass them to defineConfig(vpConfig).withVue(vueConfig) instead.

Dedicated vize.config.* files and top-level vize: are no longer supported. A leftover dedicated file beside a Vite config is an error, the same migration error as a dedicated-only project. Override Vite configuration selection with --config, select a TypeScript project with --tsconfig, or disable shared Vue config with --no-config. CLI, Vite integration and editor use the same project settings.

Static Analysis

vize lint runs Vue-aware Patina diagnostics through the native binding. Prefer named package scripts for the presets your project uses:

{
  "scripts": {
    "vize:lint:ci": "vize lint --preset essential --max-warnings 0 src",
    "vize:lint:ecosystem": "vize lint --preset ecosystem src",
    "vize:lint:opinionated": "vize lint --preset opinionated --help-level short src",
    "vize:lint:json": "vize lint --format json src",
    "vize:lint:plain": "vize lint --format plain src",
    "vize:lint:agent": "vize lint --format agent src"
  }
}
vp run vize:lint:ci
vp run vize:lint:ecosystem
vp run vize:lint:opinionated
vp run vize:lint:json
vp run vize:lint:plain
vp run vize:lint:agent

Lint output supports text, ansi, plain, json, stylish, markdown, html, and agent. The human and agent-friendly formats include local rule documentation paths such as docs/content/rules/vue.md.

vize check in the npm package uses the packaged NAPI checker and the native TypeScript runtime installed by your project, so it can run from package.json scripts after installing both:

{
  "scripts": {
    "vize:check": "vize check src",
    "vize:check:virtual-ts": "vize check src --show-virtual-ts",
    "vize:check:declarations": "vize check src --declaration --declaration-dir dist/types"
  }
}
vp run vize:check
vp run vize:check:virtual-ts
vp run vize:check:declarations

Use the Rust CLI when you need Corsa project diagnostics across Vue, TS, TSX, and .d.ts inputs.

vize ready runs fmt --write, lint, check, and build in that order.

TypeScript Content Mapper

The TypeScript 7.1 API roadmap identifies Content Mappers as the TS Server plugin replacement needed by Vue. Vize publishes the package metadata and protocol server merged upstream in microsoft/typescript-go#4712, letting TypeScript 7.1 or newer, and tsrs, transform .vue files directly instead of materializing a parallel .vue.ts project.

{
  "compilerOptions": {
    "module": "preserve",
    "strict": true
  },
  "contentMappers": [
    {
      "package": "vize",
      "extensions": [".vue"]
    }
  ],
  "include": ["src"]
}
tsc --runExternalCode --noEmit -p tsconfig.json

tsrs checks the same project:

tsrs --runExternalCode --noEmit -p tsconfig.json

Content mappers ship in TypeScript 7.1, starting with the 7.1 beta (typescript@beta). Keep --runExternalCode explicit. vize check remains available for the checker packaged in vize; new projects should use the content mapper. Vize negotiates protocol v1 with UTF-8 mappings, resolves its mapper options and its declared checkJs / noUnusedLocals compiler-option dependencies per project through the openProject/closeProject lifecycle (invalid options surface as optionDiagnostics in the tsconfig), maps <!-- @vue-expect-error --> and <!-- @vue-ignore --> template comments onto the protocol's diagnostic directives, and tags every transform response with the .tsx virtual extension so both TypeScript and embedded JSX parse correctly. See the Content Mapper guide for setup and directive semantics.

Compiler and Tool Options

Important shared fields:

| Field | Used by | Purpose | | ---------------------------------- | ------------------------------ | ------------------------------------------------------------------ | | compiler.sourceMap | Vite plugin | Enable source maps | | compiler.ssr | npm build, Vite plugin | Force SSR compilation | | compiler.vapor | npm build, Vite plugin | Enable Vapor compilation | | compiler.customRenderer | npm build, Vite plugin | Treat lowercase non-HTML tags as custom renderer elements | | compiler.customElements | npm build, Vite plugin | Tag patterns compiled as custom elements instead of Vue components | | compiler.templateSyntax | npm build, Vite plugin | Choose standard, strict, or quirks template syntax mode | | experimentals.vapor | npm build, Vite plugin | Opt into experimental SFC Vapor before compiler support | | experimentals.jsxVapor | Vite plugin | Opt into experimental JSX Vapor by default | | experimentals.inTagComment | npm build, Vite plugin, syntax | Opt into in-tag // comments | | experimentals.patternedTemplate | npm build, Vite plugin | Opt into v-match / v-when patterned templates | | experimentals.selfComponent | npm build, Vite plugin | Opt into reserved <Self> recursive component resolution | | experimentals.strictSlotChildren | npm check | Opt into strict slot child contract checks | | experimentals.serverScript | npm build, Vite plugin | Preserve server-script RFC opt-in surface | | compiler.compatibility | integrations | Opt into legacy Vue, Nuxt, CDN, Vapor, or Webpack bridges | | compiler.scriptExt | npm build | Preserve TypeScript output or downcompile to JavaScript | | vite.scanPatterns | Vite plugin | Pre-compile matching Vue files | | linter.preset | npm lint | Select the Patina lint preset | | typeChecker.strict | npm check | Enable strict checks | | formatter.printWidth | npm fmt | Set formatting width |

Template syntax

compiler.templateSyntax defaults to "standard".

  • "standard" warns and rewrites invalid non-void HTML self-closing tags such as <div />.
  • "strict" reports invalid syntax as compilation errors.
  • "quirks" preserves compatibility quirks without extra warnings.
<template>
  <!-- Standard/strict reject this. Quirk mode compiles it as `item in items`. -->
  <div v-for="(item in items">{{ item }}</div>

  <!-- Standard/strict reject this. Quirk mode compiles it as `item in items`. -->
  <div v-for="item) in items">{{ item }}</div>

  <!-- Standard warns and rewrites this as `<div></div>`. Strict errors. Quirk keeps it as a leaf. -->
  <div />
</template>

Vue upstream reference:

Experimental Vue RFC Flags

Every experimental Vue RFC flag is off by default. Set a key to true or {} in experimentals to enable it for the matching tool; false and null keep it disabled. The historical names intagComment and pattenedTemplate are still accepted as aliases for inTagComment and patternedTemplate, but new configs should use the recommended names.

Supported opt-ins cover in-tag // comments, v-match / v-when patterned templates, reserved <Self> recursion, and virtual-TypeScript slot child contract checks. See docs/experimental-vue-rfc-flags.md for syntax, examples, tool coverage, and upstream RFC links.

Programmatic Config Helpers

Use the Vite+ helper shown above to define vite.config.ts. A separate script can read its normalized native settings without defining another config file:

// scripts/read-vue-settings.ts
import { loadConfig } from "vize/config";

const config = await loadConfig(process.cwd(), { mode: "auto" });
console.log(config?.linter.preset);

The defineConfig export from vize only types a native options payload for API callers; it is distinct from the Vite+ composition helper. Do not use it to create a dedicated configuration file.

Related Packages

  • @vizejs/vite-plugin
  • @vizejs/native
  • @vizejs/wasm
  • @vizejs/nuxt
  • @vizejs/vite-plugin-musea

License

MIT