Skip to content

Instantly share code, notes, and snippets.

@vogelino
Last active March 27, 2022 14:21
Show Gist options
  • Save vogelino/7a034ebcc50f364161d81b5a2a477802 to your computer and use it in GitHub Desktop.
Save vogelino/7a034ebcc50f364161d81b5a2a477802 to your computer and use it in GitHub Desktop.
GitHub user stars to CSV
const cleanString = (s) => s.trim();
const upperCaseFirstLetter = (s) => s.charAt(0).toUpperCase() + s.slice(1);
const prepareTopics = (topics) =>
topics.map((t) => cleanString(upperCaseFirstLetter(t))).join(",");
const createRow = ({ name, description, html_url, topics }) =>
[
`"${name}"`,
`"${cleanString(description)}"`,
`"${html_url}"`,
`"${prepareTopics(topics)}"`,
true,
].join(",");
const stars = async (user) => {
const fetch = await import("node-fetch").then((m) => m.default);
const res = await fetch(`https://api.github.com/users/${user}/starred`);
const starred = await res.json();
return starred.reduce(
(acc, s) => `${acc}\n${createRow(s)}`,
`Name,Description,Link,Tags,Starred`
);
};
stars("vogelino").then(console.log);
{
"name": "github-stars",
"version": "1.0.0",
"description": "Converts stars of a given GitHub user to a CSV file",
"main": "githubStars.js",
"scripts": {
"run": "node githubStars.js |> result.csv"
},
"keywords": [
"github",
"stars",
"csv"
],
"author": "",
"license": "MIT",
"dependencies": {
"node-fetch": "3.2.3"
}
}
Name Description Link Tags Starred
turnstone React customisable autocomplete component with typeahead and grouped results from multiple APIs. https://github.com/tomsouthall/turnstone Autocomplete,Autosuggest,Component,Dropdown,React,Searchbox,Typeahead true
reveal.js The HTML Presentation Framework https://github.com/hakimel/reveal.js Presentations,Slides,Slideshow true
piling.js A general framework and library for exploring thousands of small multiples https://github.com/flekschas/piling.js Javascript,Pilingjs,Small-multiples,Visual-piling,Visualization,Webgl true
amplication Amplication is an open‑source development tool. It helps you develop quality Node.js applications without spending time on repetitive coding tasks. https://github.com/amplication/amplication Api,Code-generation,Graphql,Hacktoberfest,Javascript,Low-code,Nestjs,Nodejs,Prisma,Typescript,Web true
nocodb 🔥 🔥 🔥 Open Source Airtable Alternative - turns any MySQL, Postgres database into a collaborative spreadsheet with REST APIs. https://github.com/nocodb/nocodb Admin-dashboard,Admin-ui,Airtable,Airtable-alternative,Automatic-api,Hacktoberfest,Hacktoberfest2021,Low-code,Mariadb,Mysql,No-code,No-code-database,Postgresql,Rest-api,Restful-api,Spreadsheet,Sqlite,Sqlserver,Swagger true
danfojs Danfo.js is an open source, JavaScript library providing high performance, intuitive, and easy to use data structures for manipulating and processing structured data. https://github.com/javascriptdata/danfojs Danfojs,Data-analysis,Data-analytics,Data-manipulation,Data-science,Dataframe,Javascript,Pandas,Plotting-charts,Stream-data,Stream-processing,Table,Tensorflow,Tensors true
trpc 🧙‍♀️ End-to-end typesafe APIs made easy https://github.com/trpc/trpc Api,Next,Nextjs,Prisma,React,Typescript true
stadtpuls-opensensemap-bridges Sketches to collect data from opensensemap and send it to stadtpuls (WIP) https://github.com/technologiestiftung/stadtpuls-opensensemap-bridges true
ladle 🥄 Develop, test and document your React story components faster. https://github.com/tajo/ladle Components,Documentation,Esbuild,Javascript,Playground,React,Styleguide,Testing,Typescript,Ui,Vitejs true
vitest A Vite-native test framework. It's fast! https://github.com/vitest-dev/vitest Test,Testing-tools,Vite true
redirect-russia 🇺🇦 Redirect Russian traffic from your site to support Ukraine https://github.com/pabio/redirect-russia Help-ukraine,Javascript,Typescript,Ukraine,Ukraine-invasion true
grist-widget A repository of custom widgets to embed in Grist documents https://github.com/gristlabs/grist-widget true
stadtpuls Public bug tracker and discussion forum for stadtpuls.com https://github.com/technologiestiftung/stadtpuls Citylab-berlin,Iot,Sensors,Stadtpuls true
react-custom-flag-select A react component for custom flag (country code) select. Online demo examples https://github.com/edwardfxiao/react-custom-flag-select Area-code,Country-codes,Custom,Flag,Flags,React,Select true
react-tree Hierarchical tree component for React in Typescript https://github.com/naisutech/react-tree Front-end,Frontend,Javascript,React,Reactjs true
jupyterlite Wasm powered Jupyter running in the browser 💡 https://github.com/jupyterlite/jupyterlite Jupyter,Jupyterlab,Jupyterlab-extension,Lite,Pyodide,Wasm,Webassembly true
demo JupyterLite demo deployed to GitHub Pages 🚀 https://github.com/jupyterlite/demo true
notion-charts Create stunning charts for your notion.so databases https://github.com/mathix420/notion-charts Business-dashboard,Charts,Interactive-charts,Notion,Notion-charts,Python-3,Vercel true
nextui 🚀 Beautiful, fast and modern React UI library. https://github.com/nextui-org/nextui Component-library,Components,Library,Reactjs true
suncalc A tiny JavaScript library for calculating sun/moon positions and phases. https://github.com/mourner/suncalc true
caldera-react Server-side execution for React 🌋 https://github.com/calderajs/caldera-react true
echarts Apache ECharts is a powerful, interactive charting and data visualization library for browser https://github.com/apache/echarts Apache,Canvas,Charting-library,Charts,Data-visualization,Data-viz,Echarts,Svg,Visualization true
circuit-ui SumUp's component library for the web https://github.com/sumup-oss/circuit-ui Circuit-ui,Component-library,Design-system,React,React-components,Sumup true
baseweb A React Component library implementing the Base design language https://github.com/uber/baseweb Component-library,Design-systems,React,React-components true
primitives An open-source UI component library for building high-quality, accessible design systems and web apps. Maintained by @modulz. https://github.com/radix-ui/primitives Accessibility,Colors,Component-library,Design-systems,Radix-ui,React,Ui,Ui-components,Ui-kit true
chakra-ui ⚡️ Simple, Modular & Accessible UI Components for your React Applications https://github.com/chakra-ui/chakra-ui A11y,Accessible,Chakra-ui,Dark-mode,React,React-components,Reactjs,Ui-components,Ui-library,Uikit,Wai-aria true
mantine React components library with native dark theme support https://github.com/mantinedev/mantine Dark-mode,Dark-theme,Hooks,React,Typescript,Uikit true
react-tags A fantastically simple tagging component for your projects https://github.com/react-tags/react-tags Autocomplete,Dragdrop,Javascript,React,React-tags true
react-marksome Lightweight, flexible and readable labels in React using a subset of markdown https://github.com/miguel-silva/react-marksome true
react-trix-rte React wrapper for Trix rich text editor created by Basecamp https://github.com/abhaynikam/react-trix-rte Basecamp,Hacktoberfest,React,Rich-text-editor,Trix,Trix-editor true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment