Playground
The repository ships runnable examples so you can inspect the actual integration instead of reading only isolated snippets.
Start the backend
sh
bun run playground:apiThis launches the Elysia API at http://localhost:3000.
Start a client
For the plain Vue app:
sh
bun run playground:vueFor the Nuxt app with SSR:
sh
bun run playground:nuxtWhat to inspect
The playgrounds are useful for verifying four behaviors end to end:
useQuery()reads with generated keysuseMutation()writes with automatic invalidation- inferred response and body types
- Nuxt hydration behavior
Relevant files
playground/api/src/index.tsdefines the Elysia routes and exports theApptype.playground/vue-app/src/lib/eden.tsshows the minimal Vue helper setup.playground/vue-app/src/components/UserList.vueandCreateUser.vueshow basic reads and writes.playground/nuxt-app/composables/eden.tsshows the Nuxt-side helper setup.playground/nuxt-app/pages/users.vueandposts.vuedemonstrate the module-backed SSR path.
Practical use
If you are evaluating the library, this is the fastest sequence:
- Run
bun run playground:api. - Run either
bun run playground:vueorbun run playground:nuxt. - Open the UI and create or delete data.
- Watch related views refetch without custom cache key code.