Skip to content

Commit efe52cb

Browse files
committed
Rename Figma plugin for Studio
1 parent 1cfafeb commit efe52cb

20 files changed

Lines changed: 70 additions & 70 deletions

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Start here before changing skills, generator code, verification contracts, or ge
2020
| [Generated outputs](generated-outputs.md) | Generated package matrix, build pipeline, generated-output contracts, MCP config shape, telemetry MCP tool reference, verifier expectations, and Cursor export contract. | Change or review generated files under `plugins/`, add a surface, or reason about package artifacts. |
2121
| [Skills and integrations](skills-and-integrations.md) | Skill inventory, Studio integration concepts, MCP contracts, relationship to WordPress agent skills packaging, and safe extension boundaries. | Update shared skills, Studio guidance, or agent integration behavior. |
2222
| [Contributor workflows](contributor-workflows.md) | Setup, commands, change recipes, manual smoke testing, CI automation contracts, and pull request checklist. | Prepare, verify, and review a repository change. |
23-
| [Figma to WordPress](figma-playground-runner.md) | Figma plugin handoff to a WordPress Playground runner for Static Site Importer and Blocks Engine. | Review or test the Figma-to-HTML-to-WordPress integration path. |
23+
| [Figma to WordPress Studio](figma-studio-runner.md) | Figma plugin handoff to a WordPress Studio runner for Static Site Importer and Blocks Engine. | Review or test the Figma-to-HTML-to-WordPress integration path. |
2424

2525
## Repository source inventory
2626

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Figma to WordPress
1+
# Figma to WordPress Studio
22

3-
`plugins/figma-to-wordpress` moves a Figma file into WordPress. It hands the design to a WordPress runner service that creates a Playground session and imports the result with Static Site Importer and Blocks Engine.
3+
`plugins/figma-to-wordpress-studio` moves a Figma file into WordPress. It hands the design to a WordPress runner service that creates a Studio session and imports the result with Static Site Importer and Blocks Engine.
44

55
## Architecture
66

