Hacker News | 📄 原文链接 | 2026-11-08 收录

Spindle:给 OCaml 5 做一个类型驱动的 Web 框架

来源:github.com — 2026-11-08

📋 概述

Show HN:Spindle 是为 OCaml 5 设计的、类型驱动的 Web 框架。你只写类型化的 API,编解码、请求校验、OpenAPI 文档和前端 schema(Zod、Melange)全部由类型推导,服务端与客户端的契约不会再对不上。

🔑 核心要点

💡 金句

Its central idea is to provide an expressive, type-driven API and derive the rest.
— HN 讨论
← 返回 Hacker News 首页