Vite Dev RPC
JSON →vite-dev-rpc provides a remote procedure call (RPC) mechanism for seamless client-server communication within Vite plugins. It enables developers to define functions on the server-side (Vite plugin context) and invoke them directly from the client-side code, facilitating complex interactions during development. The package is currently at version 1.1.0, actively maintained, with releases primarily focused on supporting new major versions of Vite. It leverages `birpc` for the underlying message-based RPC, `vite-hot-client` to access `import.meta.hot` at runtime, and Vite's `import.meta.hot.send` API for server-client messaging. Its key differentiator is its tight integration with the Vite development server's HMR context, making it a robust solution for enhancing developer tools and features within Vite projects.
Traffic · last 30 days ↓25% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇮🇹 Italy · 🇩🇪 Germany