docs: add a hands-on 'Build a Server Data Inspector' tutorial - #290
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Adds a step-by-step, human-oriented guide that builds a simplified data-inspector devframe from zero to an MVP (client + RPC over a Vite bridge), then layers on a hub dock, static build, standalone server, and CLI — one concept per step. Slots in as guide page 1 (after the intro); drops the earlier Project Structure page per review.
…messages Adds 'An Inspector That Talks to the Page' as guide page 2: a self-contained, vanilla-TS walkthrough building an accessibility inspector whose in-page agent (a dock client script) scans the host page, coordinates with the panel iframe over a same-origin BroadcastChannel, and reports scans to the hub messages feed via ctx.messages. Renumbers the reference pages down by one.
Polish the server data inspector tutorial for natural flow (fix awkward phrasings and grammar, normalize 'Step N — Title' headers, correct the stale src/devframe.ts references to src/data-inspector.ts) and fix the renamed tutorial's link in the intro. Apply the same voice and closing conventions to the a11y tutorial.
Drop the second tutorial (client scripts / host↔panel comms / messages) — too much for an intro tutorial. Renumber the reference pages back up by one and remove its link from the intro.
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.
What
Adds a hands-on, from-zero tutorial to the top of the guide, so newcomers get a build-along path before the reference pages.
Tutorial: Build a Server Data Inspector (
/guide/tutorial-server-data-inspector)Builds a devtool from an empty folder, then grows it one capability at a time — each step one new concept:
defineDevframe+ctx.rpc.register→ a client viaconnectDevframe()→ run it withdevframeViteBridge→ a hub dock (clientAssets+viteDevframeHub) → a static build (snapshot+createBuild) → a standalone server (createDevServer) → a CLI (createCac).Placement
Slots in as guide page 1 (after the Introduction): Introduction → Tutorial → Devframe Definition → RPC → … The reference pages are renumbered accordingly (git-tracked renames; links use path names, so nothing breaks), and the intro's "What's next" links to it.
Notes
createBuild/createDevServer/createCac).This PR was created with the help of an agent.