Week 2 · Season 1 · Spark
A letter across the planet
You can explain how a message crosses the internet, what happens in a web request, read JSON from an API, keep keys secret, and make your first call to a free AI model.
This week
- Packets, addresses, routers and DNS
- Clients, servers, HTTP and status codes
- APIs, JSON, keys and secrets
- What a language model is, in plain words
- Tokens, limits, cost and free tiers
How you learn
Trace one request by hand: from your keyboard, through DNS and the network, to a server and back. Then price one AI call before you make it.
What you build
FRIDAY talks: connect it to a free model so it chats in your terminal and remembers the conversation while it runs.
Stretch: Show how many tokens each message used and what it would cost on a paid plan.
What you ship
- A chat command that remembers earlier turns
- Your API key read from the environment, never in the code
Lessons
- A letter across the planet
After this deck you can explain how a message crosses the internet: chopped into packets with an address on each, passed hop by hop by routers, with DNS turning names into number addresses.
- Ask and answer
After this deck you can say what a client and a server are, read an HTTP request and response, and tell from a status code whether the problem is your ask (4xx) or the server (5xx).
- Menus for machines
After this deck you can say what an API is, read a JSON reply and pick out fields with Python, and keep an API key out of your code in an environment variable.
- Autocomplete that read the library
After this deck you can explain a language model in plain words (an autocomplete that learned patterns from a huge library of text), and build the request for your first call to a free model.
- Every word has a price
After this deck you can explain tokens, estimate what a call would cost, plan a chat inside a free tier's limits, and say why the same question can get different answers.
- Go deeper: how a request really travels
After this deck you can explain when the internet uses careful TCP or quick UDP, read a traceroute, and say what HTTPS and a certificate protect you from.
Labs
Python in the browser, next to the lessons.
Weekend build
- FRIDAY, part 1: born and talking
Your own assistant, from a to-do list in your terminal to a real conversation with a free AI model.
Skills you prove
- Networks & HTTP
- Explain how a request crosses the internet and read an HTTP request and response
- Token math
- Price any call in input, output and cached tokens, and report cost per task
Free links for this week
Hand-picked official docs, papers and talks.
- Claude Code overview · docs
- Claude Code memory (CLAUDE.md) · docs
- Claude Code skills · docs
- Claude Code hooks · docs
- API errors and overloads · docs
- uv (Python project manager) · docs
- FastAPI · docs
- Caddy · docs