@yoyaflow/yoya-ui 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,21 +2,23 @@
2
2
 
3
3
  > **English** | [简体中文](./README.zh-CN.md)
4
4
 
5
- > Browser-native UI library with declarative HTML authoring — no virtual DOM, no JSX/SFC, no build chain.
5
+ > Browser-native UI library with declarative HTML authoring — no virtual DOM, no JSX/SFC, no build step required.
6
6
 
7
- yoya-ui builds views directly on the real DOM: declarative HTML authoring, a component library, router, i18n, theming and state out of the box, with server-side rendering (SSR) and pure client rendering switchable from the same code.
7
+ yoya-ui is a web foundation library — a new form of business UI construction. Views are built directly on the real DOM: declarative HTML authoring, router, i18n, theming, state and server-side rendering (SSR) out of the box, with pure client rendering switchable from the same code. Bundled UI components exist for out-of-the-box convenience; they are not the boundary of the library — native elements and third-party components compose the same way.
8
8
 
9
9
  ## Features
10
10
 
11
- - **Low-barrier declarative authoring**: describe UI with native elements; only HTML and plain JS are required, with no framework-specific concepts
12
- - **Backend/full-stack friendly**: built for backend and full-stack developers to quickly build admin and management interfaces without frontend framework experience
13
- - **Microservice-cohesive delivery**: ship UI together with the backend service, suitable for atomic per-service deployment
14
- - **AI-friendly**: declarative structure plus zero build chain means AI-generated component code runs directly
15
- - **Ready-to-use component library**: forms, navigation, feedback, data display, layout, charts and more for high-frequency scenarios
11
+ - **Low-barrier declarative authoring**: build UI with declarative structured JS elements — view and logic live in the same language, eliminating the friction between HTML markup and complex manipulation logic; only HTML and plain JS are required, with no framework-specific concepts
12
+ - **General-purpose UI foundation**: a general-purpose library for every web developer — the same declarative codebase builds admin consoles, dashboards, tools and content pages, and backend or full-stack developers can get started more easily than with React/Vue
13
+ - **Flexible delivery**: embed in server-rendered templates, ship together with backend services for atomic per-service deployment, or run as a standalone SPA — same code, no changes
14
+ - **Build-tool optional**: use the shipped files directly in a plain page (no Vite/bundler needed), or install via npm and bundle with Vite/webpack — both are first-class
15
+ - **AI-friendly**: declarative structure means AI-generated component code runs directly, with or without a build step
16
+ - **Ready-to-use component library**: forms, navigation, feedback, data display, layout, charts and more for high-frequency scenarios — convenience on top of the foundation, not its boundary
16
17
  - **Built-in router / i18n / theme / state**: everything a SPA needs, no extra selection required
17
18
  - **Server-side rendering**: one codebase, two modes — full-site SSR and island-style client enhancement both work
18
19
  - **Small core, zero dependencies, easy to extend**: follows standard component patterns; third-party components compose seamlessly with built-ins; import per module fits any project
19
20
  - **Maintenance-friendly**: the core stays stable, so long-lived projects don't fear version churn or rewrites
21
+ - **Frontend-fatigue friendly**: for developers tired of endless new concepts, new frameworks and breaking version upgrades — plain HTML and JS syntax, and a stable core that don't churn
20
22
 
21
23
  ## Installation
22
24
 
@@ -193,6 +195,10 @@ vite.config.js / vite.umd.config.js / vite.examples.config.js
193
195
  - [Component Catalog](docs/components.md) (Chinese)
194
196
  - [Core Implementation Summary](docs/yoya-basic-core-summary.md) (Chinese)
195
197
 
198
+ ## Codex Skill
199
+
200
+ Use yoya-ui inside Codex: install the [yoya-ui skill](skills/yoya-ui/README.md) (Chinese) to give Codex guidance on the component DSL, page composition, forms, theming, SSR/hydrate and i18n.
201
+
196
202
  ## License
197
203
 
198
204
  MIT
package/README.zh-CN.md CHANGED
@@ -2,22 +2,24 @@
2
2
 
3
3
  > [English](./README.md) | **简体中文**
4
4
 
5
- > Browser-native UI library with declarative HTML authoring — no virtual DOM, no JSX/SFC, no build chain.
6
- > 面向后端与全栈开发者的轻量原生 JS UI 基础库:小核心 + 开放标准 + 官方组件库。
5
+ > Browser-native UI library with declarative HTML authoring — no virtual DOM, no JSX/SFC, no build step required.
6
+ > 轻量原生 JS UI 基础库:小核心 + 开放标准 + 官方组件库,覆盖管理台、看板、工具与内容页等通用 Web 界面。
7
7
 
