Using Starlight Plugins
Starlight has a rich ecosystem of plugins that can be used to extend the functionality of your documentation site. In this project, we have implemented starlight-image-zoom as an example.
Implemented Plugins
Section titled “Implemented Plugins”starlight-image-zoom
Section titled “starlight-image-zoom”This library adds zoom capabilities to images in your documentation. Images on the page can be clicked to enlarge them.
Implementation Steps
Section titled “Implementation Steps”-
Install the package:
Terminal window npm install starlight-image-zoom -
Configure
astro.config.mjs:Import the plugin and add it to the
pluginsarray in the Starlight configuration.astro.config.mjs import starlight from '@astrojs/starlight';import starlightImageZoom from 'starlight-image-zoom';export default defineConfig({integrations: [starlight({// ...plugins: [starlightImageZoom(),],}),],}); -
Usage:
No special markup is required. All images in Markdown/MDX files will automatically support zooming functionality.

Other Recommended Plugins
Section titled “Other Recommended Plugins”Here are some other useful plugins for Starlight:
- starlight-links-validator: Automatically checks for broken links in your documentation.
- starlight-typedoc: Generates documentation from TypeScript code managed with TypeDoc.
- starlight-openapi: Generates documentation from OpenAPI specifications.
For more information, visit the Starlight Plugins Directory.