Histoire is a fast, Vite-powered interactive storybook for Vue components, currently in v1.0.0-beta.1. It offers a lightweight alternative to Storybook with first-class Vite integration and zero-config setup. Released under active development with frequent beta updates, it supports Vue 3, Nuxt 4, and includes features like style isolation, CommonJS support, and a plugin API. Unlike Storybook, Histoire leverages Vite's native dev server for instant HMR and faster builds. Ships TypeScript types.
npm install histoireVerified import paths — ran on the pinned version, not inferred.
Quickstart showing installation, a basic story file with Story and Variant components, and dev server command.
Update imports to use 'histoire/client' for Story/Variant components, adjust story definitions.
Use ESM imports (import { defineStory } from 'histoire') instead of require().Run 'npm install vite --save-dev' if not already present.
Migrate to setupStory and defineStory.
Update histoire to v1.0.0-beta.1 or later, or use import from 'histoire' directly (but client exports may be missing).
Switch to ES module syntax: import { defineStory } from 'histoire'. If project is CJS, consider using dynamic import().Run 'npm install -D histoire' and ensure it's in package.json devDependencies.