Vite Dev RPC

JSON →
library 1.1.0 ·javascript
verified May 27, 2026

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.

total hits 16
actors 5 distinct systems
last hit 1d ago human
GPTBot
5
MetaBot
4
Script
1
Search engines
1
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇮🇹 Italy · 🇩🇪 Germany