Skip to content
PluginStats

@reticlehq/vite-plugin weekly downloads statistics

By reticlehq (4 listings) · npm · Vite plugins

Vite plugin for Reticle: dev-only source-map stamping plus auto-injected reticle.connect(). apply:'serve' guarantees it never ships to production.

View on npm Fresh · Dec 6, 2026

@reticlehq/vite-plugin has 10,161 recorded weekly downloads on npm, a decrease of 23.3% over the past 30 days, ranking #1249 of 3,247 tracked listings.

Weekly downloads
10,161
Official API · Dec 5, 2026
7-day growth
+26.8%
+2.2K weekly downloads
30-day growth
-23.3%
-3.1K weekly downloads
90-day growth
+665%
+8.8K weekly downloads
Rank
#1249
▲ 74 in 7 days

About @reticlehq/vite-plugin

@reticlehq/vite-plugin

One-line Vite integration for Reticle. The plugin does the whole dev-time wiring for you:

  • Source mapping: stamps data-reticle-source="file:line:col" on JSX host elements (via @reticlehq/babel-plugin) so reticle_look { action: "element" } can report the component's source file. Needed on React 19.
  • Auto-connect: injects a dev-only install(); reticle.connect() into your entry module, so you never touch the entry file yourself.
  • Svelte source mapping: the same stamp on Svelte markup, applied before @sveltejs/vite-plugin-svelte compiles it.
  • Dependency pre-bundling: declares the SDK's CJS runtime deps in optimizeDeps so the SDK loads on linked and monorepo setups.
  • Production-safe by construction: apply: 'serve' means Vite drops the plugin entirely from vite build. There is no env gate to forget; instrumentation cannot reach a production web bundle.

Install

npm i -D @reticlehq/react @reticlehq/vite-plugin

@reticlehq/react is the runtime kit the injected connect() imports (it re-exports the browser SDK). vite >= 4 is a peer dependency.

Use

// vite.config.ts
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { reticle } from '@reticlehq/vite-plugin';

export default defineConfig({
  plugins: [reticle(), react()],
});

That is the entire integration: no entry-file edit, no Babel-plugin wiring, no env gating. npx @reticlehq/server init writes this line for you in a Vite project, inserting reticle() right after the opening [, which is why that is the order shown here.

Array order does not actually matter: the plugin declares enforce: 'pre', so Vite runs it before @vitejs/plugin-react wherever you put it.

Options

reticle({
  port, // bridge WebSocket port; baked into connect() only when non-default
  session, // stable session label; defaults to a fresh per-tab id
  projectId, // stable project identity; defaults to one derived from package.json name + root
  token, // auth token forwarded to connect() when the bridge requires one
  root, // project root, so reported source paths are repo-relative
  sdkVersion, // installed SDK version, so a skewed pair can name itself
  sourceMapping, // default true; stamp data-reticle-source (harmless on React <=18)
  inject, // default true; auto-inject reticle.connect()
  captureNetworkBodies, // default false; record request/response bodies on reticle_observe { action: "network" }
  allowNonLocalhost, // default false; allow a page/bridge that is not on localhost (needs a token)
  desktop, // default false; for an Electron/Tauri renderer (see below)
  onWarn, // where a diagnostic goes; defaults to the console
});

captureNetworkBodies is off by default because a body is the one part of a request that routinely carries a card number, a token, or a customer's address. It is also settable as VITE_RETICLE_CAPTURE_BODIES=1 for a single debugging session.

allowNonLocalhost is for a dev server that cannot be served on localhost — a host-based multi-tenant frontend, or an app with cookie-scoped auth on a custom dev hostname. It is not sufficient on its own: the SDK also requires a pairing token outside localhost, and refuses with "a pairing token is required outside localhost" when it is missing. The plugin supplies one automatically from the daemon's ~/.reticle/pairing-token, so a running daemon is normally all it takes — pass token yourself only when that file is unreachable. A bridge that is itself non-local must also use wss://. Settable as VITE_RETICLE_ALLOW_NON_LOCALHOST=1 for a single session.

desktop: true injects connect() into the renderer's entry module and calls it with allowInProduction, because a desktop renderer reports NODE_ENV=production. It instruments the dev server, and a vite build only when that build runs in a non-production mode (vite build --mode development), for a packaged renderer you drive with no dev server. A production-mode build, which is what vite build and electron-vite build do by default, ships no Reticle code at all, exactly like a web build.

Opting one file out of source stamping

A file whose first non-empty line is a comment carrying @reticle-ignore is not stamped, and its elements will have no file:line:

// @reticle-ignore
export function Generated() { … }

/* @reticle-ignore */ works the same way, and a .svelte component uses <!-- @reticle-ignore --> because it has no line for a // before its markup.

Whole file, first line, on purpose. The reasons to opt out are file-shaped — a generated component, a snapshot test the stamp would break — and a marker that worked from line 40 would be a marker nobody can find. include/exclude globs still exist for whole directories; this is for the one file whose reason sits with the file.

It is not silent. The plugin reports each opted-out file once, by name, in the dev-server output, so an opt-out is something a reader sees rather than something they discover months later from a pointer that never resolves.

Apache-2.0.

Description from the npm listing.

  • vite-plugin
  • reticle
  • react
  • devtools

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@reticlehq/vite-plugin weekly downloads on npm, last 90 days: 10,161 weekly downloads as of Dec 5, 2026, +665% over 90 days.@reticlehq/vite-pluginWeekly downloads on npm · Last 90 days10,161downloads / week+665% over 90 days02K4K6K8K10K12K14K16K18KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@reticlehq/vite-plugin weekly downloads on npm, last 90 days: 10,161 weekly downloads as of Dec 5, 2026, +665% over 90 days.

7/30/90-day growth

@reticlehq/vite-plugin weekly downloads growth on npm: +26.8% over 7 days, -23.3% over 30 days, +665% over 90 days.@reticlehq/vite-pluginWeekly downloads growth on npm10,161downloads / week now7-day growth+2,150 weekly downloads+26.8%30-day growth-3,087 weekly downloads-23.3%90-day growth+8,832 weekly downloads+665%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@reticlehq/vite-plugin weekly downloads growth on npm: +26.8% over 7 days, -23.3% over 30 days, +665% over 90 days.

Ranking history

@reticlehq/vite-plugin npm ranking history: currently #1249 (by weekly downloads).@reticlehq/vite-pluginnpm ranking · by weekly downloads · Last 90 days#1249current rank#1100#1150#1200#1250#1300#1350Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 43 observations · Updated Dec 5, 2026pluginstats.com
@reticlehq/vite-plugin npm ranking history: currently #1249 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 63, #9 (overall #1,249)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 12, #4 (overall #224)
Vite plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for @reticlehq/vite-plugin
Date (UTC)Weekly downloadsChange vs. previous
10,161-30
10,191+175
10,016+1.1K
8,878+191
8,687+443
8,244+455
7,789-222
8,011-537
8,548-211
8,759+179
8,580+202
8,378-407
8,785+216
8,569—

Similar npm Vite plugins plugins

All 20 @reticlehq/vite-plugin alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@reticlehq/vite-plugin. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.