Liquid Composer

io.github.frontedu由 GitHub 帳號 frontedu 發布v2.1.0更新於 Nov 3, 2026

檢視 Liquid Glass 應用圖示配方,並在瀏覽器編輯器中開啟它們。

AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。

原文描述

Check Liquid Glass app icon recipes and open them in the browser editor.

已驗證Streamable HTTP可網頁執行瀏覽器自動化

概覽

Liquid Composer 的託管 MCP 服務(liquid-composer.vercel.app);無需登入;Streamable HTTP;3 個工具。

暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。

端點
liquid-composer.vercel.app
最近檢查

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Liquid Composer,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.frontedu%2Fliquid-composer/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "liquid-composer": {
      "type": "http",
      "url": "https://liquid-composer.vercel.app/mcp"
    }
  }
}

README

[Liquid Composer icon]

Liquid Composer

Design Liquid Glass app icons in the browser.

liquid-composer.vercel.app

[GitHub stars] [GitHub forks] [npm downloads]

Liquid Composer is a web recreation of Apple's Icon Composer that reproduces the Liquid Glass icon material of iOS 27 and Icon Composer 2. Drop in your artwork, stack it in layers, and the engine renders the glass in real time: light from above, highlights and dark edges that define each shape, refraction between layers, background blur, translucency and layer shadows, composited inside the iOS squircle.

Rendering runs on a WebGL2 pipeline. A distance field of each layer's silhouette drives refraction and edge lighting; when Blur is on, two separable Gaussian passes blur everything beneath the layer, and the glass composite shader works in gamma-encoded sRGB, like Icon Composer. Without WebGL2 the app falls back to Canvas 2D: layers keep their shadow, translucency and edge lighting, but lose refraction and blur.

What's new for iOS 27

  • Light comes straight from above. The toolbar light-angle control remains as a preview tool and is not saved with the document
  • Highlights along the top and bottom edges, and dark edges that define the shape
  • Specular placement: Off, Automatic, Inside or Outside. Automatic picks Inside on bright icon backgrounds and Outside on dark ones and in the Clear appearances
  • Refraction with Strength and Height; a negative Strength bends the image the other way (inverse refraction)

Highlights, refraction, translucency, blur and shadows follow the formulas and values of Icon Composer 27. The Advanced panel scales the highlights and adds dispersion and frostiness on top.

Features

  • Layer-based editing with one level of groups, drag-and-drop reordering, inline rename, duplicate and undo/redo
  • SVG, PNG and JPEG import at the artwork's natural size on the 1024 pt canvas, as in Icon Composer; an SVG smaller than 256 pt is scaled up to the grid's outer circle, and artwork larger than the icon is scaled down to fit it. SVGs are re-rasterized at render resolution so edges stay crisp
  • Glass controls per layer, or applied to all layers at once: Specular placement, Refraction (Strength, Height), Blur, Translucency and Shadow
  • Advanced panel with Lens (Dispersion), Highlights (Light intensity, Top, Bottom, Edge definition) and Surface (Frostiness), with a reset
  • Per-layer opacity, blend mode, and solid or two-stop gradient fill
  • Default, Dark, Clear Light and Clear Dark appearances. The Tinted variants of iOS 27 are not implemented
  • Glass-on-glass compositing: each glass layer refracts the background and every layer painted beneath it
  • Background editor driven by hue, tint and brightness, or custom gradient stops
  • Apple icon grid overlay in light or dark lines, center snap guides, alpha-aware layer picking on canvas
  • Export as PNG at 4096, 2048, 1024, 512 or 256 px, or JPEG at 1024; sizes up to 1024 are supersampled. PNG · No Chiclet leaves out the background plate. Copy a 1024 PNG to the clipboard, or download all appearances as a ZIP with Default/, Dark/, ClearLight/ and ClearDark/ folders, each holding PNGs from 4096 to 256 px
  • Icon Composer documents: Export .icon and Open .icon in the export menu, as a zipped .icon package that opens in Icon Composer and Xcode. A document with refraction on or specular set to Inside or Outside needs Xcode 27, as Icon Composer 2 writes it; otherwise it also opens in Xcode 26
  • Work is autosaved in your browser (localStorage and IndexedDB). See the privacy policy
  • Installable as an app from Chrome or Edge on Windows, Linux and macOS (Install in the address bar), with its own window, and it opens offline after the first visit

