SpotPatch — select a React UI element and jump to its exact JSX/TSX source #23255
huanglvjing
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi Vite community 👋
I built SpotPatch, a local-first, development-only feedback workspace for React applications powered by a Vite plugin.
Instead of sending a screenshot and asking a developer or coding agent to “change this part,” SpotPatch keeps the rendered UI connected to its actual source context.
What it does
It also includes a Beta data-flow inspector for viewing proven component API relationships, consumed response fields, and data destinations.
Vite integration
SpotPatch injects development-only source markers through the Vite transform pipeline and exposes its local workspace through the development server.
Production builds are tested to contain no SpotPatch Runtime, source markers, local protocol endpoints, or provider credentials.
The currently supported public integration covers Vite 5, 6, and 7 with React 18.2–18.3.
Try it
From an existing Vite + React project:
Then start the normal development server and choose Select element, or press
Mod+Shift+S.GitHub:
https://github.com/huanglvjing/spotpatch
npm:
https://www.npmjs.com/package/@spotpatch/vite
I’d especially appreciate feedback from Vite plugin authors about transform interoperability, source-position accuracy, HMR behavior, and production isolation.
All reactions