# XiHan.FormDesigner **Repository Path**: idkook/XiHan.FormDesigner ## Basic Information - **Project Name**: XiHan.FormDesigner - **Description**: 快速、轻量、高效、用心的框架无关表单设计器。曦寒懿(XiHanFun)开源生态的一部分。 - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: main - **Homepage**: https://form.docs.xihanfun.com - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2026-10-26 - **Last Updated**: 2026-10-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

XiHan.FormDesigner

A fast, lightweight, efficient and thoughtfully built framework-agnostic form designer

Delivered as Web Components: build forms visually, with one JSON definition driving both the designer and form rendering in business pages

English | 简体中文

GitHub Stars Gitee Stars GitCode Stars

Web Components TypeScript npm License

Docs Ask DeepWiki QQ Group

## Introduction XiHan.FormDesigner is a framework-agnostic form designer delivered as native Web Components, so it works in Vue, React, Angular or framework-free pages alike. It is part of the XiHanFun open-source ecosystem. ## Principles - **Framework-agnostic** - delivered as native Web Components, bound to no frontend framework - **No third-party runtime dependencies** - nothing third-party ships at runtime - **Templates are data** - a template is plain JSON that neither contains nor runs code, so importing one cannot inject scripts - **The host owns the data** - components make no network requests; data, storage and permissions are handed to the host through callbacks ## Packages | Package | Description | | --- | --- | | `@xihan-form/core` | Model layer: form schema, validation rules, linkage rules and edit commands; pure TypeScript, no DOM | | `@xihan-form/runtime` | Runtime: form rendering, value access and validation for business pages | | `@xihan-form/designer` | Designer: visual form designer | Dependencies point `designer → runtime → core`. Business pages only need the runtime; the designer is loaded only where templates are edited. ## Development Requires Node.js 24+ and pnpm 11+. ```bash cd form pnpm install pnpm build ``` Other commands: `pnpm typecheck`, `pnpm test`, `pnpm lint`. Development preview (a demo of the renderer and the designer, not a product): start it from `form/` and open http://localhost:5192 . ```bash # XiHan.FormDesigner/form pnpm dev ``` ## Related projects - [XiHan.Framework](https://github.com/XiHanFun/XiHan.Framework) - .NET modular development framework - [XiHan.UI](https://github.com/XiHanFun/XiHan.UI) - Framework-agnostic headless UI component library - [XiHan.BasicApp](https://github.com/XiHanFun/XiHan.BasicApp) - A polished general-purpose admin core built on XiHan.Framework and XiHan.UI - [XiHan.PrintDesigner](https://github.com/XiHanFun/XiHan.PrintDesigner) - Framework-agnostic print designer - [XiHan.FlowDesigner](https://github.com/XiHanFun/XiHan.FlowDesigner) - Framework-agnostic flow designer - [XiHan.ReportDesigner](https://github.com/XiHanFun/XiHan.ReportDesigner) - Framework-agnostic report designer ## Contributing Issues and pull requests are welcome. Commits follow the conventional commits format, and changes must pass CI lint, type checking, build and tests. ## Sponsorship If this project helps your work, you are welcome to buy the author a coffee. Sponsorship page: https://docs.xihanfun.com/cosmos/sponsor ## Copyright & License Copyright (c) 2021-Present XiHanFun and contributors. Licensed under the MIT License; see [License](./LICENSE). The XiHan.FormDesigner name, interface visual design and original visual expression belong to the author. Third-party services follow their own licenses and terms. This project is provided for learning and reference only; the author assumes no risk arising from its use.