Sefism is free for learners. We are here to help you grow, one step at a time.Join for free
Sefism.

Cheat sheet · Specialise

GenAI app architecture cheat sheet (TypeScript + Node)

Opens with credits

A quick-revision book on how the pieces of a real GenAI app connect, with a Node backend: the request path, what each layer owns, where RAG, tools, memory, caching and guards sit, how to evaluate and trace it, and a project layout you can copy. It is about the shape of the system, not which model to buy.

Curated by Tauseef Fayyaz10 chapters58 concepts64 glossary terms

Chapters

10 chapters · 58 concepts

  1. 1The request flowWhat happens between a user pressing Send and the answer appearing, and which part of the system owns each step.5 concepts
  2. 2Frontend and backend layersWhat the browser owns (chat, sign-in, uploads, streaming, history) and what the server owns before any model is called: identity, permissions, validation, business rules, limits and logs.10 concepts
  3. The RAG pipelineWhere retrieval sits in the system. The RAG cheat sheet covers each technique in depth; this chapter is about the moving parts and who runs them.5 conceptsOpens with credits
  4. Tools and the agent loopHow the orchestrator lets a model act: plan, choose a tool, run it, check the result and decide again, inside limits your code sets.6 conceptsOpens with credits
  5. Memory, caching, rewriting and routingThe parts that make a chat feel continuous, cheap and fast: what the app remembers, what it reuses and which model handles which request.6 conceptsOpens with credits
  6. Three guard layersChecks around the model in three places: on what the user sends, on the content the model reads, and on what the model returns.5 conceptsOpens with credits
  7. The evaluation folderEvals live in the repo next to the prompts they test. The AI evals cheat sheet covers metrics and tools; this is how they fit the project.4 conceptsOpens with credits
  8. ObservabilitySeeing what happened inside one request, what users thought of it and what it cost.4 conceptsOpens with credits
  9. A reference project layoutOne way to lay out the repo so each layer has a home. Rename freely; the point is that prompts, evals and agent instructions are files in Git.6 conceptsOpens with credits
  10. Production checklistWhat must be true before real users arrive: packaging, delivery, secrets, API security, monitoring and cost limits.7 conceptsOpens with credits
  11. 11Glossary, A to ZEvery concept in the sheet and the smaller terms it uses, in one list.64 terms

About this sheet

How a production GenAI app fits together: request flow, layers, RAG, agent loop, memory, caching, guards, evals, tracing, folder layout and launch checklist.

Picked from the other libraries by shared topics.

Work with me

Stuck on something specific?

Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.

  • 1:1 Mentorship
  • Fresh Graduate Mentorship
  • Career Guidance

Brand deals, promos and partnerships: tauseeffayyaz@gmail.com