{"id":18948316,"url":"https://github.com/sonnylazuardi/framer-sites-figma-plugin","last_synced_at":"2025-04-15T23:30:47.440Z","repository":{"id":45355607,"uuid":"484928713","full_name":"sonnylazuardi/framer-sites-figma-plugin","owner":"sonnylazuardi","description":"Build figma plugin with low code using framer sites","archived":false,"fork":false,"pushed_at":"2022-04-24T07:08:27.000Z","size":976,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-02T06:18:20.810Z","etag":null,"topics":["figma","framer","plugin","sites"],"latest_commit_sha":null,"homepage":"https://figmaplugin.framer.website/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sonnylazuardi.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-24T04:57:10.000Z","updated_at":"2024-03-06T13:22:49.000Z","dependencies_parsed_at":"2022-08-25T16:50:58.958Z","dependency_job_id":null,"html_url":"https://github.com/sonnylazuardi/framer-sites-figma-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonnylazuardi%2Fframer-sites-figma-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonnylazuardi%2Fframer-sites-figma-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonnylazuardi%2Fframer-sites-figma-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonnylazuardi%2Fframer-sites-figma-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sonnylazuardi","download_url":"https://codeload.github.com/sonnylazuardi/framer-sites-figma-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223688674,"owners_count":17186298,"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","framer","plugin","sites"],"created_at":"2024-11-08T13:13:14.182Z","updated_at":"2024-11-08T13:13:14.918Z","avatar_url":"https://github.com/sonnylazuardi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Framer Sites Figma Plugin \n\nBuild figma plugin with low code using framer sites\n\n![screen](screenshot.png)\n\n## Framer Sites\n\nDuplicate [this framer site](https://sites.framer.com/projects/new?duplicate=sUTqiLD13aV9nhuIt1gz)\n\n### Code Override\n\n`Examples.tsx`\n\n```typescript\nimport { figma, postFigmaMessage } from \"./FigmaApi.tsx\"\n\nexport function createPage(Component): ComponentType {\n    return (props) =\u003e {\n        return (\n            \u003cComponent\n                {...props}\n                onClick={async () =\u003e {\n                    postFigmaMessage(() =\u003e {\n                        figma.createPage()\n                    })\n                }}\n            /\u003e\n        )\n    }\n}\n```\n\nAssigning code override\n\n![assign](assign.png)\n\nAutocomplete\n\n![autocomplete](autocomplete.png)\n\n## Figma Plugin\n\nclone [figma plugin examples](https://github.com/figma/plugin-samples/tree/master/webpack-react): `webpack-react`\n\ninstall framer-sites-figma-plugin\n\n```\nyarn add framer-sites-figma-plugin\n```\n\n`ui.tsx`\n\n```typescript\nimport useFramerMessage from \"framer-sites-figma-plugin\";\n\nconst App = () =\u003e {\n  useFramerMessage();\n  return (\n    \u003ciframe\n      src=\"https://figmaplugin.framer.website/\" // your framer sites url\n      loading=\"lazy\"\n      style={{ width: \"100%\", height: \"100%\", border: \"none\" }}\n    \u003e\u003c/iframe\u003e\n  );\n};\n```\n\n`code.tsx`\n\n```typescript\nimport framerOnMessage from \"framer-sites-figma-plugin/lib/api\";\n\nfigma.ui.onmessage = (msg) =\u003e {\n  framerOnMessage(msg);\n};\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonnylazuardi%2Fframer-sites-figma-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonnylazuardi%2Fframer-sites-figma-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonnylazuardi%2Fframer-sites-figma-plugin/lists"}