# flexstate **Repository Path**: zhangfisher/flexstate ## Basic Information - **Project Name**: flexstate - **Description**: 简单易用的有限状态机实现 - **Primary Language**: TypeScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2022-09-15 - **Last Updated**: 2025-05-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [文档](https://zhangfisher.github.io/flexstate/) **`FlexState`是一款有限状态机,具有以下特性:** 1. 基于`Class`构建有限状态机实例 2. 支持状态`enter/leave/resume/done`钩子事件 3. 状态切换完全支持异步操作 4. 支持定义异步状态动作`Action` 5. 支持状态切换生命周期事件订阅 6. 支持错误处理和状态切换中止 7. 基于`TypeScript`开发 8. 支持子状态 > **开源推荐:** - **`VoerkaI18n`**: [基于Nodejs/React/Vue的一键国际化解决方案](https://zhangfisher.github.io/voerka-i18n/) - **`Logsets`**: [命令行应用增强输出库](https://zhangfisher.github.io/logsets/) - **`AutoPub`**: [基于pnpm/monorepo的自动发包工具](https://zhangfisher.github.io/autopub/) - **`FlexDecorators`**: [JavaScript/TypeScript装饰器开发库](https://zhangfisher.github.io/flex-decorators/) - **`FlexTools`**: [实用工具函数库](https://zhangfisher.github.io/flex-tools/)