RSX for application developers

These nine films teach a developer to build and ship a canister with cdk-rsx. Each one starts from an ordinary feature request and ends with code the viewer can find in the checkout and a test that shows the result. Each lesson.md is a working script and storyboard. Its narration blocks, read in order, are the voiceover. The surrounding directions tell the animator what is in frame, which source lines to show, where to point, and which spoken phrase starts each change.

The existing RSX internal system series explains how the SDK stores data. This course stays at the level an application author works at. It shows the files an author writes, the interfaces a module offers, the saved values a test can read, and the guarantees the SDK documents for them.

The dev_coder player has the finished films, chapter navigation, captions, and transcripts.

Audience and prerequisites

The viewer writes Rust and knows Internet Computer basics such as canisters, update and query calls, controllers, and upgrades. No knowledge of SDK internals is assumed or taught. The viewer needs the adjacent ../newstack checkout to open the linked files. Running the exercises also needs the pinned compiler and prepared dependencies from the build guide, and PocketIC for the lifecycle checks. Building · Testing

Sequence

Film Feature request Worked example
1. Quickstart: Follow One Call Through the App Save a score and read it back. Quickstart
2. Shop: Add a Module That Owns Its Data Give the Shop a tax rate that an admin can set. Shop, Settings module
3. Shop: Compose Services in One Call Sell items from a branch and charge tax. Shop, Checkout, Branches and Inventory
4. Storage: Choose a Collection by Its Contract Decide how a new field should be stored. Shop Inventory, RRT Heavy16 admissions, Hylix record probe and Minima index
5. Endpoints: Typed Messages, Refusals and Await Expose a method to clients and call another canister. Shop, Async scope probe
6. Upgrades: Ship New Code Over the Same Data Release a code change to a running canister. Quickstart and Shop lifecycle check
7. Upgrades: Revise Saved Data on Purpose Add a saved field to a deployed module. Root authoring probe
8. RRT Heavy16: A Ledger Command Recorded Once Count accepted work and return the original receipt for a retry within the replay window. RRT Heavy16 ledger with Rechain
9. RRT Heavy16: A Workflow From Request to Receipt Accept a job, run its steps across canisters, and report its status. RRT Heavy16 admissions and workflows with Takt and Reactor

What each film gives the viewer

  1. Quickstart: Follow One Call Through the App. The viewer can open any cdk-rsx app and point to its endpoints, its services, its saved data, and its root wiring. One put and one get travel through three editor panes while a plain state card shows the saved score. Lesson
  2. Shop: Add a Module That Owns Its Data. The viewer can add a stateful feature module with a versioned data declaration, attach it to the app, and bind its service at install and at restore. A file tree grows one folder at a time and a module card gains its private data drawer. Lesson
  3. Shop: Compose Services in One Call. The viewer can write a method that calls other modules through their public methods, manage per-key child modules, and refuse a request before anything changes. Call pills move between module cards while each card's state table shows the only values it may change. Lesson
  4. Storage: Choose a Collection by Its Contract. The viewer can pick a collection and an engine from their documented contracts and set the limit the app must enforce. An editable inventory row and a rebuilt Minima index show two update patterns beside their real declarations. Lesson
  5. Endpoints: Typed Messages, Refusals and Await. The viewer can declare a typed endpoint with an access guard, return a typed refusal, and make an intercanister call without carrying borrowed state across await. A request pill becomes a typed receipt, and a split timeline shows the two separate frames around a call. Lesson
  6. Upgrades: Ship New Code Over the Same Data. The viewer can release a business-code change, say which files are frozen once shipped, and verify the saved values after the upgrade. A release strip swaps the code card above unchanged state cards, with a before and after test panel. Lesson
  7. Upgrades: Revise Saved Data on Purpose. The viewer can add a new memory version, write its converter, declare the supported predecessor, and test the conversion natively and on PocketIC. Two version files sit side by side with a converter between them, and the test panel shows accepted and rejected upgrades. Lesson
  8. RRT Heavy16: A Ledger Command Recorded Once. The viewer can write a Rechain reducer that validates before committing and resend a dated command within its replay window. A command pill produces one numbered block. Its retry points back to the same block. Lesson
  9. RRT Heavy16: A Workflow From Request to Receipt. The viewer can author a Takt workflow from its graph file, rules, operations and payload version, connect a remote step through a Reactor route, and state what must be finished before an upgrade. A graph card, three editor panes and a receipt card follow one job from start to Done. Lesson

Repeating examples

Five applications carry the course. Each film returns to an example the viewer already knows before it introduces the next.

Example Proper name and location Used for
Quickstart tests/canisters/quickstart, package quickstart-canister The smallest complete app. One root and one Scores module. Films 1, 4 and 6. Quickstart
Shop tests/canisters/shop, package shop-canister, titled Nested shop Several modules, per-key child modules and one composing service. Films 2 to 6. Shop
Async scope probe tests/canisters/async-probe One intercanister call between two frames. Film 5. Async scope probe
Root authoring probe tests/canisters/root-authoring-probe The public upgrade example. One root moves from memory V1 to V2 with a declared predecessor. Films 5, 6 and 7. Root authoring probe
RRT Heavy16 benches/rrt/canister, internal package rrt-fourcans-canister A large app that composes its own modules with Rechain, Reactor and Takt. Films 4, 8 and 9. RRT benchmark

