{"id":16584009,"url":"https://github.com/pocka/figspec","last_synced_at":"2025-03-31T07:08:30.123Z","repository":{"id":38304492,"uuid":"303594849","full_name":"pocka/figspec","owner":"pocka","description":"Unofficial Figma spec viewer: Live Embed Kit - Live + Guides + Inspector","archived":false,"fork":false,"pushed_at":"2024-02-27T08:16:13.000Z","size":3081,"stargazers_count":45,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-18T08:43:56.877Z","etag":null,"topics":["figma","webcomponents"],"latest_commit_sha":null,"homepage":"https://pocka.github.io/figspec/","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/pocka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-10-13T05:13:41.000Z","updated_at":"2024-06-18T11:07:34.727Z","dependencies_parsed_at":"2024-02-27T10:11:45.414Z","dependency_job_id":null,"html_url":"https://github.com/pocka/figspec","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocka%2Ffigspec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocka%2Ffigspec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocka%2Ffigspec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocka%2Ffigspec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pocka","download_url":"https://codeload.github.com/pocka/figspec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429484,"owners_count":20775807,"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","webcomponents"],"created_at":"2024-10-11T22:43:43.912Z","updated_at":"2025-03-31T07:08:30.088Z","avatar_url":"https://github.com/pocka.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @figspec/components\n\n[![npm version](https://img.shields.io/npm/v/%40figspec/components)](https://www.npmjs.com/package/@figspec/components)\n[![docs HTML (with demo)](\u003chttps://img.shields.io/badge/docs-HTML%20(with%20demo)-e67700\u003e)\n](https://pocka.github.io/figspec/)\n\n`@figspec/components` is a set of CustomElements that renders Figma file/frame and displays Figma's editor-like inspector for a selected node.\n\nThe components are designed to work on Figma REST API result.\nThis library does not provided a functionality to invoke Figma REST API endpoints.\n\n## Installation\n\n```sh\n$ npm i @figspec/components\n```\n\nThis library does not provide bundled script. Please use CDN or bundle on your own.\n\n## Usage\n\nImport the entry script (`import '@figspec/components'`) and it'll register our custom elements.\nThen you can now use these on your page.\n\n```html\n\u003cbody\u003e\n  \u003cfigspec-frame-viewer id=\"figma_frame\"\u003e\u003c/figspec-frame-viewer\u003e\n\u003c/body\u003e\n```\n\n```js\n// your script.js\nimport \"@figspec/components\";\n\nconst figmaFrame = document.getElementById(\"figma_frame\")\n\nfigmaFrame.apiResponse = /* ... */;\nfigmaFrame.renderedImage = /* ... */;\n```\n\nTo display an entire Figma File, use `\u003cfigspec-file-viewer\u003e` instead.\n\n```html\n\u003cbody\u003e\n  \u003cfigspec-file-viewer id=\"figma_file\"\u003e\u003c/figspec-file-viewer\u003e\n\u003c/body\u003e\n```\n\n```js\n// your script.js\nimport \"@figspec/components\";\n\nconst figmaFile = document.getElementById(\"figma_file\")\n\nfigmaFrame.apiResponse = /* ... */;\nfigmaFrame.renderedImages = /* ... */;\n```\n\nTo see working examples and API docs, please check out [the docs site](https://pocka.github.io/figspec/).\n\n## Browser supports\n\nThis library works on browser implementing WebComponents v1 spec and ES2019.\nThe bundled files are at `esm/es2019`.\n\n## Related packages\n\n- [`@figspec/react`](https://github.com/pocka/figspec-react) ... React bindings for this package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocka%2Ffigspec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpocka%2Ffigspec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocka%2Ffigspec/lists"}