Apron Chat Protocol 推出自架聊天協定
Show HN: Apron Chat Protocol
重點導讀
Apron 推出一套精簡的自架聊天協定,支援房間、討論串、機器人與表情回應等功能。
- 協定設計:以 JSON 搭配任意傳輸方式(例如 WebSocket),核心精簡,增量能力可選,並支援平順降級。
AI 伴隨問答
針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:
正文
Apron is a minimal protocol for self-hosted chats. Simple enough to write a server in ~100 lines, powerful enough for rooms, threads, bots, reactions, and more.
For agents: apron.chat/llms.txt links the spec in Markdown, the servers, clients, JSON Schema and wire fixtures to test against.
1.The Protocol
JSON over any transport, like WebSocket. Tiny core and optional incremental capabilities with graceful fallbacks. Build only what you need.
{"method": "server", "params": {"apron": 10, "auth": ["guest"]}} {"method": "auth", "id": "c1", "params": {"scheme": "guest", "name": "Ada"}} {"id": "c1", "result": {"you": {"user_id": "guest_1234", "name": "Ada"}}} {"method": "message", "id": "c2", "params": {"body": {"text": "Hello"}}} {"method": "message", "params": {"room_id": "general", "from": {"user_id": "guest_1234"}, ...}} {"id": "c2", "result": {"message_id": "1724803200042"}}
2.Live Demo
Come say "hi" on our public demo server, or point the Apron Web client at your own server.
3.Servers
Reference implementations to run or modify for your use cases.
4.Clients
Join any server with your favourite client, or build your own.
5.FAQ
來源: Hacker News (official RSS) (apron.chat)
開啟原文