Repository navigation
docs(domain): recommend Effect UI, and build the tutorial and examples on it - #3839
Open
sam-goodwin wants to merge 25 commits into
Open
sam-goodwin wants to merge 25 commits into
sam-goodwin wants to merge 25 commits into
Conversation
> Clanked by Opus 5.5 Add the experimental subpath `@alchemy.run/domain/EffectUI`. It derives one Effect UI `Command.Service` per Api command, one `Query.Service` per Api query, and `watch`/`events` Subscriptions per View and Stream, with `layer` implementing every service from the Api client. It mirrors the Foldkit adapter: the same `Rejected`/`Denied`/`Unknown` failures, `CommandIds`, `next` and `CommandHeaders`. `@effect/ui` is not on npm yet, so the catalog pins a pkg.pr.new snapshot of Effect-TS/ui. It is an optional peer of `@alchemy.run/domain`.
> Clanked by Opus 5.5 Look `CommandHeaders` up on each call instead of once per Layer build, so a Command also finds headers provided beside `layer`. Document that headers go under `layer`, because a query fetch can run outside the component that asked for it. Cover what the Foldkit suite covers: headers on each call reach the client, a header defect is Unknown, a mid-stream validate refusal, Stream reads with CaughtUp, interruption in feeds, query Denied, TimedOut and Unknown, and the reserved `layer` name. Link the Foldkit sentence to the Effect UI article.
> Clanked by Opus 5.5 `TestHost.settle` waits only for the fibers of the component tree, so a client provided beside `TestHost` can leave the View stale under the TestClock (Effect-TS/ui#411). The Play test now provides the adapter and the in-process client through `Component.provide` and runs on `it.effect`. Document how to test a component with the model, add a test that a query forwards `atLeast`, `take` and `CommandHeaders` to the client, and say in the adapter that the context, not the headers, is captured once per Layer build.
…ed queries
> Clanked by Opus 5.5
- A Command makes its own `commandId` (`NewCommandId`, a random UUID by
default) and returns it in every success and failure; `CommandIds` and
`next` are gone. Retry `Unknown` with the returned id.
- `commands.<Tag>.consistency` passes `consistency`; a strong command maps
`ConsistencyTimeout` to a typed `TimedOut { commandId, receipt }`.
- `commands.<Tag>.invalidates`, `optimistic` and `writes` get the Api's
queries. By default a command invalidates the queries whose `waitsFor`
reads its events.
- Query args are `{ input }`. A query with `waitsFor` sends this client's
receipts as `atLeast`, outside the cache key, until alchemy#3800.
- A paged query is a `Query.InfiniteService` (`queries.<Name>.key`, `take`).
- Per-call `headers` arg (Redacted), `watch` `restartKey`, and a View
`SnapshotSchema` / `decodeSnapshot` for the first paint.
…ver render > Clanked by Opus 5.5 Document the new adapter API, restarting a live read after the session ends, seeding the first paint, and request-scoped server renders. List domain/effect-ui in the llms.txt sections, so docs:generate passes.
> Clanked by Opus 5.5
Each Api View is now a Query.StreamService keyed by { key }. A stream
starts with snapshot(key) and this client's receipts as atLeast, then
follows watch(key), so a server render ships the first element and the
stream reopened after an optimistic run holds the write. Failures are
Rejected, Denied, TimedOut or Unknown. The watch and events
Subscriptions stay: watch as the lower-level Model copy, events as a
message feed. Bumps @effect/ui to the e0b7cec snapshot, which has
StreamService, and moves QueryOf to its Schema type parameters.
Contributor
|
Install the packages built from this commit: alchemypnpm install https://pkg.alchemy.run/alchemy/pr:3839:d752bc2@alchemy.run (36)pnpm install https://pkg.alchemy.run/@alchemy.run/better-auth/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/git/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/drizzle/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/acme/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/archil/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/boat/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/axiom/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/doppler/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/infisical/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/1password/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/turso/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/convex/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/e2b/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/daytona/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/modal/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/planetscale/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/neon/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/prisma/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/hetzner/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/digitalocean/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/railway/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/fly/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/github/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/stripe/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/cloudflare/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/gcp/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/aws/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/domain/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/kubernetes/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/docker/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/redis/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/sql/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/cloudflare-runtime/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/frontend-frameworks/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/node-utils/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/pkg/pr:3839:d752bc2Transitive Dependencies (30)pnpm install https://pkg.alchemy.run/@distilled.cloud/aws/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/acme/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/archil/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/core/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/boat-dev/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/axiom/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/doppler/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/infisical/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/turso/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/convex/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/e2b/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/daytona/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/modal/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/planetscale/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/neon/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/s3/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/prisma/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/hetzner/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/digitalocean/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/railway/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/fly-io/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/github/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/stripe/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/aws4signer/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/cloudflare/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/iceberg/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/gcp/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/effect-cluster/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@alchemy.run/rivet/pr:3839:d752bc2pnpm install https://pkg.alchemy.run/@distilled.cloud/rivet/pr:3839:d752bc2Published |
sam-goodwin
force-pushed
the
t3/domain-docs-effect-ui
branch
from
November 28, 2026 04:38
afd0e73 to
f788dc9
Compare
sam-goodwin
force-pushed
the
t3/domain-docs-effect-ui
branch
from
November 28, 2026 04:40
f788dc9 to
36c1316
Compare
…d skill and Effect UI page
…utorial on Effect UI
…d skill and Effect UI page
sam-goodwin
force-pushed
the
t3/domain-docs-effect-ui
branch
from
November 28, 2026 04:54
5680cd6 to
c9977a6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #3798 (its rebased branch, mirrored as
stack/domain-effect-ui). Retarget tomainonce #3798 merges.Effect UI is now the recommended Domain frontend, with a page per framework under Frontends: a new Frontends overview, Effect UI, and Foldkit, which stays supported.
test/Domain/tutorial-bank, with the tutorial's Api, the app, its entry, andTutorialBank.test.ts.examples/cloudflare-domain-better-authis an Effect UI app: aNotebookreads theNotesView as a query, andWriteNotecomes from the adapter.examples/cloudflare-domainkeeps its local-first behavior on Effect UI:HtmlSubscription.onConnectivityreplaces the hand-rolled online/offline listeners.Deliveris a queuedCommand.Serviceover the adapter's ownDepositMoneyandWithdrawMoney.AccountLedgerquery.alchemy-domainskill's frontend reference puts Effect UI first. Tracing and offline guidance is framework-neutral, and the Foldkit sections are kept.