@@ -9,11 +9,11 @@ Figma plugin UI
99
-> Figma document scene data
1010
-> runner request
1111
-> WordPress runner service
12-
-> WordPress Playground session URL
12+
-> WordPress Studio session URL
1313
-> Static Site Importer / Blocks Engine inside WordPress
1414
```
1515

16-
The TypeScript boundary stops at request construction and opening the returned Playground URL. WordPress, PHP, Static Site Importer, Blocks Engine, and Playground session orchestration remain WordPress-side runtime concerns.
16+
The TypeScript boundary stops at request construction and opening the returned Studio URL. WordPress, PHP, Static Site Importer, Blocks Engine, and Studio session orchestration remain WordPress-side runtime concerns.
1717

1818
## Figma Iframe Limits
1919

@@ -29,9 +29,9 @@ Practical constraints for this browser-based flow:
2929

3030
Because of those constraints, the primary integration shape is a service handoff: the plugin posts a runner request and opens the returned URL in a browser tab. If in-plugin embedding works later, it can consume the same runner response interface.
3131

32-
## Playground And PHP Role
32+
## Studio And PHP Role
3333

34-
WordPress Playground is the correct place to run WordPress and PHP plugin logic. It provides a browser-hosted WordPress runtime backed by WebAssembly PHP and a virtual filesystem.
34+
WordPress Studio is the correct place to run WordPress and PHP plugin logic. It provides a browser-hosted WordPress runtime backed by WebAssembly PHP and a virtual filesystem.
3535

3636
Static Site Importer and Blocks Engine should run in that WordPress runtime because they are WordPress/PHP import systems. The Figma plugin should not reimplement them in TypeScript. The plugin's job is to hand off design data with enough metadata for the WordPress runner to transform, install, activate, and import with those plugins.
3737

@@ -40,32 +40,32 @@ Static Site Importer and Blocks Engine should run in that WordPress runtime beca
4040
Implemented now:
4141

4242
- `GeneratedWebsiteArtifact` for static generated files from Figma.
43-
- `figma-to-wordpress/runner-request/v1` for the runner handoff plan.
44-
- A Figma UI client that posts the runner request and opens the returned Playground URL.
43+
- `figma-to-wordpress-studio/runner-request/v1` for the runner handoff plan.
44+
- A Figma UI client that posts the runner request and opens the returned Studio URL.
4545

4646
Not implemented yet:
4747

48-
- The hosted WordPress runner endpoint that creates the Playground session.
48+
- The hosted WordPress runner endpoint that creates the Studio session.
4949
- Post-import block validation and visual parity checks.
5050

5151
## Local Testing
5252

5353
From the repository root, run the plugin checks:
5454

5555
```bash
56-
npm run check --prefix plugins/figma-to-wordpress
57-
npm run build --prefix plugins/figma-to-wordpress
58-
npm test --prefix plugins/figma-to-wordpress
56+
npm run check --prefix plugins/figma-to-wordpress-studio
57+
npm run build --prefix plugins/figma-to-wordpress-studio
58+
npm test --prefix plugins/figma-to-wordpress-studio
5959
```
6060

6161
Figma development test:
6262

63-
1. Run `npm run build --prefix plugins/figma-to-wordpress`.
64-
2. Load `plugins/figma-to-wordpress/manifest.json` as a Figma development plugin.
63+
1. Run `npm run build --prefix plugins/figma-to-wordpress-studio`.
64+
2. Load `plugins/figma-to-wordpress-studio/manifest.json` as a Figma development plugin.
6565
3. Run the plugin.
66-
4. Use `Open in WordPress Playground`.
67-
5. Confirm the runner service returns a Playground URL that opens in a normal browser tab.
66+
4. Use `Open in WordPress Studio`.
67+
5. Confirm the runner service returns a Studio URL that opens in a normal browser tab.
6868

6969
## Next Integration Step
7070

71-
The next meaningful step is a hosted WordPress runner endpoint with progress/error reporting around the Playground import and post-import block/visual validation. That should remain in the WordPress/Playground runner layer, not by porting PHP importer behavior into the Figma plugin.
71+
The next meaningful step is a hosted WordPress runner endpoint with progress/error reporting around the Studio import and post-import block/visual validation. That should remain in the WordPress/Studio runner layer, not by porting PHP importer behavior into the Figma plugin.
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Figma to WordPress
1+
# Figma to WordPress Studio
22

3-
This plugin moves a Figma file into WordPress by handing the design to a WordPress runner service that imports it with Static Site Importer and Blocks Engine in WordPress Playground.
3+
This plugin moves a Figma file into WordPress by handing the design to a WordPress runner service that imports it with Static Site Importer and Blocks Engine in WordPress Studio.
44

5-
It does not port Static Site Importer, Blocks Engine, WordPress, PHP, or Playground internals to TypeScript. The TypeScript code extracts Figma scene data, prepares the runner request, and opens the Playground session URL returned by the WordPress-side runner.
5+
It does not port Static Site Importer, Blocks Engine, WordPress, PHP, or Studio internals to TypeScript. The TypeScript code extracts Figma scene data, prepares the runner request, and opens the Studio session URL returned by the WordPress-side runner.
66

77
## Flow
88

@@ -11,17 +11,17 @@ Figma plugin controller + UI
1111
-> whole Figma document scene data
1212
-> runner request
1313
-> WordPress runner service
14-
-> WordPress Playground session
14+
-> WordPress Studio session
1515
-> Static Site Importer imports through Blocks Engine
1616
```
1717

1818
## Boundaries
1919

2020
- Implemented: a Figma Desktop-loadable plugin shell with whole-file export.
2121
- Implemented: a reusable scene-to-HTML/CSS artifact generator with diagnostics and tests for the current local handoff.
22-
- Implemented: a product-neutral runner request that can be posted to a WordPress-side Playground session service.
22+
- Implemented: a product-neutral runner request that can be posted to a WordPress-side Studio session service.
2323
- Not implemented: running Static Site Importer from TypeScript.
24-
- Not implemented: the hosted WordPress runner endpoint that creates the Playground session and returns its URL.
24+
- Not implemented: the hosted WordPress runner endpoint that creates the Studio session and returns its URL.
2525
- Not implemented: automated visual parity/block validation after import.
2626

2727
## Files
@@ -36,21 +36,21 @@ Figma plugin controller + UI
3636

3737
## Local Test
3838

