# XiHan.FlowDesigner
**Repository Path**: null_947_6831/XiHan.FlowDesigner
## Basic Information
- **Project Name**: XiHan.FlowDesigner
- **Description**: 快速、轻量、高效、用心的框架无关流程设计器。曦寒懿(XiHanFun)开源生态的一部分。
- **Primary Language**: TypeScript
- **License**: MIT
- **Default Branch**: main
- **Homepage**: https://flow.docs.xihanfun.com
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 2
- **Created**: 2026-10-31
- **Last Updated**: 2026-10-31
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## Introduction
XiHan.FlowDesigner is a framework-agnostic flow 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-flow/core` | Model layer: flow graph schema, validation, layout algorithms and edit commands; pure TypeScript, no DOM |
| `@xihan-flow/runtime` | Runtime: flow graph viewing and run-state display for business pages |
| `@xihan-flow/designer` | Designer: visual flow 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 flow
pnpm install
pnpm build
```
Other commands: `pnpm typecheck`, `pnpm test`, `pnpm lint`.
Development preview (a demo of the viewer and the designer, not a product): start it from `flow/` and open http://localhost:5190 .
```bash
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.FormDesigner](https://github.com/XiHanFun/XiHan.FormDesigner) - Framework-agnostic form 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.FlowDesigner 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.