📄
One HTML ≤ 4 KB after zlib
/pack squeezes it to 3,950 B and checks iOS, Android and Desktop
# Claude Code claude mcp add --transport http widgets https://api.widgets.tg/mcp
// Cursor: .cursor/mcp.json
{ "mcpServers": { "widgets": { "url": "https://api.widgets.tg/mcp" } } }
curl https://api.widgets.tg/v1/widgets -H "Authorization: Bearer $KEY" \
-d '{"template":"card","data":{"name":"Anna","title":"Card"}}'
# → {"id":"wgt_8Kq2","bytes":3104}import { Widgets } from "@widgets/sdk"
const w = new Widgets(process.env.WIDGETS_KEY)
const card = await w.widgets.create({ template: "card", data: { name: "Anna" } })from widgets import Widgets
w = Widgets(os.environ["WIDGETS_KEY"])
card = w.widgets.create(template="card", data={"name": "Anna"})curl https://api.widgets.tg/v1/messages -H "Authorization: Bearer $KEY" \
-d '{"chat_id":12345,"widget_id":"wgt_8Kq2","feed":"price"}'await w.messages.send({ chat_id: 12345, widget_id: card.id, feed: "price" })w.messages.send(chat_id=12345, widget_id=card.id, feed="price")
curl -X PUT https://api.widgets.tg/v1/feeds/price -H "Authorization: Bearer $KEY" \
-d '{"ton":5.42}' # every bubble with feed=priceawait w.feeds.put("price", { ton: 5.42 })w.feeds.put("price", {"ton": 5.42})Need higher limits or a custom setup? Message Vitaly