Notes by Sanjeev Kujur
How it
works, written down.
How things work under the hood: sign-in, payments and the other building blocks, written down as they get built.
All notes
Pick a note.
- Being written
Authentication: our own sign-in
How sign-in works (sessions, cookies, Google and GitHub login) and how this site moves from a hosted service to its own system on Better Auth and its own database.
- Sessions
- Google & GitHub
- Cookies
- Being written
Siya: a chat that answers from my own guides
How the chat on this site finds the right pages of my guides, hands them to an AI through the Vercel AI Gateway, and falls back to plain search when the AI fails. Explained in plain words, with a video and things to click.
- RAG
- AI Gateway
- System design
- Planned
Payments: the building blocks
What sits between a Buy button and money arriving: checkout, webhooks, idempotency and refunds.
- Checkout
- Webhooks
- Refunds