[KongchangAI]
· 3 min read· 1,519 words

AI Full-Stack in Practice: Building a Commercial Project with Multi-Agent + React + Elysia

AI Full-Stack in Practice: Building a Commercial Project with Multi-Agent + React + Elysia

Bilibili AI full-stack course breakdown: mastering AI with architectural thinking to build commercial-grade full-stack projects.

The article centers on Bilibili creator Chunjiangyue's "AI Full-Stack in Practice" course, arguing that in an era where AI can write code, programmers' core competitiveness shifts from code porting to architectural thinking and business planning. The course uses a commercial-grade full-stack project deeply integrated with AI: frontend React, backend Bun and Elysia for end-to-end type safety, and PostgreSQL with pgvector and PostGIS for vector retrieval and geospatial computation. The AI layer focuses on LangGraph multi-step reasoning, MCP tool integration, AG-UI frontend interaction, and AI-specific component libraries like Copilot Kit, with on-device inference via Transformers.js. Five stages cover foundational frameworks, business and agents, user side, admin side, and automated testing and production monitoring, forming an industrial-grade loop.

When AI can flip through tens of thousands of pages of internal documents in seconds and automatically generate product images and taglines, the role of the programmer is being redefined. Bilibili creator Chunjiangyue's "AI Full-Stack in Practice" course doesn't stop at chat conversations—it guides students to build from scratch a commercial-grade full-stack project deeply integrated with AI. This article breaks down the course's technology choices, AI architecture, and practical roadmap, and explores a more fundamental question: in an era where AI can write code, what is the programmer's core competitiveness?

Why "vibe programming" won't save you

The course opens with a sharp point: the stronger the tool, the higher the demands on its user. Many beginners rely entirely on AI-generated code without understanding it—when the webpage won't open or the database freezes, they can't tell which of AI's claims are true and which are made up, eventually falling into a vicious cycle of "letting AI blindly change things, with bugs multiplying."

Chunjiangyue's solution is architectural thinking: an excellent programmer is more like a logic planner, whose main job is to set rules, divide boundaries, and audit business processes. If you can't clearly articulate the business logic yourself, the instructions you give AI can only be vague prompts like "help me write some login pages," and the resulting code will most likely be garbage. Fundamental skills and architectural design ability are the prerequisite for writing high-quality prompts.

Well-organized architectural capability

Technology stack breakdown: frontend, backend, and data layer

The final project delivered by the course covers the user homepage, agent chat window, friend direct messages, user management, plus backend user management, operational data analysis, and permission management. Almost every module is deeply embedded with AI capabilities—in the admin panel you can directly open an AI popup, select different agents to analyze data or even operate the system; the user-side homepage carries heavily AI-driven modules like smart search and smart recommendations.

For technology choices, the frontend is anchored by React, paired with a full suite of routing, data fetching, and state management to support complex interactive interfaces. The backend uses the Bun + Elysia combination: Bun as a blazing-fast runtime breaks traditional performance bottlenecks, while Elysia is lightweight and efficient, working with the frontend to achieve end-to-end type safety. PostgreSQL is chosen for data storage, meeting business needs while using plugins to also cover AI vector retrieval and geospatial computation.

It can satisfy all business requirements

Bun is a JavaScript runtime and toolchain written in Zig, combining runtime, package manager, bundler, and test runner in one, with startup speed and HTTP throughput typically superior to Node.js. Elysia is a web framework designed specifically for Bun, whose biggest selling point is end-to-end type safety based on TypeScript type inference: the input and return types defined in routes can be directly consumed by the frontend, reducing runtime errors caused by frontend-backend interface mismatches. The combination is suited for full-stack projects that demand both performance and developer experience.

pgvector and PostGIS are PostgreSQL extension plugins. The former adds vector columns and approximate nearest neighbor indexes (such as HNSW, IVFFlat) to the database, a common solution for building semantic retrieval and RAG applications; the latter provides geospatial data types and spatial query functions. Keeping both in the same database as business data avoids introducing an additional vector database, simplifying architecture and operations.

AI architecture core: LangGraph, MCP, and AG-UI

The most valuable part of a full-stack system is the AI application layer. The course focuses on several frameworks: LangChain and LangGraph solve multi-step continuous reasoning problems—traditional AI can only do question-and-answer, while LangGraph uses workflow graphs to frame complex business processes, giving AI memory and multi-step reasoning capabilities; the MCP protocol is likened to "the universal plug of the AI world," letting AI easily connect to external tools and micro-applications, breaking down data silos. The course also covers protocols like WebMCP, ACP, and A2A.

