Skip to content

kit 1.0.0

Choose a tag to compare

@RedFoxxo RedFoxxo released this 19 Nov 15:59
· 14 commits to stable since this release
  • Read tools: read_outline, read_frame_text, read_search,
    read_comments, read_structure, read_styles, read_render.
  • File snapshots cached on disk per version; renders cached per version.
  • Answers paged at 20,000 characters with an offset to continue.
  • Bridge to the "kit bridge" Figma plugin over a loopback WebSocket
    (ports 7380–7389), read_bridge status and kit plugin to install the plugin.
  • Write tools through the plugin: write_props (texts, paints, effects,
    auto layout, styles, component properties), write_create (nested trees in
    one call), delete_nodes, exec_run; each call is one undo step in Figma.
  • write_comment posts comments and replies through the REST API.
  • read_render exports live through the plugin when it runs in the file.
  • Reads made before Figma's API shows a plugin edit are flagged as stale.
  • An outdated plugin is refused with instructions to update it.
  • read_bridge lists the selected nodes, so "what I selected" can be read or
    edited by id.
  • read_styles includes local variables with a value per mode, read through
    the plugin (Figma's REST variables API needs an Enterprise plan).
  • Images from a file path or URL as node fills (image prop); kit reads them,
    since the plugin has no file or network access.
  • Mixed text styles with textRanges (by substring or character range).
  • write_create builds components and variant sets; component: true turns
    an existing node into a component.
  • select: true selects the created or changed nodes and brings them into view.

Install or update: npx -y @redfoxxo/kit@1 picks up 1.x releases. Setup for each client is in the README.

npm: https://www.npmjs.com/package/@redfoxxo/kit