Coder Social home page Coder Social logo

figma-inquisitor's Introduction

The Inquisitor - Figma local variable inspector

The Inquisitor

"The Inquisitor" is the Figma plugin that helps you inspect local variables against the selected element(s) of currently loaded page.

It displays all collections and variables found in the file and identifies if the selected element(s) have any associations.

Use cases

This plugin can be used for the following use cases:

  • see all variables from the file
  • identify not used variables
  • identify "leaking" variables meant to be used in other pages
    • or failure to re-use ๐Ÿ˜‰ (duplicate variables)

Features

  • display all local variables and collections used in the file
  • indicates whether the variable is used in the selected element(s)
  • supports variable filtering per collection
  • auto-selects collection if its name matches the current page name
  • displays select-and-check metrics
  • variable check is performed against the bindings with
    • character
    • effects
    • fills
    • strokes
    • reactions

Considerations

Considering this plugin works on the selection of elements, if a lot of elements gets selected ("Select All" Ctrl+A Cmd+A ๐Ÿ‘ฟ) plugin may become unresponsive until selection and checks are performed. Obviously the number of variables will affect the execution time too.

On my MacBook Pro (Y2020, M1, 16GB RAM) I have not experienced crashes while inspecting over 100k elements, but it did took ~20 seconds to finish the task.

Process of selecting elements and running check is captured in Figma notification at the bottom of the screen once completed, so you can use it to gauge where's the safe zone for you and your machine.

Below are some examples I took while testing the file I worked with.

Example 1

Example of fast response

Example 2

Example of fast response

Example 3

Example of fast response

Development

To run this project on your local machine

# clone the project
git clone https://github.com/Devgaze/figma-inquisitor.git
# or via SSH `git clone [email protected]:Devgaze/figma-inquisitor.git`

# dive into the folder and install dependencies
cd figma-inquisitor && npm install

# run the development server
npm run dev

To build the project

npm run build

To run linter and tests

npm run lint  # linter
npm run test  # test
# duh =p

figma-inquisitor's People

Contributors

devgaze avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.