{"id":13727259,"url":"https://github.com/jemgold/figma-js","last_synced_at":"2025-04-04T14:09:58.132Z","repository":{"id":30964067,"uuid":"126510620","full_name":"jemgold/figma-js","owner":"jemgold","description":"Little wrapper (+ types) for the Figma API","archived":false,"fork":false,"pushed_at":"2024-03-14T21:31:15.000Z","size":829,"stargazers_count":484,"open_issues_count":11,"forks_count":45,"subscribers_count":10,"default_branch":"main","last_synced_at":"2024-05-23T07:42:02.081Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://jongold.github.io/figma-js/","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/jemgold.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","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":"2018-03-23T16:21:30.000Z","updated_at":"2024-08-03T01:29:46.855Z","dependencies_parsed_at":"2024-01-06T07:57:40.624Z","dependency_job_id":"75fe8f7a-dacd-40c0-9eb0-764bcc99e29a","html_url":"https://github.com/jemgold/figma-js","commit_stats":{"total_commits":137,"total_committers":29,"mean_commits":4.724137931034483,"dds":0.656934306569343,"last_synced_commit":"16fe2adba5edace6652731156be7b706b2ae0d52"},"previous_names":["jongold/figma-js"],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jemgold%2Ffigma-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jemgold%2Ffigma-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jemgold%2Ffigma-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jemgold%2Ffigma-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jemgold","download_url":"https://codeload.github.com/jemgold/figma-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246863293,"owners_count":20846225,"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-08-03T01:03:46.636Z","updated_at":"2025-04-04T14:09:58.091Z","avatar_url":"https://github.com/jemgold.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Rest API integrations"],"sub_categories":[],"readme":"# Figma.js\n\nA simple wrapper for the Figma API.\n\nCool projects using this:\n- [figma-graphql](https://github.com/braposo/figma-graphql)\n- [figmint](https://github.com/tiltshift/figmint)\n\n## Usage\n\n[Full documentation](https://jemgold.github.io/figma-js) is available on the web and most everything is typed with TypeScript.\n\n### Creating a client\n\nQuickest start is to grab a personal access token from your Figma account settings page\n\n```typescript\nimport * as Figma from 'figma-js';\n\nconst token = '12345';\n\nconst client = Figma.Client({\n  personalAccessToken: token\n});\n```\n\nOr if you're building an app with OAuth authentication, after you get back the OAuth access token…\n\n```typescript\nimport * as Figma from 'figma-js';\n\nconst token = '12345';\n\nconst client = Figma.Client({\n  accessToken: token\n});\n```\n\n### Doing cool things\n\nOnce you have instantiated a client, have fun!\n\n```typescript\nclient.file('file-id').then(({ data }) =\u003e {\n  console.log(data);\n});\n```\n\n### Just reusing types\n\nAll of the types in the Figma file format / API are exported.\n\n```typescript\nimport * as Figma from 'figma-js';\n\nconst textNode: Figma.Text = {\n  // … this should autocomplete if your editor is set up for it!\n};\n```\n\n## Contributing\n\nWe used the [`typescript-starter`](https://github.com/bitjson/typescript-starter) repo for this - refer to its README for more detailed instructions.\n\nHelpful development commands:\n\n```sh\nyarn watch\nyarn docs\nyarn docs:publish\n```\n\n### Contributions welcomed\n\n* [ ] [generate types automatically](https://github.com/jemgold/figma-js/issues/1)\n* [ ] [add tests](https://github.com/jemgold/figma-js/issues/2)\n\n### Committing\n\n```sh\nyarn global add commitizen\n\n# instead of git commit\n\ngit cz\n```\n\n## Contributors\n\n* [@jemgold](https://github.com/jemgold/) (Airbnb)\n* [@chrisdrackett](https://github.com/chrisdrackett/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjemgold%2Ffigma-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjemgold%2Ffigma-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjemgold%2Ffigma-js/lists"}