Skip to content

Instantly share code, notes, and snippets.

@Narigo
Last active January 22, 2021 19:31
Show Gist options
  • Save Narigo/1c03673572bf44fb7bbad81535dc2ea0 to your computer and use it in GitHub Desktop.
Save Narigo/1c03673572bf44fb7bbad81535dc2ea0 to your computer and use it in GitHub Desktop.
Find #Figma plugins with a high like-to-install ratio
# find #Figma plugin underdogs
curl https://raw.githubusercontent.com/yuanqing/figma-plugins-stats/gh-pages/index.json > d.json
node <<'EOF'|head -n 50
let d = require("./d.json");
let r = (p) => p.likeCount / p.installCount;
d.plugins
.sort((a, b) => r(b) - r(a))
.forEach((p, i) => console.log(`${i + 1}. ${p.name} by ${p.publisherName}`));
EOF
// for copy and pasting into the browser console 😄 (open a new tab to paste it, otherwise fetch might complain)
fetch("https://yuanqing.github.io/figma-plugins-stats/index.json")
.then((r) => r.json())
.then((d) => {
let r = (p) => p.likeCount / p.installCount;
d.plugins
.sort((a, b) => r(b) - r(a))
.slice(0, 50)
.forEach((p, i) =>
console.log(`${i + 1}. ${p.name} by ${p.publisherName}`)
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment