State & Architecture Studio: Complete Help
Start with one action and observe how state becomes visible UI. No account or key is required.
Your first three minutes
- Open Start Here. Add one task, Complete it and open Live JavaScript state. Undo the change.
- Click Understand Your First Application. Read state.count0 and write a prediction.
- Click Increment inside the actual preview. Compare state1 and DOM1, then open Event History.
- Click Disable Render Call. The preview restarts. Click Increment again. Observe state1 and DOM0.
- Click Restore Rendering. Increment again and verify agreement.
- Explain why the missing render left stale UI, then Check Counter Evidence. Save Mission or Export Counter Source.
Start Here / Add Task
Enter a title and click Add Task. Complete toggles the selected task. Filter changes the visible rows. Open Live JavaScript state to see the same data driving the interface. Undo/Redo restores local snapshots; it does not reverse external writes.
Understand Your First Application
Opens the prepared counter mission. Inspect count0, predict Increment, click the actual preview button, then compare state and DOM. The source remains editable.
Next Verified Step / What should I do next?
The counter mission checks the required observed values or written prediction before advancing. Next-step guidance highlights the relevant control. Written explanation presence is checked; correctness needs human review.
Run Preview
Executes the actual edited prepared counter source in an isolated iframe. It restarts at0. Event History records explicit before/after state and observed DOM text, not arbitrary execution internals.
Disable Render Call
Replaces the prepared increment render call with a comment and restarts. Click Increment again: actual state becomes1 while DOM remains0. This is an intentionally broken real browser behavior.
Restore Rendering
Restores the prepared counter source and restarts. Increment again and verify state1 and DOM1. Earlier mismatch evidence is retained until the mission is reset.
Event History / Restore Snapshot
Open the history to inspect explicit actions, snapshots and DOM values. Restore Snapshot changes the prepared counter’s count and rerenders. It does not rewind network or storage side effects.
Check Counter Evidence
Checks observed synchronized increment, observed missing-render mismatch, current consistency and a written explanation. Collect those observations first; clicking the check alone does not award a pass.
Learning Path / Explained example
Choose any of90 lessons across18 modules. Each lesson has five explained source variants: working contract, input preservation, broken return, repeat calculation and frozen regression. Select a variant and Load Selected Example.
Run Actual Code / Check Fixture Contract
Source runs in an isolated guarded worker. JSON input is parsed before execution. Check compares with the fixed authored result. The deliberately broken example is expected to fail until repaired; the grading expectation does not silently change.
Load Repair Exercise / Show Finished Code / Reset Example
Repair loads a deliberate early-return defect. Use hints, reproduce the mismatch and edit. Finished loads the reference without awarding credit. Reset restores the active source/input fixture.
Save Lesson / AI Prompt / Export Current Exercise
Save commits source and notes to IndexedDB. Contextual prompts include current code, input, output, error and expected behavior. Nothing is automatically sent to AI. Export contains your edited exercise, not a complete server application.
Engineering Studio / Workspace
Choose one of11 spaces. State, event and time-travel workspaces share the task store. Other spaces provide state machine, reducer, component, async, Node-contract and regression editors.
State Transition Designer
Edit a state/event table, current state and event. Execute Transition follows an allowed edge; invalid events throw a visible error. Reset Machine returns to idle.
Reducer and Store Studio
Edit reducer source, initial state and actions. Run Store Sequence executes the function and records explicit before/after snapshots. Export Store Source includes reducer and store function source for integration; add independent tests.
Component Architecture Builder
Edit HTML, CSS tokens and JavaScript, then Render Component. The sandbox runs actual DOM behavior and reports registered events/console/inspection. These observations cover the prepared component, not every internal JavaScript operation.
Time-Travel Debugger
Perform task actions, expand Observed actions and render operations, then Restore an earlier history entry. A subsequent dispatch branches local history. External effects are not reversed.
Async Application Laboratory
Keep older800ms and newer100ms. Start Two Requests. With Ignore stale responses checked, NEWER response remains visible and the older trace says stale ignored. Uncheck to reproduce the overwrite defect. Cancel Current Request aborts the latest request; Reset clears the local display.
Node.js Architecture Studio
Inspect a modeled HTTP request and validation result. This local request tool does not start Node. Open Node Project for a real download containing server, controller, service, repository, client and tests.
Refactoring and Test Laboratory
Refactor the open-item counter without changing behavior. Run Frozen Regression Cases compares empty0, open1, complete0 and mixed2. Save Refactoring preserves your source. Equivalent results on these cases do not prove universal equivalence.
60 Experiments
Choose a focused concept, edit source/input, Run Experiment and Check Prepared Contract. Open Live Workspace for actual DOM/store/async behavior. Some kernels are explicit contract models for Node/DOM concepts; they are not presented as actual server execution.
25 Architecture Patterns
Expand a pattern for problem, use/avoid guidance, source, trade-offs and refactoring task. Open Editable Pattern runs its kernel; Inspect Application Example opens a related source application. Compare responsibilities rather than adding abstractions by name alone.
30 Application Projects
Open Multi-file Project. Source selector switches actual files; edits are included in Run Application Preview and Export Edited Project. Finished Source downloads authored source and setup. Load Starter/Finished replaces current files after confirmation.
Application preview
The iframe executes actual browser code. State and action/render histories are explicitly instrumented. LocalStorage may be blocked in the opaque sandbox; standalone exports can persist on their own origin. Browser APIs are not Node APIs.
Node exports
Projects21,22,23,29 and30 include separate actual Node API slices. Extract, install Node22+, run npm install then npm test and npm start. Open localhost. Static FTP alone cannot execute those servers. The public fictional sample API has no production identity/access controls.
Debug & Practice
Choose200 challenges,150 investigations or300 questions. Open Activity loads source and input into the actual editor. Investigations cover missing returns, altered derived output, duplicate aggregation, serialization shape, envelopes and stale placeholders. Counter/async labs add actual render and race failures.
Saved Work & Backups
Export Versioned Backup preserves drafts, state, notes and project files. Import replaces local work after confirmation and clears pass claims until rerun. Export Evidence saves current test records. Resume Last Lesson returns to your selected lesson.
Mission & Demo Launcher / Reset Demo
Filter beginner lessons, investigations, projects, Node, DOM/CSS or patterns.25 prepared five-minute scripts have deep links ?demo=N. Launch confirms replacement and restores source/data. Reset Demo repeats that starting state. These are scripts, not rendered video files.
Three worked cases per workspace
Application State Laboratory
Inspect the prepared state and source, predict, execute, compare before/after evidence, change one rule and preserve a regression check. Instrumentation covers prepared boundaries only.
Normal flow
- Inspect initial state
- Run the prepared action
- Compare state and rendered output
Changed behavior
- Change one input or source rule
- Predict its effect
- Run and inspect the first mismatch
Failure and recovery
- Load a deliberate defect
- Collect state/action/render evidence
- Repair and rerun the frozen regression contract
DOM Rendering Studio
Inspect the prepared state and source, predict, execute, compare before/after evidence, change one rule and preserve a regression check. Instrumentation covers prepared boundaries only.
Normal flow
- Inspect initial state
- Run the prepared action
- Compare state and rendered output
Changed behavior
- Change one input or source rule
- Predict its effect
- Run and inspect the first mismatch
Failure and recovery
- Load a deliberate defect
- Collect state/action/render evidence
- Repair and rerun the frozen regression contract
Event and Action Explorer
Inspect the prepared state and source, predict, execute, compare before/after evidence, change one rule and preserve a regression check. Instrumentation covers prepared boundaries only.
Normal flow
- Inspect initial state
- Run the prepared action
- Compare state and rendered output
Changed behavior
- Change one input or source rule
- Predict its effect
- Run and inspect the first mismatch
Failure and recovery
- Load a deliberate defect
- Collect state/action/render evidence
- Repair and rerun the frozen regression contract
State Transition Designer
Inspect the prepared state and source, predict, execute, compare before/after evidence, change one rule and preserve a regression check. Instrumentation covers prepared boundaries only.
Normal flow
- Inspect initial state
- Run the prepared action
- Compare state and rendered output
Changed behavior
- Change one input or source rule
- Predict its effect
- Run and inspect the first mismatch
Failure and recovery
- Load a deliberate defect
- Collect state/action/render evidence
- Repair and rerun the frozen regression contract
Reducer and Store Studio
Inspect the prepared state and source, predict, execute, compare before/after evidence, change one rule and preserve a regression check. Instrumentation covers prepared boundaries only.
Normal flow
- Inspect initial state
- Run the prepared action
- Compare state and rendered output
Changed behavior
- Change one input or source rule
- Predict its effect
- Run and inspect the first mismatch
Failure and recovery
- Load a deliberate defect
- Collect state/action/render evidence
- Repair and rerun the frozen regression contract
Component Architecture Builder
Inspect the prepared state and source, predict, execute, compare before/after evidence, change one rule and preserve a regression check. Instrumentation covers prepared boundaries only.
Normal flow
- Inspect initial state
- Run the prepared action
- Compare state and rendered output
Changed behavior
- Change one input or source rule
- Predict its effect
- Run and inspect the first mismatch
Failure and recovery
- Load a deliberate defect
- Collect state/action/render evidence
- Repair and rerun the frozen regression contract
Time-Travel Debugger
Inspect the prepared state and source, predict, execute, compare before/after evidence, change one rule and preserve a regression check. Instrumentation covers prepared boundaries only.
Normal flow
- Inspect initial state
- Run the prepared action
- Compare state and rendered output
Changed behavior
- Change one input or source rule
- Predict its effect
- Run and inspect the first mismatch
Failure and recovery
- Load a deliberate defect
- Collect state/action/render evidence
- Repair and rerun the frozen regression contract
Async Application Laboratory
Inspect the prepared state and source, predict, execute, compare before/after evidence, change one rule and preserve a regression check. Instrumentation covers prepared boundaries only.
Normal flow
- Inspect initial state
- Run the prepared action
- Compare state and rendered output
Changed behavior
- Change one input or source rule
- Predict its effect
- Run and inspect the first mismatch
Failure and recovery
- Load a deliberate defect
- Collect state/action/render evidence
- Repair and rerun the frozen regression contract
Node.js Architecture Studio
Inspect the prepared state and source, predict, execute, compare before/after evidence, change one rule and preserve a regression check. Instrumentation covers prepared boundaries only.
Normal flow
- Inspect initial state
- Run the prepared action
- Compare state and rendered output
Changed behavior
- Change one input or source rule
- Predict its effect
- Run and inspect the first mismatch
Failure and recovery
- Load a deliberate defect
- Collect state/action/render evidence
- Repair and rerun the frozen regression contract
Refactoring and Test Laboratory
Inspect the prepared state and source, predict, execute, compare before/after evidence, change one rule and preserve a regression check. Instrumentation covers prepared boundaries only.
Normal flow
- Inspect initial state
- Run the prepared action
- Compare state and rendered output
Changed behavior
- Change one input or source rule
- Predict its effect
- Run and inspect the first mismatch
Failure and recovery
- Load a deliberate defect
- Collect state/action/render evidence
- Repair and rerun the frozen regression contract
Complete Application Build Studio
Inspect the prepared state and source, predict, execute, compare before/after evidence, change one rule and preserve a regression check. Instrumentation covers prepared boundaries only.
Normal flow
- Inspect initial state
- Run the prepared action
- Compare state and rendered output
Changed behavior
- Change one input or source rule
- Predict its effect
- Run and inspect the first mismatch
Failure and recovery
- Load a deliberate defect
- Collect state/action/render evidence
- Repair and rerun the frozen regression contract
Recovery
- Nothing runs: serve the folder over HTTP/HTTPS, verify .mjs JavaScript MIME and inspect errors. file:// is unsupported.
- Check fails after input changes: the authored fixture expectation stays fixed. Restore it or define your own independent expectation.
- Preview does not persist: opaque sandbox storage may be unavailable; use Save Project/Backup or a standalone served export.
- Older request overwrites newer data: enable revision guarding and compare the actual completion order.
- Node download has no live API in static preview: extract and run its separate server; the static host does not start Node.
- Imported state looks wrong: validate schema/version and rerun checks before trusting it. Never include secrets in backups.