molykit

Solid

CRITICAL: Use for MolyKit AI chat toolkit. Triggers on: BotClient, OpenAI, SSE streaming, AI chat, molykit, PlatformSend, spawn(), ThreadToken, cross-platform async, Chat widget, Messages, PromptInput, Avatar, LLM

AI & Automation 40,440 stars 6528 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# MolyKit Skill Best practices for building AI chat interfaces with Makepad using MolyKit - a toolkit for cross-platform AI chat applications. **Source codebase**: `/Users/zhangalex/Work/Projects/FW/robius/moly/moly-kit` ## When to Use Use this skill when: - Building AI chat interfaces with Makepad - Integrating OpenAI or other LLM APIs - Implementing cross-platform async for native and WASM - Creating chat widgets (messages, prompts, avatars) - Handling SSE streaming responses - Keywords: molykit, moly-kit, ai chat, bot client, openai makepad, chat widget, sse streaming ## Overview MolyKit provides: - Cross-platform async utilities (PlatformSend, spawn(), ThreadToken) - Ready-to-use chat widgets (Chat, Messages, PromptInput, Avatar) - BotClient trait for AI provider integration - OpenAI-compatible client with SSE streaming - Protocol types for messages, bots, and tool calls - MCP (Model Context Protocol) support ## Cross-Platform Async Patterns ### PlatformSend - Send Only on Native ```rust /// Implies Send only on native platforms, not on WASM /// - On native: implemented by types that implement Send /// - On WASM: implemented by ALL types pub trait PlatformSend: PlatformSendInner {} /// Boxed future type for cross-platform use pub type BoxPlatformSendFuture<'a, T> = Pin<Box<dyn PlatformSendFuture<Output = T> + 'a>>; /// Boxed stream type for cross-platform use pub type BoxPlatformSendStream<'a, T> = Pin<Box<dyn PlatformSendStream<Item = T> + 'a>>; ``` ### Platf...

Details

Author
sickn33
Repository
sickn33/antigravity-awesome-skills
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category