Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Vite Plugin Hot Module Replacement API
description: The Vite Plugin API extends Rolldown's plugin interface with Vite-specific hooks for controlling the build pipeline, configuring the development server, transforming HTML entry points, and managing hot module replacement (HMR). Plugins are plain JavaScript objects returned from a factory function and can hook into both serve (dev) and build phases.
version: 6.0.0
contact:
name: Vite Team
url: https://vitejs.dev
license:
name: MIT
url: https://github.com/vitejs/vite/blob/main/LICENSE
servers:
- url: http://localhost:5173
description: Vite Development Server
tags:
- name: Hot Module Replacement
description: HMR-related plugin capabilities
paths:
/__hmr/update:
post:
operationId: triggerHmrUpdate
summary: Trigger HMR Update
description: Internal endpoint used by the Vite HMR system to notify the client about module updates.
tags:
- Hot Module Replacement
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/HmrUpdate'
responses:
'200':
description: HMR update dispatched
/__hmr/full-reload:
post:
operationId: triggerFullReload
summary: Trigger Full Page Reload
description: Forces a full browser reload when HMR cannot patch a module in-place.
tags:
- Hot Module Replacement
responses:
'200':
description: Full reload triggered
components:
schemas:
ModuleUpdate:
type: object
description: Individual module update in an HMR payload.
required:
- type
- path
- timestamp
properties:
type:
type: string
enum:
- js-update
- css-update
description: Module type being updated.
path:
type: string
description: Module path as served by Vite.
acceptedPath:
type: string
description: The accepted module path (may differ from updated path).
timestamp:
type: integer
description: Timestamp for cache busting.
HmrUpdate:
type: object
description: HMR update payload sent from the server to the browser client.
required:
- type
- updates
properties:
type:
type: string
enum:
- update
- full-reload
- prune
- error
description: Type of HMR event.
updates:
type: array
items:
$ref: '#/components/schemas/ModuleUpdate'
description: List of module updates.
externalDocs:
description: Official Vite Plugin API Documentation
url: https://vite.dev/guide/api-plugin