@tsogtoodev/vuka-vue
v0.1.0
Published
Reactive Store for Vue
Readme
@tsogtoodev/vuka-vue
Reactive local-first data store for Vue 3.
Provides a normalized reactive cache, typed query/mutation APIs, forms, live queries, and a plugin system for connecting to your own backends.
Install
pnpm add @tsogtoodev/vuka-vueQuick start
import { createStore, VukaPlugin, withItemType } from '@tsogtoodev/vuka-vue'
import { createApp } from 'vue'
const todos = withItemType<{ id: string, title: string, completed: boolean }>().defineCollection({
name: 'todos',
})
const store = await createStore({
schema: [todos],
})
const app = createApp(App)
app.use(VukaPlugin, { store })Related packages
@tsogtoodev/vuka-core— core engine@tsogtoodev/vuka-shared— shared types and utilities@tsogtoodev/vuka-nuxt— Nuxt module
