Houdini is a cutting-edge GraphQL client framework for SvelteKit and Svelte applications, currently at version 1.5.10. It focuses on providing a seamless developer experience with automatic code generation, type safety, and caching. Unlike traditional clients like Apollo Client, Houdini leverages the Svelte reactivity model to produce minimal runtime code. It has an active release cadence, with frequent updates addressing both features and bug fixes. Key differentiators include its disappearing feature - unused code is tree-shaken away, resulting in smaller bundles. It requires SvelteKit and Vite, and ships TypeScript types.
npm install houdiniNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This shows how to set up a basic query in a SvelteKit app using Houdini's code generation and the $houdini module.
Update all imports to use '$houdini' instead of 'houdini'.
Replace @cache with @load or @once as appropriate.
Add a prebuild script: "prebuild": "houdini generate"
Use $storeName syntax or subscribe properly.
Run 'npx houdini generate' to generate the $houdini module.
Ensure you have the Houdini Vite plugin in your vite.config.ts: import { houdini } from 'houdini/vite'; plugins: [houdini()]Use {#if $data} or .then() to ensure data exists, or provide a loading state.