8
- yoya-ui 直接在真实 DOM 上构建视图:声明式 HTML 写法、组件库、路由、i18n、主题与状态系统开箱即用,支持服务端渲染(SSR)与纯客户端渲染同代码切换。
8
+ yoya-ui 是一套新的业务界面构建形式,也是一个 Web 基础库:直接在真实 DOM 上构建视图,声明式 HTML 写法、路由、i18n、主题与状态系统开箱即用,支持服务端渲染(SSR)与纯客户端渲染同代码切换。自带 UI 组件只是为了开箱即用,组件清单并不代表库的能力边界——原生元素与第三方组件以同样方式自由组合。
9
9
 
10
10
  ## 特性
11
11
 
12
- - **低门槛声明式构建**:直接用原生元素描述界面,只学 HTML 与原生 JS 即可使用,无框架专属概念
13
- - **后端全栈友好**:面向后端与全栈开发者,无需前端框架经验即可快速构建后台与管理界面
14
- - **微服务一体发布**:UI 与后端服务同包发布、随服务整体交付,适合微服务独立部署(原子化发布)
15
- - **AI 友好**:声明式结构 + 零构建链,AI 生成的组件代码可直接运行
16
- - **开箱即用的组件库**:表单、导航、反馈、数据展示、布局、图表等高频场景开箱即用
12
+ - **低门槛声明式构建**:采用声明式结构化 JS 元素构建方案,视图与操作逻辑同源,消除 HTML 标签化语言与复杂操作逻辑不兼容的问题;只学 HTML 与原生 JS 即可使用,无框架专属概念
13
+ - **通用 UI 基础**:面向所有 Web 开发者的通用 UI 库,同一套声明式代码可构建管理台、看板、工具类与内容类页面;相比 React/Vue,后端与全栈开发者也能更低门槛地上手
14
+ - **交付方式灵活**:可嵌入服务端模板、随后端服务同包发布(适合微服务原子化部署),也可作为独立 SPA 运行,同一套代码无需改动
15
+ - **构建可选、工程化可用**:构建产物可直接在普通页面中运行,无需 Vite 等打包工具;也支持 npm 安装后在 Vite/webpack 等工程化项目中使用
16
+ - **AI 友好**:声明式结构让 AI 生成的组件代码可直接运行,无论是否使用构建工具
17
+ - **开箱即用的组件库**:表单、导航、反馈、数据展示、布局、图表等高频场景开箱即用——这是基础库之上的便利,不代表库的能力边界
17
18
  - **内置路由 / i18n / 主题 / 状态管理**:单页应用所需能力自带,无需额外选型
18
19
  - **服务端渲染**:一套代码双模式可切换,整站服务端渲染与局部组件客户端加载加强均可用
19
20
  - **小核心、零依赖、易扩展**:遵循标准组件形态,第三方组件可与内置组件无缝组合,按模块引入适配任意工程
20
21
  - **长期维护友好**:核心库保持稳定,长期项目无需担心版本过时或升级重写
22
+ - **远离前端疲劳**:适合厌倦层出不穷的新概念、新框架与破坏性版本更新的开发者,语法回归原生 HTML 和 JS,核心保持稳定
21
23
 
22
24
  ## 安装
23
25
 
@@ -87,7 +89,7 @@ import '@yoyaflow/yoya-ui/ui.css'; // 默认样式与主题变量
87
89
 
88
90
  ## TypeScript 支持
89
91
 
90
- 源码保持纯 JavaScript(零构建、可直接运行),通过随包发布的类型声明提供完整的 TypeScript 体验。`types/` 目录覆盖四个入口(根入口 / `core` / `echart` / `ssr`),并包含节点类、工厂函数签名、组件状态 API 与父节点快捷方法(如 `page.vButton(...)`)的类型。
92
+ 源码保持纯 JavaScript(无需构建也可直接运行,同样兼容工程化构建),通过随包发布的类型声明提供完整的 TypeScript 体验。`types/` 目录覆盖四个入口(根入口 / `core` / `echart` / `ssr`),并包含节点类、工厂函数签名、组件状态 API 与父节点快捷方法(如 `page.vButton(...)`)的类型。
91
93
 
92
94
  TypeScript 项目无需额外配置即可获得提示与类型检查:
93
95
 
@@ -194,6 +196,10 @@ vite.config.js / vite.umd.config.js / vite.examples.config.js
194
196
  - [组件目录](docs/components.md)
195
197
  - [核心实现摘要](docs/yoya-basic-core-summary.md)
196
198
 
199
+ ## Codex 技能
200
+
201
+ 在 Codex 中使用 yoya-ui:按[技能安装说明](skills/yoya-ui/README.md)安装 yoya-ui 技能,Codex 即可获得组件 DSL、页面组合、表单、主题、SSR/hydrate 与 i18n 的使用指导。
202
+
197
203
  ## License
198
204
 
199
205
  MIT