Giter VIP home page Giter VIP logo

figma-stat's Introduction

Figma stats

⚠️ this project is deprecated

Everyday at 6 am (UTC timezone) the github script captures all avalible Figma plugins and files.

All information is stored in a separate github branch and divided into two folders — plugins, hub_files and widgets.

All data about your plugins also stored in a separate folder like https://github.com/PavelLaptev/figma-stat/tree/gh-pages/plugins/your-plugin-id.

Each folder contains:

  • info.json
  • counters.json
  • latest.json


How to fetch data

// Links to files
const fetchLinks = {
  info: `https://pavellaptev.github.io/figma-stat/plugins/1000012087652644703/info.json`,
  counters: `https://pavellaptev.github.io/figma-stat/plugins/1000012087652644703/counters.json`,
  latest: `https://pavellaptev.github.io/figma-stat/plugins/1000012087652644703/latest.json`
};

// Fetch certain data
const getCounters = async () => {
  await fetch(fetchLink.counters)
    .then((response) => response.json())
    .then((counter) => {
      console.log(counter);
    });
};

getCounters();

// Loop through all links
const getAllData = (links) => {
  Object.values(links).forEach(async (link, i) => {
    await fetch(link)
      .then((response) => response.json())
      .then((data) => {
        let fetchedData = { [Object.keys(links)[i]]: data };
        console.log(fetchedData);
      });
  });
};

getAllData(fetchLink);

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.