From ed703f43dada21f0d05c70b551c73ce564db41f6 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 06:23:42 +0000 Subject: [PATCH] Expand guided paths, roles, famous apps and stack types for the 3,122-node atlas - 112 new guided paths (145 -> 257): every top-level field now has at least one, including programming languages, data science, enterprise software, mainframes, audio, automotive/aerospace, geospatial and CMS/e-commerce, plus company open-source tours (Netflix, Meta, LinkedIn, Uber, Cloudflare, Lyft, Alibaba...). - 21 new role paths (11 -> 32), from data scientist and SRE to mainframe, GIS, audio, compiler and hardware design engineers. - 18 new famous apps (22 -> 40) and company open-source nodes added to 8 existing ones. - Stack recommender: 8 new project types (online store, content site, data analysis/BI, internal tool, workflow automation, blockchain app, maps, audio) with 18 new slots and wider candidate lists. - Content data lives in scripts/expand/content_3000*.py; content_3000.py checks every reference and edge against data/graph.json, and a backend test fails if it has changes left to apply. - Paths, roles and apps now load as their own lazy chunk next to the graph instead of in the entry bundle (entry JS 166 -> 144 KB gzip; content chunk 49 KB, budgeted at 55 KB). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EMFEENGLDbHDh9Hp3Nkefk --- README.md | 2 +- backend/tests/test_content_3000.py | 40 + data/seed/apps.json | 382 ++- data/seed/journeys.json | 2888 ++++++++++++++++++++++ data/seed/roles.json | 231 ++ docs/performance.md | 3 +- frontend/scripts/check-bundle-size.mjs | 16 +- frontend/src/App.tsx | 29 +- frontend/src/analytics.test.ts | 2 +- frontend/src/analytics.ts | 11 +- frontend/src/components/AppsPanel.tsx | 8 +- frontend/src/components/RolePanel.tsx | 8 +- frontend/src/content/content.ts | 26 + frontend/src/content/data.ts | 13 + frontend/src/graph/apps.test.ts | 5 +- frontend/src/graph/apps.ts | 14 +- frontend/src/graph/journeys.test.ts | 2 +- frontend/src/graph/journeys.ts | 9 +- frontend/src/graph/pathsLibrary.test.ts | 2 +- frontend/src/graph/roles.test.ts | 3 +- frontend/src/graph/roles.ts | 13 +- frontend/src/main.tsx | 3 + frontend/src/recommend/catalog.ts | 113 +- frontend/src/recommend/recommend.test.ts | 18 + frontend/src/test/setupContent.ts | 4 + frontend/vite.config.ts | 2 +- scripts/expand/content_3000.py | 140 ++ scripts/expand/content_3000_apps.py | 313 +++ scripts/expand/content_3000_paths.py | 848 +++++++ scripts/expand/content_3000_roles.py | 263 ++ 30 files changed, 5337 insertions(+), 74 deletions(-) create mode 100644 backend/tests/test_content_3000.py create mode 100644 frontend/src/content/content.ts create mode 100644 frontend/src/content/data.ts create mode 100644 frontend/src/test/setupContent.ts create mode 100644 scripts/expand/content_3000.py create mode 100644 scripts/expand/content_3000_apps.py create mode 100644 scripts/expand/content_3000_paths.py create mode 100644 scripts/expand/content_3000_roles.py diff --git a/README.md b/README.md index 0e01d4a..8b841a1 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ you move from a broad field to an individual tool without losing the surrounding | Concepts | **1,580** | | Typed relationships | **9,834** | | Relationship types | **14** | -| Curated guided paths | **145** | +| Curated guided paths | **257** | | Isolated nodes | **0** | The largest relationship groups are **related to (3,241)**, **belongs to domain (3,082)**, **implements (778)**, **used for (640)**. Counts come from the checked-in diff --git a/backend/tests/test_content_3000.py b/backend/tests/test_content_3000.py new file mode 100644 index 0000000..94a0ca3 --- /dev/null +++ b/backend/tests/test_content_3000.py @@ -0,0 +1,40 @@ +"""The content pass for the 3,000-node atlas (scripts/expand/content_3000.py) is fully +applied and its references stay valid against the compiled graph.""" +from __future__ import annotations + +import json +import subprocess +import sys +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[2] +SEED = ROOT / "data" / "seed" +SCRIPT = ROOT / "scripts" / "expand" / "content_3000.py" + + +def _seed(name): + return json.loads((SEED / name).read_text(encoding="utf-8")) + + +def test_content_pass_is_applied_and_valid(): + result = subprocess.run([sys.executable, str(SCRIPT), "--check"], cwd=ROOT, + capture_output=True, text=True, check=False) + assert result.returncode == 0, result.stdout + result.stderr + + +def test_every_top_level_field_has_a_guided_path(): + graph = json.loads((ROOT / "data" / "graph.json").read_text(encoding="utf-8")) + nodes = {n["id"]: n for n in graph["nodes"]} + domains = {n["id"] for n in graph["nodes"] if n["node_type"] == "domain"} + covered = set() + for path in _seed("journeys.json"): + for step in path["steps"]: + node = nodes[step["id"]] + covered.add(node["id"] if node["node_type"] == "domain" else node.get("primary_domain")) + assert sorted(domains - covered) == [] + + +def test_role_ids_are_unique_and_every_role_has_four_stages(): + roles = _seed("roles.json") + assert len({r["id"] for r in roles}) == len(roles) + assert all(len(r["stages"]) == 4 for r in roles) diff --git a/data/seed/apps.json b/data/seed/apps.json index fde412b..b754fb5 100644 --- a/data/seed/apps.json +++ b/data/seed/apps.json @@ -19,7 +19,13 @@ {"tech": "aws", "layer": "infra", "note": "Runs almost entirely on AWS"}, {"tech": "memcached", "layer": "data", "note": "EVCache, the distributed cache, is built on memcached"}, {"tech": "netflix-zuul", "layer": "backend", "note": "Edge gateway (Netflix OSS)"}, - {"tech": "netflix-eureka", "layer": "backend", "note": "Service discovery (Netflix OSS)"} + {"tech": "netflix-eureka", "layer": "backend", "note": "Service discovery (Netflix OSS)"}, + {"tech": "evcache", "layer": "data", "note": "EVCache, Netflix's memcached-based cache across AWS regions"}, + {"tech": "hystrix", "layer": "backend", "note": "Circuit-breaker library (Netflix OSS, now in maintenance)"}, + {"tech": "spinnaker", "layer": "infra", "note": "Continuous delivery platform, built at Netflix"}, + {"tech": "chaos-monkey", "layer": "infra", "note": "Kills production instances to prove resilience"}, + {"tech": "netflix-conductor", "layer": "backend", "note": "Workflow orchestration (Netflix OSS)"}, + {"tech": "metaflow", "layer": "ml", "note": "ML workflow framework, built at Netflix"} ], "not_in_atlas": ["Titus", "GraphQL DGS"], "sources": [{"title": "Netflix TechBlog", "url": "https://netflixtechblog.com"}] @@ -43,7 +49,9 @@ {"tech": "backstage", "layer": "infra", "note": "Developer portal, built at Spotify and open-sourced"}, {"tech": "google-pubsub", "layer": "data", "note": "Event delivery"}, {"tech": "apache-beam", "layer": "data", "note": "Batch and streaming pipelines, run on Dataflow"}, - {"tech": "luigi", "layer": "data", "note": "Batch job pipelines (built at Spotify)"} + {"tech": "luigi", "layer": "data", "note": "Batch job pipelines (built at Spotify)"}, + {"tech": "annoy", "layer": "ml", "note": "Approximate nearest neighbours for recommendations, built at Spotify"}, + {"tech": "scio", "layer": "data", "note": "Scala API for Beam pipelines, built at Spotify"} ], "not_in_atlas": [], "sources": [{"title": "Spotify Engineering", "url": "https://engineering.atspotify.com"}] @@ -67,7 +75,8 @@ {"tech": "kubernetes", "layer": "infra", "note": "Service platform"}, {"tech": "aws", "layer": "infra", "note": "Cloud provider"}, {"tech": "apache-hive", "layer": "data", "note": "Data warehouse on Hadoop"}, - {"tech": "apache-superset", "layer": "data", "note": "Dashboards (created at Airbnb)"} + {"tech": "apache-superset", "layer": "data", "note": "Dashboards (created at Airbnb)"}, + {"tech": "visx", "layer": "web", "note": "React visualization components, built at Airbnb"} ], "not_in_atlas": [], "sources": [{"title": "The Airbnb Tech Blog", "url": "https://medium.com/airbnb-engineering"}] @@ -95,7 +104,12 @@ {"tech": "cadence-workflow", "layer": "backend", "note": "Workflow orchestration (built at Uber)"}, {"tech": "hadoop", "layer": "data", "note": "Data lake storage"}, {"tech": "presto", "layer": "data", "note": "Interactive SQL analytics"}, - {"tech": "apache-pinot", "layer": "data", "note": "Real-time analytics"} + {"tech": "apache-pinot", "layer": "data", "note": "Real-time analytics"}, + {"tech": "uber-h3", "layer": "data", "note": "Hexagonal geospatial index, built at Uber"}, + {"tech": "m3-metrics", "layer": "infra", "note": "Metrics platform, built at Uber"}, + {"tech": "apache-hudi", "layer": "data", "note": "Incremental data lake tables, created at Uber"}, + {"tech": "horovod", "layer": "ml", "note": "Distributed deep-learning training, built at Uber"}, + {"tech": "deck-gl", "layer": "web", "note": "WebGL map visualization, built at Uber"} ], "not_in_atlas": ["Ringpop"], "sources": [{"title": "Uber Engineering Blog", "url": "https://www.uber.com/blog/engineering/"}] @@ -175,7 +189,10 @@ {"tech": "redis", "layer": "data", "note": "Caching and queues"}, {"tech": "kubernetes", "layer": "infra", "note": "Runs github.com since 2017"}, {"tech": "vitess", "layer": "data", "note": "MySQL sharding"}, - {"tech": "memcached", "layer": "data", "note": "Caching"} + {"tech": "memcached", "layer": "data", "note": "Caching"}, + {"tech": "github-actions", "layer": "infra", "note": "CI/CD, also used to build GitHub itself"}, + {"tech": "codeql", "layer": "infra", "note": "Semantic code analysis behind code scanning"}, + {"tech": "dependabot", "layer": "infra", "note": "Automated dependency updates"} ], "not_in_atlas": [], "sources": [{"title": "The GitHub Blog: Engineering", "url": "https://github.blog/engineering/"}] @@ -198,7 +215,11 @@ {"tech": "kafka", "layer": "data", "note": "Event streaming"}, {"tech": "gcp", "layer": "infra", "note": "Cloud provider"}, {"tech": "kubernetes", "layer": "infra", "note": "Container platform"}, - {"tech": "memcached", "layer": "data", "note": "Caching"} + {"tech": "memcached", "layer": "data", "note": "Caching"}, + {"tech": "yjit", "layer": "backend", "note": "Ruby JIT compiler, built at Shopify and merged into Ruby"}, + {"tech": "liquid-template", "layer": "web", "note": "Theme template language, created at Shopify"}, + {"tech": "hydrogen", "layer": "web", "note": "React framework for custom storefronts"}, + {"tech": "toxiproxy", "layer": "infra", "note": "Simulates network failures in tests, built at Shopify"} ], "not_in_atlas": [], "sources": [{"title": "Shopify Engineering", "url": "https://shopify.engineering"}] @@ -280,7 +301,11 @@ {"tech": "ember-js", "layer": "web", "note": "Web front end"}, {"tech": "apache-samza", "layer": "data", "note": "Stream processing (built at LinkedIn)"}, {"tech": "apache-pinot", "layer": "data", "note": "Real-time analytics (built at LinkedIn)"}, - {"tech": "hadoop", "layer": "data", "note": "Offline data processing"} + {"tech": "hadoop", "layer": "data", "note": "Offline data processing"}, + {"tech": "datahub", "layer": "data", "note": "Metadata catalog, built at LinkedIn"}, + {"tech": "gobblin", "layer": "data", "note": "Data ingestion framework, built at LinkedIn"}, + {"tech": "rest-li", "layer": "backend", "note": "REST framework for its Java services"}, + {"tech": "cruise-control", "layer": "infra", "note": "Automates Kafka cluster balancing"} ], "not_in_atlas": ["Espresso"], "sources": [{"title": "LinkedIn Engineering Blog", "url": "https://www.linkedin.com/blog/engineering"}] @@ -365,7 +390,8 @@ {"tech": "linux", "layer": "infra", "note": "Edge servers"}, {"tech": "pingora", "layer": "backend", "note": "Rust proxy framework that replaced NGINX"}, {"tech": "openresty", "layer": "backend", "note": "NGINX + Lua edge logic"}, - {"tech": "v8", "layer": "infra", "note": "JavaScript engine whose isolates run Workers"} + {"tech": "v8", "layer": "infra", "note": "JavaScript engine whose isolates run Workers"}, + {"tech": "quiche", "layer": "infra", "note": "QUIC and HTTP/3 implementation in Rust"} ], "not_in_atlas": [], "sources": [{"title": "The Cloudflare Blog", "url": "https://blog.cloudflare.com"}] @@ -464,5 +490,345 @@ ], "not_in_atlas": [], "sources": [{"title": "OpenAI Engineering", "url": "https://openai.com/news/engineering/"}] + }, + { + "id": "facebook", + "name": "Facebook", + "category": "Social", + "url": "https://www.facebook.com", + "summary": "Hack on HHVM over MySQL with RocksDB and a huge memcached tier; React and React Native on the client, PyTorch for ML.", + "stack": [ + {"tech": "react", "layer": "web", "note": "Created at Facebook in 2013"}, + {"tech": "relay-graphql", "layer": "web", "note": "Connects GraphQL data to React components"}, + {"tech": "react-native", "layer": "mobile", "note": "Created at Facebook; used in the Facebook app"}, + {"tech": "hermes-engine", "layer": "mobile", "note": "JavaScript engine built for React Native"}, + {"tech": "hack", "layer": "backend", "note": "Most web-tier code; gradually typed PHP dialect"}, + {"tech": "hhvm", "layer": "backend", "note": "Runs the Hack codebase with a JIT"}, + {"tech": "cpp", "layer": "backend", "note": "Most infrastructure services"}, + {"tech": "folly", "layer": "backend", "note": "Core C++ library used across services"}, + {"tech": "apache-thrift", "layer": "backend", "note": "Service RPC, created at Facebook"}, + {"tech": "mysql", "layer": "data", "note": "Social graph storage (MyRocks engine)"}, + {"tech": "rocksdb", "layer": "data", "note": "Embedded store under MyRocks and many services"}, + {"tech": "memcached", "layer": "data", "note": "Huge cache tier in front of MySQL"}, + {"tech": "mcrouter", "layer": "data", "note": "Routes requests across memcached pools"}, + {"tech": "presto", "layer": "data", "note": "Interactive SQL on the warehouse, created at Facebook"}, + {"tech": "pytorch", "layer": "ml", "note": "Main ML framework, created at Meta AI"}, + {"tech": "katran", "layer": "infra", "note": "eBPF layer-4 load balancer"}, + {"tech": "zstd", "layer": "infra", "note": "Compression, created at Facebook"}, + {"tech": "buck2", "layer": "infra", "note": "Build system for the monorepo"}, + {"tech": "sapling-scm", "layer": "infra", "note": "Source control for the monorepo"} + ], + "not_in_atlas": ["TAO", "Scuba", "Tupperware"], + "sources": [{"title": "Engineering at Meta", "url": "https://engineering.fb.com"}] + }, + { + "id": "whatsapp", + "name": "WhatsApp", + "category": "Communication", + "url": "https://www.whatsapp.com", + "summary": "Erlang on FreeBSD let a tiny team hold millions of connections per server; messages are end-to-end encrypted.", + "stack": [ + {"tech": "erlang", "layer": "backend", "note": "Chat servers (\"1 million is so 2011\")"}, + {"tech": "beam-vm", "layer": "backend", "note": "Runs millions of lightweight processes per machine"}, + {"tech": "freebsd", "layer": "infra", "note": "Server operating system, tuned for connections"} + ], + "not_in_atlas": ["ejabberd", "Mnesia"], + "sources": [{"title": "1 million is so 2011", "url": "https://blog.whatsapp.com/1-million-is-so-2011"}, {"title": "Engineering at Meta", "url": "https://engineering.fb.com"}] + }, + { + "id": "x-twitter", + "name": "X (Twitter)", + "category": "Social", + "url": "https://x.com", + "summary": "Moved from Rails to Scala and Java services on Finagle, with Kafka, Hadoop, Redis and memcached behind the timeline.", + "stack": [ + {"tech": "react", "layer": "web", "note": "Web client (Twitter Lite PWA onwards)"}, + {"tech": "scala", "layer": "backend", "note": "Most services after leaving Ruby on Rails"}, + {"tech": "java", "layer": "backend", "note": "Search and many JVM services"}, + {"tech": "finagle", "layer": "backend", "note": "RPC library for every service, built at Twitter"}, + {"tech": "apache-thrift", "layer": "backend", "note": "Service interfaces"}, + {"tech": "mysql", "layer": "data", "note": "Tweets and users before Manhattan"}, + {"tech": "redis", "layer": "data", "note": "Timeline caches"}, + {"tech": "memcached", "layer": "data", "note": "General caching"}, + {"tech": "twemproxy", "layer": "data", "note": "Proxy for its Redis and memcached pools, built at Twitter"}, + {"tech": "kafka", "layer": "data", "note": "Event streams"}, + {"tech": "hadoop", "layer": "data", "note": "Batch analytics"}, + {"tech": "apache-storm", "layer": "data", "note": "Real-time processing until Heron replaced it"}, + {"tech": "zipkin", "layer": "infra", "note": "Distributed tracing, built at Twitter"} + ], + "not_in_atlas": ["Manhattan", "Heron"], + "sources": [{"title": "X Engineering: infrastructure", "url": "https://blog.x.com/engineering/en_us/topics/infrastructure"}] + }, + { + "id": "youtube", + "name": "YouTube", + "category": "Streaming", + "url": "https://www.youtube.com", + "summary": "Python and C++ services on Google's infrastructure; Vitess was built to shard YouTube's MySQL.", + "stack": [ + {"tech": "python", "layer": "backend", "note": "Much of the original web application"}, + {"tech": "cpp", "layer": "backend", "note": "Video processing and performance-critical services"}, + {"tech": "java", "layer": "backend", "note": "Many backend services"}, + {"tech": "go", "layer": "backend", "note": "Vitess and newer services"}, + {"tech": "mysql", "layer": "data", "note": "Video metadata"}, + {"tech": "vitess", "layer": "data", "note": "Created at YouTube to shard MySQL"}, + {"tech": "gcp", "layer": "infra", "note": "Runs on Google's infrastructure"}, + {"tech": "tensorflow", "layer": "ml", "note": "Recommendation models"} + ], + "not_in_atlas": ["Bigtable"], + "sources": [{"title": "Vitess history", "url": "https://vitess.io/docs/overview/history/"}] + }, + { + "id": "google-search", + "name": "Google Search", + "category": "Search", + "url": "https://www.google.com", + "summary": "C++, Java and Go services talking Protocol Buffers over Stubby/gRPC, built with Bazel, on Google's own storage.", + "stack": [ + {"tech": "cpp", "layer": "backend", "note": "Serving and indexing systems"}, + {"tech": "java", "layer": "backend", "note": "Many backend services"}, + {"tech": "go", "layer": "backend", "note": "Created at Google for its servers"}, + {"tech": "python", "layer": "backend", "note": "Tooling and automation"}, + {"tech": "protobuf", "layer": "backend", "note": "Every RPC and stored record"}, + {"tech": "grpc", "layer": "backend", "note": "Open-source successor of Google's internal Stubby RPC"}, + {"tech": "google-spanner", "layer": "data", "note": "Globally consistent database"}, + {"tech": "borg", "layer": "infra", "note": "Cluster manager that runs every service; inspired Kubernetes"}, + {"tech": "bazel", "layer": "infra", "note": "Open-source version of Blaze, the monorepo build tool"}, + {"tech": "tensorflow", "layer": "ml", "note": "Ranking and language models"} + ], + "not_in_atlas": ["Bigtable", "Colossus"], + "sources": [{"title": "Site Reliability Engineering: the production environment", "url": "https://sre.google/sre-book/production-environment/"}] + }, + { + "id": "stack-overflow", + "name": "Stack Overflow", + "category": "Developer tools", + "url": "https://stackoverflow.com", + "summary": "A famously small fleet: one .NET application on SQL Server, Redis and Elasticsearch behind HAProxy.", + "stack": [ + {"tech": "csharp", "layer": "backend", "note": "The whole application"}, + {"tech": "aspnet-core", "layer": "backend", "note": "Web framework (moved from ASP.NET MVC to .NET Core)"}, + {"tech": "dotnet", "layer": "backend", "note": "Runtime"}, + {"tech": "jquery", "layer": "web", "note": "Front-end scripting"}, + {"tech": "sql-server", "layer": "data", "note": "Primary database on a few large servers"}, + {"tech": "redis", "layer": "data", "note": "Caching and pub/sub"}, + {"tech": "elasticsearch", "layer": "data", "note": "Search"}, + {"tech": "haproxy", "layer": "infra", "note": "Load balancing"} + ], + "not_in_atlas": ["Dapper", "IIS"], + "sources": [{"title": "Stack Overflow: The Architecture, 2016 Edition", "url": "https://nickcraver.com/blog/2016/02/17/stack-overflow-the-architecture-2016-edition/"}] + }, + { + "id": "etsy", + "name": "Etsy", + "category": "E-commerce", + "url": "https://www.etsy.com", + "summary": "A long-lived PHP monolith on sharded MySQL, moved to Google Cloud; StatsD started here.", + "stack": [ + {"tech": "php", "layer": "backend", "note": "The main web application"}, + {"tech": "typescript", "layer": "web", "note": "Front-end code, migrated from JavaScript"}, + {"tech": "mysql", "layer": "data", "note": "Sharded primary database"}, + {"tech": "vitess", "layer": "data", "note": "Sharding layer for MySQL"}, + {"tech": "gcp", "layer": "infra", "note": "Moved from its own data centers to Google Cloud"}, + {"tech": "statsd", "layer": "infra", "note": "Metrics daemon, created at Etsy"} + ], + "not_in_atlas": [], + "sources": [{"title": "Code as Craft", "url": "https://www.etsy.com/codeascraft"}] + }, + { + "id": "monzo", + "name": "Monzo", + "category": "Fintech", + "url": "https://monzo.com", + "summary": "A bank built from the start on Go microservices, Cassandra and Kubernetes on AWS.", + "stack": [ + {"tech": "go", "layer": "backend", "note": "Nearly every one of its thousands of microservices"}, + {"tech": "swift", "layer": "mobile", "note": "iOS app"}, + {"tech": "kotlin", "layer": "mobile", "note": "Android app"}, + {"tech": "cassandra", "layer": "data", "note": "Primary database"}, + {"tech": "etcd", "layer": "data", "note": "Distributed locking"}, + {"tech": "kafka", "layer": "data", "note": "Asynchronous messaging between services"}, + {"tech": "kubernetes", "layer": "infra", "note": "Runs every service"}, + {"tech": "linkerd", "layer": "infra", "note": "Service mesh in its early platform"}, + {"tech": "prometheus", "layer": "infra", "note": "Metrics"}, + {"tech": "aws", "layer": "infra", "note": "Cloud provider"} + ], + "not_in_atlas": [], + "sources": [{"title": "Building a modern bank backend", "url": "https://monzo.com/blog/2016/09/19/building-a-modern-bank-backend"}] + }, + { + "id": "roblox", + "name": "Roblox", + "category": "Gaming", + "url": "https://www.roblox.com", + "summary": "A C++ engine scripted in Luau, run on its own data centers with HashiCorp Consul, Nomad and Vault.", + "stack": [ + {"tech": "cpp", "layer": "backend", "note": "Game engine and servers"}, + {"tech": "lua", "layer": "backend", "note": "Games are scripted in Luau, a Lua derivative"}, + {"tech": "consul", "layer": "infra", "note": "Service discovery (central to its 2021 outage)"}, + {"tech": "hashicorp-nomad", "layer": "infra", "note": "Schedules services in its data centers"}, + {"tech": "vault", "layer": "infra", "note": "Secrets management"} + ], + "not_in_atlas": ["Luau", "BoltDB"], + "sources": [{"title": "Roblox return to service 10/28-10/31, 2021", "url": "https://blog.roblox.com/2022/01/roblox-return-to-service-10-28-10-31-2021/"}] + }, + { + "id": "taobao", + "name": "Taobao (Alibaba)", + "category": "E-commerce", + "url": "https://www.taobao.com", + "summary": "Java services on Alibaba's own open-source middleware: Dubbo for RPC, RocketMQ for messages, Nacos for discovery.", + "stack": [ + {"tech": "java", "layer": "backend", "note": "Most services"}, + {"tech": "apache-dubbo", "layer": "backend", "note": "RPC framework, created at Alibaba"}, + {"tech": "nacos", "layer": "backend", "note": "Service discovery and configuration, created at Alibaba"}, + {"tech": "rocketmq", "layer": "data", "note": "Messaging built for Singles' Day peaks, created at Alibaba"}, + {"tech": "mysql", "layer": "data", "note": "Transactional data (AliSQL fork)"}, + {"tech": "flink", "layer": "data", "note": "Real-time processing; Alibaba is a major contributor"}, + {"tech": "alibaba-cloud", "layer": "infra", "note": "Runs on Alibaba Cloud"}, + {"tech": "qwen", "layer": "ml", "note": "Alibaba's own language models"} + ], + "not_in_atlas": ["OceanBase", "AliSQL"], + "sources": [{"title": "Alibaba Cloud Community blog", "url": "https://www.alibabacloud.com/blog"}] + }, + { + "id": "zalando", + "name": "Zalando", + "category": "E-commerce", + "url": "https://www.zalando.com", + "summary": "JVM microservices on Kubernetes in AWS, with PostgreSQL run by its own operator.", + "stack": [ + {"tech": "react", "layer": "web", "note": "Web front end"}, + {"tech": "typescript", "layer": "web", "note": "Front-end language"}, + {"tech": "java", "layer": "backend", "note": "Most backend services"}, + {"tech": "kotlin", "layer": "backend", "note": "Newer JVM services"}, + {"tech": "scala", "layer": "backend", "note": "Some services and data tooling"}, + {"tech": "postgresql", "layer": "data", "note": "Main database, run with its Postgres Operator"}, + {"tech": "kafka", "layer": "data", "note": "Event bus behind its Nakadi API"}, + {"tech": "kubernetes", "layer": "infra", "note": "Runs services across hundreds of clusters"}, + {"tech": "aws", "layer": "infra", "note": "Cloud provider"} + ], + "not_in_atlas": ["Patroni", "Skipper", "Nakadi"], + "sources": [{"title": "Zalando Engineering", "url": "https://engineering.zalando.com"}] + }, + { + "id": "mastodon", + "name": "Mastodon", + "category": "Social", + "url": "https://joinmastodon.org", + "summary": "Open-source federated social network: a Rails app with Sidekiq workers, PostgreSQL and Redis, and a Node.js streaming server.", + "stack": [ + {"tech": "react", "layer": "web", "note": "Web interface"}, + {"tech": "ruby", "layer": "backend", "note": "Main application language"}, + {"tech": "rails", "layer": "backend", "note": "Web app and ActivityPub federation"}, + {"tech": "sidekiq", "layer": "backend", "note": "Background jobs, including federation delivery"}, + {"tech": "nodejs", "layer": "backend", "note": "Streaming API server"}, + {"tech": "postgresql", "layer": "data", "note": "Main database"}, + {"tech": "redis", "layer": "data", "note": "Job queue, caches and timelines"}, + {"tech": "elasticsearch", "layer": "data", "note": "Optional full-text search"} + ], + "not_in_atlas": [], + "sources": [{"title": "Mastodon documentation", "url": "https://docs.joinmastodon.org"}] + }, + { + "id": "basecamp", + "name": "Basecamp and HEY", + "category": "Productivity", + "url": "https://basecamp.com", + "summary": "37signals' Rails monoliths, where Rails itself came from, now on its own servers instead of the cloud.", + "stack": [ + {"tech": "ruby", "layer": "backend", "note": "Everything server-side"}, + {"tech": "rails", "layer": "backend", "note": "Extracted from Basecamp in 2004"}, + {"tech": "mysql", "layer": "data", "note": "Primary database"}, + {"tech": "redis", "layer": "data", "note": "Caching and jobs"}, + {"tech": "docker", "layer": "infra", "note": "Deploys with its Kamal tool after leaving the cloud"} + ], + "not_in_atlas": ["Hotwire", "Kamal"], + "sources": [{"title": "37signals Dev", "url": "https://dev.37signals.com"}] + }, + { + "id": "coinbase", + "name": "Coinbase", + "category": "Fintech", + "url": "https://www.coinbase.com", + "summary": "A Rails monolith grown into Go services on AWS, with a React Native mobile app.", + "stack": [ + {"tech": "react", "layer": "web", "note": "Web app"}, + {"tech": "react-native", "layer": "mobile", "note": "Rebuilt its mobile app in React Native"}, + {"tech": "ruby", "layer": "backend", "note": "Original monolith"}, + {"tech": "rails", "layer": "backend", "note": "Original monolith framework"}, + {"tech": "go", "layer": "backend", "note": "Most newer services"}, + {"tech": "mongodb", "layer": "data", "note": "Primary database for the monolith"}, + {"tech": "aws", "layer": "infra", "note": "Cloud provider"} + ], + "not_in_atlas": [], + "sources": [{"title": "Coinbase Blog: engineering", "url": "https://www.coinbase.com/blog"}] + }, + { + "id": "canva", + "name": "Canva", + "category": "Design tools", + "url": "https://www.canva.com", + "summary": "A TypeScript and React editor over Java services on AWS; media metadata moved from MySQL to DynamoDB.", + "stack": [ + {"tech": "react", "layer": "web", "note": "Editor UI"}, + {"tech": "typescript", "layer": "web", "note": "Front-end language"}, + {"tech": "java", "layer": "backend", "note": "Most backend services"}, + {"tech": "mysql", "layer": "data", "note": "Original media metadata store"}, + {"tech": "dynamodb", "layer": "data", "note": "Media metadata after a live migration from MySQL"}, + {"tech": "aws", "layer": "infra", "note": "Cloud provider"} + ], + "not_in_atlas": [], + "sources": [{"title": "From zero to 50 million uploads per day: scaling media at Canva", "url": "https://www.canva.dev/blog/engineering/from-zero-to-50-million-uploads-per-day-scaling-media-at-canva/"}] + }, + { + "id": "bluesky", + "name": "Bluesky", + "category": "Social", + "url": "https://bsky.app", + "summary": "TypeScript and Go services on the AT Protocol: one SQLite database per user, ScyllaDB behind the app view, and a React Native app.", + "stack": [ + {"tech": "react-native", "layer": "mobile", "note": "One codebase for iOS, Android and web"}, + {"tech": "expo", "layer": "mobile", "note": "Builds and ships the app"}, + {"tech": "typescript", "layer": "backend", "note": "Reference AT Protocol services"}, + {"tech": "go", "layer": "backend", "note": "Relay and performance-critical services"}, + {"tech": "sqlite", "layer": "data", "note": "One database per user on each data server"}, + {"tech": "postgresql", "layer": "data", "note": "Earlier app-view database"}, + {"tech": "scylladb", "layer": "data", "note": "App-view storage at scale"} + ], + "not_in_atlas": ["AT Protocol"], + "sources": [{"title": "ATProto for distributed systems engineers", "url": "https://atproto.com/articles/atproto-for-distsys-engineers"}, {"title": "Building Bluesky (The Pragmatic Engineer)", "url": "https://newsletter.pragmaticengineer.com/p/bluesky"}] + }, + { + "id": "pokemon-go", + "name": "Pokémon GO", + "category": "Gaming", + "url": "https://pokemongolive.com", + "summary": "A Unity client and Java backend on Google Kubernetes Engine and Cloud Datastore, scaled 50x past plan at launch.", + "stack": [ + {"tech": "unity", "layer": "mobile", "note": "Game client"}, + {"tech": "csharp", "layer": "mobile", "note": "Client game code"}, + {"tech": "java", "layer": "backend", "note": "Game servers"}, + {"tech": "google-kubernetes-engine", "layer": "infra", "note": "Ran the launch on GKE"}, + {"tech": "gcp", "layer": "infra", "note": "Cloud provider"} + ], + "not_in_atlas": ["Cloud Datastore"], + "sources": [{"title": "Bringing Pokémon GO to life on Google Cloud", "url": "https://cloud.google.com/blog/products/containers-kubernetes/bringing-pokemon-go-to-life-on-google-cloud"}] + }, + { + "id": "fortnite", + "name": "Fortnite", + "category": "Gaming", + "url": "https://www.fortnite.com", + "summary": "Unreal Engine game servers on AWS, with MongoDB and memcached behind accounts and matchmaking.", + "stack": [ + {"tech": "unreal-engine", "layer": "backend", "note": "Game client and dedicated servers, Epic's own engine"}, + {"tech": "cpp", "layer": "backend", "note": "Engine and server code"}, + {"tech": "mongodb", "layer": "data", "note": "Account and profile data"}, + {"tech": "memcached", "layer": "data", "note": "Caching in front of MongoDB"}, + {"tech": "aws", "layer": "infra", "note": "Hosts game and backend services"} + ], + "not_in_atlas": ["XMPP"], + "sources": [{"title": "Postmortem of service outage at 3.4M CCU", "url": "https://www.fortnite.com/news/postmortem-of-service-outage-at-3-4m-ccu"}] } ] diff --git a/data/seed/journeys.json b/data/seed/journeys.json index 7cff440..6a63992 100644 --- a/data/seed/journeys.json +++ b/data/seed/journeys.json @@ -3075,5 +3075,2893 @@ "caption": "Aircrack-ng captures and cracks handshakes." } ] + }, + { + "title": "Type systems, from dynamic to dependent", + "steps": [ + { + "id": "technology:python", + "caption": "Python checks types while the program runs." + }, + { + "id": "concept:dynamic-typing", + "caption": "Dynamic typing: values carry types, variables don't." + }, + { + "id": "concept:gradual-typing", + "caption": "Gradual typing lets you add type hints one file at a time." + }, + { + "id": "technology:typescript", + "caption": "TypeScript is gradual typing on top of JavaScript." + }, + { + "id": "concept:static-typing", + "caption": "Static typing catches mismatches before the code runs." + }, + { + "id": "concept:type-system", + "caption": "A type system is the set of rules a compiler enforces." + }, + { + "id": "concept:type-theory", + "caption": "Type theory is the mathematics behind those rules." + }, + { + "id": "concept:dependent-types", + "caption": "Dependent types let a type mention a value, such as a list's length." + }, + { + "id": "technology:idris", + "caption": "Idris is a language built around dependent types." + } + ] + }, + { + "title": "Functional programming ideas", + "steps": [ + { + "id": "concept:lambda-calculus", + "caption": "Lambda calculus models computation as functions alone." + }, + { + "id": "concept:currying", + "caption": "Currying turns a many-argument function into a chain of one-argument ones." + }, + { + "id": "concept:higher-order-functions", + "caption": "Higher-order functions take or return other functions." + }, + { + "id": "concept:functional-programming", + "caption": "Functional programming builds programs from such functions." + }, + { + "id": "concept:lazy-evaluation", + "caption": "Lazy evaluation computes a value only when it is needed." + }, + { + "id": "technology:haskell", + "caption": "Haskell is lazy and pure by default." + }, + { + "id": "concept:monads", + "caption": "Monads are how Haskell sequences effects like I/O." + } + ] + }, + { + "title": "How runtimes run your code", + "steps": [ + { + "id": "technology:python", + "caption": "You write Python source code." + }, + { + "id": "technology:cpython", + "caption": "CPython, the reference interpreter, reads it." + }, + { + "id": "concept:bytecode", + "caption": "It compiles the source to bytecode, a compact instruction set." + }, + { + "id": "technology:jvm", + "caption": "The JVM runs Java bytecode the same way." + }, + { + "id": "concept:just-in-time-compilation", + "caption": "A JIT compiler turns hot bytecode into machine code while it runs." + }, + { + "id": "technology:v8", + "caption": "V8 does this for JavaScript in Chrome and Node.js." + }, + { + "id": "concept:inline-caching", + "caption": "Inline caches remember object shapes so property lookups stay fast." + } + ] + }, + { + "title": "Lisp and the power of macros", + "steps": [ + { + "id": "technology:lisp", + "caption": "Lisp, from 1958, writes code as nested lists." + }, + { + "id": "technology:scheme", + "caption": "Scheme is a small, clean dialect of Lisp." + }, + { + "id": "technology:racket", + "caption": "Racket grew out of Scheme as a language for making languages." + }, + { + "id": "concept:macros", + "caption": "Macros transform code before it runs." + }, + { + "id": "concept:homoiconicity", + "caption": "They are easy in Lisp because code and data share one shape." + }, + { + "id": "concept:metaprogramming", + "caption": "Metaprogramming is code that writes or changes code." + } + ] + }, + { + "title": "From ALGOL to Swift", + "steps": [ + { + "id": "technology:algol", + "caption": "ALGOL introduced block structure in 1958." + }, + { + "id": "technology:simula", + "caption": "Simula added classes and objects." + }, + { + "id": "technology:smalltalk", + "caption": "Smalltalk made everything an object, sent messages." + }, + { + "id": "technology:objective-c", + "caption": "Objective-C put Smalltalk's messaging on top of C." + }, + { + "id": "technology:swift", + "caption": "Swift replaced Objective-C on Apple platforms in 2014." + } + ] + }, + { + "title": "Concurrency built into languages", + "steps": [ + { + "id": "concept:concurrency", + "caption": "Concurrency is many tasks making progress at once." + }, + { + "id": "concept:concurrent-programming-languages", + "caption": "Communicating Sequential Processes connects tasks with channels." + }, + { + "id": "technology:go", + "caption": "Go's goroutines and channels come from that idea." + }, + { + "id": "concept:green-threads", + "caption": "Green threads are scheduled by the runtime, not the OS." + }, + { + "id": "technology:erlang", + "caption": "Erlang runs millions of lightweight processes." + }, + { + "id": "technology:beam-vm", + "caption": "The BEAM virtual machine schedules them and restarts the ones that fail." + }, + { + "id": "concept:actor-model", + "caption": "Each process is an actor that only talks by messages." + } + ] + }, + { + "title": "Languages that compile to JavaScript", + "steps": [ + { + "id": "technology:javascript", + "caption": "Browsers run one language: JavaScript." + }, + { + "id": "technology:coffeescript", + "caption": "CoffeeScript offered a shorter syntax in 2009." + }, + { + "id": "concept:transpiler", + "caption": "A transpiler turns one high-level language into another." + }, + { + "id": "technology:typescript", + "caption": "TypeScript adds static types and compiles them away." + }, + { + "id": "technology:flow-type", + "caption": "Flow, from Meta, tried the same with a type checker." + }, + { + "id": "technology:ocaml", + "caption": "Flow itself is written in OCaml." + }, + { + "id": "technology:rescript", + "caption": "ReScript brings OCaml-style types to JavaScript output." + } + ] + }, + { + "title": "How parsers are built", + "steps": [ + { + "id": "concept:regular-languages", + "caption": "Regular expressions describe tokens like numbers and names." + }, + { + "id": "concept:lexical-analysis", + "caption": "A lexer splits source text into those tokens." + }, + { + "id": "concept:parsing", + "caption": "A parser checks the tokens against a grammar." + }, + { + "id": "concept:parser-generator", + "caption": "Parser generators write that parser for you from the grammar." + }, + { + "id": "technology:tree-sitter", + "caption": "Tree-sitter parses incrementally, fast enough for an editor." + }, + { + "id": "concept:abstract-syntax-tree", + "caption": "The result is a syntax tree of the program." + }, + { + "id": "concept:static-analysis", + "caption": "Linters and analysers walk that tree to find bugs." + } + ] + }, + { + "title": "Inside an optimizing compiler", + "steps": [ + { + "id": "concept:abstract-syntax-tree", + "caption": "The compiler starts from the syntax tree." + }, + { + "id": "concept:compiler-theory", + "caption": "Compiler theory splits the work into a front end and a back end." + }, + { + "id": "concept:intermediate-representation", + "caption": "The front end lowers the tree to an intermediate representation." + }, + { + "id": "concept:static-single-assignment", + "caption": "SSA form gives every variable exactly one assignment." + }, + { + "id": "concept:compiler-optimization", + "caption": "That makes optimizations like dead-code removal simple." + }, + { + "id": "concept:register-allocation", + "caption": "Finally, variables are mapped onto the CPU's few registers." + } + ] + }, + { + "title": "LLVM, the compiler toolkit", + "steps": [ + { + "id": "technology:clang", + "caption": "Clang is the C and C++ front end." + }, + { + "id": "technology:llvm", + "caption": "LLVM is the shared optimizer and code generator behind it." + }, + { + "id": "concept:intermediate-representation", + "caption": "Every LLVM language meets in one IR." + }, + { + "id": "technology:mlir", + "caption": "MLIR generalizes that IR for machine learning and hardware." + }, + { + "id": "technology:mojo", + "caption": "Mojo is built on MLIR." + } + ] + }, + { + "title": "Life on the JVM", + "steps": [ + { + "id": "technology:java", + "caption": "Java compiles to bytecode, not machine code." + }, + { + "id": "technology:jvm", + "caption": "The Java Virtual Machine runs it anywhere." + }, + { + "id": "technology:openjdk", + "caption": "OpenJDK is the open-source reference implementation." + }, + { + "id": "technology:graalvm", + "caption": "GraalVM adds a new JIT and native images." + }, + { + "id": "technology:quarkus", + "caption": "Quarkus uses native images for fast-starting Java services." + } + ] + }, + { + "title": "Memory management across languages", + "steps": [ + { + "id": "concept:garbage-collection", + "caption": "Garbage collectors find unreachable objects for you." + }, + { + "id": "concept:reference-counting", + "caption": "Reference counting frees an object when its last reference goes, as in Swift." + }, + { + "id": "concept:memory-management", + "caption": "Both answer the same question: when can memory be given back?" + }, + { + "id": "technology:rust", + "caption": "Rust answers it at compile time." + }, + { + "id": "concept:ownership-and-borrowing", + "caption": "Ownership and borrowing free memory with no collector at all." + } + ] + }, + { + "title": "Your first data analysis", + "steps": [ + { + "id": "concept:data-science", + "caption": "Data science turns raw data into answers." + }, + { + "id": "concept:statistics", + "caption": "Statistics is its foundation." + }, + { + "id": "concept:descriptive-statistics", + "caption": "Start with descriptive statistics: means, spreads, counts." + }, + { + "id": "concept:exploratory-data-analysis", + "caption": "Exploratory analysis looks for patterns before testing anything." + }, + { + "id": "technology:seaborn", + "caption": "Seaborn draws statistical plots in a line of Python." + }, + { + "id": "technology:matplotlib", + "caption": "It is built on Matplotlib, Python's plotting workhorse." + } + ] + }, + { + "title": "Statistics behind A/B tests", + "steps": [ + { + "id": "concept:causal-inference", + "caption": "Causal inference asks whether a change caused an effect." + }, + { + "id": "concept:experiment-design", + "caption": "A designed experiment randomizes who gets the change." + }, + { + "id": "concept:ab-testing", + "caption": "An A/B test is the product version of that experiment." + }, + { + "id": "concept:hypothesis-testing", + "caption": "A hypothesis test asks whether the difference could be chance." + }, + { + "id": "concept:p-value", + "caption": "The p-value is how surprising the result would be if nothing changed." + }, + { + "id": "concept:statistical-inference", + "caption": "Statistical inference turns a sample into a claim about everyone." + }, + { + "id": "concept:bootstrapping-statistics", + "caption": "Bootstrapping estimates uncertainty by resampling your own data." + } + ] + }, + { + "title": "Evaluate a model honestly", + "steps": [ + { + "id": "concept:overfitting", + "caption": "A model that memorizes its training data fails on new data." + }, + { + "id": "concept:cross-validation", + "caption": "Cross-validation tests on data the model never trained on." + }, + { + "id": "concept:hyperparameter-tuning", + "caption": "Hyperparameters are tuned against those held-out scores." + }, + { + "id": "technology:optuna", + "caption": "Optuna searches the settings automatically." + } + ] + }, + { + "title": "From warehouse to dashboard", + "steps": [ + { + "id": "concept:data-warehouse", + "caption": "The warehouse holds the company's cleaned data." + }, + { + "id": "concept:semantic-layer", + "caption": "A semantic layer defines metrics like revenue once." + }, + { + "id": "concept:business-intelligence", + "caption": "Business intelligence tools query those metrics." + }, + { + "id": "technology:tableau", + "caption": "Tableau is a drag-and-drop analytics tool." + }, + { + "id": "technology:power-bi", + "caption": "Power BI is Microsoft's equivalent." + }, + { + "id": "concept:dashboard-design", + "caption": "A good dashboard answers one question at a glance." + }, + { + "id": "concept:data-storytelling", + "caption": "Data storytelling explains what the numbers mean." + } + ] + }, + { + "title": "Open-source dashboards", + "steps": [ + { + "id": "concept:business-intelligence", + "caption": "BI does not have to be a paid product." + }, + { + "id": "technology:metabase", + "caption": "Metabase lets anyone ask questions of a database." + }, + { + "id": "technology:apache-superset", + "caption": "Apache Superset, started at Airbnb, handles larger teams and datasets." + }, + { + "id": "concept:dashboard-design", + "caption": "Both turn queries into dashboards." + }, + { + "id": "concept:kpi", + "caption": "Pick a few key performance indicators to put on them." + } + ] + }, + { + "title": "Data science in R", + "steps": [ + { + "id": "technology:rstudio", + "caption": "RStudio is the IDE most R users start in." + }, + { + "id": "technology:r-lang", + "caption": "R is a language made for statistics." + }, + { + "id": "technology:tidyverse", + "caption": "The tidyverse is a family of packages for tidy data." + }, + { + "id": "technology:ggplot2", + "caption": "ggplot2 builds charts from a grammar of graphics." + }, + { + "id": "concept:data-visualization", + "caption": "Good charts show the shape of the data." + } + ] + }, + { + "title": "Product analytics", + "steps": [ + { + "id": "technology:google-analytics", + "caption": "Google Analytics counts visits to a website." + }, + { + "id": "concept:web-analytics", + "caption": "Web analytics measures traffic and sources." + }, + { + "id": "concept:product-analytics", + "caption": "Product analytics follows what people do inside the product." + }, + { + "id": "concept:cohort-analysis", + "caption": "Cohorts compare groups of users who started at the same time." + }, + { + "id": "technology:amplitude", + "caption": "Amplitude is built around events and cohorts." + }, + { + "id": "technology:mixpanel", + "caption": "Mixpanel is its long-time competitor." + } + ] + }, + { + "title": "Data you can trust", + "steps": [ + { + "id": "technology:great-expectations", + "caption": "Great Expectations tests data the way unit tests check code." + }, + { + "id": "concept:data-quality", + "caption": "Data quality: complete, correct and on time." + }, + { + "id": "concept:data-governance", + "caption": "Governance decides who owns and may use each dataset." + }, + { + "id": "concept:data-lineage", + "caption": "Lineage traces where every column came from." + }, + { + "id": "concept:data-catalog", + "caption": "A catalog makes datasets searchable." + }, + { + "id": "technology:datahub", + "caption": "DataHub is an open-source catalog started at LinkedIn." + } + ] + }, + { + "title": "Responsible data science", + "steps": [ + { + "id": "concept:data-privacy", + "caption": "Personal data comes with obligations." + }, + { + "id": "concept:data-ethics", + "caption": "Data ethics asks what should be done, not only what can be." + }, + { + "id": "concept:algorithmic-bias", + "caption": "Models can learn the biases in their training data." + }, + { + "id": "concept:explainable-ai", + "caption": "Explainable AI shows why a model decided what it did." + } + ] + }, + { + "title": "Share a model as a web app", + "steps": [ + { + "id": "technology:plotly", + "caption": "Plotly draws interactive charts." + }, + { + "id": "technology:dash-plotly", + "caption": "Dash turns Plotly charts into a web app in Python." + }, + { + "id": "technology:streamlit", + "caption": "Streamlit makes a data app from a plain script." + }, + { + "id": "technology:gradio", + "caption": "Gradio wraps a model in a demo UI." + }, + { + "id": "technology:hugging-face-hub", + "caption": "Hugging Face Spaces hosts those demos for free." + } + ] + }, + { + "title": "Forecast a time series", + "steps": [ + { + "id": "concept:statistics", + "caption": "Forecasting is statistics over time." + }, + { + "id": "concept:time-series-analysis", + "caption": "Time series analysis finds trend and seasonality." + }, + { + "id": "concept:time-series-forecasting", + "caption": "Forecasting projects them forward." + }, + { + "id": "technology:prophet", + "caption": "Prophet, from Meta, fits trend and holidays with little tuning." + }, + { + "id": "technology:pandas", + "caption": "It takes a pandas DataFrame of dates and values." + } + ] + }, + { + "title": "Charts on the web", + "steps": [ + { + "id": "technology:chart-js", + "caption": "Chart.js draws common charts on a canvas." + }, + { + "id": "technology:apache-echarts", + "caption": "Apache ECharts handles large and fancy charts." + }, + { + "id": "concept:data-visualization", + "caption": "Both are ready-made; sometimes you need more control." + }, + { + "id": "technology:vega-lite", + "caption": "Vega-Lite describes a chart in a few lines of JSON." + }, + { + "id": "technology:vega", + "caption": "Vega is the fuller grammar underneath." + }, + { + "id": "technology:d3", + "caption": "D3 binds data to the page for fully custom graphics." + }, + { + "id": "technology:observable", + "caption": "Observable notebooks are where many D3 charts are made." + } + ] + }, + { + "title": "How a company runs on ERP", + "steps": [ + { + "id": "concept:double-entry-bookkeeping", + "caption": "Every business keeps its books in double entry." + }, + { + "id": "concept:erp", + "caption": "ERP systems put finance, stock and HR in one database." + }, + { + "id": "technology:sap-erp", + "caption": "SAP S/4HANA is the best-known ERP." + }, + { + "id": "technology:sap-hana", + "caption": "It runs on SAP HANA, SAP's own database." + }, + { + "id": "concept:in-memory-database", + "caption": "HANA keeps data in memory for fast analytics." + } + ] + }, + { + "title": "CRM and the sales stack", + "steps": [ + { + "id": "concept:marketing-automation", + "caption": "Marketing automation nurtures leads with emails and scoring." + }, + { + "id": "technology:hubspot", + "caption": "HubSpot started there." + }, + { + "id": "concept:crm", + "caption": "A CRM tracks every customer and deal." + }, + { + "id": "technology:salesforce", + "caption": "Salesforce is the largest CRM platform." + }, + { + "id": "technology:apex-lang", + "caption": "Developers customize it in Apex, a Java-like language." + } + ] + }, + { + "title": "Connect enterprise systems", + "steps": [ + { + "id": "concept:service-oriented-architecture", + "caption": "SOA splits a company's software into services." + }, + { + "id": "concept:enterprise-service-bus", + "caption": "An enterprise service bus routes messages between them." + }, + { + "id": "concept:message-broker", + "caption": "Underneath is a message broker." + }, + { + "id": "concept:enterprise-integration", + "caption": "Integration patterns describe how systems exchange data." + }, + { + "id": "technology:mulesoft", + "caption": "MuleSoft sells an integration platform." + }, + { + "id": "technology:salesforce", + "caption": "Salesforce bought it in 2018." + } + ] + }, + { + "title": "Automate business workflows", + "steps": [ + { + "id": "concept:bpmn", + "caption": "BPMN is a standard notation for business processes." + }, + { + "id": "technology:camunda", + "caption": "Camunda executes BPMN diagrams as code." + }, + { + "id": "concept:business-process-management", + "caption": "Business process management improves those processes." + }, + { + "id": "concept:workflow-automation", + "caption": "Workflow automation removes the manual steps." + }, + { + "id": "technology:zapier", + "caption": "Zapier connects SaaS apps with no code." + }, + { + "id": "technology:n8n", + "caption": "n8n is an open, self-hostable alternative." + } + ] + }, + { + "title": "Build internal tools without much code", + "steps": [ + { + "id": "concept:spreadsheets", + "caption": "Most internal tools start as a spreadsheet." + }, + { + "id": "technology:google-sheets", + "caption": "Google Sheets makes it shared." + }, + { + "id": "technology:airtable", + "caption": "Airtable turns it into a database." + }, + { + "id": "concept:low-code", + "caption": "Low-code platforms add forms, logic and permissions." + }, + { + "id": "technology:retool", + "caption": "Retool builds admin panels on top of your own APIs." + }, + { + "id": "technology:appsmith", + "caption": "Appsmith is an open-source alternative." + } + ] + }, + { + "title": "IT service management", + "steps": [ + { + "id": "concept:incident-management", + "caption": "Something broke; someone has to own it." + }, + { + "id": "concept:itil", + "caption": "ITIL is the classic playbook for IT services." + }, + { + "id": "concept:itsm", + "caption": "IT service management handles incidents, changes and requests." + }, + { + "id": "technology:servicenow", + "caption": "ServiceNow is the dominant ITSM platform." + }, + { + "id": "concept:workflow-automation", + "caption": "It automates the approvals and hand-offs." + } + ] + }, + { + "title": "Enterprise architecture", + "steps": [ + { + "id": "concept:software-architecture", + "caption": "Software architecture shapes one system." + }, + { + "id": "concept:enterprise-architecture", + "caption": "Enterprise architecture maps all of them together." + }, + { + "id": "concept:archimate", + "caption": "ArchiMate is a modelling language for that map." + }, + { + "id": "concept:uml", + "caption": "It borrows from UML, the software modelling standard." + }, + { + "id": "concept:bpmn", + "caption": "BPMN models the business processes." + }, + { + "id": "concept:business-process-management", + "caption": "Together they guide how processes change." + } + ] + }, + { + "title": "The digital workplace", + "steps": [ + { + "id": "concept:team-collaboration", + "caption": "Teams work in shared tools." + }, + { + "id": "technology:slack", + "caption": "Slack organizes chat into channels." + }, + { + "id": "technology:microsoft-teams", + "caption": "Microsoft Teams bundles chat with meetings." + }, + { + "id": "technology:microsoft-365", + "caption": "It comes with Microsoft 365." + }, + { + "id": "technology:sharepoint", + "caption": "SharePoint stores the documents." + }, + { + "id": "concept:document-management", + "caption": "Document management handles versions and access." + }, + { + "id": "concept:e-signature", + "caption": "Contracts get signed electronically." + }, + { + "id": "technology:docusign", + "caption": "DocuSign is the best-known e-signature service." + } + ] + }, + { + "title": "How a mainframe works", + "steps": [ + { + "id": "technology:ibm-system-360", + "caption": "IBM System/360, 1964, started the compatible mainframe line." + }, + { + "id": "concept:mainframe", + "caption": "Mainframes still run banks, airlines and governments." + }, + { + "id": "technology:ibm-z", + "caption": "IBM Z is today's mainframe hardware." + }, + { + "id": "technology:z-os", + "caption": "z/OS is its operating system." + }, + { + "id": "technology:jcl", + "caption": "JCL scripts tell z/OS which programs to run on which data." + }, + { + "id": "concept:batch-processing", + "caption": "Most of that work is overnight batch processing." + } + ] + }, + { + "title": "COBOL and the banking core", + "steps": [ + { + "id": "concept:core-banking", + "caption": "Core banking keeps every account balance." + }, + { + "id": "technology:cobol", + "caption": "Much of it is still written in COBOL." + }, + { + "id": "technology:cics", + "caption": "CICS runs COBOL programs as online transactions." + }, + { + "id": "concept:transaction-processing", + "caption": "Transaction processing keeps each transfer all-or-nothing." + }, + { + "id": "technology:ims", + "caption": "IBM IMS is a hierarchical database from the Apollo era." + }, + { + "id": "technology:ibm-db2", + "caption": "Db2 is IBM's relational database." + } + ] + }, + { + "title": "Modernize a legacy system", + "steps": [ + { + "id": "concept:y2k-problem", + "caption": "Y2K showed how long old code lives." + }, + { + "id": "concept:technical-debt", + "caption": "Old shortcuts become technical debt." + }, + { + "id": "concept:legacy-modernization", + "caption": "Modernization replaces old systems without stopping them." + }, + { + "id": "concept:strangler-fig-pattern", + "caption": "The strangler fig pattern moves one feature at a time." + }, + { + "id": "concept:microservices", + "caption": "Often each moved feature becomes a service." + } + ] + }, + { + "title": "From punched cards to Unicode", + "steps": [ + { + "id": "concept:punched-card", + "caption": "Punched cards stored data as holes." + }, + { + "id": "concept:mainframe", + "caption": "Mainframes read them by the million." + }, + { + "id": "concept:ebcdic", + "caption": "IBM mainframes encode text in EBCDIC." + }, + { + "id": "concept:character-encoding", + "caption": "Character encodings map bytes to letters." + }, + { + "id": "concept:unicode", + "caption": "Unicode covers every script in one standard." + }, + { + "id": "concept:internationalization", + "caption": "It is what makes software work in any language." + } + ] + }, + { + "title": "From minicomputers to Unix", + "steps": [ + { + "id": "concept:mainframe", + "caption": "Mainframes filled rooms." + }, + { + "id": "concept:minicomputer", + "caption": "Minicomputers brought computing to departments." + }, + { + "id": "technology:pdp-11", + "caption": "The PDP-11 was the most famous one." + }, + { + "id": "concept:unix", + "caption": "Unix was rewritten in C on the PDP-11." + }, + { + "id": "concept:year-2038-problem", + "caption": "Unix time overflows a 32-bit counter in 2038." + } + ] + }, + { + "title": "From sound wave to stream", + "steps": [ + { + "id": "concept:sampling-theorem", + "caption": "Sample a wave fast enough and you can rebuild it exactly." + }, + { + "id": "concept:digital-audio", + "caption": "Digital audio is a stream of those samples." + }, + { + "id": "concept:audio-codecs", + "caption": "Codecs like AAC and Opus shrink it." + }, + { + "id": "technology:ffmpeg", + "caption": "FFmpeg converts between almost every codec." + }, + { + "id": "concept:video-codecs", + "caption": "It handles video codecs too." + }, + { + "id": "concept:video-streaming", + "caption": "Streaming services deliver the encoded media in chunks." + } + ] + }, + { + "title": "Build an audio plugin", + "steps": [ + { + "id": "concept:midi", + "caption": "MIDI sends notes, not sound." + }, + { + "id": "technology:ableton-live", + "caption": "Ableton Live is a popular digital audio workstation." + }, + { + "id": "concept:digital-audio-workstation", + "caption": "A DAW records, edits and mixes tracks." + }, + { + "id": "concept:audio-plugins", + "caption": "Plugins add instruments and effects to any DAW." + }, + { + "id": "technology:juce", + "caption": "JUCE is the C++ framework most plugins are built with." + }, + { + "id": "technology:cpp", + "caption": "Audio code is C++ because it must never miss a deadline." + } + ] + }, + { + "title": "Synthesis and live coding", + "steps": [ + { + "id": "concept:digital-filter", + "caption": "Filters shape the tone of a sound." + }, + { + "id": "concept:sound-synthesis", + "caption": "Synthesis builds sounds from oscillators and filters." + }, + { + "id": "technology:supercollider", + "caption": "SuperCollider is a language and server for synthesis." + }, + { + "id": "technology:sonic-pi", + "caption": "Sonic Pi uses it to teach music through code." + }, + { + "id": "concept:live-coding-music", + "caption": "Live coders perform by editing code on stage." + }, + { + "id": "concept:repl", + "caption": "It works because a REPL runs each change at once." + } + ] + }, + { + "title": "Patch it visually", + "steps": [ + { + "id": "concept:visual-programming-language", + "caption": "Some programs are drawn, not typed." + }, + { + "id": "technology:max-msp", + "caption": "Max/MSP wires boxes together to make music and video." + }, + { + "id": "technology:pure-data", + "caption": "Pure Data is its open-source sibling." + }, + { + "id": "concept:dataflow-programming", + "caption": "Both are dataflow programs: values flow along wires." + }, + { + "id": "concept:stream-processing", + "caption": "Stream processors apply the same idea to data." + } + ] + }, + { + "title": "Sound in games", + "steps": [ + { + "id": "technology:unreal-engine", + "caption": "Game engines play sound, but big games want more." + }, + { + "id": "technology:wwise", + "caption": "Wwise is audio middleware used across the industry." + }, + { + "id": "technology:fmod", + "caption": "FMOD is the other common choice." + }, + { + "id": "concept:game-audio", + "caption": "Game audio reacts to what the player does." + }, + { + "id": "concept:spatial-audio", + "caption": "Spatial audio places each sound in 3D." + }, + { + "id": "concept:virtual-reality", + "caption": "In VR it is essential for presence." + } + ] + }, + { + "title": "Music meets machine learning", + "steps": [ + { + "id": "concept:fast-fourier-transform", + "caption": "The FFT turns sound into frequencies." + }, + { + "id": "concept:audio-fingerprinting", + "caption": "Fingerprints of those frequencies identify a song." + }, + { + "id": "concept:music-information-retrieval", + "caption": "Music information retrieval studies tempo, key and genre." + }, + { + "id": "concept:music-generation", + "caption": "Generative models now compose music." + }, + { + "id": "concept:generative-ai", + "caption": "They are part of the wider generative AI wave." + } + ] + }, + { + "title": "Safety-critical software", + "steps": [ + { + "id": "concept:fault-tolerance", + "caption": "Some failures are not allowed to happen." + }, + { + "id": "concept:functional-safety", + "caption": "Functional safety proves the risk is acceptably low." + }, + { + "id": "concept:iso-26262", + "caption": "ISO 26262 is the standard for cars." + }, + { + "id": "concept:misra-c", + "caption": "MISRA C restricts C to its safer parts." + }, + { + "id": "concept:static-analysis", + "caption": "Static analysers enforce those rules." + } + ] + }, + { + "title": "Software that flies", + "steps": [ + { + "id": "concept:functional-safety", + "caption": "Aircraft software is certified before it flies." + }, + { + "id": "concept:do-178c", + "caption": "DO-178C sets the evidence required at each risk level." + }, + { + "id": "concept:avionics", + "caption": "Avionics are the aircraft's electronic systems." + }, + { + "id": "concept:arinc-653", + "caption": "ARINC 653 partitions one computer between many functions." + }, + { + "id": "concept:rtos", + "caption": "Each partition runs on a real-time OS." + }, + { + "id": "technology:vxworks", + "caption": "VxWorks is a common one, also on Mars rovers." + } + ] + }, + { + "title": "Inside a modern car", + "steps": [ + { + "id": "concept:microcontroller", + "caption": "A car has dozens of microcontrollers." + }, + { + "id": "concept:electronic-control-unit", + "caption": "Each sits in an electronic control unit." + }, + { + "id": "concept:can-bus", + "caption": "ECUs talk over the CAN bus." + }, + { + "id": "concept:autosar", + "caption": "AUTOSAR standardizes their software." + }, + { + "id": "concept:software-defined-vehicle", + "caption": "Newer cars centralize it into a software-defined vehicle." + }, + { + "id": "technology:android-automotive", + "caption": "Android Automotive runs the infotainment." + } + ] + }, + { + "title": "Space flight software", + "steps": [ + { + "id": "concept:leo-satellite-internet", + "caption": "Low Earth orbit is crowded with satellites." + }, + { + "id": "concept:cubesat", + "caption": "Many are CubeSats built from 10 cm units." + }, + { + "id": "concept:flight-software", + "caption": "Flight software runs them with no one to reboot." + }, + { + "id": "technology:nasa-cfs", + "caption": "NASA's core Flight System is reusable flight software in C." + }, + { + "id": "technology:nasa-fprime", + "caption": "F Prime, from JPL, flew on the Mars helicopter." + } + ] + }, + { + "title": "Autonomy on the road and in the air", + "steps": [ + { + "id": "technology:openpilot", + "caption": "openpilot adds driver assistance to ordinary cars." + }, + { + "id": "concept:adas", + "caption": "Driver assistance keeps lanes and distances." + }, + { + "id": "concept:autonomous-vehicles", + "caption": "Full autonomy removes the driver." + }, + { + "id": "technology:apollo-auto", + "caption": "Autoware is an open-source self-driving stack." + }, + { + "id": "technology:ros2", + "caption": "It is built on ROS 2." + }, + { + "id": "technology:px4", + "caption": "PX4 flies drones on ROS 2 too." + }, + { + "id": "technology:ardupilot", + "caption": "ArduPilot is the other major open autopilot." + } + ] + }, + { + "title": "Model-based design", + "steps": [ + { + "id": "concept:control-theory", + "caption": "Control theory describes how systems respond." + }, + { + "id": "concept:model-based-design", + "caption": "Model-based design simulates the controller before building it." + }, + { + "id": "concept:hardware-in-the-loop", + "caption": "Hardware-in-the-loop tests the real controller against a simulation." + }, + { + "id": "concept:cyber-physical-systems", + "caption": "That is how cyber-physical systems are verified." + } + ] + }, + { + "title": "How web maps work", + "steps": [ + { + "id": "concept:coordinate-reference-systems", + "caption": "Every location needs a coordinate system." + }, + { + "id": "concept:map-projections", + "caption": "Projections flatten the globe onto a screen." + }, + { + "id": "concept:web-mapping", + "caption": "Web maps load the world in small squares." + }, + { + "id": "concept:vector-tiles", + "caption": "Vector tiles send geometry, styled in the browser." + }, + { + "id": "technology:maplibre", + "caption": "MapLibre renders them with WebGL." + }, + { + "id": "technology:mapbox", + "caption": "It began as a fork of Mapbox GL." + } + ] + }, + { + "title": "How route planning works", + "steps": [ + { + "id": "technology:openstreetmap", + "caption": "OpenStreetMap is a free, editable map of the world." + }, + { + "id": "technology:osrm", + "caption": "OSRM computes routes on its road network." + }, + { + "id": "concept:routing-navigation", + "caption": "Routing finds the best path between two places." + }, + { + "id": "concept:a-star-search", + "caption": "A* search heads towards the goal first." + } + ] + }, + { + "title": "GIS analysis in Python", + "steps": [ + { + "id": "concept:geographic-information-systems", + "caption": "GIS stores and analyses data about places." + }, + { + "id": "concept:raster-vector-data", + "caption": "It comes as rasters (grids) or vectors (shapes)." + }, + { + "id": "technology:geojson", + "caption": "GeoJSON is the common vector format on the web." + }, + { + "id": "technology:turf-js", + "caption": "Turf.js analyses GeoJSON in the browser." + }, + { + "id": "concept:spatial-analysis", + "caption": "Spatial analysis asks what is near, inside or overlapping." + }, + { + "id": "technology:geopandas", + "caption": "GeoPandas does it in Python." + }, + { + "id": "technology:pandas", + "caption": "It extends pandas DataFrames with geometry." + } + ] + }, + { + "title": "Index the planet", + "steps": [ + { + "id": "concept:geohash", + "caption": "A geohash turns a location into a short string." + }, + { + "id": "concept:spatial-index-h3", + "caption": "Discrete global grids tile the Earth into cells." + }, + { + "id": "technology:uber-h3", + "caption": "H3, from Uber, uses hexagons." + }, + { + "id": "concept:spatial-analysis", + "caption": "Cells make it cheap to group and compare locations." + }, + { + "id": "technology:kepler-gl", + "caption": "kepler.gl, also from Uber, maps millions of points." + }, + { + "id": "technology:deck-gl", + "caption": "It is built on deck.gl's WebGL layers." + } + ] + }, + { + "title": "Earth from above", + "steps": [ + { + "id": "technology:google-earth-engine", + "caption": "Google Earth Engine holds decades of satellite images." + }, + { + "id": "concept:remote-sensing", + "caption": "Remote sensing measures the Earth from a distance." + }, + { + "id": "concept:image-processing", + "caption": "The images need processing before analysis." + }, + { + "id": "concept:raster-vector-data", + "caption": "They arrive as rasters." + }, + { + "id": "concept:digital-elevation-model", + "caption": "Elevation models store height for every cell." + }, + { + "id": "concept:lidar", + "caption": "Lidar measures that height with laser pulses." + } + ] + }, + { + "title": "Turn a WordPress site into a shop", + "steps": [ + { + "id": "concept:content-management-system", + "caption": "A CMS lets non-developers publish pages." + }, + { + "id": "technology:wordpress", + "caption": "WordPress runs a large share of the web." + }, + { + "id": "technology:woocommerce", + "caption": "WooCommerce adds a store to it." + }, + { + "id": "concept:e-commerce", + "caption": "E-commerce means catalogue, cart and checkout." + }, + { + "id": "concept:shopping-cart", + "caption": "The cart collects items and totals the order." + }, + { + "id": "concept:payment-systems", + "caption": "Payment systems move the money." + }, + { + "id": "technology:stripe", + "caption": "Stripe is a developer-friendly way to take payments." + } + ] + }, + { + "title": "Go headless", + "steps": [ + { + "id": "concept:content-management-system", + "caption": "A classic CMS renders its own pages." + }, + { + "id": "concept:headless-cms", + "caption": "A headless CMS only stores content and serves an API." + }, + { + "id": "technology:sanity-cms", + "caption": "Sanity stores content as structured data." + }, + { + "id": "technology:contentful", + "caption": "Contentful is a hosted headless CMS." + }, + { + "id": "technology:strapi", + "caption": "Strapi is an open-source one you host yourself." + }, + { + "id": "technology:nodejs", + "caption": "It runs on Node.js." + } + ] + }, + { + "title": "Shopify from theme to code", + "steps": [ + { + "id": "technology:liquid-template", + "caption": "Shopify themes are written in Liquid." + }, + { + "id": "technology:shopify", + "caption": "Shopify hosts the store and checkout." + }, + { + "id": "technology:hydrogen", + "caption": "Hydrogen builds custom storefronts in React." + }, + { + "id": "technology:remix", + "caption": "It is built on Remix." + }, + { + "id": "technology:react", + "caption": "And Remix is built on React." + } + ] + }, + { + "title": "Open-source shops", + "steps": [ + { + "id": "technology:woocommerce", + "caption": "WooCommerce is open source, on WordPress." + }, + { + "id": "technology:prestashop", + "caption": "PrestaShop is a standalone PHP store." + }, + { + "id": "concept:e-commerce", + "caption": "Many open stores compete with hosted ones." + }, + { + "id": "technology:saleor", + "caption": "Saleor is a headless store in Python." + }, + { + "id": "concept:graphql", + "caption": "It exposes everything through GraphQL." + } + ] + }, + { + "title": "Wikis and knowledge bases", + "steps": [ + { + "id": "technology:mediawiki", + "caption": "MediaWiki runs Wikipedia." + }, + { + "id": "concept:wiki", + "caption": "A wiki is a site anyone can edit." + }, + { + "id": "technology:confluence", + "caption": "Confluence is the company wiki." + }, + { + "id": "technology:notion-app", + "caption": "Notion mixes wiki pages with databases." + }, + { + "id": "technology:obsidian-app", + "caption": "Obsidian keeps notes as local Markdown files." + } + ] + }, + { + "title": "Website builders", + "steps": [ + { + "id": "concept:low-code", + "caption": "Not every site needs code." + }, + { + "id": "technology:webflow", + "caption": "Webflow is visual design that outputs real HTML and CSS." + }, + { + "id": "technology:wix", + "caption": "Wix is drag-and-drop." + }, + { + "id": "technology:squarespace", + "caption": "Squarespace sells polished templates." + }, + { + "id": "concept:e-commerce", + "caption": "All three can run a small store." + }, + { + "id": "technology:shopify", + "caption": "Shopify is the step up when the store is the business." + } + ] + }, + { + "title": "Netflix's resilience tools", + "steps": [ + { + "id": "concept:circuit-breaker", + "caption": "A circuit breaker stops calling a service that keeps failing." + }, + { + "id": "technology:hystrix", + "caption": "Netflix's Hystrix library made the pattern famous." + }, + { + "id": "concept:fault-tolerance", + "caption": "The goal is a system that degrades instead of falling over." + }, + { + "id": "technology:chaos-monkey", + "caption": "Chaos Monkey tests that by killing servers on purpose." + }, + { + "id": "technology:spinnaker", + "caption": "It runs inside Spinnaker, Netflix's delivery platform." + }, + { + "id": "concept:canary-deployment", + "caption": "Spinnaker rolls changes out to a small canary first." + } + ] + }, + { + "title": "Meta's PHP journey", + "steps": [ + { + "id": "technology:php", + "caption": "Facebook started as a PHP site." + }, + { + "id": "technology:hack", + "caption": "Hack added gradual static types to PHP." + }, + { + "id": "technology:hhvm", + "caption": "HHVM runs Hack." + }, + { + "id": "concept:just-in-time-compilation", + "caption": "Its JIT compiler made PHP-style code fast enough for Facebook's scale." + } + ] + }, + { + "title": "Meta's C++ infrastructure", + "steps": [ + { + "id": "technology:memcached", + "caption": "Facebook's cache tier runs on memcached." + }, + { + "id": "technology:mcrouter", + "caption": "mcrouter routes and replicates requests across thousands of memcached servers." + }, + { + "id": "technology:cpp", + "caption": "Meta's infrastructure is mostly C++." + }, + { + "id": "technology:rocksdb", + "caption": "RocksDB, Meta's embedded key-value store, powers many databases." + }, + { + "id": "concept:lsm-tree", + "caption": "It is a log-structured merge tree, fast for writes." + } + ] + }, + { + "title": "Meta's React ecosystem", + "steps": [ + { + "id": "concept:graphql", + "caption": "GraphQL lets the client ask for exactly the data it needs." + }, + { + "id": "technology:relay-graphql", + "caption": "Relay connects GraphQL queries to React components." + }, + { + "id": "technology:react", + "caption": "React itself came out of Meta in 2013." + }, + { + "id": "technology:react-native", + "caption": "React Native brought it to iOS and Android." + }, + { + "id": "technology:hermes-engine", + "caption": "Hermes is the JavaScript engine Meta built for React Native." + } + ] + }, + { + "title": "LinkedIn's streaming stack", + "steps": [ + { + "id": "concept:stream-processing", + "caption": "LinkedIn processes activity as it happens." + }, + { + "id": "technology:apache-samza", + "caption": "Samza was its stream processor." + }, + { + "id": "technology:kafka", + "caption": "Kafka, also from LinkedIn, carries the events." + }, + { + "id": "technology:apache-pinot", + "caption": "Pinot answers analytics queries on those events in milliseconds." + }, + { + "id": "concept:olap", + "caption": "That is online analytical processing on fresh data." + } + ] + }, + { + "title": "Durable workflows, from Uber to Temporal", + "steps": [ + { + "id": "technology:cadence-workflow", + "caption": "Cadence runs long-lived workflows at Uber." + }, + { + "id": "concept:durable-execution", + "caption": "Durable execution survives crashes by replaying a workflow's history." + }, + { + "id": "technology:temporal", + "caption": "Cadence's creators forked it into Temporal." + }, + { + "id": "technology:netflix-conductor", + "caption": "Netflix built Conductor for the same problem." + }, + { + "id": "concept:workflow-automation", + "caption": "Both orchestrate many services into one business process." + } + ] + }, + { + "title": "RPC frameworks from big tech", + "steps": [ + { + "id": "technology:finagle", + "caption": "Finagle is Twitter's RPC library for the JVM." + }, + { + "id": "concept:rpc", + "caption": "An RPC makes a network call look like a function call." + }, + { + "id": "technology:apache-thrift", + "caption": "Thrift, from Facebook, defines services in an IDL." + }, + { + "id": "technology:grpc", + "caption": "gRPC, from Google, does the same over HTTP/2." + } + ] + }, + { + "title": "Cloudflare at the edge", + "steps": [ + { + "id": "concept:edge-computing", + "caption": "Edge computing runs code close to users." + }, + { + "id": "technology:cloudflare-workers", + "caption": "Workers run your code in every Cloudflare data center." + }, + { + "id": "technology:cloudflare", + "caption": "Cloudflare sits in front of a large share of websites." + }, + { + "id": "technology:cloudflare-tunnel", + "caption": "Tunnels publish a private service without opening ports." + }, + { + "id": "concept:zero-trust", + "caption": "Zero trust checks every request, inside or outside the network." + }, + { + "id": "technology:cloudflare-zero-trust", + "caption": "Cloudflare sells that as a service too." + } + ] + }, + { + "title": "Cloudflare's Rust networking", + "steps": [ + { + "id": "technology:nginx", + "caption": "Cloudflare used to run NGINX." + }, + { + "id": "technology:pingora", + "caption": "Pingora, its own Rust proxy, replaced it." + }, + { + "id": "technology:rust", + "caption": "Rust gives network code memory safety with no garbage collector." + }, + { + "id": "technology:quiche", + "caption": "quiche is Cloudflare's Rust QUIC library." + }, + { + "id": "concept:quic", + "caption": "QUIC is transport over UDP with encryption built in." + }, + { + "id": "concept:http3", + "caption": "HTTP/3 runs on QUIC." + } + ] + }, + { + "title": "Data orchestrators from big tech", + "steps": [ + { + "id": "technology:airflow", + "caption": "Airflow was created at Airbnb to schedule data pipelines." + }, + { + "id": "technology:luigi", + "caption": "Luigi did the same at Spotify." + }, + { + "id": "concept:data-orchestration", + "caption": "Orchestrators run steps in order and retry failures." + }, + { + "id": "technology:flyte", + "caption": "Flyte, from Lyft, orchestrates ML pipelines on Kubernetes." + }, + { + "id": "concept:mlops", + "caption": "MLOps puts model training on that kind of footing." + }, + { + "id": "technology:metaflow", + "caption": "Metaflow is Netflix's take on it." + } + ] + }, + { + "title": "Nearest neighbours, from Spotify to vector search", + "steps": [ + { + "id": "concept:recommender-systems", + "caption": "Recommenders find items similar to what you liked." + }, + { + "id": "technology:annoy", + "caption": "Spotify's Annoy finds similar songs fast, approximately." + }, + { + "id": "technology:faiss", + "caption": "Meta's FAISS does it on billions of vectors." + }, + { + "id": "concept:vector-databases", + "caption": "Vector databases wrap that search in a service." + } + ] + }, + { + "title": "From load balancer to service mesh", + "steps": [ + { + "id": "technology:ebpf", + "caption": "eBPF runs small programs inside the Linux kernel." + }, + { + "id": "technology:katran", + "caption": "Katran, Meta's load balancer, uses it to forward packets." + }, + { + "id": "concept:load-balancing", + "caption": "Load balancing spreads traffic across servers." + }, + { + "id": "technology:envoy", + "caption": "Envoy, built at Lyft, balances traffic between services." + }, + { + "id": "technology:istio", + "caption": "Istio puts an Envoy next to every service." + }, + { + "id": "concept:service-mesh", + "caption": "That is a service mesh." + } + ] + }, + { + "title": "Alibaba's microservice stack", + "steps": [ + { + "id": "concept:rpc", + "caption": "Microservices call each other over RPC." + }, + { + "id": "technology:apache-dubbo", + "caption": "Dubbo is Alibaba's RPC framework for Java." + }, + { + "id": "concept:service-discovery", + "caption": "Services need to find each other." + }, + { + "id": "technology:nacos", + "caption": "Nacos, also from Alibaba, does discovery and configuration." + } + ] + }, + { + "title": "Monorepos at Google and Meta", + "steps": [ + { + "id": "technology:bazel", + "caption": "Bazel builds Google's monorepo." + }, + { + "id": "technology:buck2", + "caption": "Buck2 does the same at Meta, rewritten in Rust." + }, + { + "id": "concept:monorepo", + "caption": "A monorepo keeps every project in one repository." + }, + { + "id": "technology:sapling-scm", + "caption": "Sapling is Meta's source control for huge repos." + }, + { + "id": "technology:git", + "caption": "It speaks to Git servers." + } + ] + }, + { + "title": "Build a native iOS app", + "steps": [ + { + "id": "technology:swift", + "caption": "iOS apps are written in Swift." + }, + { + "id": "technology:xcode", + "caption": "Xcode builds, signs and debugs them." + }, + { + "id": "technology:swiftui", + "caption": "SwiftUI describes screens declaratively." + }, + { + "id": "technology:uikit", + "caption": "UIKit is the older framework underneath." + }, + { + "id": "technology:objective-c", + "caption": "UIKit was written for Objective-C." + } + ] + }, + { + "title": "Build a native Android app", + "steps": [ + { + "id": "technology:kotlin", + "caption": "Android apps are written in Kotlin." + }, + { + "id": "technology:android-studio", + "caption": "Android Studio is the official IDE." + }, + { + "id": "technology:android-sdk", + "caption": "The Android SDK gives access to the phone." + }, + { + "id": "technology:android", + "caption": "Android runs on most of the world's phones." + }, + { + "id": "technology:espresso-android", + "caption": "Espresso tests the UI on a device." + } + ] + }, + { + "title": "Kotlin beyond Android", + "steps": [ + { + "id": "technology:jetpack-compose", + "caption": "Jetpack Compose is Android's declarative UI." + }, + { + "id": "technology:compose-multiplatform", + "caption": "Compose Multiplatform runs it on desktop and iOS." + }, + { + "id": "technology:kotlin-multiplatform", + "caption": "Kotlin Multiplatform shares the logic underneath." + }, + { + "id": "concept:cross-platform-development", + "caption": "It is a cross-platform approach that keeps native UI where you want it." + } + ] + }, + { + "title": "Ship and grow a mobile app", + "steps": [ + { + "id": "concept:mobile-app-lifecycle", + "caption": "A mobile app is built, shipped and updated in cycles." + }, + { + "id": "concept:app-store-distribution", + "caption": "Releases go through Apple's and Google's stores." + }, + { + "id": "technology:fastlane", + "caption": "fastlane automates screenshots, signing and uploads." + }, + { + "id": "concept:ci-cd", + "caption": "It runs inside the CI/CD pipeline." + } + ] + }, + { + "title": "Engage users on mobile", + "steps": [ + { + "id": "concept:push-notifications", + "caption": "Push notifications bring users back." + }, + { + "id": "concept:deep-linking", + "caption": "Deep links open the right screen from a link." + }, + { + "id": "concept:mobile-app-lifecycle", + "caption": "Both are part of the app's lifecycle." + }, + { + "id": "concept:mobile-performance", + "caption": "Slow apps get uninstalled." + }, + { + "id": "technology:firebase-crashlytics", + "caption": "Crashlytics reports crashes from real devices." + } + ] + }, + { + "title": "Desktop apps with web tech", + "steps": [ + { + "id": "concept:desktop-gui", + "caption": "Desktop apps used to mean native toolkits." + }, + { + "id": "technology:electron", + "caption": "Electron ships Chromium and Node.js with your app." + }, + { + "id": "technology:tauri", + "caption": "Tauri uses the system web view and Rust instead." + }, + { + "id": "technology:wails", + "caption": "Wails does the same with Go." + } + ] + }, + { + "title": "How a game engine works", + "steps": [ + { + "id": "concept:game-loop", + "caption": "Every game runs a loop: input, update, draw." + }, + { + "id": "concept:game-engines", + "caption": "Engines provide that loop and everything around it." + }, + { + "id": "concept:entity-component-system", + "caption": "Many organize game objects as entities and components." + }, + { + "id": "concept:data-oriented-design", + "caption": "That keeps data in tight arrays for the CPU cache." + }, + { + "id": "concept:cache-hierarchy", + "caption": "Cache misses are what make naive game code slow." + } + ] + }, + { + "title": "Make a game in Godot", + "steps": [ + { + "id": "technology:godot", + "caption": "Godot is a free, open-source engine." + }, + { + "id": "concept:game-engines", + "caption": "It handles scenes, physics and rendering." + }, + { + "id": "concept:procedural-generation", + "caption": "Procedural generation builds levels from rules." + }, + { + "id": "concept:level-design", + "caption": "Level design shapes how a level plays." + }, + { + "id": "concept:game-design", + "caption": "Game design decides what makes it fun." + } + ] + }, + { + "title": "Physics in games", + "steps": [ + { + "id": "concept:physics-engine", + "caption": "A physics engine moves bodies under forces." + }, + { + "id": "concept:collision-detection", + "caption": "Collision detection finds what touches what." + }, + { + "id": "concept:quadtree", + "caption": "Quadtrees skip pairs that are far apart." + } + ] + }, + { + "title": "Game AI", + "steps": [ + { + "id": "concept:game-ai", + "caption": "Game AI makes enemies and companions act." + }, + { + "id": "concept:finite-state-machine", + "caption": "Simple characters switch between states." + }, + { + "id": "concept:behavior-trees", + "caption": "Behavior trees compose larger behaviours." + } + ] + }, + { + "title": "Games in Rust", + "steps": [ + { + "id": "technology:rust", + "caption": "Rust is fast and memory-safe." + }, + { + "id": "technology:bevy", + "caption": "Bevy is a Rust game engine." + }, + { + "id": "concept:entity-component-system", + "caption": "It is built around an entity component system." + }, + { + "id": "concept:game-engines", + "caption": "Bevy is one of many engines; Unity and Godot are others." + }, + { + "id": "technology:unity", + "caption": "Unity is the most widely used." + } + ] + }, + { + "title": "Build for VR and AR", + "steps": [ + { + "id": "concept:virtual-reality", + "caption": "VR replaces what you see." + }, + { + "id": "concept:augmented-reality", + "caption": "AR adds to it." + }, + { + "id": "technology:openxr", + "caption": "OpenXR is the common API for headsets." + }, + { + "id": "technology:meta-quest", + "caption": "Meta Quest is the best-selling headset." + } + ] + }, + { + "title": "The three pillars of observability", + "steps": [ + { + "id": "concept:observability", + "caption": "Observability is asking new questions of a running system." + }, + { + "id": "concept:logging", + "caption": "Logs record events." + }, + { + "id": "concept:centralized-logging", + "caption": "Aggregation puts every service's logs in one place." + }, + { + "id": "technology:elastic-stack", + "caption": "The Elastic Stack is a common log store." + }, + { + "id": "technology:kibana", + "caption": "Kibana searches and charts it." + } + ] + }, + { + "title": "Metrics with Prometheus", + "steps": [ + { + "id": "concept:metrics-monitoring", + "caption": "Metrics are numbers over time." + }, + { + "id": "concept:time-series-database", + "caption": "They live in a time series database." + }, + { + "id": "technology:victoriametrics", + "caption": "VictoriaMetrics is one built for scale." + }, + { + "id": "technology:prometheus", + "caption": "Prometheus is the standard metrics system in Kubernetes." + }, + { + "id": "technology:alertmanager", + "caption": "Alertmanager routes its alerts." + }, + { + "id": "technology:pagerduty", + "caption": "PagerDuty wakes the right person." + } + ] + }, + { + "title": "Trace a request across services", + "steps": [ + { + "id": "concept:distributed-tracing", + "caption": "A trace follows one request through every service." + }, + { + "id": "technology:opentelemetry", + "caption": "OpenTelemetry instruments your code once, for any backend." + }, + { + "id": "technology:jaeger", + "caption": "Jaeger stores and shows traces." + }, + { + "id": "technology:zipkin", + "caption": "Zipkin, from Twitter, was the first popular open tracer." + } + ] + }, + { + "title": "Handle an incident", + "steps": [ + { + "id": "concept:alerting", + "caption": "An alert fires." + }, + { + "id": "concept:on-call", + "caption": "The on-call engineer picks it up." + }, + { + "id": "concept:runbook", + "caption": "A runbook lists the first steps." + }, + { + "id": "concept:incident-management", + "caption": "Incident management coordinates the response." + }, + { + "id": "technology:statuspage", + "caption": "A status page keeps customers informed." + } + ] + }, + { + "title": "Learn from failure", + "steps": [ + { + "id": "concept:incident-management", + "caption": "After an incident comes the review." + }, + { + "id": "concept:blameless-postmortem", + "caption": "Blameless postmortems look at systems, not people." + }, + { + "id": "concept:site-reliability-engineering", + "caption": "They are a core SRE practice." + }, + { + "id": "concept:chaos-engineering", + "caption": "Chaos engineering finds failures before customers do." + }, + { + "id": "technology:chaos-mesh", + "caption": "Chaos Mesh injects faults into Kubernetes." + } + ] + }, + { + "title": "Profile production", + "steps": [ + { + "id": "concept:apm", + "caption": "APM tools watch latency and errors per endpoint." + }, + { + "id": "concept:continuous-profiling", + "caption": "Continuous profiling shows which code burns the CPU." + }, + { + "id": "technology:ebpf", + "caption": "eBPF can profile with almost no overhead." + }, + { + "id": "technology:parca", + "caption": "Parca is an open-source eBPF profiler." + } + ] + }, + { + "title": "Go serverless on AWS", + "steps": [ + { + "id": "concept:serverless", + "caption": "Serverless means no servers to manage or pay for when idle." + }, + { + "id": "technology:aws-lambda", + "caption": "AWS Lambda runs a function per request." + }, + { + "id": "technology:amazon-api-gateway", + "caption": "API Gateway turns HTTP requests into Lambda calls." + }, + { + "id": "concept:api-gateway", + "caption": "An API gateway handles routing, auth and rate limits." + } + ] + }, + { + "title": "Keep secrets out of code", + "steps": [ + { + "id": "technology:vault", + "caption": "HashiCorp Vault stores secrets and hands out short-lived credentials." + }, + { + "id": "concept:secrets-management", + "caption": "Secrets management keeps passwords and keys out of Git." + }, + { + "id": "concept:key-management", + "caption": "Key management rotates and audits the keys themselves." + }, + { + "id": "concept:hardware-security-module", + "caption": "The most sensitive keys live in a hardware security module." + } + ] + }, + { + "title": "Cache everything", + "steps": [ + { + "id": "concept:caching", + "caption": "A cache keeps a copy of slow-to-get data close by." + }, + { + "id": "technology:redis", + "caption": "Redis is the go-to in-memory cache and data store." + }, + { + "id": "technology:memcached", + "caption": "Memcached is a simpler, older cache." + }, + { + "id": "technology:evcache", + "caption": "Netflix's EVCache spreads memcached across AWS regions." + } + ] + }, + { + "title": "Distributed SQL", + "steps": [ + { + "id": "concept:distributed-systems", + "caption": "Some databases span many machines." + }, + { + "id": "concept:replication", + "caption": "Every write is copied to several of them." + }, + { + "id": "concept:raft", + "caption": "Raft lets the copies agree on the order of writes." + }, + { + "id": "technology:cockroachdb", + "caption": "CockroachDB is SQL on top of Raft." + }, + { + "id": "technology:postgresql", + "caption": "It speaks the PostgreSQL protocol." + } + ] + }, + { + "title": "Graph databases", + "steps": [ + { + "id": "concept:graph-theory", + "caption": "Some data is mostly relationships." + }, + { + "id": "concept:graph-database", + "caption": "Graph databases store nodes and edges directly." + }, + { + "id": "technology:neo4j", + "caption": "Neo4j is the best-known one." + }, + { + "id": "concept:knowledge-graph", + "caption": "Knowledge graphs connect facts about the world." + } + ] + }, + { + "title": "Data for time series", + "steps": [ + { + "id": "concept:time-series-database", + "caption": "Sensor and metrics data arrive with a timestamp." + }, + { + "id": "technology:influxdb", + "caption": "InfluxDB is built for that." + }, + { + "id": "technology:timescaledb", + "caption": "TimescaleDB adds time series to PostgreSQL." + }, + { + "id": "technology:postgresql", + "caption": "So you keep SQL and its ecosystem." + } + ] + }, + { + "title": "Master the command line", + "steps": [ + { + "id": "technology:bash", + "caption": "Bash is the default shell on most Linux machines." + }, + { + "id": "concept:shell-scripting", + "caption": "Shell scripts glue programs together." + }, + { + "id": "technology:jq", + "caption": "jq slices JSON in a pipeline." + }, + { + "id": "technology:yq", + "caption": "yq does the same for YAML." + } + ] + }, + { + "title": "Load test before launch", + "steps": [ + { + "id": "concept:load-testing", + "caption": "Load testing finds the breaking point before users do." + }, + { + "id": "technology:k6", + "caption": "k6 scripts load tests in JavaScript." + }, + { + "id": "technology:grafana", + "caption": "Results go to Grafana, which owns k6." + } + ] + }, + { + "title": "Test a mobile app", + "steps": [ + { + "id": "technology:ios", + "caption": "iOS and Android each have their own test tools." + }, + { + "id": "technology:xcuitest", + "caption": "XCUITest drives iOS apps." + }, + { + "id": "technology:xcode", + "caption": "It runs from Xcode." + }, + { + "id": "technology:android-studio", + "caption": "Android Studio is the counterpart on Android." + }, + { + "id": "technology:kotlin", + "caption": "Android tests are written in Kotlin too." + } + ] + }, + { + "title": "Fine-tune an open model", + "steps": [ + { + "id": "concept:open-weight-models", + "caption": "Open-weight models can be downloaded and changed." + }, + { + "id": "concept:fine-tuning", + "caption": "Fine-tuning adapts a model to your task." + }, + { + "id": "concept:low-rank-adaptation", + "caption": "LoRA trains a small add-on instead of every weight." + }, + { + "id": "technology:unsloth", + "caption": "Unsloth makes LoRA fine-tuning fit on one GPU." + } + ] + }, + { + "title": "Watch an LLM app in production", + "steps": [ + { + "id": "concept:large-language-models", + "caption": "LLM output varies from run to run." + }, + { + "id": "concept:llm-evaluation", + "caption": "Evaluations score answers against expectations." + }, + { + "id": "concept:llm-observability", + "caption": "Observability records every prompt, answer and cost." + }, + { + "id": "concept:observability", + "caption": "It is the same idea as observability for any service." + } + ] + }, + { + "title": "Prompting well", + "steps": [ + { + "id": "concept:large-language-models", + "caption": "How you ask an LLM changes what you get." + }, + { + "id": "concept:prompt-engineering", + "caption": "Prompt engineering is writing instructions that work." + }, + { + "id": "concept:in-context-learning", + "caption": "Models pick up a task from the prompt alone." + }, + { + "id": "concept:few-shot-learning", + "caption": "A few worked examples show the format you want." + } + ] + }, + { + "title": "Store passwords safely", + "steps": [ + { + "id": "concept:hashing", + "caption": "Never store a password, store its hash." + }, + { + "id": "concept:password-hashing", + "caption": "Password hashes like Argon2 and bcrypt are deliberately slow." + }, + { + "id": "concept:salt-crypto", + "caption": "A random salt per user defeats precomputed tables." + } + ] + }, + { + "title": "End-to-end encryption", + "steps": [ + { + "id": "concept:public-key-cryptography", + "caption": "Public keys let strangers agree on a secret." + }, + { + "id": "technology:gpg", + "caption": "GPG brought that to email in the 1990s." + }, + { + "id": "concept:encryption", + "caption": "Encryption hides data from anyone without the key." + }, + { + "id": "concept:end-to-end-encryption", + "caption": "End-to-end encryption keeps even the server from reading messages." + }, + { + "id": "concept:signal-protocol", + "caption": "The Signal Protocol does it for WhatsApp and Signal." + } + ] + }, + { + "title": "Write and test a smart contract", + "steps": [ + { + "id": "technology:ethereum", + "caption": "Ethereum runs programs on a blockchain." + }, + { + "id": "concept:smart-contracts", + "caption": "Those programs are smart contracts." + }, + { + "id": "concept:evm", + "caption": "The EVM executes them." + }, + { + "id": "technology:solidity", + "caption": "Most contracts are written in Solidity." + }, + { + "id": "technology:hardhat", + "caption": "Hardhat compiles, tests and deploys them with JavaScript." + }, + { + "id": "technology:foundry", + "caption": "Foundry does the same, with tests written in Solidity." + } + ] + }, + { + "title": "Zero-knowledge proofs", + "steps": [ + { + "id": "concept:zero-knowledge-proof", + "caption": "Prove something is true without revealing why." + }, + { + "id": "concept:zk-rollups", + "caption": "ZK rollups prove a batch of transactions was valid." + }, + { + "id": "technology:cairo-lang", + "caption": "Cairo is a language for writing provable programs." + } + ] + }, + { + "title": "JavaScript build tools", + "steps": [ + { + "id": "technology:webpack", + "caption": "webpack bundled the web for a decade." + }, + { + "id": "technology:vite", + "caption": "Vite serves native modules in dev and bundles for production." + }, + { + "id": "technology:esbuild", + "caption": "esbuild, in Go, made bundling 100 times faster." + }, + { + "id": "technology:go", + "caption": "Speed came from leaving JavaScript." + } + ] + }, + { + "title": "Styling the web", + "steps": [ + { + "id": "technology:html", + "caption": "HTML gives a page its structure." + }, + { + "id": "technology:css", + "caption": "CSS styles it." + }, + { + "id": "technology:tailwind-css", + "caption": "Tailwind composes styles from utility classes." + }, + { + "id": "technology:shadcn-ui", + "caption": "shadcn/ui gives copy-in components built on it." + } + ] + }, + { + "title": "Make a site fast", + "steps": [ + { + "id": "concept:core-web-vitals", + "caption": "Core Web Vitals measure loading, response and stability." + }, + { + "id": "technology:lighthouse", + "caption": "Lighthouse audits a page against them." + }, + { + "id": "concept:seo", + "caption": "Search engines rank faster pages higher." + }, + { + "id": "concept:server-side-rendering", + "caption": "Server rendering sends a usable page before any JavaScript runs." + } + ] + }, + { + "title": "Charts and visuals in React", + "steps": [ + { + "id": "technology:react", + "caption": "React renders UI from data." + }, + { + "id": "technology:visx", + "caption": "visx, from Airbnb, gives low-level chart pieces." + }, + { + "id": "technology:d3", + "caption": "It wraps D3's maths." + }, + { + "id": "technology:recharts", + "caption": "Recharts offers ready-made chart components." + } + ] } ] diff --git a/data/seed/roles.json b/data/seed/roles.json index 565c105..cf600e4 100644 --- a/data/seed/roles.json +++ b/data/seed/roles.json @@ -119,5 +119,236 @@ {"title": "Real-time systems", "caption": "Deadlines that must never be missed.", "nodes": ["rtos", "freertos", "zephyr", "real-time-scheduling", "watchdog-timer"]}, {"title": "Going further", "caption": "Connected devices and Linux on the edge.", "nodes": ["esp32", "embedded-linux", "internet-of-things", "mqtt", "rust", "tinyml"]} ] + }, + { + "id": "data-scientist", + "title": "Data scientist", + "summary": "Turns data into decisions: asks the right question, tests it with statistics and builds models when they help.", + "stages": [ + {"title": "Foundations", "caption": "The maths and the language most analysis is done in.", "nodes": ["python", "statistics", "probability-theory", "linear-algebra", "sql", "descriptive-statistics"]}, + {"title": "Analysis", "caption": "Clean the data, explore it and test what you see.", "nodes": ["pandas", "numpy", "jupyter", "data-cleaning", "exploratory-data-analysis", "hypothesis-testing", "ab-testing", "regression-analysis"]}, + {"title": "Modelling", "caption": "Classical models first, and an honest way to evaluate them.", "nodes": ["scikit-learn", "supervised-learning", "cross-validation", "overfitting", "random-forest", "gradient-boosting", "xgboost"]}, + {"title": "Communicating and going further", "caption": "Results only matter once people understand them.", "nodes": ["data-visualization", "seaborn", "data-storytelling", "causal-inference", "time-series-forecasting", "algorithmic-bias"]} + ] + }, + { + "id": "data-analyst", + "title": "Data analyst", + "summary": "Answers business questions with data: queries, spreadsheets and dashboards that people actually use.", + "stages": [ + {"title": "Foundations", "caption": "Spreadsheets, SQL and the statistics behind a fair comparison.", "nodes": ["spreadsheets", "microsoft-excel", "sql", "relational-databases", "descriptive-statistics"]}, + {"title": "Analysis", "caption": "Pull the right data and look at it from every side.", "nodes": ["postgresql", "data-cleaning", "exploratory-data-analysis", "cohort-analysis", "hypothesis-testing", "ab-testing"]}, + {"title": "Dashboards", "caption": "Put the answers in front of the people who need them.", "nodes": ["business-intelligence", "tableau", "power-bi", "looker", "dashboard-design", "kpi"]}, + {"title": "Going further", "caption": "Model the data once, and tell the story behind it.", "nodes": ["data-warehouse", "semantic-layer", "duckdb-dbt", "python", "pandas", "data-storytelling", "product-analytics"]} + ] + }, + { + "id": "site-reliability-engineer", + "title": "Site reliability engineer", + "summary": "Keeps production fast and up: sets reliability targets, builds the monitoring and leads the response when things break.", + "stages": [ + {"title": "Foundations", "caption": "The systems everything runs on.", "nodes": ["linux", "networks", "tcp-ip", "dns", "http", "bash", "python"]}, + {"title": "Running services", "caption": "Containers, orchestration and the infrastructure as code that builds them.", "nodes": ["docker", "kubernetes", "terraform", "load-balancing", "auto-scaling", "high-availability"]}, + {"title": "Observability", "caption": "See what the system is doing before users tell you.", "nodes": ["observability", "metrics-monitoring", "prometheus", "grafana", "centralized-logging", "distributed-tracing", "opentelemetry", "alerting"]}, + {"title": "Reliability practice", "caption": "Targets, budgets and learning from failure.", "nodes": ["site-reliability-engineering", "service-level-objectives", "error-budget", "on-call", "incident-management", "blameless-postmortem", "chaos-engineering", "capacity-planning"]} + ] + }, + { + "id": "cloud-architect", + "title": "Cloud architect", + "summary": "Designs how a company's systems run in the cloud: secure, resilient and not more expensive than they need to be.", + "stages": [ + {"title": "Foundations", "caption": "What the cloud is and the networks it is made of.", "nodes": ["cloud-computing", "virtualization", "networks", "dns", "load-balancing"]}, + {"title": "Core services", "caption": "Compute, storage and data on the big clouds.", "nodes": ["aws", "azure", "gcp", "kubernetes", "serverless", "aws-lambda", "amazon-s3", "dynamodb"]}, + {"title": "Architecture", "caption": "Patterns for systems that scale and survive failures.", "nodes": ["software-architecture", "microservices", "event-driven-architecture", "high-availability", "disaster-recovery", "multi-cloud"]}, + {"title": "Governance", "caption": "Security, code-defined infrastructure and the bill.", "nodes": ["infrastructure-as-code", "terraform", "cloud-security", "zero-trust", "identity-and-access-management", "finops"]} + ] + }, + { + "id": "mlops-engineer", + "title": "MLOps engineer", + "summary": "Takes models from a notebook to production and keeps them working: pipelines, serving, monitoring and retraining.", + "stages": [ + {"title": "Foundations", "caption": "Enough ML and software engineering to talk to both sides.", "nodes": ["python", "machine-learning", "supervised-learning", "git", "docker"]}, + {"title": "Training pipelines", "caption": "Reproducible data, experiments and features.", "nodes": ["mlops", "mlflow", "dvc", "feature-store", "feast", "airflow", "data-pipeline"]}, + {"title": "Serving", "caption": "Put models behind an API that scales.", "nodes": ["model-inference", "kubernetes", "kubeflow", "ray", "bentoml", "vllm", "model-quantization"]}, + {"title": "Keeping models healthy", "caption": "Watch what models do once real data arrives.", "nodes": ["model-drift", "observability", "prometheus", "llm-evaluation", "llm-observability", "ci-cd"]} + ] + }, + { + "id": "qa-engineer", + "title": "QA and test automation engineer", + "summary": "Makes sure software works before users find out it doesn't: test strategy, automation and quality gates in CI.", + "stages": [ + {"title": "Foundations", "caption": "What to test, at which level, and why.", "nodes": ["unit-testing", "integration-testing", "end-to-end-testing", "test-driven-development"]}, + {"title": "Automating tests", "caption": "Frameworks for every layer of the app.", "nodes": ["pytest", "jest", "playwright", "cypress", "selenium", "contract-testing"]}, + {"title": "Beyond functional tests", "caption": "Speed, security and the edge cases people miss.", "nodes": ["load-testing", "k6", "property-based-testing", "fuzzing", "accessibility", "mutation-testing"]}, + {"title": "Quality in delivery", "caption": "Tests that run on every change and stay trustworthy.", "nodes": ["ci-cd", "github-actions", "code-coverage", "mocking", "visual-regression-testing"]} + ] + }, + { + "id": "blockchain-developer", + "title": "Blockchain developer", + "summary": "Builds smart contracts and the apps around them, where bugs are public and money is on the line.", + "stages": [ + {"title": "Foundations", "caption": "The cryptography and data structures a blockchain is built from.", "nodes": ["cryptography", "hashing", "public-key-cryptography", "digital-signature", "merkle-tree"]}, + {"title": "Blockchains", "caption": "How chains agree and what they can run.", "nodes": ["blockchain", "bitcoin", "ethereum", "consensus", "proof-of-work", "proof-of-stake", "smart-contracts"]}, + {"title": "Building contracts", "caption": "Write, test and deploy contracts on the EVM.", "nodes": ["solidity", "evm", "hardhat", "foundry", "vyper", "ethers-js"]}, + {"title": "Going further", "caption": "Scaling, proofs and keeping contracts safe.", "nodes": ["layer-2-scaling", "zk-rollups", "zero-knowledge-proof", "decentralized-finance"]} + ] + }, + { + "id": "mainframe-developer", + "title": "Mainframe developer", + "summary": "Maintains and modernizes the COBOL systems that still move most of the world's money.", + "stages": [ + {"title": "Foundations", "caption": "What a mainframe is and why it is still here.", "nodes": ["mainframe", "ibm-z", "z-os", "tso-ispf", "ebcdic"]}, + {"title": "Core skills", "caption": "The language, the batch jobs and the online transactions.", "nodes": ["cobol", "jcl", "batch-processing", "cics", "transaction-processing", "vsam"]}, + {"title": "Data", "caption": "The databases mainframe programs read and write.", "nodes": ["ibm-db2", "ims", "sql", "ibm-mq"]}, + {"title": "Modernization", "caption": "Bringing old systems into the present without stopping them.", "nodes": ["legacy-modernization", "strangler-fig-pattern", "rest-api", "java", "technical-debt", "core-banking"]} + ] + }, + { + "id": "enterprise-app-developer", + "title": "Enterprise applications developer", + "summary": "Customizes and connects the platforms companies run on: CRM, ERP, workflow and integration.", + "stages": [ + {"title": "Foundations", "caption": "What business systems do and the data behind them.", "nodes": ["erp", "crm", "relational-databases", "sql", "rest-api"]}, + {"title": "Platforms", "caption": "The big suites and their own languages.", "nodes": ["salesforce", "apex-lang", "sap-erp", "abap", "microsoft-dynamics-365", "servicenow"]}, + {"title": "Integration and automation", "caption": "Make the systems talk and remove manual steps.", "nodes": ["enterprise-integration", "mulesoft", "apache-camel", "workflow-automation", "business-process-management", "camunda"]}, + {"title": "Going further", "caption": "Low-code tools and the architecture that ties it together.", "nodes": ["low-code", "microsoft-power-platform", "retool", "enterprise-architecture", "master-data-management"]} + ] + }, + { + "id": "audio-software-engineer", + "title": "Audio software engineer", + "summary": "Writes the code behind plugins, music apps and game sound, where a late sample is an audible glitch.", + "stages": [ + {"title": "Foundations", "caption": "How sound becomes numbers and back.", "nodes": ["digital-audio", "sampling-theorem", "digital-signal-processing", "fourier-transform", "cpp"]}, + {"title": "Signal processing", "caption": "Filters, synthesis and compression.", "nodes": ["digital-filter", "fast-fourier-transform", "sound-synthesis", "audio-codecs", "psychoacoustics"]}, + {"title": "Tools and frameworks", "caption": "The DAWs and frameworks audio products are built with.", "nodes": ["juce", "audio-plugins", "digital-audio-workstation", "midi", "ffmpeg", "web-audio-api"]}, + {"title": "Going further", "caption": "Real-time constraints, games and space.", "nodes": ["audio-latency", "real-time-scheduling", "game-audio", "wwise", "spatial-audio", "music-information-retrieval"]} + ] + }, + { + "id": "automotive-aerospace-engineer", + "title": "Automotive and aerospace software engineer", + "summary": "Writes software for cars, aircraft and spacecraft, where it has to be proven safe before it runs.", + "stages": [ + {"title": "Foundations", "caption": "Embedded C on real-time hardware.", "nodes": ["c", "microcontroller", "rtos", "real-time-scheduling", "control-theory"]}, + {"title": "Vehicles", "caption": "How the software in a car is organized.", "nodes": ["electronic-control-unit", "can-bus", "autosar", "software-defined-vehicle", "over-the-air-updates"]}, + {"title": "Safety", "caption": "Standards and the evidence they demand.", "nodes": ["functional-safety", "iso-26262", "do-178c", "misra-c", "static-analysis", "formal-verification"]}, + {"title": "Going further", "caption": "Flight software, models and autonomy.", "nodes": ["avionics", "flight-software", "model-based-design", "hardware-in-the-loop", "adas", "sensor-fusion"]} + ] + }, + { + "id": "gis-developer", + "title": "GIS and mapping developer", + "summary": "Builds maps and location features: storing places, analysing them and drawing them fast on any screen.", + "stages": [ + {"title": "Foundations", "caption": "Coordinates, projections and the shape of geographic data.", "nodes": ["geographic-information-systems", "coordinate-reference-systems", "map-projections", "raster-vector-data", "gnss"]}, + {"title": "Data and analysis", "caption": "Store and analyse places at scale.", "nodes": ["postgis", "postgresql", "gdal", "geojson", "spatial-analysis", "geopandas"]}, + {"title": "Web maps", "caption": "Draw maps in the browser.", "nodes": ["web-mapping", "vector-tiles", "maplibre", "leaflet", "openlayers", "deck-gl"]}, + {"title": "Going further", "caption": "Routing, indexing and imagery.", "nodes": ["routing-navigation", "openstreetmap", "uber-h3", "geocoding", "remote-sensing", "qgis"]} + ] + }, + { + "id": "ecommerce-developer", + "title": "E-commerce and CMS developer", + "summary": "Builds the stores and content sites businesses run on, from themes to headless storefronts and payments.", + "stages": [ + {"title": "Foundations", "caption": "The web basics every store is built on.", "nodes": ["html", "css", "javascript", "php", "http"]}, + {"title": "Content management", "caption": "Publishing tools, classic and headless.", "nodes": ["content-management-system", "wordpress", "headless-cms", "strapi", "contentful"]}, + {"title": "Commerce", "caption": "Catalogues, carts and the platforms that run them.", "nodes": ["e-commerce", "shopify", "liquid-template", "woocommerce", "shopping-cart", "payment-systems", "stripe"]}, + {"title": "Going further", "caption": "Fast, findable storefronts.", "nodes": ["hydrogen", "nextjs", "jamstack", "seo", "core-web-vitals", "web-analytics"]} + ] + }, + { + "id": "compiler-engineer", + "title": "Compiler and language engineer", + "summary": "Builds the compilers, runtimes and tools that turn code into fast, correct programs.", + "stages": [ + {"title": "Foundations", "caption": "The theory of languages and the machine underneath.", "nodes": ["formal-languages", "automata-theory", "context-free-grammar", "type-system", "computer-architecture"]}, + {"title": "Front end", "caption": "From text to a checked syntax tree.", "nodes": ["lexical-analysis", "parsing", "parser-generator", "abstract-syntax-tree", "type-inference"]}, + {"title": "Back end", "caption": "From the tree to optimized machine code.", "nodes": ["compiler-theory", "intermediate-representation", "static-single-assignment", "compiler-optimization", "register-allocation", "llvm"]}, + {"title": "Runtimes", "caption": "Running code fast once it's compiled.", "nodes": ["bytecode", "just-in-time-compilation", "garbage-collection", "v8", "jvm", "webassembly"]} + ] + }, + { + "id": "penetration-tester", + "title": "Penetration tester", + "summary": "Breaks into systems with permission, then explains how to stop the real attackers doing the same.", + "stages": [ + {"title": "Foundations", "caption": "Networks, operating systems and the web, from an attacker's view.", "nodes": ["linux", "tcp-ip", "http", "networks", "bash", "python"]}, + {"title": "Reconnaissance", "caption": "Learn the target before touching it.", "nodes": ["osint", "reconnaissance", "network-scanning", "nmap", "vulnerability-assessment"]}, + {"title": "Exploitation", "caption": "Turn a weakness into access.", "nodes": ["web-application-security", "burp-suite", "sql-injection", "xss", "metasploit", "password-cracking", "privilege-escalation"]}, + {"title": "Going further", "caption": "Deeper exploits, red teams and responsible reporting.", "nodes": ["binary-exploitation", "reverse-engineering", "red-teaming", "mitre-attack", "capture-the-flag", "responsible-disclosure"]} + ] + }, + { + "id": "robotics-engineer", + "title": "Robotics engineer", + "summary": "Makes machines sense, decide and move: from motor control to perception and planning.", + "stages": [ + {"title": "Foundations", "caption": "The maths and code a robot runs on.", "nodes": ["linear-algebra", "cpp", "python", "control-theory", "state-estimation"]}, + {"title": "Moving", "caption": "Kinematics, dynamics and control loops.", "nodes": ["robot-kinematics", "inverse-kinematics", "robot-dynamics", "feedback-control", "pid-control"]}, + {"title": "Sensing and planning", "caption": "Know where you are and where to go.", "nodes": ["sensor-fusion", "robot-localization", "slam", "lidar", "motion-planning", "computer-vision"]}, + {"title": "Software and going further", "caption": "The robotics software stack and learning-based control.", "nodes": ["ros2", "gazebo", "physics-simulation", "sim-to-real-transfer", "reinforcement-learning", "robot-foundation-models"]} + ] + }, + { + "id": "quantum-software-engineer", + "title": "Quantum software engineer", + "summary": "Writes programs for quantum computers and figures out which problems they can actually help with.", + "stages": [ + {"title": "Foundations", "caption": "The linear algebra and physics behind a qubit.", "nodes": ["linear-algebra", "probability-theory", "python", "qubit", "quantum-entanglement"]}, + {"title": "Circuits", "caption": "Gates, circuits and the toolkits that build them.", "nodes": ["quantum-gate", "quantum-circuit", "qiskit", "cirq", "quantum-computing"]}, + {"title": "Algorithms", "caption": "Where quantum computers could beat classical ones.", "nodes": ["quantum-algorithms", "shors-algorithm", "grovers-algorithm", "variational-quantum-eigensolver", "quantum-simulation"]}, + {"title": "Going further", "caption": "Noise, error correction and the hardware.", "nodes": ["quantum-error-correction", "logical-qubits", "ibm-quantum-platform", "amazon-braket", "post-quantum-cryptography"]} + ] + }, + { + "id": "product-designer", + "title": "Product designer", + "summary": "Designs how a product works and feels, grounded in research with the people who use it.", + "stages": [ + {"title": "Foundations", "caption": "How people perceive, think and act.", "nodes": ["human-computer-interaction", "user-experience", "cognitive-load", "mental-model", "accessibility"]}, + {"title": "Research", "caption": "Find out what people need before designing.", "nodes": ["user-research", "personas", "usability-testing", "user-centered-design"]}, + {"title": "Design", "caption": "From flows to a polished, consistent interface.", "nodes": ["interaction-design", "figma", "ui-prototyping", "design-systems", "responsive-design"]}, + {"title": "Going further", "caption": "Measure the result and design responsibly.", "nodes": ["ab-testing", "product-analytics", "dark-patterns", "ux-writing", "voice-user-interface"]} + ] + }, + { + "id": "bioinformatician", + "title": "Bioinformatician", + "summary": "Uses code and statistics to read genomes, compare sequences and model the molecules of life.", + "stages": [ + {"title": "Foundations", "caption": "Programming, statistics and the algorithms biology leans on.", "nodes": ["python", "r-lang", "statistics", "dynamic-programming", "graph-algorithms"]}, + {"title": "Sequences", "caption": "Read DNA and compare it.", "nodes": ["next-generation-sequencing", "genome-assembly", "sequence-alignment", "blast", "genomics"]}, + {"title": "Analysis", "caption": "Turn reads into biology.", "nodes": ["gene-expression-analysis", "single-cell-analysis", "bioconductor", "jupyter", "high-performance-computing"]}, + {"title": "Going further", "caption": "Structure, simulation and medicine.", "nodes": ["protein-structure-prediction", "alphafold", "molecular-dynamics", "precision-medicine"]} + ] + }, + { + "id": "quant-developer", + "title": "Quantitative developer", + "summary": "Builds the pricing models and trading systems where mathematics meets microseconds.", + "stages": [ + {"title": "Foundations", "caption": "The maths of chance and the languages of finance.", "nodes": ["probability-theory", "statistics", "linear-algebra", "python", "cpp"]}, + {"title": "Modelling", "caption": "Price instruments and measure risk.", "nodes": ["quantitative-finance", "monte-carlo-methods", "risk-modeling", "time-series-analysis", "quantlib"]}, + {"title": "Trading systems", "caption": "Fast, correct systems that trade.", "nodes": ["algorithmic-trading", "high-frequency-trading", "order-matching-engine", "network-latency", "kdb-plus"]}, + {"title": "Going further", "caption": "Data and the payment rails underneath.", "nodes": ["pandas", "numpy", "kafka", "payment-systems", "fraud-detection"]} + ] + }, + { + "id": "hardware-design-engineer", + "title": "Hardware design engineer", + "summary": "Designs digital chips, from logic gates to a verified design ready for silicon or an FPGA.", + "stages": [ + {"title": "Foundations", "caption": "Logic, numbers and how transistors switch.", "nodes": ["boolean-algebra", "digital-logic", "combinational-logic", "sequential-logic", "transistor"]}, + {"title": "Describing hardware", "caption": "Write hardware as code.", "nodes": ["verilog", "vhdl", "register-transfer-level", "fpga", "finite-state-machine"]}, + {"title": "Verification and synthesis", "caption": "Prove it works, then turn it into gates.", "nodes": ["hardware-verification", "logic-synthesis", "static-timing-analysis", "electronic-design-automation"]}, + {"title": "Going further", "caption": "Processors, open silicon and chips for AI.", "nodes": ["risc-v", "computer-architecture", "system-on-chip", "asic", "chisel", "hardware-accelerator"]} + ] } ] diff --git a/docs/performance.md b/docs/performance.md index 7158f8e..bfd62e2 100644 --- a/docs/performance.md +++ b/docs/performance.md @@ -29,7 +29,8 @@ The overview thresholds in `e2e/overview-visual-proof.spec.ts` were re-baselined | Asset | Raw | Gzip | Budget (gzip) | |---|---:|---:|---:| -| Entry JS (`index-*.js`, mostly Sigma + graphology) | 565 KB | 167 KB | 168 KB | +| Entry JS (`index-*.js`, mostly Sigma + graphology) | 500 KB | 144 KB | 168 KB | +| Content chunk (`data-*.js`: guided paths, roles, famous apps; loads alongside the graph) | 176 KB | 49 KB | 55 KB | | CSS | 62 KB | 12 KB | 15 KB | | Inter Latin subset (woff2) | 31 KB | n/a | 59 KB | | Graph snapshot (`api/v1/graph.json`) | 2.6 MB | 252 KB | 273 KB | diff --git a/frontend/scripts/check-bundle-size.mjs b/frontend/scripts/check-bundle-size.mjs index d9d7f27..1f99af1 100644 --- a/frontend/scripts/check-bundle-size.mjs +++ b/frontend/scripts/check-bundle-size.mjs @@ -9,19 +9,23 @@ import { gzipSync } from "node:zlib"; // snapshot is checked when it has been rendered, otherwise the compiled dataset (which // is about the same size gzipped). ~113 KB at dataset 0.7.0 / 1,194 nodes; ~258 KB (snapshot) // and ~271 KB (data/graph.json) at 0.9.0 / 3,122 nodes. Past this, load a light index first. -// js: the entry chunk embeds data/seed/apps.json, which grew with the 0.8.0 app stacks. -const BUDGETS = { js: 172_000, css: 15_000, woff2: 60_000, graph: 280_000 }; +// js: the entry chunk. Guided paths, roles and famous apps moved out of it into their own +// lazily loaded chunk (src/content/data.ts), which loads alongside the graph. +// content: that chunk. ~24 KB with 145 paths / 11 roles / 22 apps, ~49 KB after the +// 3,000-node content pass (257 paths / 32 roles / 40 apps). +const BUDGETS = { js: 172_000, css: 15_000, woff2: 60_000, graph: 280_000, content: 56_000 }; const dir = join(process.cwd(), "dist", "assets"); let failed = false; -const totals = { js: 0, css: 0, woff2: 0 }; +const totals = { js: 0, css: 0, woff2: 0, content: 0 }; for (const file of readdirSync(dir)) { const ext = file.split(".").pop(); if (!(ext in totals)) continue; const buf = readFileSync(join(dir, file)); - // Only the entry chunk counts for JS; lazy chunks load on demand. - if (ext === "js" && !file.startsWith("index-")) continue; + // The entry chunk counts as js and the content chunk on its own; other lazy chunks load on demand. + const key = ext === "js" && file.startsWith("data-") ? "content" : ext; + if (key === "js" && !file.startsWith("index-")) continue; const size = ext === "woff2" ? statSync(join(dir, file)).size : gzipSync(buf).length; - totals[ext] += size; + totals[key] += size; } const graphFile = [join(process.cwd(), "public", "api", "v1", "graph.json"), join(process.cwd(), "..", "data", "graph.json")] .find((f) => existsSync(f)); diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 0669e16..0fb4f16 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -17,7 +17,8 @@ import type { StackNodeInput } from "./graph/stackLayout"; import { SCANNER_ENABLED, warmScanner } from "./api/scanner"; import { readExampleParam, writeExampleParam } from "./api/exampleScans"; import { Icon } from "./components/Icon"; -import { JOURNEYS } from "./graph/journeys"; +import { journeys } from "./graph/journeys"; +import { content, loadContent } from "./content/content"; import { readFilter, writeFilter, readCamera, writeCamera, readView, writeView } from "./graph/shareView"; import { OutlineView, supportsWebGL } from "./components/OutlineView"; import { ShortcutsHelp } from "./components/ShortcutsHelp"; @@ -37,8 +38,6 @@ import { writeDonePaths, writePathProgress, } from "./graph/pathsLibrary"; -const PATH_TITLES = JOURNEYS.map((j) => j.title); - // Repo X-Ray is a secondary mode, so keep it out of the main bundle. const RepoXrayPanel = lazy(() => import("./components/RepoXrayPanel").then((m) => ({ default: m.RepoXrayPanel }))); @@ -315,13 +314,15 @@ export default function App() { // Initial data load. useEffect(() => { const controller = new AbortController(); - Promise.all([api.graph(controller.signal), api.domains(controller.signal)]) - .then(([graph, domains]) => { + Promise.all([api.graph(controller.signal), api.domains(controller.signal), + // A missing content chunk should not stop the atlas from drawing; paths, roles and apps stay empty. + loadContent().catch(() => content())]) + .then(([graph, domains, { journeys: paths }]) => { setState({ status: "ready", graph, domains }); - const shared = readView(window.location.search, PATH_TITLES); + const shared = readView(window.location.search, paths.map((j) => j.title)); const ids = new Set(graph.nodes.map((n) => n.id)); if (shared.path !== null) { - const steps = JOURNEYS[shared.path].steps; + const steps = paths[shared.path].steps; const step = Math.min(shared.step, steps.length - 1); setJourneyIndex(shared.path); setJourneyStep(step); @@ -414,7 +415,7 @@ export default function App() { path: journeyIndex, step: journeyStep, compare: compareMode && compareFirst ? [compareFirst, compareSecond] : null, - }, PATH_TITLES); + }, journeys().map((j) => j.title)); window.history.replaceState(null, "", `${window.location.pathname}${query ? `?${query}` : ""}`); }, [state.status, journeyIndex, journeyStep, compareMode, compareFirst, compareSecond]); @@ -553,7 +554,7 @@ export default function App() { }, [resetScan, openStack]); const focusStack = useCallback(() => setFitNonce((n) => n + 1), []); - const journey = journeyIndex === null ? null : JOURNEYS[journeyIndex]; + const journey = journeyIndex === null ? null : journeys()[journeyIndex]; const journeyNodeIds = useMemo(() => journey?.steps.map((step) => step.id) ?? [], [journey]); const journeyEdgeIds = useMemo(() => { if (!journey || !graphData) return []; @@ -562,11 +563,11 @@ export default function App() { (edge.target === journey.steps[i].id && edge.source === step.id))?.id).filter((id): id is string => !!id); }, [journey, graphData]); // Every guided path with its field, step labels and search text, for the library. - const pathEntries = useMemo(() => buildPathEntries(JOURNEYS, nodesById, domainsById), [nodesById, domainsById]); + const pathEntries = useMemo(() => buildPathEntries(journeys(), nodesById, domainsById), [nodesById, domainsById]); // Remember how far each guided path got, and finished paths (reaching the last step counts). useEffect(() => { if (journeyIndex === null) return; - const j = JOURNEYS[journeyIndex]; + const j = journeys()[journeyIndex]; const slug = pathEntries[journeyIndex]?.slug; if (slug && journeyStep > (pathProgress[slug] ?? 0)) { const next = { ...pathProgress, [slug]: journeyStep }; @@ -586,10 +587,10 @@ export default function App() { setPathsOpen(false); setJourneyIndex(index); setJourneyStep(step); - navigate(JOURNEYS[index].steps[step].id); + navigate(journeys()[index].steps[step].id); }, [navigate, openStack]); - const nextPath = useMemo(() => journeyIndex === null || journeyStep !== JOURNEYS[journeyIndex].steps.length - 1 - ? null : suggestNextPath(pathEntries, JOURNEYS, journeyIndex, donePaths), [pathEntries, journeyIndex, journeyStep, donePaths]); + const nextPath = useMemo(() => journeyIndex === null || journeyStep !== journeys()[journeyIndex].steps.length - 1 + ? null : suggestNextPath(pathEntries, journeys(), journeyIndex, donePaths), [pathEntries, journeyIndex, journeyStep, donePaths]); // A returning visitor with an unfinished path is offered to pick it up from the hero. const resumePath = useMemo(() => { const started = pathEntries.filter((e) => !donePaths.has(e.title) && (pathProgress[e.slug] ?? 0) > 0); diff --git a/frontend/src/analytics.test.ts b/frontend/src/analytics.test.ts index 73fd118..36ce560 100644 --- a/frontend/src/analytics.test.ts +++ b/frontend/src/analytics.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it, vi } from "vitest"; -import { JOURNEYS } from "./graph/journeys"; +import { JOURNEYS } from "./content/data"; import { pathSlug } from "./graph/shareView"; import { clickEvent, createClient, parseConfig, readUrl, trackingAllowed, urlEvents } from "./analytics"; diff --git a/frontend/src/analytics.ts b/frontend/src/analytics.ts index fa1fe9c..82a7b4a 100644 --- a/frontend/src/analytics.ts +++ b/frontend/src/analytics.ts @@ -16,7 +16,7 @@ // - delegated clicks and form submits on a few well-known controls, // - the search box (results vs. no results, after the search settles). // Call track() directly for anything that has no URL or DOM signal. -import { JOURNEYS } from "./graph/journeys"; +import { journeys } from "./graph/journeys"; import { pathSlug } from "./graph/shareView"; export type Props = Record; @@ -124,7 +124,12 @@ export function readUrl(pathname: string, search: string): UrlState { }; } -const PATH_LENGTH = new Map(JOURNEYS.map((j) => [pathSlug(j.title), j.steps.length])); +// Built on first use: the guided paths load after analytics is installed. +let pathLengths: Map | null = null; +function pathLength(slug: string): number { + if (!pathLengths || pathLengths.size === 0) pathLengths = new Map(journeys().map((j) => [pathSlug(j.title), j.steps.length])); + return pathLengths.get(slug) ?? 0; +} /** Events implied by moving from one URL state to the next. */ export function urlEvents(prev: UrlState | null, next: UrlState): [string, Props?][] { @@ -134,7 +139,7 @@ export function urlEvents(prev: UrlState | null, next: UrlState): [string, Props } if (next.about && !prev?.about) out.push(["about_viewed"]); if (next.path && next.path !== prev?.path) out.push(["path_started", { path: next.path }]); - const last = next.path ? (PATH_LENGTH.get(next.path) ?? 0) - 1 : -1; + const last = next.path ? pathLength(next.path) - 1 : -1; if (next.path && last > 0 && next.step === last && !(prev?.path === next.path && prev.step === last)) { out.push(["path_finished", { path: next.path }]); } diff --git a/frontend/src/components/AppsPanel.tsx b/frontend/src/components/AppsPanel.tsx index 83cb1c7..8312022 100644 --- a/frontend/src/components/AppsPanel.tsx +++ b/frontend/src/components/AppsPanel.tsx @@ -1,6 +1,6 @@ import { useEffect, useMemo, useState } from "react"; import type { GraphResponse } from "../api/types"; -import { APPS, APPS_BY_ID, filterApps, resolveApp } from "../graph/apps"; +import { appById, apps, filterApps, resolveApp } from "../graph/apps"; import { safeHttpUrl } from "../util/safeUrl"; interface Props { @@ -19,9 +19,9 @@ interface Props { export function AppsPanel({ graph, appId, onAppChange, onPick, onHighlight, onClose }: Props) { const [query, setQuery] = useState(""); const [copied, setCopied] = useState(false); - const app = appId ? APPS_BY_ID.get(appId) ?? null : null; + const app = appId ? appById(appId) : null; const resolved = useMemo(() => app ? resolveApp(app, graph) : null, [app, graph]); - const shown = useMemo(() => filterApps(APPS, query), [query]); + const shown = useMemo(() => filterApps(apps(), query), [query]); useEffect(() => { if (!resolved) { onHighlight([], []); return; } @@ -54,7 +54,7 @@ export function AppsPanel({ graph, appId, onAppChange, onPick, onHighlight, onCl {app && resolved && <>