RRT Heavy16 is a benchmark application. The films use its application code and native tests. Each Heavy16 lesson identifies the benchmark-specific setup for the editor. The Basic Rechain canister is a shorter reducer example. In the storage lesson, the Hylix record probe supplies a Hylix declaration and the Minima benchmark supplies a frozen index declaration. Basic Rechain canister · Hylix record lifecycle probe · Minima example

The course teaches the SDK's attributes, derives and traits as the way to write an app, and it does not explain what they generate or how to write the same thing by hand. Quickstart and Shop use the service and root attributes throughout. Heavy16 hand-writes some of that wiring, and films 8 and 9 keep those parts out of frame. Conventions · Heavy16 root

Shared visual language

Use the light paper, restrained semantic colors, small title, and source balloons from the earlier films. Every object below has one drawing that scales without losing detail. Storage cells, pages, allocators and byte layouts from the memory series stay out of this course. Workspace teaching and style guide

What the viewer is following Drawing
Source the author writes EditorPane. A plain editor window with a file tab showing the real path, real line numbers and the excerpt from the lesson. A soft band highlights the lines being spoken.
App layout AppTree. A file tree of the app's src folder. Feature folders keep fixed positions in every film that uses the same app. A new file slides into its place.
A feature module ModuleCard. A rounded card with the module name, its public methods listed on the top edge, and a closed drawer labeled saved data underneath. Only the card's own methods open its drawer.
Saved values StateCard. A small table of plain names and values inside the open drawer, such as tax 500. Changed values use red for a decrease and green for an increase.
A call The warm rounded pill from earlier films, carrying the full call such as checkout(9, 44, 3). Solid arrows are local synchronous calls. A dashed arrow with a clock is an awaited call to another canister.
A typed result ReceiptCard. A typed value returned to the caller, such as Some(315), None or Started { execution: 1 }. A refusal uses the same card with a neutral outline.
A scope A thin outline around the modules taking part in one endpoint call. It is labeled read or write. It closes before any awaited call leaves.
A test TestPanel. A two-column before and after panel with the assertion text from the real test and a pass or reject mark.
A release ReleaseStrip. A code card above the app's state cards. An upgrade replaces the code card while the state cards stay in place. A version badge such as v1 sits on each module's drawer.
Explanation PauseAndExplain with a dashed leader to an exact line, method or value. Narration and the balloon continue while everything holds, then motion resumes from the held frame. PauseAndExplain

The new drawing names are proposals for the build. PauseAndExplain and the call pill already exist in the workspace.

Editing the drafts

  • Read the narration blocks straight through. Each new term needs a visible line of source or a visible object, and each sentence should move the feature request forward.
  • Walk the beats with the narration muted. At each cue the named lines are in frame, the cause comes before its effect, and the next beat inherits the visible result.
  • Check every value and excerpt against the linked file. Line numbers in the Show fields refer to the inspected revision below. Re-locate the item by name when the file has moved on.
  • Keep each excerpt real. Where a beat hides feature gates or profiling wrappers, its Show field says so. Each Try it section labels an adapted exercise as adapted.
  • Keep the scope of each film. When a sentence starts to explain how the SDK implements a guarantee, or what a macro, derive or trait does behind its name, replace it with what the author writes and what the author can observe.
  • Keep scene and beat IDs stable through wording edits. Update a quoted cue when its spoken phrase changes. Set frame boundaries after generating narration.

Source provenance

The course was drafted from the adjacent ../newstack checkout on 2026-11-22, at commit d8e99603848d87935b776cdce73b6c2a213aa0c6 with local edits to the authoring guides, the async probe and its test runner. The source review checked the excerpts and links again at 5af68e8a0c293b239b3f11eb0de749432f9f31f0. Use the function or item named in each Show field to find an excerpt after line numbers move.

Current Rust source wins over a guide when they differ. One difference matters to film 9. The Takt authoring guide's short sample writes a local step with "Operation", and the Heavy16 graphs write local steps with "Handler" and reserve "Operation" for remote steps. The workflow schema accepts both forms. The film shows the Heavy16 files as written. Takt authoring · Local graph · Workflow schema

The SDK is an unreleased prototype. Expected test results in the lessons come from reading the test sources and runners. No sibling code was built or run while drafting, so confirm each Try it result against a real run before recording. Current support and limits

Primary authoring documents for the whole course are the application conventions, the upgrade guide, the Wire guide, the collections guide, the engine guide, the orchestration guide and the Takt authoring guide. Conventions · Upgrades · Wire · Collections · Engines · Orchestration · Takt authoring