Skip to content

Systems & architecture

#ai

12 posts tagged #ai on DiCodeWeb, from fundamentals to production, newest first.

12 postsUpdated Oct 24, 2026

Posts

Model Context Protocol in Practice: Building a Production MCP Server in TypeScript

MCP isn't magic, it's a well-designed JSON-RPC protocol. This post explains hosts, clients, servers, primitives and transports as of the 2026-07-28 spec, then builds a read-only TypeScript server over order data: tool design, pagination, testing with the Inspector, OAuth for remote servers, and the security holes you need to close.

Tooling & workflow19 min

On-Device AI in the Browser: WebGPU, Web Workers and Chrome's Built-in AI

When running a model on the user's machine makes sense and when it doesn't, how far Chrome's built-in AI has shipped, Transformers.js, ONNX Runtime Web and WebLLM on WebGPU/WASM, running inference in a Web Worker, caching model weights, and UX for the first download.

Frontend & UI9 min

LLM Cost and Latency in Production: Token Accounting, Caching, Routing and Fallbacks

What happens to an LLM feature once real traffic arrives: where latency actually comes from, a per-feature token and cost meter with tenant budgets, structuring prompts for provider prompt caching, exact and semantic caching, model routing, trimming context, batch APIs, parallel calls, retries with fallback and circuit breakers, and the dashboard I watch.

Systems & architecture8 min

An AI-Assisted Frontend Workflow That Holds Up in Production

Where coding agents genuinely help a frontend team and where they quietly fail, how to give them context with AGENTS.md and small tasks, plan-then-implement, verification loops, reviewing AI-generated PRs, supply-chain risks like slopsquatting, and which skills matter more now for mid and senior engineers.

Tooling & workflow8 min

Evaluating LLM Features: Knowing They Work and Keeping Them Working

Building a golden dataset from real usage, deterministic checks first, LLM-as-judge with rubrics and its biases, pairwise comparison, running evals in CI on prompt or model changes, tracking cost and latency alongside quality, online signals, tracing, and how to avoid overfitting your eval set.

Systems & architecture8 min

Multimodal Input for LLM Features: Images, PDFs and Audio from the Browser

The frontend side of sending files to an LLM: file input, drag-and-drop and paste, sniffing types by magic bytes, downscaling images and stripping EXIF in the browser, HEIC from iPhones, PDFs, recording audio with MediaRecorder, presigned uploads with progress and cancellation, object URL cleanup, accessibility and what the server must still check.

Frontend & UI8 min

Structured Outputs for LLM Features: When You Need Data, Not Prose

How I build product features on LLMs that return typed JSON: structured output modes in the major APIs, defining schemas with Zod, handling refusals and truncated output, retry with repair, versioning prompts in code, realistic expectations about temperature, and designing schemas models handle well.

Systems & architecture8 min
All tags