Examples

Markdown

Example projects for yak with Next.js, Vite, TanStack Start, Rsbuild, Solid and Storybook, ready to clone and run from the GitHub repository.

Every example lives in the examples folder of the repository and uses the same setup that the docs describe. The examples use the packages from the repository, so build them once in the repository root:

pnpm install
pnpm build && pnpm build:swc

Then run pnpm dev in an example folder to start it.

React

Solid

  • Vite + Solid: examples/vite-solid uses @yak/solid with Solid 2 and the yak plugin from @yak/solid/vite.

Storybook

  • Storybook: examples/storybook has one setup for the Vite builder and one for the webpack builder, both with the @yak/storybook addon. Start them with pnpm storybook:vite or pnpm storybook:webpack. See the Storybook guide for the setup.