Inside a Modern Web App
Follow one request from the browser to the database and back, as a diagram that draws itself.
Preview
Plays with its recorded voice-over.
4 scenes · narrated · captions included
The JSON behind it
This is all it takes.
{
"version": 1,
"title": "Inside a Modern Web App",
"subtitle": "Follow one request from the browser to the database and back, as a diagram that draws itself.",
"topic": "How a modern web app answers a request: API, cache, database and queue, drawn as a connected diagram",
"domain": "technology",
"emoji": "🧩",
"kicker": "Composition · Diagram",
"chips": [
"Diagram",
"Connectors",
"Pointer"
],
"style": {
"theme": "blueprint-lab",
"header": [],
"progress": "none",
"transition": "wipe"
},
"narration": {
"engine": "premium",
"premium": {
"voice": "Charon",
"style": "clear, calm and friendly, like an engineer explaining the system over coffee, never rushed",
"pace": "natural"
},
"pauses": {
"sentence": 0.25,
"section": 0.6,
"leadIn": 0.15,
"tail": 0.7
}
},
"scenes": [
{
"kind": "intro",
"say": [
"Every tap in a modern web app sets off a small chain of events.",
"Let us follow one request, from your browser to the database."
]
},
{
"kind": "compose",
"heading": "One request, five stops",
"components": [
{
"type": "pattern",
"kind": "grid",
"opacity": 0.3
},
{
"type": "node",
"id": "browser",
"label": "Browser",
"icon": "globe",
"tone": "sky",
"x": 10,
"y": 50,
"at": "line1",
"phone": {
"x": 50,
"y": 9
}
},
{
"type": "node",
"id": "api",
"label": "API",
"icon": "bolt",
"tone": "violet",
"solid": true,
"x": 36,
"y": 50,
"at": "line1",
"delay": 0.4,
"phone": {
"x": 50,
"y": 32
}
},
{
"type": "node",
"id": "cache",
"label": "Cache",
"icon": "chip",
"tone": "amber",
"shape": "pill",
"x": 64,
"y": 20,
"at": "line2",
"phone": {
"x": 24,
"y": 56
}
},
{
"type": "node",
"id": "db",
"label": "Database",
"icon": "database",
"tone": "emerald",
"x": 64,
"y": 80,
"at": "line3",
"phone": {
"x": 76,
"y": 56
}
},
{
"type": "node",
"id": "queue",
"label": "Queue",
"icon": "layers",
"tone": "rose",
"shape": "diamond",
"x": 90,
"y": 50,
"at": "line4",
"phone": {
"x": 50,
"y": 82
}
},
{
"type": "link",
"from": "browser",
"to": "api",
"label": "HTTPS",
"tone": "sky",
"flow": true
},
{
"type": "link",
"from": "api",
"to": "cache",
"shape": "curve",
"flow": true,
"tone": "amber",
"label": "ask first"
},
{
"type": "link",
"from": "api",
"to": "db",
"shape": "elbow",
"dashed": true,
"tone": "emerald",
"label": "if missing"
},
{
"type": "link",
"from": "api",
"to": "queue",
"tone": "rose",
"label": "later"
},
{
"type": "highlight",
"target": "db",
"style": "ellipse",
"tone": "amber",
"at": "line5"
},
{
"type": "pointer",
"path": [
{
"to": "browser",
"at": "line1",
"click": true
}
],
"exit": "fade",
"exitAt": "line2"
}
],
"lines": [
{
"say": "You tap a button, and the browser sends a request to the API."
},
{
"say": "The API asks the cache first, because the cache answers in a blink."
},
{
"say": "If the answer is missing, it reads the database, which is slower."
},
{
"say": "Slow jobs, like sending an email, are put in a queue for later."
},
{
"say": "So when an app feels slow, look at the database first."
}
]
},
{
"kind": "compose",
"heading": "Deploy, then watch",
"components": [
{
"type": "glow",
"tone": "sky",
"x": 25,
"y": 45,
"w": 50,
"h": 80
},
{
"type": "group",
"direction": "row",
"gap": 4,
"align": "center",
"phone": {
"direction": "column",
"gap": 2
},
"children": [
{
"type": "window",
"look": "terminal",
"title": "deploy",
"w": 46,
"phone": {
"w": "100%"
},
"at": "line1",
"children": [
{
"type": "typed",
"text": "$ npm run deploy",
"mono": true,
"tone": "emerald",
"size": 2.4
},
{
"type": "checklist",
"items": [
"Build the app",
"Run 212 tests",
"Ship to 3 regions"
],
"done": 3,
"size": 2.2,
"at": "line2"
}
]
},
{
"type": "group",
"direction": "column",
"gap": 1.6,
"align": "center",
"at": "line3",
"children": [
{
"type": "gauge",
"value": 92,
"label": "Speed score",
"tone": "emerald",
"w": 20
},
{
"type": "badge",
"text": "Live in 3 regions",
"icon": "🟢",
"solid": true,
"tone": "emerald"
}
]
}
]
}
],
"lines": [
{
"say": "Deploying takes one command."
},
{
"say": "The pipeline builds the app, runs the tests, and ships it to three regions."
},
{
"say": "And a gauge shows how fast the new version really is."
}
]
},
{
"kind": "statement",
"eyebrow": "Remember",
"text": "Fast apps check the **cache** first.",
"icon": "⚡",
"say": "Remember this: fast apps check the cache first.",
"header": false
}
]
}