Persist to Store Migration
Move from legacy Cuitty Persist names to the canonical Cuitty Store SDK, DSL, CLI, and docs paths.
Persist to Store Migration
Cuitty Persist is now Cuitty Store. Store is the canonical name for the local-first storage SDK, DSL block, CLI surface, docs, and marketing pages.
Legacy Persist imports and routes remain compatibility aliases during the rebrand window, but new code and docs should use Store names.
Package Imports
// Before
import { createPersist } from "@cuitty/persist";
const persist = await createPersist({ workspace: "acme" });
const tasks = persist.records("tasks");
// After
import { createStore } from "@cuitty/store";
const store = await createStore({ workspace: "acme" });
const tasks = store.records("tasks");
Core Aggregator
const cuitty = createCuitty({
products: ["store", "observe"],
});
const store = await cuitty.store();
cuitty.persist() stays available as a deprecated compatibility alias when either the legacy Persist client or the Store client is installed.
DSL Blocks
# Before
persist "todos" {
store "todos" { class = "record" }
}
# After
store "todos" {
store "todos" { class = "record" }
}
The DSL still recognizes persist blocks so existing workspaces can validate while you migrate.
CLI Commands
# Before
cui persist init my-store
cui persist sync --peer alice@cuitty.dev
# After
cui store init my-store
cui store sync --peer alice@cuitty.dev
Persist command aliases stay wired for compatibility, but Store is the command shown in docs and examples.
Paths And Redirects
| Legacy | Canonical |
|---|---|
/product/persist | /product/store |
/docs/persist | /docs/store |
/docs/persist/* | /docs/store/* |
persist.one | store.cuitty.com |
The legacy paths redirect with 308 status codes.
Migration Checklist
- Replace
@cuitty/persistimports with@cuitty/store. - Replace
createPersistcalls withcreateStore. - Rename
persistDSL blocks tostore. - Replace
cui persistcommand usage withcui store. - Update product links from
/product/persistto/product/store. - Keep only explicit compatibility notes for legacy Persist aliases.