@neyasbltb_88/figbridge 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -15
- package/bin/darwin-amd64/figbridge +0 -0
- package/bin/darwin-arm64/figbridge +0 -0
- package/bin/linux-amd64/figbridge +0 -0
- package/bin/linux-arm64/figbridge +0 -0
- package/bin/windows-amd64/figbridge.exe +0 -0
- package/bin/windows-arm64/figbridge.exe +0 -0
- package/package.json +9 -3
package/README.md
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
# figbridge
|
|
2
2
|
|
|
3
|
+
**English** | [Русский](README.ru.md)
|
|
4
|
+
|
|
3
5
|
Figma MCP — Free, No Rate Limits
|
|
4
6
|
|
|
5
|
-
Open-source Figma MCP server with full read/write access via plugin — no REST API, no rate limits. Turn text into designs and designs into real code. Works with Cursor,
|
|
7
|
+
Open-source Figma MCP server with full read/write access via plugin — no REST API, no rate limits. Turn text, pictures, HTML, or PSD into editable Figma designs and designs into real code. Works with Claude Code, OpenCode, Cursor, VS Code, GitHub Copilot, and any MCP-compatible AI tool.
|
|
6
8
|
|
|
7
9
|
**Highlights**
|
|
8
10
|
- No Figma API token required
|
|
9
11
|
- No rate limits — free plan friendly
|
|
10
|
-
- **Read and Write** live Figma data via plugin bridge
|
|
11
|
-
-
|
|
12
|
+
- **Read and Write** live Figma data via local plugin bridge
|
|
13
|
+
- Declarative `create_tree` builder and `use_figma` JS runtime (compatible with Figma's `figma-use` / `$fig`)
|
|
14
|
+
- Lay out editable screens from **plain images/screenshots** (`inspect_image`, auto-layout, components) as well as one-pass **HTML** (`html_to_tree`) and **PSD/PSB** (`psd_to_tree`) conversion
|
|
15
|
+
- Built-in layout quality checks (`lint_layout`, `score_layout`) and embedded skills
|
|
16
|
+
- Supports multiple AI tools simultaneously (leader election on port 1994)
|
|
12
17
|
- Written in Go, distributed via npm
|
|
13
18
|
|
|
14
|
-
https://github.com/user-attachments/assets/17bda971-0e83-4f18-8758-8ac2b8dcba62
|
|
15
|
-
|
|
16
19
|
---
|
|
17
20
|
|
|
18
21
|
## Why this exists
|
|
19
22
|
|
|
20
|
-
Most Figma MCP servers rely on the **Figma REST API
|
|
21
|
-
|
|
22
|
-
That sounds fine… until you hit this:
|
|
23
|
+
Most Figma MCP servers rely on the **Figma REST API**, which is read-only and imposes strict rate limits:
|
|
23
24
|
|
|
24
25
|
| Plan | Limit |
|
|
25
26
|
|------|-------|
|
|
@@ -27,10 +28,7 @@ That sounds fine… until you hit this:
|
|
|
27
28
|
| Pro / Org (Dev seat) | 200 tool calls/day |
|
|
28
29
|
| Enterprise | 600 tool calls/day |
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
I didn't have enough money to pay for higher limits.
|
|
33
|
-
So I built something that **doesn't use the API at all**.
|
|
31
|
+
Experimenting with AI tools burns through that quota in minutes. `figbridge` **doesn't use the REST API at all** — it connects directly to the open Figma file through a local plugin over WebSocket for full read/write access with no API token and no rate limits.
|
|
34
32
|
|
|
35
33
|
---
|
|
36
34
|
|
|
@@ -103,13 +101,40 @@ The plugin window follows Figma's theme and shows the connection, the plugin's a
|
|
|
103
101
|
|
|
104
102
|
---
|
|
105
103
|
|
|
104
|
+
## Example Prompts
|
|
105
|
+
|
|
106
|
+
Once the plugin is connected, you can ask your AI tool in plain language. Examples for the main workflows:
|
|
107
|
+
|
|
108
|
+
**Lay out a screen from an image or screenshot**
|
|
109
|
+
> Lay out `reference.png` on a new Figma page using auto-layout and components for repeated elements. Measure the image with `inspect_image`, extract any photos from it, and verify the result with `score_layout` (target 85+).
|
|
110
|
+
|
|
111
|
+
**Convert an HTML page to Figma**
|
|
112
|
+
> Convert `landing.html` into an editable Figma layout via `html_to_tree`, check for any missing fonts, build the tree on the current page, and compare against the reference with `score_layout`.
|
|
113
|
+
|
|
114
|
+
**Convert a Photoshop `.psd` / `.psb` file to Figma**
|
|
115
|
+
> Import `design.psd` into Figma using `psd_to_tree` and `create_tree`, list any fallback warnings or missing fonts, and verify the resulting frame with `score_layout`.
|
|
116
|
+
|
|
117
|
+
**Create a UI section or component system from a description**
|
|
118
|
+
> Build a pricing section with 3 plan cards (Free, Pro, Enterprise) and a Monthly/Yearly toggle. Turn the card into a component with variants and text/boolean properties, and lay out the section with auto-layout.
|
|
119
|
+
|
|
120
|
+
**Inspect a Figma design and turn it into code**
|
|
121
|
+
> Inspect the currently selected frame in Figma (`get_design_context`, `get_styles`, `get_variable_defs`, `get_screenshot`) and implement it as a responsive React/Tailwind component matching the exact spacing, typography, and colors.
|
|
122
|
+
|
|
123
|
+
**Audit and fix an existing layout**
|
|
124
|
+
> Run `lint_layout` on the selected frame and fix all structural issues — replace manual x/y positioning with auto-layout (`wrap_in_auto_layout`), merge split text lines, convert repeated cards into component instances, and give layers meaningful names.
|
|
125
|
+
|
|
126
|
+
**Run bulk edits via Plugin API (`use_figma`)**
|
|
127
|
+
> Using `use_figma`, find all text nodes on the current page with font size 14 and color `#666666`, bind them to the `Text/Muted` local style, and rename their parent frames to match their section headings.
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
106
131
|
## Skills
|
|
107
132
|
|
|
108
133
|
Skills teach the model how to use the tools well — above all, how to lay out a screen from a picture so that the result is editable: auto-layout instead of hand-set positions, one text node per paragraph, components and instances for everything that repeats.
|
|
109
134
|
|
|
110
135
|
| Skill | Load it |
|
|
111
136
|
|-------|---------|
|
|
112
|
-
| `figma-layout` | before laying out a screen, a section or a card from a picture or a description |
|
|
137
|
+
| `figma-layout` | before laying out a screen, a section or a card from a picture, an HTML/PSD file, or a description |
|
|
113
138
|
| `figma-components` | before building anything that repeats or has states |
|
|
114
139
|
| `figma-plugin-api` | before the first `use_figma` call that changes the file |
|
|
115
140
|
| `figma-read` | before inspecting or analysing a design |
|
|
@@ -150,7 +175,7 @@ Clients without skill support read the `instructions` and fetch a skill as the r
|
|
|
150
175
|
|
|
151
176
|
### Results
|
|
152
177
|
|
|
153
|
-
Three reference screens ([`benchmark/`](benchmark/)) laid out from a picture, scored by `lint_layout` (structure, out of 66):
|
|
178
|
+
Three reference screens ([`benchmark/`](benchmark/README.md)) laid out from a picture, scored by `lint_layout` (structure, out of 66):
|
|
154
179
|
|
|
155
180
|
| Model | without skills | with skills |
|
|
156
181
|
|-------|----------------|-------------|
|
|
@@ -320,7 +345,7 @@ Screenshots (`node.screenshot()`, `get_screenshot`, `save_screenshots`) need the
|
|
|
320
345
|
|
|
321
346
|
| Tool | Description |
|
|
322
347
|
|------|-------------|
|
|
323
|
-
| `create_tree` | Build a whole section or screen in one call from a JSON tree of nodes — or from `treePath`, a tree.json on disk (
|
|
348
|
+
| `create_tree` | Build a whole section or screen in one call from a JSON tree of nodes — or from `treePath`, a tree.json on disk (from `html_to_tree` or `psd_to_tree`), with a short answer and `keys` picking the ids to return; repeated items as components and instances; optional `unwrap: true` on the root promotes its children directly onto the parent; optional `lines` on text nodes checks line-wrap count (`text-wrap-mismatch` in `lint_layout`) |
|
|
324
349
|
| `create_frame` | Create a frame with optional auto-layout, fill, and parent — only with `--tools all` |
|
|
325
350
|
| `create_rectangle` | Create a rectangle with optional fill and corner radius — only with `--tools all` |
|
|
326
351
|
| `create_ellipse` | Create an ellipse or circle — only with `--tools all` |
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neyasbltb_88/figbridge",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Open-source Figma MCP server with full read/write access via local plugin — no API key, no rate limits, layout from images/HTML/PSD, linting and skills",
|
|
5
5
|
"mcpName": "io.github.neyasbltb88/figbridge",
|
|
6
6
|
"bin": {
|
|
7
7
|
"figbridge": "bin/run.js"
|
|
@@ -20,8 +20,14 @@
|
|
|
20
20
|
"mcp",
|
|
21
21
|
"model-context-protocol",
|
|
22
22
|
"ai",
|
|
23
|
-
"design"
|
|
23
|
+
"design",
|
|
24
|
+
"figma-plugin",
|
|
25
|
+
"html-to-figma",
|
|
26
|
+
"psd-to-figma",
|
|
27
|
+
"auto-layout",
|
|
28
|
+
"skills"
|
|
24
29
|
],
|
|
30
|
+
"author": "neyasbltb88",
|
|
25
31
|
"license": "MIT",
|
|
26
32
|
"repository": {
|
|
27
33
|
"type": "git",
|