Skip to content
This repository was archived by the owner on Oct 31, 2026. It is now read-only.

The state store has its own project, alchemy-state-store (0.16.0) - #32

Merged
nicu-chiciuc merged 1 commit into
mainfrom
split-state-store
Oct 30, 2026
Merged

nicu-chiciuc merged 1 commit into
mainfrom
split-state-store

Conversation

@nicu-chiciuc

@nicu-chiciuc nicu-chiciuc commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

What

  • Convex.state() finds or creates the project alchemy-state-store, the exact name of Alchemy's Cloudflare state store.
  • Convex.HubClient finds the hub in the project samebase, named as HUB_PROJECT_NAME.
  • The seed and base rule goes: state:host, OutdatedBase, and the exports ./state/*. The package is 323 lines smaller.
  • The store version stays 4, and the store stays a Convex component.

Why

The store and the hub have opposite owners: the package pushes the store, and a team forks and edits the hub. In one deployment, a broken hub deploy stops the state reads of every stack, and every store change must reach the hub first. The team token reaches both projects, so the single-credential result of phase 3 stays.

Rollout

Every repository moves together, after the rows are copied into the new project. The hub keeps its project name, because an older package that finds no samebase project would create an empty store.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

The project takes the exact name of the Cloudflare state store of Alchemy. The
store and the hub have opposite owners and fail together in one deployment, and
a team's token reaches both projects, so sharing one bought nothing that lasts.

This reverts the exports of the store's functions, the seed and base rule,
state:host, and OutdatedBase. The hub stays in the project samebase, which
Convex.HubClient now names as HUB_PROJECT_NAME. The store version stays 4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nicu-chiciuc
nicu-chiciuc merged commit 09d94c0 into main Oct 30, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant