Repository navigation
Finally update the guestbook tutorial! - #2837
Conversation
Stellar's smart-wallets docs still point at the retired passkey-kit + Launchtube stack. Launchtube's repo is archived and the hosted service is offline, so the existing guestbook tutorial can't be completed as written. Update the canonical references to the current stack: - passkey-kit → Smart Account Kit (https://github.com/kalepail/smart-account-kit) - OpenZeppelin Smart Account contracts (audited signer/policy framework) - Launchtube → OpenZeppelin Relayer (Stellar Channels plugin) Changes: - build/guides/contract-accounts/smart-wallets.mdx: rewrite the Tooling section. Lead with the current stack; flag passkey-kit + Launchtube as legacy with a pointer at the retirement. - build/guides/contract-accounts/advanced-patterns.mdx: add Smart Account Kit alongside the OZ + Crossmint reference implementations. - build/apps/guestbook/*: rewrite the 6-page tutorial against the new stack. The companion app is now a Cloudflare Pages deployment that uses Smart Account Kit + the OZ Channels relayer via a same-origin /api/relay proxy, so the API key stays server-side. The reference app lives at https://github.com/AshFrancis/ye-olde-guestbook (live: https://ye-olde-guestbook.pages.dev).
- throw `error(...)` instead of returning it in /api/relay, /api/fund, and /read/[id] snippets (SvelteKit's `error()` throws; `return` is misleading). - Add goto/resolve imports to signGuestbook snippet so readers copying it don't hit missing imports. - Overview: "fill in three things" → "two" (matches the .env snippet underneath, which has two vars). - Reword the relayer-key warning: we use Bearer auth, not URL-path auth, so the original phrasing was misleading.
Per Copilot feedback: the earlier snippet omitted PRIVATE_RELAYER_BASE_URL and only mentioned two variables to fill in, even though relayer.ts reads a third. Include it with its Testnet default so a reader who stays on the overview page has a complete picture of the relayer-related env vars.
kalepail/smart-account-kit and kalepail/passkey-kit are both archived and now live under the stellar org. Point every link at the new homes. The CLI has no `stellar keys show` subcommand; the one that prints a secret key is `stellar keys secret`.
Accuracy fixes that are independent of the smart-account stack, so they survive the rewrite: the contract uses `__constructor` (not `initialize`), `DataKey` is an enum, and the deploy command needs its constructor arguments after the `--` separator. Refs #1945 Co-Authored-By: Kaan Kacar <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Ash Francis's rewrite in #2367 targeted smart-account-kit 0.2.10 on Cloudflare Pages. ye-olde-guestbook now runs ^0.6.2 on Vercel, so point the pages at what the app actually does: /api/send rather than an /api/relay Pages Function, smartAccountClient.ts rather than passkeyClient.ts, the kit's autoFund and fundWallet rather than a funder G-account, and kit events rather than localStorage. Correct the indexer story while we're here. The kit defaults to Mercury's hosted smart-account-indexer, so the reverse lookup did not disappear with Launchtube, it just stopped being something you deploy yourself. Draw that boundary explicitly, since conflating the two breaks returning-user login on an unseen device. Refs #2367, #1945 Closes #2700 Co-Authored-By: Ash Francis <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
ye-olde-guestbook keeps its bindings in a pnpm workspace now, so `pnpm add file:./packages/ye_olde_guestbook` no longer reflects what the repo does. Use `pnpm add -D ye_olde_guestbook --workspace`, which records `workspace:*` the way the app's package.json does. Replace the nested `cd packages/... && pnpm install && pnpm run build` with the workspace housekeeping initialize.js actually performs: drop the standalone lockfile the CLI emits, and set a `prepare` script so pnpm compiles the bindings on install. Refs #2837 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The manual method now covers the pnpm workspace housekeeping, but the automated section's bullet list stopped at "generate bindings", so the two no longer described the same work. Name the prepare script, the dist/ gitignore, and the standalone lockfile removal, and correct the deploy bullet to mention the compile step. Refs #2837 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The code blocks reproduced whole Svelte components, so only about 14% of their lines touched Smart Account Kit or the network. Two blocks (the sign-page form markup and the read/[id] component) had no Stellar content at all, and the form markup opened the tutorial's main event. Drop those two, trim the toast and loading-state ceremony from the rest, and mark every omission with a `// ...omitted:` comment naming what is gone. Lessons that the prose was narrating now live in code comments, so the signup section loses a paragraph that restated its own snippet. 311 code lines become 232 across 11 blocks rather than 13. Refs #2837 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The stack links were appended to the intro paragraph, which the llms plugin takes as the page description. That pushed it from 273 to 578 characters and tripped a build warning. Split the stack into its own paragraph. Refs #2837 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
Pull request overview
This PR modernizes the smart-wallet documentation and the 6-page Guestbook tutorial to retire legacy Passkey Kit / Launchtube scaffolding and align the walkthrough with the current Smart Account Kit + OpenZeppelin Smart Account + OpenZeppelin Relayer (Stellar Channels) stack.
Changes:
- Updates the smart-wallets and advanced-patterns guides to recommend OpenZeppelin Smart Account, Smart Account Kit, and OpenZeppelin Relayer, while clearly labeling predecessor tooling.
- Rewrites Guestbook passkey setup/prereqs/frontend flows around Smart Account Kit (client config, event-driven session state, relayer proxy route, auto-funding, and simpler transfer/sign+submit patterns).
- Refreshes the Guestbook bindings and smart contract tutorial text to match the contract’s current constructor/init semantics and the workspace-based bindings workflow.
Recommendation: NEEDS-CHANGES — the relayer proxy route example needs small but important corrections (see PR comments on docs/build/apps/guestbook/setup-passkeys.mdx).
Reviewed changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/build/guides/contract-accounts/smart-wallets.mdx | Replaces “tooling” section with the current recommended stack and relegates Passkey Kit/Launchtube to “predecessor tooling”. |
| docs/build/guides/contract-accounts/advanced-patterns.mdx | Adds direct pointers to OpenZeppelin Smart Account and Smart Account Kit as reference implementations. |
| docs/build/apps/guestbook/README.mdx | Clarifies the tutorial’s smart wallet/relayer stack at the section entry point. |
| docs/build/apps/guestbook/overview.mdx | Updates the tutorial overview and getting-started steps to match the new template/app assumptions and relayer usage. |
| docs/build/apps/guestbook/passkeys-prerequisites.mdx | Replaces Launchtube/Mercury setup with a single Relayer API key prerequisite and clarifies indexer responsibilities. |
| docs/build/apps/guestbook/setup-passkeys.mdx | Replaces Passkey Kit client/server setup with Smart Account Kit configuration, helpers, state tracking, and /api/send proxy route. |
| docs/build/apps/guestbook/frontend.mdx | Updates signup/login/logout, donation, write/edit flows to use Smart Account Kit patterns and relayer hash-based receipts. |
| docs/build/apps/guestbook/smart-contract.mdx | Updates smart contract narrative to reflect __constructor, DataKey enum, and other correctness/clarity fixes. |
| docs/build/apps/guestbook/bindings.mdx | Updates manual and automated bindings instructions for a pnpm-workspace workflow and constructor args in deploy. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Match the origin exactly rather than by substring, and explain why the forwarded payload is wrapped in `params` when the relayer guide's SDK examples aren't. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 10 changed files in this pull request and generated no new comments.
Suppressed comments (4)
Previously missed (2) — in code that hasn't changed since the last review.
docs/build/apps/guestbook/frontend.mdx:230
- This example throws a string (
throw '...'), which loses stack context and makes error handling inconsistent (many libraries and toasters expect anError). Prefer throwing anErrorinstance in examples.
This issue also appears in the following locations of the same file:
- line 268
- line 396
docs/build/guides/contract-accounts/smart-wallets.mdx:58
- The Passkey Kit repository link is inconsistent with other docs in this repo:
docs/build/guides/auth/check-auth-tutorials.mdx:617still points tohttps://github.com/kalepail/passkey-kit, while this page now points tohttps://github.com/stellar/passkey-kit. Please confirm the canonical repo/org and use the same URL across the docs to avoid sending readers to the wrong project.
docs/build/apps/guestbook/frontend.mdx:270
- This example throws a string (
throw "..."), which makes downstream error handling inconsistent. Preferthrow new Error(...)in examples.
if (!wallet.contractAddress) {
throw "user missing contract address";
}
docs/build/apps/guestbook/frontend.mdx:398
- This example throws a string (
throw "..."), which makes downstream error handling inconsistent. Preferthrow new Error(...)in examples.
if (!wallet.contractAddress) {
throw "user missing contract address";
}
|
Published the reviewed corrections in 108ba24. The patch limits each Formatting, the production build, security checks, and the preview build passed on this commit. The author’s Please do not merge yet hold remains unchanged. The template now uses Smart Account Kit, so the author should reconcile the hold against the current template. The remaining template and legacy-warning review concerns still need the author’s decision before merge. |
|
Hey, great work on this! I went through all six pages, the guestbook app, and the kit source. A few things I noticed. I may be wrong on some of them, so take them with a grain of salt:
|
- move imports to `#lib` and `$app/env/*`, and pass string messages to `error()` - check the `cause` of wrapped passkey dismissals - drop the batching caveat now that the app reads in batches of 200 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs #2700 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@kaankacar great catches! those changes and fixes have landed here in this PR, in the guestbook project, and in the template where applicable. Ready for a re-review when you are |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
PR Preview: torn down |
|
Raven verified the deployed result of this PR on 2026-10-13T16:13:13Z. Both tracked findings are resolved live: Immutable source snapshots:
|
Brings the seven guestbook pages and the two contract-accounts pages to the Smart Account Kit / OpenZeppelin Relayer version. Merged with both sides converted to the export's style first; sections upstream rewrote take the upstream text, and the export's descriptions and heading ids are kept. The landing page keeps the export's CardGroup and gains the new intro. mercury_token.png is deleted now that no page references it. Checks: every code sample on all nine pages identical to main, all other lines match converted upstream except the export's descriptions, heading ids, and the landing CardGroup, guard clean, mint validate passed, broken-links at baseline 8, all nine pages 200.
Port of 2dd75fe to the Mintlify tree. Refs #2837 Co-Authored-By: Claude Opus 5.5 <[email protected]>
) Replaces the Docusaurus site with Mintlify's converted tree (base bcec501), with tooling trimmed to prettier, husky, redocly, the OpenRPC build, and the mint CLI. Commits that landed on main after bcec501 were ported by hand. Ported: Refs #2448 Refs #2671 Refs #2672 Refs #2727 Refs #2827 Refs #2828 Refs #2837 Refs #2856 Refs #2857 Refs #2869 Refs #2871 Refs #2878 Refs #2880 Refs #2881 Refs #2885 Refs #2886 Refs #2890 Refs #2892 Refs #2893 Refs #2895 Refs #2900 Refs #2901 Refs #2902 Refs #2903 Refs #2905 Refs #2912 Refs #2913 Refs #2915 Refs #2918 Refs #2922 Merged into the branch: Refs #2936 Refs #2937 Refs #2938 Refs #2940 Co-authored-by: alexistabak-cpu <[email protected]> Co-authored-by: Emir Ayral <[email protected]> Co-authored-by: John Wooten <[email protected]> Co-authored-by: Kaan Kacar <[email protected]> Co-authored-by: Leigh <[email protected]> Co-authored-by: maz <[email protected]> Co-authored-by: Michael Lip <[email protected]> Co-authored-by: Scopuly <[email protected]> Co-authored-by: stellar-triage-bot[bot] <333411864+stellar-triage-bot[bot]@users.noreply.github.com> Co-authored-by: Steph <[email protected]> Co-authored-by: urvisavla <[email protected]> Co-authored-by: water-k-max <[email protected]> Co-authored-by: Wlademyr Mendes <[email protected]> Co-Authored-by: Claude Opus 5.5 <[email protected]>
- A1: the trap case's verified evidence and ledger section 4 now say the judge shows trap key facts as GOLDEN DETAILS that need not appear; the baseline judge required the clawback point because the golden answer states it. - A2: sd-109 dates the defect to stellar/stellar-docs#2837 (2026-10-12); the page was never true, not "no longer true". - A3: sd-110's eval evidence says the model quoted the Lab page with attribution. - B1: q-infra-testnet-vs-futurenet's cap names Friendbot's behavior, not the Networks page; clusters 023 and 066 re-reviewed consistent. - B3: TODO for a canonical-page caution on q-soroban-cli-bindings. B2 (file sd-109) and B4 (second owner for sd-110) wait for authorization to post. Nothing posted upstream. Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Record the 247-case baseline and the tuning-set review Variant A, Sonnet 5.5 answering, claude-sonnet-5 judge (rubric v2.11, pack p9) at 6630138: 82 correct, 144 partial, 21 wrong; USD 45.27; 247 of 247 jobs. The tuning review covers 63 rows and ranks three recurring targets: SEP/CAP canonical text treated as candidate evidence, snippet-only docs answers, and single-family stops. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Add the baseline round ledger and brief * Fix the baseline's four case defects; file sd-109 and sd-110 locally Through golden-truth, with live evidence: - q-infra-testnet-vs-futurenet: live Friendbot funded a fresh C address on Testnet and Futurenet (getTransaction SUCCESS), so key fact 4 stands. The passkeys prerequisites page says the opposite; it gets a canonical-page caution tied to the new local finding sd-109. - q-token-xlm-supply-total-circulating: the total_coins note no longer reads as a requirement, and the sd-105 cap names what lifts it. - q-scf-hackathons-active: drop the key fact that restated the avoid item. - q-raph-stolen-wallet-recovery: the XLM clawback point explains the core answer and no longer gates the trap's safety pass. Upstream: sd-074 gains a 2026-11-14 recurrence; sd-110 records the Lab Contract Explorer bindings language list, checked against stellar 30.0.1. Neither new finding is posted. Register clusters re-swept consistent. Record: .agents/rounds/2026-11-14-baseline-tuning/CASE-DEFECTS.md Co-Authored-By: Claude Opus 5.5 <[email protected]> * Review the baseline case-defects branch: amend three records, accept four case edits Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * Reconcile the case-defects review: apply A1-A3 and B1, record B3 - A1: the trap case's verified evidence and ledger section 4 now say the judge shows trap key facts as GOLDEN DETAILS that need not appear; the baseline judge required the clawback point because the golden answer states it. - A2: sd-109 dates the defect to stellar/stellar-docs#2837 (2026-10-12); the page was never true, not "no longer true". - A3: sd-110's eval evidence says the model quoted the Lab page with attribution. - B1: q-infra-testnet-vs-futurenet's cap names Friendbot's behavior, not the Networks page; clusters 023 and 066 re-reviewed consistent. - B3: TODO for a canonical-page caution on q-soroban-cli-bindings. B2 (file sd-109) and B4 (second owner for sd-110) wait for authorization to post. Nothing posted upstream. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Retires the last of the passkey-kit, Launchtube, and Mercury/Zephyr setup from the guestbook tutorial, and brings it back in line with the app it documents.
Most of this is @AshFrancis's work from #2367, cherry-picked so his authorship stays in the history rather than being paraphrased. He did the hard part: restructuring all six pages around Smart Account Kit, the OpenZeppelin Smart Account, and the OpenZeppelin Relayer. Three of the six commits here are his. Also carried over a couple of @kaankacar's commits, plus the accuracy fixes from my own stale #1945 (
__constructorrather thaninitialize,DataKeyis anenum, constructor args in the deploy command).Ash wrote against smart-account-kit
0.2.10on Cloudflare Pages, and ye-olde-guestbook has since moved to^0.8.0on Vercel, so I re-aimed the mechanics:/api/sendrather than an/api/relayPages Function,smartAccountClient.tsrather thanpasskeyClient.ts, the kit'sautoFundandfundWallet()rather than a funder G-account, kit events rather than localStorage, and a one-lineaccount.transfer()rather than hand-builtScValargs.setup-passkeys.mdxcomes out about 300 lines shorter as a result.One correction to his version: it said there was "no passkey to contract reverse-lookup indexer to set up," which reads as though indexing went away with Launchtube. It did not. The kit still defaults to Mercury's hosted
smart-account-indexer; there is just nothing left for the dev to deploy. That page now says plainly that OpenZeppelin replaced Launchtube's submission and fee-sponsorship role, not Mercury's indexing role, which is the confusion @kalepail flagged in #2700.overview.mdxdescribesstellar-template-sveltekit-passkeys(https://github.com/ElliotFriend/stellar-template-sveltekit-passkeys) as it will be.That repo still shipsThat repo now shipspasskey-kit ^0.11.1, Launchtube, Mercury, and a funder secret, so a reader who clones it today gets none of the code these pages describe. I am updating it separately; this stays in draft until that lands.smart-account-kit ^0.8.0, OZ Channels Relayer, and eliminates the funder secret key. The PR is now ready for review.pnpm build,check:mdx, and the link checker all pass. Every SDK claim was checked against the installed 0.6.2 types and the contract source rather than from memory.Supersedes #1945 and #2367, both of which can close once this lands.
Closes #2700
🤖 Generated with Claude Code (https://claude.com/claude-code)