Hacker News Show HN· j4w8n·· 14 天前AI 评分58
Unsworn 开源多语言 API 路由器,用 TOML 统一管理路由与鉴权
Show HN: Unsworn – Polyglot API Router
AI 导读
Unsworn 是一个 MIT 许可的开源 API 路由器,路由、校验、鉴权、CORS、限流、缓存、代理、日志和指标都写在 unsworn.toml 里,由二进制强制执行,handler 可用任意语言编写。
来源:Hacker News Show HN · github.com
社媒成稿工作台 · 一键复制
飞书同步推送 · 含数据/日期/出处/启发Unsworn 开源多语言 API 路由器,用 TOML 统一管理路由与鉴权 📊 核心数据与事实(2026-11-20): Unsworn 是一个 MIT 许可的开源 API 路由器,路由、校验、鉴权、CORS、限流、缓存、代理、日志和指标都写在 unsworn.toml 里,由二进制强制执行,handler 可用任意语言编写。 • 原文实测切片:tool ]] name = " create_invoice " description = " Create a draft invoice for a customer " input = " schemas/invoice.json " handler = " src/billing.ts#createInvoice " auth = { scheme = " oauth " , scopes = [ " billing:write " ] } rate_limit = {… • 原文实测切片:[[ route ]] # ...except the paths you open path = " /assets/{ · rest} " auth = " none " [[ route ]] # add policies to paths inside it path = " /api/{ · rest} " rate_limit = { requests = 100 , per = " 1m " , key = " auth.sub " } Later: one… 💡 对独立开发者的启发: 1/ 供给端造工具的门槛已被 AI 和开源抹平,独立开发者真正的护城河是「找准垂直业务场景 + 做好分发」。 2/ 面对新模型或开源组件先看三件事:许可证是否商用安全、API/推理边际成本降了多少、能不能直接嵌进现有变现工作流。 3/ 别去卷通用开发者轮子,把底层新能力包装成面向具体行业人群(电商、创作者、中小商家)傻瓜式交付结果的产品。 📅 日期:2026-11-20(北京时间) 📰 信息源出处:Hacker News Show HN · j4w8n(github.com) 🔗 原文:https://github.com/j4crev/unsworn 📡 归档:https://billionare.me/items/rm600f8ehdc0kz02m2ygnv7om