@storyblok/astro
v11.0.0
Published
Official Astro integration for the Storyblok Headless CMS
Readme

Features
- Independent, closure-scoped block registries via
defineStoryblokBlocks(() => ({ components, fallback }))— call it more than once for separate registries that never share state StoryblokBlockfor rendering single or nested blocks, and a registry-boundStoryblokRichTextthat renders embedded blocks through the same components- Visual Editor integration using
storyblokEditable - Real-time Live Preview via
storyblokPreviewMiddleware,getPayload, andStoryblokPreview - Render rich text content with the Storyblok Rich Text Renderer based on
@storyblok/richtext - Built-in TypeScript support with comprehensive type definitions
- SSR and SSG support (live updates in the Visual Editor need on-demand rendering; prerendered routes reload on save)
Usage
pnpm add @storyblok/astroastro is a peer dependency.
Documentation
For complete documentation, please visit the package reference.
The API reference also ships with the package at
node_modules/@storyblok/astro/dist/docs/reference.md, so coding agents can read it locally. The
source is docs/reference.md.
Contributing
If you'd like to contribute, please refer to the contributing guidelines.
Community
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
For community support, chatting with other users, please visit:
Support
For bugs or feature requests, please submit an issue.
[!IMPORTANT] Please search existing issues before submitting a new one. Issues without a minimal reproducible example will be closed. Why reproductions are Required.
I can't share my company project code
We understand that you might not be able to share your company's project code. Please provide a minimal reproducible example that demonstrates the issue by using tools like Stackblitz or a link to a GitHub repo. Please make sure you include a README file with the instructions to build and run the project, important not to include any access token, password or personal information of any kind.
Feedback
If you have a question, please ask in the Discuss Storyblok on Discord channel.
