{"id":13765134,"url":"https://github.com/react-figma/figma-api-stub","last_synced_at":"2025-09-19T15:32:19.762Z","repository":{"id":39618195,"uuid":"214228527","full_name":"react-figma/figma-api-stub","owner":"react-figma","description":"🤖 A stub implementation of Figma Plugins API.","archived":false,"fork":false,"pushed_at":"2024-07-09T15:53:46.000Z","size":334,"stargazers_count":46,"open_issues_count":7,"forks_count":14,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-29T21:05:28.580Z","etag":null,"topics":["figma","figma-plugins","testing"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/react-figma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-10T16:10:04.000Z","updated_at":"2024-07-09T15:53:50.000Z","dependencies_parsed_at":"2023-02-03T04:31:03.532Z","dependency_job_id":"8f46dd1d-ba34-4972-92af-e5be30e2a55f","html_url":"https://github.com/react-figma/figma-api-stub","commit_stats":{"total_commits":177,"total_committers":12,"mean_commits":14.75,"dds":0.4011299435028248,"last_synced_commit":"72ef901008a667a0c77e2b9ca684d7cb01d07bad"},"previous_names":[],"tags_count":54,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-figma%2Ffigma-api-stub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-figma%2Ffigma-api-stub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-figma%2Ffigma-api-stub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-figma%2Ffigma-api-stub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-figma","download_url":"https://codeload.github.com/react-figma/figma-api-stub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232827587,"owners_count":18582398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["figma","figma-plugins","testing"],"created_at":"2024-08-03T16:00:34.410Z","updated_at":"2025-09-19T15:32:14.450Z","avatar_url":"https://github.com/react-figma.png","language":"TypeScript","funding_links":[],"categories":["插件开发","TypeScript","Plugins development"],"sub_categories":[],"readme":"# Figma API Stub\n\n[![npm version](https://img.shields.io/npm/v/figma-api-stub.svg)](https://www.npmjs.com/package/figma-api-stub)\n[![CircleCI](https://circleci.com/gh/react-figma/figma-api-stub.svg?style=shield)](https://circleci.com/gh/react-figma/figma-api-stub)\n\nA stub implementation of [Figma Plugins API](https://www.figma.com/plugin-docs/intro/).\n\n```javascript\nimport {createFigma} from \"figma-api-stub\";\n\nconst figma = createFigma();\nconst rect = figma.createRectangle();\nrect.resize(100, 200);\n```\n\n---\n⚠️ Warning! It's not an official implementation, and it hasn't the purpose to fully reproduce Figma behavior and API.\n\n---\n\n## Installation\n\nInstall it with yarn:\n\n```\nyarn add figma-api-stub\n```\n\nOr with npm:\n\n```\nnpm i figma-api-stub --save\n```\n\n## API\n\n#### Stub api creation\n\n```javascript\ncreateFigma(): PluginAPI\n```\n\n## Used by\n\n- [react-figma](https://github.com/react-figma/react-figma)\n- [FigmaToCode](https://github.com/bernaferrari/FigmaToCode)\n- [figx](https://github.com/n0ruSh/figx)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-figma%2Ffigma-api-stub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-figma%2Ffigma-api-stub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-figma%2Ffigma-api-stub/lists"}