RepositoryJavaScriptGBVương quốc Anh
didoo

didoo/figma-api

Figma REST API implementation with TypeScript, Promises & ES6

267sao
46fork
1issue
0lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: figma-api

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: figma-js

#1 Repository Của Tháng

3
TINIX TRENDING·Chủ đề: figma

#3 Repository Của Tháng

📦 Giao diện JavaScript gọi Figma REST API — TypeScript, Promise, ES6

Thin wrapper quanh Figma REST API specs, chạy trên cả Node.js và browser.

figma-api là client-side implementation của Figma REST API, viết bằng JavaScript, đầy đủ kiểu TypeScript, dùng Promise (qua Axios) & ES6. Phiên bản 2.0 Beta là bản rewrite hoàn toàn, đồng bộ trực tiếp với spec chính thức.

✨ Điểm nổi bật

  • TypeScript đầy đủ: tất cả endpoint đều được gõ kiểu rõ ràng.
  • Promise-based: dùng Axios, hỗ trợ async/await.
  • Đa môi trường: chạy trên Node.js và trình duyệt.
  • OAuth hỗ trợ: hàm oAuthLink, oAuthToken để lấy token.
  • API đồng bộ spec: tên endpoint và tham số khớp chính xác với tài liệu Figma.
  • Cài đặt đơn giản: npm i figma-api.
  • Hỗ trợ CORS: có thể import file JS trực tiếp trong browser.

💡 Vì sao đáng chú ý

Khác với các thư viện khác, figma-api không tự định nghĩa lại endpoint — nó ánh xạ trực tiếp từ Figma REST API specifications. Phiên bản 2.x thay đổi cách gọi: mọi tham số giờ nằm trong object pathParams, queryParams, requestBody. Dễ dùng cho người mới, dễ bảo trì cho người phát triển.


#Figma #JavaScript #TypeScript #API #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJavaScript
jxnblk/figma-theme

Generate development-ready theme JSON files from Figma Styles

139
Jul 10, 2018
RepositoryTypeScript
southleft/figma-console-mcp

Your design system as an API. Connect AI to Figma for extraction, creation, and debugging.

2.6k
Oct 2, 2026
RepositorySwift
RedMadRobot/figma-export

Command line utility to export colors, typography, icons and images from Figma to Xcode / Android Studio project

823
Oct 10, 2026
RepositoryJavaScript
grab/cursor-talk-to-figma-mcp

TalkToFigma: MCP integration between AI Agent (Cursor, Claude Code, Codex) and Figma, allowing Agentic AI to communicate with Figma for reading designs and modifying them programmatically.

7.1k
Jul 26, 2026
RepositoryJavaScript
krystonschwarze/coolicons

coolicons is a carefully designed collection of 440+ icons with a focus on simplicity and consistency. Perfectly suited for web, application and mobile design.

484
Oct 29, 2026
RepositoryJavaScript
hallee9000/heron-handoff

A Figma handoff tool, support offline exporting.

351
Oct 9, 2026
RepositoryJavaScript
Adityaraj0421/naksha-studio

A virtual design team for Claude Code, Cursor, Windsurf, Gemini CLI, and Copilot — 30 roles, 70 commands, 16,000+ lines of expert design knowledge. Your agency's design brain, inside your terminal.

348
Oct 18, 2026
RepositoryJavaScript
primer/figma-action

Export image assets from Figma to GitHub

173
Nov 13, 2020
RepositoryJavaScript
fabe/gatsby-source-figma

🍭 Gatsby plugin for using Figma documents as a data source.

125
Aug 30, 2020