{app.summary}

diff --git a/frontend/src/components/RolePanel.tsx b/frontend/src/components/RolePanel.tsx index edbe57d..39b759b 100644 --- a/frontend/src/components/RolePanel.tsx +++ b/frontend/src/components/RolePanel.tsx @@ -1,7 +1,7 @@ import { useEffect, useMemo, useState } from "react"; import type { GraphResponse } from "../api/types"; import { useLearningMap, type LearningStatus } from "../graph/learning"; -import { ROLES, ROLES_BY_ID, cycleStatus, nextUp, resolveRole, roleProgress } from "../graph/roles"; +import { roleById, roles, cycleStatus, nextUp, resolveRole, roleProgress } from "../graph/roles"; const STATUS_LABEL: Record = { known: "Known", learning: "Learning", goal: "Goal" }; @@ -21,7 +21,7 @@ interface Props { export function RolePanel({ graph, roleId, onRoleChange, onPick, onHighlight, onClose }: Props) { const [map, setStatus] = useLearningMap(); const [copied, setCopied] = useState(false); - const role = roleId ? ROLES_BY_ID.get(roleId) ?? null : null; + const role = roleId ? roleById(roleId) : null; const resolved = useMemo(() => role ? resolveRole(role, graph) : null, [role, graph]); const labels = useMemo(() => new Map(graph.nodes.map((n) => [n.id, n.label])), [graph]); @@ -44,7 +44,7 @@ export function RolePanel({ graph, roleId, onRoleChange, onPick, onHighlight, on

{role ? "Role path" : "What does a role need?"}

{!role && <>

Pick a role to see what it needs, lit up on the atlas and ordered into a path. Mark what you know as you go; progress is saved only in this browser.

-
    {ROLES.map((r) => { +
      {roles().map((r) => { const ids = resolveRole(r, graph).nodeIds; const p = roleProgress(ids, map); return