What problem does it solve?
Molykit provides a reusable toolkit for building AI chat interfaces with Makepad, removing boilerplate and enabling cross-platform async UI flows for native and WASM.
Core Features & Use Cases
- Cross-platform async utilities (PlatformSend, spawn, ThreadToken) to run AI chat tasks both natively and in WASM.
- Ready-to-use chat widgets (Chat, Messages, PromptInput, Avatar) to compose AI chat UIs quickly.
- BotClient trait for integrating AI providers and a sharable BotContext for sync UI access.
- OpenAI-compatible client with SSE streaming support for streaming AI responses.
- Protocol types for messages, bots, tool calls, and MCP integration for extensible context.
- Use cases include building chat interfaces, integrating OpenAI, handling streaming responses, and multi-provider setups.
Quick Start
Install Molykit in your Makepad project and instantiate a BotContext with a concrete BotClient (for example, OpenAIClient). Then wire the Molykit widgets into your UI and start the event loop to stream responses.