{"id":17869456,"url":"https://github.com/gridaco/figma-view","last_synced_at":"2025-10-06T12:30:28.922Z","repository":{"id":47815005,"uuid":"516282019","full_name":"gridaco/figma-view","owner":"gridaco","description":"React figma renderer component","archived":false,"fork":false,"pushed_at":"2023-07-30T15:10:18.000Z","size":62,"stargazers_count":11,"open_issues_count":3,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-23T00:01:13.118Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://grida.co/figma-view","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/gridaco.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}},"created_at":"2022-07-21T08:09:57.000Z","updated_at":"2024-05-08T08:58:06.000Z","dependencies_parsed_at":"2023-02-09T20:01:04.899Z","dependency_job_id":"d9d768df-9785-44dc-9eab-d92662417bd3","html_url":"https://github.com/gridaco/figma-view","commit_stats":{"total_commits":23,"total_committers":3,"mean_commits":7.666666666666667,"dds":"0.34782608695652173","last_synced_commit":"3eae415c60082a6b643e8436a2fe7925b0638110"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridaco%2Ffigma-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridaco%2Ffigma-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridaco%2Ffigma-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridaco%2Ffigma-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gridaco","download_url":"https://codeload.github.com/gridaco/figma-view/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235225230,"owners_count":18955818,"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":[],"created_at":"2024-10-28T10:05:25.752Z","updated_at":"2025-10-06T12:30:28.589Z","avatar_url":"https://github.com/gridaco.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# figma-view\nReact figma renderer component\n\n```\nyarn add figma-view\n```\n\n## Backends\n**html-backend**\n\ndraws figma document using standard html elements\n\n**canvas-backend**\n\ndraws figma document on html5 canvas\n\n**iframe-backend**\n\nA simlpe figma embeding wrapper\n\n\n## Usage\n\n\nBasic usage\n```tsx\nimport React from \"react\"\nimport FigmaView from \"figma-view\"\n\n// with url\nexport default funtion (){\n  return \u003cFigmaView url=\"https://figma.com/files/xxx?node-id=xxx\" fallback={\u003c\u003eLoading..\u003c/\u003e} cached/\u003e\n}\n\n// with data json\nexport default funtion (){\n  return \u003cFigmaView data={frameNode} fallback={\u003c\u003eLoading..\u003c/\u003e} fromapi/\u003e\n}\n```\n\nData from plugin api\n```tsx\n\u003cFigmaView data={frameNode} fallback={\u003c\u003eLoading..\u003c/\u003e} fromplugin/\u003e\n```\n\nData from rest api\n```tsx\n\u003cFigmaView data={frameNode} fallback={\u003c\u003eLoading..\u003c/\u003e} fromapi/\u003e\n// or.. by default the from api is set to true.\n\u003cFigmaView data={frameNode} fallback={\u003c\u003eLoading..\u003c/\u003e}/\u003e\n```\n\n\nUsing Nodes\n```tsx\nimport { Frame, Text, Autolayout } from \"figma-view\"\n\nexport function FigmaDesignMock(){\n  return (\n    \u003cFrame\u003e\n      \u003cAutolayout\u003e\n        \u003cText\u003e\n          This is a view made with figma-view\n        \u003c/Text\u003e\n      \u003c/Autolayout\u003e\n    \u003c/Frame\u003e\n  )\n}\n```\n\n\n## Authentication\n```tsx\nimport FigmaView, { FigmaAuthenticationProvider } from \"figma-view\"\n\nconst _figma_personal_access_token = process.env.FIGMA_PERSONAL_ACCESSTOKEN;\n\nexport default function (){\n  return (\n    \u003cFigmaAuthenticationProvider personalAccessToken={_figma_personal_access_token}\u003e\n      \u003cFigmaView url=\"https://figma.com/files/xxxx?node-id=xxx\"/\u003e\n    \u003c/FigmaAuthenticationProvider\u003e\n  );\n}\n\n// or with access token (not personal access token)\n// issue of access token is not done by this package. you can use `@design-sdk/figma-oauth` for that.\n\nexport default function (){\n  return (\n    \u003cFigmaAuthenticationProvider accessToken={accesstoken}\u003e\n      \u003cFigmaView url=\"https://figma.com/files/xxxx?node-id=xxx\"/\u003e\n    \u003c/FigmaAuthenticationProvider\u003e\n  );\n}\n\n```\n\n\n### Custom document provider (Proxy server)\nYou can host up your own proxy server for your needs with [figma-file-proxy-server](https://github.com/gridaco/figma-file-proxy-server)\n\n\n### References\n- [design-sdk](https://github.com/gridaco/design-sdk)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgridaco%2Ffigma-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgridaco%2Ffigma-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgridaco%2Ffigma-view/lists"}