The frontend introduces AG-UI technology. When developing complex AI applications, ordinary UI component libraries require enormous effort, so the course uses component libraries custom-built for AI such as Copilot Kit, Assistant UI, and AI Elements—all popular on GitHub and maintained by commercial companies.

On-device AI is another highlight: using Transformers.js, small-parameter models are deployed on the user's computer and run directly via streaming inference, meeting the special needs of the admin panel.

On-device AI-related technologies

LangGraph is an agent orchestration framework released by the LangChain team. Its core idea is to model AI applications as "state graphs": nodes are a model call or tool execution, edges define transition conditions, and cyclic structures are supported, allowing the model to repeatedly think, call tools, and accumulate memory across multiple rounds. Compared to chain-style calls that can only move forward linearly, LangGraph is better suited for complex business logic requiring branch decisions, failure retries, and human intervention.

MCP (Model Context Protocol) is a standardized protocol open-sourced by Anthropic in 2024, using a unified client-server interface to wrap external capabilities such as databases, file systems, and internal APIs into "tools" and "resources" that AI can directly call, eliminating the need to write adapter code for each model separately. The article's description of it as "the universal plug of the AI world" emphasizes its role in decoupling models from the tool ecosystem.

AG-UI (Agent User Interaction Protocol) is a set of interaction protocols for agent-frontend interfaces, used to standardize the transmission of events such as streaming output, tool call status, and human confirmation between frontend and backend, enabling the chat interface to present intermediate states like "thinking" and "calling tools" in real time. Combined with component libraries designed specifically for AI interaction such as Copilot Kit, Assistant UI, and AI Elements, developers can save a great deal of manual work on streaming rendering and state synchronization.

Transformers.js is a JavaScript inference library released by Hugging Face, based on ONNX Runtime Web, which can directly load and run pre-trained small models (such as text classification, vector embedding, speech recognition) in the browser or Node environment, with data never leaving the user's device. The article's "on-device AI" leverages it for local inference on the user's computer, balancing privacy and responsiveness.

Five-stage roadmap and commercial-grade loop

The course is split into five stages following the rhythm of a real company project: the first stage builds foundations, thoroughly mastering core frameworks like React, Elysia, and PostgreSQL; the second stage writes business logic plus agents, refactoring registration and login with AI and adding risk control governance; the third and fourth stages focus on the user side and admin side respectively, embedding smart search, smart recommendations, and AI data analysis into the project; the fifth stage covers automated testing, deployment, and production monitoring.

The operations layer also pursues industrial-grade standards: GitLab hosts the code, and a single commit triggers CI/CD to automatically build Docker images and distribute deployments, Sentry is integrated to capture system errors, and dedicated tools monitor the agent call chain—where the large model gets stuck at which step, and how many tokens and how much cost each conversation consumes, all visible at a glance in the backend.

So follow this route

What you'll gain after completing the course

Several core modules the course highlights are worth noting: true AI smart search, combining real-time information with the company's private database for retrieval; multimodal AI agents that support human-machine interaction and can autonomously break down complex tasks; intelligent dashboard analysis of massive data, comprehensively using PostgreSQL complex queries, pgvector vector retrieval, PostGIS geospatial queries, and MCP and text-to-SQL technology; and system risk control covering the entire process of posting, commenting, and chatting.

Chunjiangyue's closing line is worth pondering for every developer: code is written for machines to run, but architecture is written for people to read. If your daily work is just copying and pasting code, being replaced by AI is only a matter of time. The real value lies in being able to calmly face every error in the system and clearly define every data response—evolving from a code porter into an architect who plans and builds in the AI era.

One-line Summary

Breakdown of the Bilibili AI full-stack practical course: mastering AI with architectural thinking to build commercial-grade full-stack projects.

Paragraph Summary

The article centers on Bilibili creator Chunjiangyue's "AI Full-Stack in Practice" course, arguing that in an era where AI can write code, the programmer's core competitiveness shifts from code porting to architectural thinking and business planning ability. The course uses a commercial-grade full-stack project deeply integrated with AI as its vehicle: the frontend uses React, the backend uses Bun and Elysia for end-to-end type safety, and the data layer uses PostgreSQL with pgvector and PostGIS to cover both vector retrieval and geospatial computation. The AI application layer focuses on LangGraph multi-step reasoning, the MCP tool integration protocol, the AG-UI frontend interaction protocol, and AI-specific component libraries like Copilot Kit, plus on-device local inference via Transformers.js. The course is divided into five stages following a real project rhythm, covering foundational frameworks, business and agents, the user side, the admin side, and automated testing and production monitoring, ultimately forming an industrial-grade loop.

#AI full-stack#LangGraph#MCP protocol#React#Elysia#PostgreSQL
Share:

Related articles