A free book, read online
AI Engineering for Web Developers
From your first API call to building autonomous agents
From aware but not building to shipping a real AI agent. A hands-on path through LLMs, prompting, tools, agents, RAG, evals and production, written for working web developers.
Who it is for
Working web developers who can read JavaScript or TypeScript and have never called a model API, or have and want to know what to build next. No machine learning background.
What you build along the way
By chapter 4 a model that calls your tools. By chapter 9 an agent with memory that hands work to other agents. By chapter 14 the same agent running in production with evals, guardrails, sandboxing and a cost you can read.
How to cite it
Piros, T. (2026). AI Engineering for Web Developers. tpiros.dev/ai-engineering-for-web-developers. The book is revised in place; every chapter is also served as markdown at its URL plus .md, and the markdown is the version of record for quoting.