Javascript AI Cookbook: Building AI powered product features
summary
Shows concrete JavaScript recipes: npm install openai plus Postman examples calling GPT-4-mini to generate text and a working Express route that redacts PII by replacing sensitive values with "redacted". Demonstrates scraping HTML, parsing with Cheerio, sending extracted text to the model to produce a structured JSON company record. Covers self‑hosting with olama exposed via an Express endpoint, explains OpenAI function/tool calling with chained calls to fetch missing data, and notes model size, latency, privacy tradeoffs.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:29AI in JavaScript apps
- 2:53Basic LLM API call
- 5:20Redacting sensitive data
- 7:24Parsing unstructured data
- 10:34Frontier models overview
- 11:57Self-hosting models
- 13:20Function calling benefits
- 18:01Chaining function calls
- 18:40AI use cases poll
related talks
27mBuilding AI applications: Successes and Lessons
43mAI w/o Spaghetti: Clean Architecture in the Age of AI
25mLets Build A Node.js ChatGPT-Like Bot With AI APIs
49mBuilding AI Enabled Web Apps
24mEmpowering Vue Apps with AI
40m4 pillars for building a modern AI application in JavaScript
21mUnlocking Client-Side AI in Your Web App
45mBringing the Power of AI to Your Application
