The reimagined Figma API (super)powered by GraphQL
-
Open figma-graphql sandbox and fork it
-
Add your Figma API Token as
FIGMA_TOKENin the codesandbox secret keys -
Try your first query!
{
file(id: "cLp23bR627jcuNSoBGkhL04E") {
name
}
}Please read the full documentation for additional examples and best practices.
- Clone this repo
- Run
yarn installto install all dependencies - Run
FIGMA_TOKEN={YOUR_PERSONAL_FIGMA_TOKEN} yarn run devor add it to an.envfile - The Figma GraphQL playground should be available at
http://localhost:3001/
This isn't really necessary but here's the base Figma file that is being used during development.
It should work with any file so can use your own Figma files and just replace file(id: "cLp23bR627jcuNSoBGkhL04E") with the id of the file you want to query.
Thanks goes to these wonderful people (emoji key):
Bernardo Raposo 💬 💻 📖 🎨 🤔 👀 |
Sara Vieira 💻 📖 👀 |
Andrey Okonetchnikov 📖 💻 |
Travis Arnold 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!