DF

doeixd/foldkit-plus

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

28 stars 质量 71 趋势 31MIT

Foldkit Plus:Foldkit应用的软件包。服务器数据(远程)、本地优先同步、路由(网站)、SSR、表单、CRUD、内容管理系统、富文本、页面构建器,以及基于MCP和WebMCP的AI代理。

概览

这些包将 Foldkit 应用向外扩展——包括代理、服务器、其他设备、URL 和设计系统——但不给它第二个状态存储空间。 Foldkit 应用是一个状态机:一个 Schema 类型 、一个 联集,命名所有可能发生的事,以及一个纯函数,将消息转化为下一个模型和一些命令。这种形状易于推理、测试和重放。但当应用在钩子中建立缓存、在 URL 中存储、重新实现过渡的工具处理程序,或带有自身简化器的同步层时,它就会丢失。 该仓库中的一切都保持同一状态机。代理只能发送已更新的消息。服务器数据存储在模型中,并通过更新进行对账。副本通过同一更新重放相同的消息。URL和本地存储镜像模型的切片;它们从不拥有该切片。视图样式是从外部进行的,无需分叉。

概述(AI 翻译)

扩展 Foldkit 应用的软件包 向外——代理、服务器、其他设备、网址和设计系统—— 不给它留第二档以保存州。

Foldkit 应用程序是一个状态机:一个 Schema 类型的 Model,一个 消息工会列出所有可能发生的事情,并纯属**update** 将消息转换为下一个模型和一些命令的函数。那个形状 很容易推理、测试和重放。一旦应用发展成 在钩子中缓存,URL中的存储,重新实现工具处理程序 过渡层,或者带有自身缩减器的同步层。

这个仓库里的所有东西都保留一个状态机。代理只能 发送消息update已处理。服务器数据存储在模型中,且 由update对调。副本通过相同的方式重放相同的消息 update。URL和本地存储镜像模型的一部分;它们从不拥有 一。视图从外部样式设计,无需分叉。每个包回答一个 问题,它们之所以会构成,是因为它们在明确的应用边界上相遇。

网站: foldkit-plus.pages.dev 包含每个包的指南和API引用,以及演示,每个都是示例

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

foldkit-plus

Packages that extend a Foldkit application outward — to agents, servers, other devices, the URL, and design systems — without giving it a second place to keep state.

A Foldkit application is one state machine: a Schema-typed Model, a Message union naming everything that can happen, and one pure update function that turns a Message into the next Model and some Commands. That shape is easy to reason about, test, and replay. It gets lost the moment an app grows a cache in a hook, a store in the URL, a tool handler that re-implements a transition, or a sync layer with its own reducer.

Everything in this repository keeps the one state machine. An agent can only send Messages update already handles. Server data lives in the Model and is reconciled by update. Replicas replay the same Messages through the same update. The URL and local storage mirror a slice of the Model; they never own one. Views are styled from outside without forking. Each package answers one question, and they compose because they meet at explicit application boundaries.

The website: foldkit-plus.pages.dev has each package’s guides and API reference, and the demos, each an example from this repository built as static files. Those with a server run it in your browser, shared by every tab, so nothing you do leaves it:

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add doeixd/foldkit-plus
新手?先看 mcpskill.org 教程 →