Skip to content
项目

关于

为 Vue 和 Nuxt 开发者打造的响应式数据存储。

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
+2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

rstore logo


Documentation | Nightly releases | Contributing guide

ci

rstore is a local-first data store for Vue and Nuxt applications.

It gives you a normalized reactive cache, a structured query and mutation API, and plugin-based integration with your own data sources.

Why rstore

  • Normalized reactive cache shared across your app
  • Queries and mutations co-located with components
  • Plugins for REST, GraphQL, local databases, and custom backends
  • Built for local-first, realtime, forms, and offline workflows
  • Strong TypeScript support
  • Nuxt module with DevTools integration

Devtools screenshot

Start here

Core workflow

  1. Define collections that describe your application data.
  2. Add collection hooks or plugins to connect those collections to your backend.
  3. Query and mutate data from components through the store.
  4. Layer on forms, subscriptions, offline support, and federation as needed.

Example

const store = useStore()

const { data: todos, loading } = await store.todos.query(q => q.many())

await store.todos.create({
  id: crypto.randomUUID(),
  title: 'Ship the docs',
  completed: false,
})

Learn more

探索相关项目

加载中…