Skip to main content
Alpha

Live Dashboard

This track builds one thing end to end: a real-time operations dashboard for an order queue. By the last chapter you will have a table that updates live in the browser — no manual refresh, no hand-rolled WebSocket — fed by the full NetScript data spine, from a typed contract on the backend to a durable change-stream on the frontend.

  1. 1 · Scaffold
  2. 2 · Contract to service
  3. 3 · Cache-first query
  4. 4 · definePage + island
  5. 5 · Live stream
  6. 6 · Deploy

What you will build

A my-dashboard/ Fresh workspace whose home screen is a live order table. The reader scaffolds a fresh NetScript project, exposes an orders read-model through a typed oRPC service, wires a cache-first SDK query layer, renders the table with NetScript's definePage page builder and a hydrated TanStack Query island, then upgrades it to push real-time updates over a durable StreamDB. The final chapter runs the whole graph locally under Aspire. This is a learning track: the same project grows chapter by chapter, so do them in order.

Before you begin

You need a working local toolchain — the same one every NetScript tutorial assumes. Confirm Deno, the Aspire CLI, and Docker are on your PATH:

deno --version && aspire --version && docker info

You should see a Deno 2.x version, an Aspire CLI version, and Docker engine details (not a connection error). If any are missing, the quickstart walks through installing them. Install the NetScript CLI once:

deno install --global --allow-all --name netscript jsr:@netscript/cli@0.0.1-alpha.12

The arc: contract → client → query → island → stream

NetScript's signature spine carries one shape of data from the database all the way to a live cell in the browser, type-checked at every hop. Each chapter adds exactly one link:

What you built

By the end of this track you will own a working live operations dashboard and — more importantly — the full NetScript read spine that powers it, from contract to durable stream.