Skip to content

v0.3.0

Choose a tag to compare

@dannote dannote released this 18 Jan 18:14
· 246 commits to master since this release

Added

  • render command — render React/TSX components directly to Figma
    • From file: figma-use render ./Card.figma.tsx
    • From stdin: echo '<Frame style={{...}} />' | figma-use render --stdin
    • With props: --props '{"title": "Hello"}'
    • Into parent: --parent "1:23"
    • Dry run: --dryRun outputs NodeChanges JSON
  • Multiplayer WebSocket connection pooling in proxy
    • First render: ~4s (establishes connection)
    • Subsequent renders: ~0.4s (10x faster!)
    • Connections auto-close after 5min idle
  • React componentsFrame, Text, Rectangle, Ellipse, Line, Star, Polygon, Vector, Component, Instance, Group, Page, View
  • JSX intrinsic elements — PascalCase in JSX, lowercase in output
  • culori integration — robust color parsing (hex, rgb(), hsl(), named colors)
  • /render endpoint in proxy for direct NodeChanges submission
  • /status endpoint now shows multiplayer connection pool

Changed

  • Proxy now holds persistent WebSocket connections to Figma multiplayer
  • Architecture diagram updated to show dual communication paths
  • 143 tests passing

Fixed

  • TypeScript strict mode errors in tests
  • NodeChanges validation before sending (must have guid)