@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.
@reticlehq/vite-plugin has 3,094 recorded weekly downloads on npm, a decrease of 13.3% over the past 30 days.
It ranks #1198 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by +199%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
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
@reticlehq/react is the runtime kit the injected connect() imports (it re-exports the browser SDK). vite >= 4 is a peer dependency.
Use
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
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 */ works the same way, and a .svelte component uses 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
Where @reticlehq/vite-plugin sits in the listing
Each band is one page of 20. Weekly downloads on a log 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.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
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.
Recent observations
Full history (121)Similar npm Vite plugins plugins
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 Oct 18, 2026. See the methodology.