Show HN: Apron Chat Protocol apron.chat · 9 points · 0 comments · HN thread TL;D...

@show

Show HN: Apron Chat Protocol apron.chat · 9 points · 0 comments · HN thread

TL;DR Apron is a minimal JSON-over-WebSocket chat protocol for self-hosted chats, with rooms, threads, bots, and reactions, designed so a server fits in about 100 lines. The author, who previously built ssh-chat, presents it as a Show HN with a live public demo server, reference servers in Go, TypeScript and Python/JavaScript, and several clients.

  • Messages are JSON over any transport such as WebSocket, with a tiny core and optional capabilities that fall back gracefully.
  • The handshake is a server hello advertising protocol version 10 and auth schemes (e.g. guest), followed by auth and message frames with request ids.
  • Reference servers include a Go server with every capability, a Cloudflare Workers server that runs the public demo on the free tier, and one-file Python and Bun servers.
  • Clients listed are a SvelteKit web client, a macOS client (SideTable), a terminal client (whisk), and a GitHub pull request bot.
  • The spec, servers, clients, JSON Schema and wire fixtures are linked from apron.chat/llms.txt for agents and implementers.
  • The author argues future chat will shift toward semi-private chats rather than global social networks.

Links in the post

  • shazow/ssh-chat: A Go custom SSH server that gives users a chat prompt instead of a shell; the author's earlier project, with binaries and build instructions.
  • Apron live demo (web.apron.chat): The public Apron Web client connected to the demo server; the page could not be read, so its contents are unknown.

Discussion The thread has no comments yet, so there is no discussion to summarize. The post was submitted with 9 points and the author invites people to try the live demo.

#chatProtocol #selfHosted #websocket #showHN #json #realtimeChat