Shortcuts

On a Mac, use ⌘ in place of Ctrl.

  • Ctrl+Z undo, Ctrl+Shift+Z or Ctrl+Y redo
  • Ctrl+D duplicate, Delete remove, F2 rename the focused layer
  • Ctrl+C / Ctrl+X / Ctrl+V copy, cut and paste layers (or paste an image)
  • Arrow keys move the selected layer by 1 pt, 10 pt with Shift; Ctrl+↑ selects its group
  • Ctrl+] / Ctrl+[ bring forward or send backward; Ctrl+Alt+Shift+F / Ctrl+Alt+Shift+B bring to front or send to back
  • Ctrl+Alt+C / Ctrl+Alt+V copy and paste style: glass, fill, opacity and blend mode
  • Ctrl+Alt+G toggle the icon grid

Getting started

Requires Node 22.12+.

sh
npm installnpm run dev      # http://localhost:5173npm run build    # production build in dist/

Use with AI agents

Agents drive the same app and engine as the editor. An icon is a JSON recipe: background, layers top to bottom, glass settings and outputs. Applying a recipe replaces the document, and renders come from the WebGL2 engine in headless Chrome.

sh
npx liquid-composer apply icon.json --out out/       # PNG, all-appearances zip or .icon, as the recipe asksnpx liquid-composer render icon.json --size 512 --mode darknpx liquid-composer import App.icon --render 512npx liquid-composer validate icon.jsonnpx liquid-composer schema

Each command prints one JSON object with the written files, the document state and any warnings. Rendering uses your installed Google Chrome through playwright-core, on SwiftShader by default; pass --gpu to use the GPU. In a checkout, run npm run build once and use npm run -s agent -- in place of npx liquid-composer.

  • MCP server, local. npx -y liquid-composer mcp provides liquid_apply, liquid_update, liquid_render, liquid_export, liquid_import_icon, liquid_state and liquid_schema, and returns previews as images. With Claude Code: claude mcp add liquid-composer -- npx -y liquid-composer mcp
  • MCP server, remote. https://liquid-composer.vercel.app/mcp checks recipes and returns a link that opens the icon in your browser. The link carries the recipe in its URL fragment, so opening it does not send the recipe to the server; the MCP call itself keeps nothing. This server does not render. In Claude, add it under Customize → Connectors → Add custom connector, with no sign-in
  • Skill. npx skills add frontedu/liquid-composer teaches agents the recipe format and the workflow
  • In the browser. Every build exposes window.liquidComposer (apply, update, render, export, state, schema). Add ?agent to the URL to turn off autosave, analytics and the offline cache

How it works

The editor is Vite, React 19, Tailwind and Nanostores. The engine lives in src/engine/:

  • IconRenderer.ts orchestrates compositing. It rasterizes each layer, draws its shadow, resolves the specular placement and hands each glass layer everything already painted below it
  • LiquidGlass.ts is the WebGL2 renderer: a jump-flood distance field of the layer's silhouette, ping-pong framebuffers for the blur (RGBA16F when supported, skipped when Blur is off), then the glass composite pass
  • shaders/ holds the GLSL ES 3.00 sources. The composite pass computes refraction, dispersion, translucency and the edge highlights and dark edges
  • glassContract.ts holds the material constants: highlight table, refraction and blur limits, layer shadow
  • IconDocument.ts reads and writes Icon Composer .icon documents

The agent API lives in src/agent/, the CLI and local MCP server in scripts/agent/, and the remote MCP endpoint in api/mcp.ts.

來源:README.md,提交 4edfb44

工具

3

liquid_schema

Recipe schema

JSON Schema of recipes and layer patches, and the guide.

無需輸入參數。

liquid_validate

Validate recipe

Check a recipe without opening it; returns ok or the list of issues with their paths.

輸入參數recipe必填

liquid_open

Open in Liquid Composer

Turn a recipe into a link that opens the icon in Liquid Composer. The link carries the recipe in its URL fragment, so opening it does not send the recipe to a server. Images must be inline SVG markup or data: URLs.

輸入參數recipe必填

版本歷史

1
  1. v2.1.0最新Nov 3, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分