{"library":"vite-dev-rpc","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.1.0","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vite-dev-rpc","imports":["import { createRPCServer } from 'vite-dev-rpc'","import { createRPCClient } from 'vite-dev-rpc'","import type { ViteDevRpcOptions } from 'vite-dev-rpc'"]},{"cmd":"yarn add vite-dev-rpc","imports":[]},{"cmd":"pnpm add vite-dev-rpc","imports":[]}],"homepage":null,"github":"https://github.com/antfu/vite-dev-rpc","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-dev-rpc","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vite-dev-rpc/compatibility"}}