{"id":15021342,"url":"https://github.com/chuanqisun/figma-development-kit","last_synced_at":"2026-02-12T02:10:09.903Z","repository":{"id":57235322,"uuid":"140658567","full_name":"chuanqisun/figma-development-kit","owner":"chuanqisun","description":"A set of tools that augment the Figma API","archived":false,"fork":false,"pushed_at":"2019-11-12T03:17:06.000Z","size":24,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-14T00:41:38.776Z","etag":null,"topics":["figma","figma-api","oauth2","sdk"],"latest_commit_sha":null,"homepage":"https://chuanqisun.github.io/figma-development-kit/","language":"JavaScript","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/chuanqisun.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}},"created_at":"2018-07-12T03:54:34.000Z","updated_at":"2023-10-19T01:21:48.000Z","dependencies_parsed_at":"2022-08-31T14:11:23.614Z","dependency_job_id":null,"html_url":"https://github.com/chuanqisun/figma-development-kit","commit_stats":null,"previous_names":["chuanqisun/figma-developer-kit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chuanqisun/figma-development-kit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chuanqisun%2Ffigma-development-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chuanqisun%2Ffigma-development-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chuanqisun%2Ffigma-development-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chuanqisun%2Ffigma-development-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chuanqisun","download_url":"https://codeload.github.com/chuanqisun/figma-development-kit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chuanqisun%2Ffigma-development-kit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29354717,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T01:03:07.613Z","status":"online","status_checked_at":"2026-02-12T02:00:06.911Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-api","oauth2","sdk"],"created_at":"2024-09-24T19:56:28.384Z","updated_at":"2026-02-12T02:10:09.886Z","avatar_url":"https://github.com/chuanqisun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## OAuth2\n[demo](https://chuanqisun.github.io/figma-development-kit/demo/auth-demo.html) | [src](https://github.com/chuanqisun/figma-development-kit/blob/master/demo/auth-demo.html)\n\n### Quick start\nDownload [`callback.html`](https://raw.githubusercontent.com/chuanqisun/figma-development-kit/master/dist/callback.html) and add it to your project. Make sure you add the url of the callback file to your [Figma developer settings page](https://www.figma.com/developers/apps). Learn more by reading the  [Figma OAuth2 setup guide](https://www.figma.com/developers/docs#auth-oauth).\n\nDirectly use in browser\n```html\n\u003cscript src=\"https://unpkg.com/figma-development-kit@^1/dist/fdk.umd.js\"\u003e\u003c/script\u003e\n```\n```js\nconst figmaApi = new fdk.FigmaApi({\n  clientId: '\u003cFIGMA_CLIENT_ID\u003e',\n  clientSecrete: '\u003cFIGMA_CLIENT_SECRETE\u003e',\n  /* e.g. http://localhost:5000/callback.html or https://www.my-awesome-project.com/callback.html */\n  redirectUri: '\u003cPATH_TO_CALLBACK_FILE\u003e', \n});\n\nfigmaApi.getOAuth2Token().then(token =\u003e {\n  console.log(token);\n});\n```\n\nImport as an ES6 module\n```shell\nnpm install --save figma-development-kit\n```\n\n```js\nimport { FigmaApi } from 'figma-development-kit';\n\nconst figmaApi = new FigmaApi({\n  clientId: '\u003cFIGMA_CLIENT_ID\u003e',\n  clientSecrete: '\u003cFIGMA_CLIENT_SECRETE\u003e',\n  redirectUri: '\u003cPATH_TO_CALLBACK_FILE\u003e',\n});\n\nfigmaApi.getOAuth2Token().then(token =\u003e {\n  console.log(token);\n});\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchuanqisun%2Ffigma-development-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchuanqisun%2Ffigma-development-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchuanqisun%2Ffigma-development-kit/lists"}