molykit

Provide cross-platform AI chat UI toolkit and patterns for Makepad apps.

745|87|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/ZhangHanDong/makepad-skills --skill molykit-zhanghandong
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: molykit
Source: https://github.com/ZhangHanDong/makepad-skills/tree/main/skills/molykit
Command: npx skills add https://github.com/ZhangHanDong/makepad-skills --skill molykit-zhanghandong

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Builds and maintains cross-platform AI chat UIs by providing a ready-made toolkit and patterns for Makepad, reducing boilerplate for chat interfaces.

Core Features & Use Cases

  • Cross-platform async utilities (PlatformSend, spawn(), ThreadToken) to unify native and WASM workflows.
  • Ready-to-use chat widgets (Chat, Messages, PromptInput, Avatar) for rapid UI assembly.
  • BotClient trait to integrate AI providers like OpenAI with SSE streaming.
  • Protocol types for messages, bots, and tool calls, plus MCP support for model context.
  • OpenAI-compatible client with SSE streaming and structured message delivery for live chats.

Quick Start

Install Molykit in your Makepad project and begin composing AI chat interfaces using the provided widgets and traits.

Frequently Asked Questions about molykit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a cross-platform AI chat UI in Makepad?

To build a cross-platform AI chat UI in Makepad, use this toolkit's ready-made widgets like Chat, Messages, and PromptInput. It provides the necessary UI components and patterns to reduce boilerplate for assembling chat interfaces across native and WASM platforms.

How does SSE streaming work with AI chat clients in Makepad?

SSE streaming works through the BotClient trait abstraction, which integrates AI providers like OpenAI. The toolkit delivers an OpenAI-compatible client that uses Server-Sent Events to provide structured, live message delivery directly into the Makepad UI.

Can I use Makepad async utilities for both native and WASM workflows?

Yes, you can unify native and WASM workflows using the toolkit's cross-platform async utilities. It provides PlatformSend, spawn(), and ThreadToken to handle asynchronous operations consistently across different deployment targets in Makepad apps.

What is the best way to integrate an OpenAI-compatible client into a Makepad app?

The best way to integrate an OpenAI-compatible client is by implementing the provided BotClient trait. This abstraction handles SSE streaming and protocol types for messages, bots, and tool calls, enabling structured message delivery for live chats in Makepad.

Does this AI chat toolkit support MCP for model context?

Yes, the AI chat toolkit supports MCP for model context. It provides protocol types for messages, bots, and tool calls, along with MCP support to manage and deliver model context within Makepad-based applications.