YH-UI Ships a Vue 3.5+ Component Library with Built-In AI Chat, Workflow Editor, and Request Layer
Hello everyone, I'm Yuying!!!
Follow the public account 【Yuying AI Lab】 to keep sharing more front-end and AI-assisted front-end coding knowledge~
I write notes, life, and front-end experience from time to time.
In the current environment, pure front-end developers can find breakthroughs through technical deepening, horizontal expansion, entering emerging fields (MCP TOOLS AI application product direction, etc.), and product-oriented thinking. (No matter how long you've been coding, no matter the depth and breadth of your skills, you must have the ability to earn money independently!! Bros, because one day you won't be in the workplace, and one day you will face choices and the ruthlessness of the workplace)
Copyright belongs to the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
The most competitive era for front-end might really be ending. AI Agent engineers will be the protagonists of the future. The era where humans only make decisions and think about commercialization models, while AI executes, is in full swing;
Sorry everyone, this past year I've been busy making a living, working part-time, taking care of kids, and running an e-commerce store with many people, so technical articles have really been delayed. It's been almost a year since I updated, but technical articles will still be updated irregularly to share some core technical insights, learning the front-end journey with everyone, and future AI vision and AI business thinking.
The future is here. In the AI era, the Agent engineer era, there is no longer a strict distinction between front-end and back-end. With good models and sufficient tokens, you are a senior programmer (but not necessarily a senior AI engineer)~
A Component Library in the AI Era Must Have AI Components + AI-Understandable Skills
In today's AI explosion, if your project is still piecing together interfaces with traditional component libraries, you've definitely experienced these pains:
- Developing AI Assistants: Hand-writing Markdown parsing, code highlighting, typewriter-style streaming SSE rendering, thought chain folding, and even code block copying or online execution...
- Developing Visualization Applications: Needing to introduce complex drag-and-drop connection libraries, Gantt chart libraries, just tuning D3 connections and Undo/Redo for connection states drives people crazy.
- Underlying Infrastructure: Configuring chunked uploads, download progress, debounce/throttle requests, multi-language support, and also considering Nuxt SSR adaptation and dark mode switching.
Every feature requires searching all over the world for different third-party packages, resulting in bloated package sizes, version conflicts, and explosive maintenance costs.
Today, I'm recommending a full-stack component system tailored for serious product teams built on Vue 3.5+ — YH-UI. It's not a simple clone of existing UI libraries, but a Monorepo-level solution that perfectly integrates UI, AI interaction, workflows, advanced requests, and a theme engine.
🚀 Why YH-UI?
YH-UI focuses on product-grade depth and breadth, providing a complete matrix that can directly support complex commercial products:
| Domain | Core Capabilities Provided by YH-UI |
|---|---|
| Core UI Components | Deeply adapted for Vue 3.5+, supports complete TS types, SSR server-side rendering adaptation |
| AI Native Suite | Chat dialogue, Sender input box, Thought Chain, Code Block highlighting, Code Runner online execution, Artifacts, Prompts, etc. |
| Data & Workflow | Drag-and-drop Flow editor, Gantt chart, big data virtual scrolling, history snapshots, collaborative APIs |
| Foundation & Network | Built-in @yh-ui/request client, supports SSE stream parsing, request queues, large file chunked upload/download |
| Theme & Engineering | Runtime CSS variable rewriting, dark mode, high/low density, color-blind friendly mode; officially supports Nuxt module and on-demand import |
🔥 Deep Dive into Five Core Selling Points
1. Born for AI: Full Suite of AI Interaction Components (Out of the Box)
Developing AI-native applications no longer requires hand-writing complex typewriter effects and Markdown parsing. YH-UI provides a full suite of AI interaction primitives:
yh-ai-chat/yh-ai-bubble: Chat bubbles designed specifically for dialogue flows, built-in with extremely elegant typewriter streaming output and SSE (Server-Sent Events) packet parsing buffering.yh-ai-thought-chain: Elegantly displays the "thought chain" of large model reasoning, supporting one-click expand/collapse.yh-ai-code-runner/yh-ai-code-editor: Not just code highlighting, it directly provides a sandbox-level code editor and online execution panel, allowing users to run code directly on the webpage!
<!-- Minimal configuration to get a highly complete AI chat interface -->
<template>
<yh-ai-chat
v-model:messages="messages"
:loading="loading"
@send="handleSend"
/>
</template>
2. Drag-and-Drop Workflow & Gantt Chart: Saving Complex Backends
Workflows (Flow) and Gantt charts are the hardest nuts to crack in modern Admin systems. YH-UI directly turns them into highly cohesive components:
yh-flow: A highly customizable node canvas editor. Supports custom connections, node resizing, and drag snapping. Most thoughtfully, it has a built-in history manager, new connections and reconnections are automatically written into history snapshots, Undo/Redo can be done with a single line of code!yh-gantt-chart: A Gantt chart component supporting big data rendering, task dependency connections, and smooth timeline scrolling, designed specifically for project management and collaboration.
3. Super Powerful @yh-ui/request Async Request Network Library
Usually with Axios, we still need to wrap a layer of Hooks ourselves. The @yh-ui/request bundled with YH-UI is practically a cheat code for Vue development:
- Auto/Manual First Run: Perfectly handles automatic first load and manual triggering during Vue mounting.
- API-Level Concurrency Queue and Caching: Avoids duplicate requests being sent in a short time, supports flexible cache expiration strategies.
- SSE Auto-Reconnect and Cross-Chunk Buffering: Automatically concatenates incomplete lines during network jitter or stream packet splitting, avoiding
JSON.parseerrors.
4. A Dark/Theme System with Both Prestige and Inclusivity
As a "serious" product-grade UI, YH-UI pays great attention to visual details:
- Rejects the cookie-cutter pure reds and blues, using Harmonious HSL for fine color tuning.
- Supports runtime CSS variable rewriting, allowing one-click switching between "compact" and "loose" layout densities.
- Thoughtfully built-in color-blind friendly mode, showing high humanistic care and accessibility experience.
5. Ultimate Developer Experience: 1-Second Export to CodeSandbox for Debugging
Want to tinker with a component online while reading the docs?
YH-UI provides an extremely powerful one-click export to StackBlitz / CodeSandbox feature. It performs static dependency analysis on your Demo code in real-time locally/in the cloud, packaging the core components, CSS variables, and even mermaid / dayjs dependencies referenced on-demand, allowing you to run it seamlessly in a cloud sandbox immediately.
🛠️ Quick Start
YH-UI provides an extremely friendly entry barrier.
1. Install Dependencies
pnpm add @yh-ui/yh-ui
2. Full Import
import { createApp } from 'vue'
import YhUI from '@yh-ui/yh-ui'
import '@yh-ui/yh-ui/css'
import App from './App.vue'
createApp(App).use(YhUI).mount('#app')
3. On-Demand Import (Recommended)
Paired with unplugin-vue-components, enjoy the smooth experience of automatic on-demand loading of components and styles:
// vite.config.ts
import Components from 'unplugin-vue-components/vite'
import { YhUIResolver } from '@yh-ui/yh-ui/resolver'
export default {
plugins: [
Components({
resolvers: [YhUIResolver()]
})
]
}
🌟 Final Words
YH-UI is not satisfied with just being a simple form framework, but aims to become a one-stop R&D foundation for serious product teams in the Vue ecosystem. If you are working on AI assistants, complex form applications, data dashboards, collaborative workflows, it is definitely a divine tool that can save you 50% of your R&D effort.
The project is currently under active iteration and perfectly adapted for Vue 3.5+.
- 💻 Official Documentation: https://1079161148.github.io/yh-ui/
- 📌 GitHub Repository: https://github.com/1079161148/yh-ui (If you find it useful, go give the author a ⭐ Star!)
- 💬 Feel free to share in the comments: What pitfalls have you encountered when developing AI dialogues or workflows?
Top 1 from juejin.cn, machine-translated. The original thread is authoritative.
Starred to show support first.