| title | Morphus |
|---|---|
| sdk | docker |
| app_port | 7860 |
| pinned | false |
Morphus converts HTML into editable Figma designs with a local HTML-first flow.
- Playwright renders the HTML and captures computed styles.
- The local pipeline resolves fonts, ordering, and Figma-ready layout data.
- A local server returns Figma-ready JSON.
- The Figma plugin builds the design from that JSON automatically.
npm install
npx playwright install chromium
npm run serverThen in Figma: open the Morphus plugin, paste or upload HTML, and click Convert & Build.
npm run convert -- --input ./tests/vela/input.html --output ./out/vela.json
npm run server
npm test
npm run snapshot:updateTo let other people use the plugin without running the local server, deploy the converter as a public HTTPS Node/Playwright service and update the plugin's converter URL. See docs/deployment.md.
tests/vela/expected-snapshot.json is the deterministic baseline for tests/vela/input.html.
scripts/convert.jsCLI conversionscripts/server.jslocal bridge for the pluginfigma-plugin/Figma UI and buildersrc/Playwright extraction and Figma mapping codetests/vela/fixture and snapshot