A framework hides the parts of a web app that decide whether it is safe, fast and reliable: how HTML is built, how a login is remembered, how a form is handled, how an error is shown. The developers who use frameworks well are the ones who know what the framework is doing for them, because that is where the surprises, and the security holes, are. This course builds those parts by hand, in small, graded steps, using only the web’s own standard APIs (Request, Response, URL, FormData, Headers and Web Crypto), so every idea carries to Astro, SvelteKit, Next.js, Hono, Express, Deno or any other.
This is the seventh season of Sabi Logistics’ story, and it follows TypeScript in Practice. The tracking API is typed; now it has to meet customers. Each case hands you a piece of the app with your own names, fields and rules, and the real TypeScript compiler in strict mode, plus real requests, check your work: the types must accept what is valid and refuse what is not, and your code must behave exactly like the reference on examples you can see and on batches you cannot. The first run downloads the compiler (several megabytes, then your browser remembers it).
What you will learn
- The safe page: HTML escaping, and the difference between text a user typed and markup you wrote.
- The reducer: state in one pure function, immutability, and the same object when nothing changed.
- The form: urlencoded bodies, server-side validation, keeping what the user typed and post-redirect-get.
- The session: cookie parsing, HMAC signatures, constant-time comparison and the cookie flags.
- The login: salted PBKDF2 hashes, identical failures, lockouts and what must never be stored.
- The cache: ETags, 304, cache-control, and keeping private data out of shared caches.
- The config: parsing the environment once, failing fast, typed readonly settings and redacted logs.
- The safety net: middleware, request ids, deliberate versus surprise errors and the order of composition.
- The launch: a complete app with login, authentication, authorisation and validation, in the right order.
A graded capstone and an exam finish the course. Free guides show how to set up TypeScript on your own computer and how to put a project online on free hosting.