39-
1. Run `npm run build --prefix plugins/figma-to-wordpress`.
40-
2. In Figma Desktop, use Plugins -> Development -> Import plugin from manifest, then select `plugins/figma-to-wordpress/manifest.json`.
41-
3. Open the plugin and choose `Open in WordPress Playground`.
42-
4. Confirm the WordPress runner service returns a Playground URL and the plugin opens it in a browser tab.
39+
1. Run `npm run build --prefix plugins/figma-to-wordpress-studio`.
40+
2. In Figma Desktop, use Plugins -> Development -> Import plugin from manifest, then select `plugins/figma-to-wordpress-studio/manifest.json`.
41+
3. Open the plugin and choose `Open in WordPress Studio`.
42+
4. Confirm the WordPress runner service returns a Studio URL and the plugin opens it in a browser tab.
4343

4444
For quick syntax verification without a full Figma build pipeline:
4545

4646
```bash
47-
npm run check --prefix plugins/figma-to-wordpress
48-
npm run build --prefix plugins/figma-to-wordpress
49-
npm test --prefix plugins/figma-to-wordpress
47+
npm run check --prefix plugins/figma-to-wordpress-studio
48+
npm run build --prefix plugins/figma-to-wordpress-studio
49+
npm test --prefix plugins/figma-to-wordpress-studio
5050
```
5151

5252
## Runner Boundary
5353

54-
Figma plugin UIs run in a constrained iframe-like environment. Cross-origin iframes, WASM boot, popup behavior, and navigation can be restricted depending on host context and plugin permissions. The supported boundary is a WordPress-side runner service: the plugin posts a runner request, the service creates the Playground session, and the plugin opens the returned URL.
54+
Figma plugin UIs run in a constrained iframe-like environment. Cross-origin iframes, WASM boot, popup behavior, and navigation can be restricted depending on host context and plugin permissions. The supported boundary is a WordPress-side runner service: the plugin posts a runner request, the service creates the Studio session, and the plugin opens the returned URL.
5555

56-
See [`../../docs/figma-playground-runner.md`](../../docs/figma-playground-runner.md) for the integration notes.
56+
See [`../../docs/figma-studio-runner.md`](../../docs/figma-studio-runner.md) for the integration notes.

plugins/figma-to-wordpress/fixtures/sample-scene.json renamed to plugins/figma-to-wordpress-studio/fixtures/sample-scene.json

File renamed without changes.

plugins/figma-to-wordpress/manifest.json renamed to plugins/figma-to-wordpress-studio/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "Figma to WordPress",
3-
"id": "figma-to-wordpress",
2+
"name": "Figma to WordPress Studio",
3+
"id": "figma-to-wordpress-studio",
44
"api": "1.0.0",
55
"main": "dist/code.js",
66
"ui": "dist/ui.html",

plugins/figma-to-wordpress/package-lock.json renamed to plugins/figma-to-wordpress-studio/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/figma-to-wordpress/package.json renamed to plugins/figma-to-wordpress-studio/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "figma-to-wordpress",
2+
"name": "figma-to-wordpress-studio",
33
"version": "0.1.0",
44
"private": true,
5-
"description": "Figma Desktop plugin for importing a Figma file into WordPress through WordPress Playground.",
5+
"description": "Figma Desktop plugin for importing a Figma file into WordPress through WordPress Studio.",
66
"license": "GPL-2.0-or-later",
77
"scripts": {
88
"build": "node scripts/build.mjs",

plugins/figma-to-wordpress/scripts/build.mjs renamed to plugins/figma-to-wordpress-studio/scripts/build.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if (watch) {
4545
await controllerContext.watch();
4646
await uiContext.watch();
4747
await writeUiHtml();
48-
console.log("Watching Figma to WordPress plugin sources.");
48+
console.log("Watching Figma to WordPress Studio plugin sources.");
4949
} else {
5050
await Promise.all([
5151
esbuild.build({

plugins/figma-to-wordpress/src/code.ts renamed to plugins/figma-to-wordpress-studio/src/code.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { NormalizedAsset, NormalizedDocument, NormalizedSceneNode, PluginTo
33

44
figma.showUI(__html__, { width: 420, height: 420, themeColors: true });
55

6-
const runnerEndpointStorageKey = "figma-to-wordpress-runner-endpoint";
6+
const runnerEndpointStorageKey = "figma-to-wordpress-studio-runner-endpoint";
77

88
function postToUi(message: PluginToUiMessage) {
99
figma.ui.postMessage(message);
File renamed without changes.

0 commit comments

Comments
 (0)