itsjavi / storylite

A lightweight alternative to StoryBook for React, built on top of Vite⚡️, compatible with CSF 3.0
http://itsjavi.com/storylite/
MIT License
107 stars 0 forks source link
component-driven component-library component-story-format csf csf3 design-system react stories storybook vite vitejs

StoryLite

npm package bundlephobia bundlephobia
build status code coverage homepage

Open in StackBlitz

StoryLite is a modern and lightweight toolkit for crafting and managing design systems and React components with ease. Inspired by the popular StoryBook UI and powered by Vite⚡️, StoryLite offers a streamlined and familiar developer experience, thanks to the story format compatible with Component Story Format (CSF) 3.0.

With StoryLite, you can quickly create, test, and refine React-based UI components in isolation, ensuring that your application maintains a consistent look and feel.

Tailored for smaller React projects that crave simplicity without the overhead of a full StoryBook setup, StoryLite provides an intuitive UI that's customizable to your unique needs.

StoryLite

Features

Installation

To install StoryLite, simply run one of the following commands in the project where you want to define the stories:

# Using npm
npm install -D @storylite/storylite vite @storylite/vite-plugin

# Using yarn
yarn add -D @storylite/storylite vite @storylite/vite-plugin

# Using pnpm
pnpm add -D @storylite/storylite vite @storylite/vite-plugin

For the next steps, please check the example React directory to learn how to integrate it in your project.

While all examples here show how to integrate it with Vite, StoryLite can be used with any bundler since it is a client-side React app that can be mounted anywhere in your project.

Adding MDX support

Check the docs package to see how to add MDX support to your project:

With this setup you can:

You currently can't:

Current Focus and Future

While StoryLite is geared towards React components at the moment, the potential exists for broader compatibility with other frameworks supported by Vite. We're continuously enhancing the tool and looking to:

Contributing

Contributions are encouraged; Please check out our contributing guidelines before submitting a PR.

License

MIT License

Acknowledgements

Inspired by:

Built with: