Home/Categories/Web 开发

Web 开发

Next.js、React、TypeScript、前端工程化

Collection

This collection features articles and community discussions in the Web 开发 space, focusing on real-world engineering scenarios, tool selection, practical paths, and risk boundaries.

The page is continuously updated and serves as a learning roadmap, technology selection reference, and technical review entry point.

@admin·6 min read·Web Development

Source Code Walkthrough: Implementing LLM Streaming on the Front End

"Streaming can make or break an AI app's perceived UX: one character per second feels entirely different from waiting ten seconds for a complete response. This article explains front-end streaming from protocol to rendering: SSE/ReadableStream parsing, smooth React updates, AI SDK useChat, and interruption/error handling."

#Next.js #React♥ 410 comments
@admin·5 min read·Web Development

Internationalization and Multilingual Support for AI Applications

"AI apps are natively multilingual (models know dozens of languages), but 'answering in multiple languages' and 'product internationalization' are different. This article clarifies AI app i18n: UI translation, model output language control, regional compliance, cultural adaptation, multilingual RAG, and a next-intl architecture."

#AI #Next.js♥ 590 comments
@admin·10 min read·Web Development

Accessibility (a11y) for AI Products

AI accessibility has two layers: the product must be accessible, and AI can empower accessibility. This article covers AI product a11y essentials—semantic HTML/keyboard/ARIA/dynamic content, a11y control for AI-generated UI, AI empowerment (image descriptions/speech/text simplification), and an automated + manual a11y testing workflow.

#AI #React♥ 620 comments
@admin·11 min read·Web Development

Implementing a Streaming UI for RAG Applications

RAG is not a "single response": retrieval and generation should both stream so users can see progress while they wait. This article covers streaming retrieval, typewriter answer generation, citation rendering, smooth incremental React rendering, and retrieval-to-generation state transitions.

#RAG #Next.js♥ 770 comments
@admin·11 min read·Web Development

Local-first AI Applications: Data Ownership + Intelligence

Cloud AI is admired for its capabilities but feared for its privacy risks. Local-first principles and on-device AI offer a new approach: data stays on-device, small local models handle routine work, and cloud enhancement is optional. It covers the principles, AI's role, architecture (local CRDT storage, on-device models, and cloud fallback), and use cases.

#AI #Open Source♥ 790 comments
@admin·14 min read·Web Development

LLM Streaming Protocols in Depth: SSE, Data Streams, and Parsing

Streaming output defines how responsive an AI app feels, but many developers do not understand SSE, vendor data-stream formats, streaming tool calls, or cancellation. This article moves from HTTP SSE through the AI SDK data stream protocol to streaming tool calling and interruptible streams, explaining frontend parsing, backend emission, and common pitfalls.

#AI #Next.js♥ 970 comments