StealThis .dev
Pages Medium

Wiki — LocalStack Lab (Jupyter-notebook explainer)

A concept explainer disguised as a Jupyter notebook: a macOS-dotted window titled localstack-lab.ipynb with a kernel badge, a sticky toolbar, and a vertical stack of markdown and code cells that teach how LocalStack emulates AWS on localhost. Each code cell has an In[n] gutter prompt and a Run button that types its Out[n] result with a blinking caret; Run All cascades through every cell and Restart resets the whole notebook.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

LocalStack Lab (Jupyter-notebook explainer)

A long-form educational page that borrows the Jupyter notebook interface as its design language. The shell is a white notebook window with macOS traffic-light dots, a mono filename (localstack-lab.ipynb — autosaved), a purple kernel pill, and a sticky toolbar with Run All, Restart, and a live kernel-status readout. Above the window, a row of pill-shaped jump chips navigates between the eight sections.

Content is a vertical stack of two cell types, exactly like a real notebook:

  • Markdown cells — rendered prose with headings, lists, tables, and blue/amber note callouts, teaching what LocalStack is, the single-edge-port (4566) routing model, awslocal vs --endpoint-url, SDK configuration, tests/CI patterns, and community-vs-pro limits.
  • Code cells — an In [n]: gutter prompt, a syntax-tinted mono source block (docker, awslocal, boto3, AWS SDK v3, CI YAML), and a green ▶ RUN button. Running a cell assigns the next execution number, then types the Out [n]: result character-by-character with a blinking block caret before swapping in the syntax-colored final output. Already-run cells re-run instantly, the active cell gets Jupyter’s blue left-border highlight, and Run All scrolls cell-to-cell while a busy counter ticks in the toolbar.

All interactions are vanilla JS; output payloads live in per-cell <template> elements so the HTML stays declarative. Jump-chip links are intercepted with scrollIntoView (fragment navigation is blocked inside sandboxed preview iframes). Below 700px the gutter narrows and the status readout hides.

Illustrative UI only — simulated shell outputs; LocalStack is a real open-source project, shown here as generic public knowledge.