Lessons Hub

Browse, search, and query engineering lessons harvested from multiple GitHub repositories. Features full-text search, AI-powered chat with RAG, corpus gap detection, and multi-cloud deployment.

Learn how it works →

At a Glance

Recent Lessons

Cloudflare D1

D1 is serverless SQLite hosted by Cloudflare. It gives you a real SQL database accessible only from your Worker — no connection strings, no connection pooling, no database server to manage. For small apps, it eliminates the entire database operations layer.

QR Bracelet 2026-06-06 implementation

Cloudflare Workers

Cloudflare Workers are serverless JavaScript functions that run at the edge — no server to manage, no container to configure. They wake up on each request, execute, and sleep. For small to medium web apps, they replace traditional backend servers entirely.

QR Bracelet 2026-06-06 deployment

Dev-Prod Schema Parity

When you add a database column via direct SQL instead of a migration file, your dev environment won't have it. The code works in production (where you ran the SQL) but crashes in dev (where the column doesn't exist). Always use migration files, even for "quick" schema changes.

QR Bracelet 2026-06-06 architecture

Google OAuth2

Google OAuth2 lets users sign in with their Google account. Your server redirects to Google, Google authenticates the user, and redirects back with a code. You exchange the code for the user's email. The entire flow is four HTTP calls and requires no client-side SDK.

QR Bracelet 2026-06-06 implementation

Phone Numbers as Data, Not Identity

When a phone number appears in your product, decide early whether it's an identity (the account itself) or data (a field on a record). Conflating the two creates the wrong data model, the wrong auth flow, and forces users into a single-phone-per-account constraint that doesn't match reality.

QR Bracelet 2026-06-06 implementation

Browse