Show HN: Melony (www.melony.dev)

🤖 AI Summary
Melony is a lightweight React toolkit for building streaming AI chat interfaces that gives developers fine‑grained control over state, UI, and message structure. It provides a MelonyProvider to manage connection and streaming, plus hooks like useMelonyMessages, useMelonySend, and useMelonyStatus so components can read messages, send prompts, and react to streaming state. Built‑in streaming support includes automatic text‑delta handling (so partial responses render smoothly), and its flexible "parts" system lets messages contain typed parts (text, images, attachments or custom types) with full TypeScript safety. For the AI/ML community this matters because it removes much of the boilerplate around streaming LLM responses and composable UI concerns while remaining SDK‑agnostic — Melony can be used with the AI SDK or other streaming libraries and custom backends. That makes it easier to deliver responsive, production‑grade chat experiences, extend message schemas, and maintain strong type guarantees across client code. In short, Melony accelerates building modern conversational interfaces by combining streaming primitives, extensibility, and developer ergonomics in a small React-centric package.
Loading comments...
loading comments...