Get the latest feed of GitHub Stars out there! 🌟 ⭐ ✨

Overview

GitHub Stars Feed

Get the latest feed of GitHub Stars out there!

Twitter

The GitHub Stars program thanks GitHub’s most influential developers and gives them a platform to showcase their work, reach more people, and shape the future of GitHub. Read my journey from a GitHub User to a GitHub Star.

Installation

NPM

npm i github-stars-feed

Usage

Typing SVG

const githubStars = require('github-stars-feed');

Get filtered feed

var options = {
  limit: 2,
  sanitize: true,
  username: 'vinitshahdeo'
};

githubStars.getFeed(options, (err, feed) => {
  if (err) {
    console.log('Something went wrong while fetching GitHub Stars Feed');
  } else {
    console.log(feed); // filtered feed
  }
});

Sample Response

[
  {
    title: 'Meet Vinit Shahdeo, a resident of Jharkhand, has been recognized as a GitHub Star',
    summary: 'My journey got featured by the News Khajana.',
    link: 'https://thenewskhazana.com/story/meet-vinit-shahdeo-a-resident-of-jharkhand-has-been-recognized-as-a-github-star-22451/',
    updated: 'Sunday, November 3rd 2019',
    author: {
      name: 'vinitshahdeo',
      uri: 'https://stars.github.com/vinitshahdeo'
    }
  },
  {
    title: 'Mentor - Google Summer Of Code',
    summary: 'Postman is one of the mentoring organization for GSoC. This year, Postman has AsyncAPI Initiative as part of their team.\n\nI will be mentoring an idea for AsyncAPI i.e. AsyncDiff. It\'s basically a library to compare two AsyncAPI documents and generate diff for the review process.',
    link: 'https://community.postman.com/t/idea-9-asyncdiff-general-information/21694',
    updated: 'Sunday, November 3rd 2019',
    author: {
      name: 'vinitshahdeo',
      uri: 'https://stars.github.com/vinitshahdeo'
    }
  }
]

Get complete feed

githubStars.getFeed((err, feed) => {
  if (err) {
    console.log('Something went wrong while fetching GitHub Stars Feed');
  } else {
    console.log(feed); // complete feed
  }
});

Sample Response

[
  {
    title: {
      type: 'html',
      value: 'Meet Vinit Shahdeo, a resident of Jharkhand, has been recognized as a GitHub Star'
    },
    id: 'cknat1te840382f1viftueegf',
    link: {
      href: 'https://thenewskhazana.com/story/meet-vinit-shahdeo-a-resident-of-jharkhand-has-been-recognized-as-a-github-star-22451/'
    },
    updated: '2021-04-02T00:00:00.000Z',
    summary: {
      type: 'html',
      value: 'My journey got featured by the News Khajana.'
    },
    author: {
      name: 'vinitshahdeo',
      uri: 'https://stars.github.com/vinitshahdeo'
    }
  },
  {
    title: { type: 'html', value: 'Mentor - Google Summer Of Code' },
    id: 'ckmm44oxu03192fxc94w0seir',
    link: {
      href: 'https://community.postman.com/t/idea-9-asyncdiff-general-information/21694'
    },
    updated: '2021-03-20T00:00:00.000Z',
    summary: {
      type: 'html',
      value: 'Postman is one of the mentoring organization for GSoC. This year, Postman has AsyncAPI Initiative as part of their team.\n\nI will be mentoring an idea for AsyncAPI i.e. AsyncDiff. It\'s basically a library to compare two AsyncAPI documents and generate diff for the review process.'
    },
    author: {
      name: 'vinitshahdeo',
      uri: 'https://stars.github.com/vinitshahdeo'
    }
  }
];

Options

Additionally, limit, sanitize and username can be passed to filter the feed entries.

Options Type Description
limit Number max entries to be returned
sanitize Boolean return sanitized feed
(only title, summary, link, updated and author)
username String return entries of GitHub Star for given username only

Show first n feed entries

githubStars.getFeed({ limit: 5 }, (err, feed) => {
  if (err) {
    console.log('Something went wrong while fetching GitHub Stars Feed');
  } else {
    console.log(feed); // first 5 feed entries
  }
});

Get feed of any GitHub Star (by their GitHub username say vinitshahdeo)

githubStars.getFeed({ username: 'vinitshahdeo' }, (err, feed) => {
  if (err) {
    console.log('Something went wrong while fetching GitHub Stars Feed');
  } else {
    console.log(feed); // feed of vinitshahdeo only
  }
});

Get sanitized feed

githubStars.getFeed({ sanitize: true }, (err, feed) => {
  if (err) {
    console.log('Something went wrong while fetching GitHub Stars Feed');
  } else {
    console.log(feed); // sanitized feed
  }
});

Blog

Do check out the article "How to get GitHub Stars Contributions" on Hashnode!

Hashnode blog - Vinit Shahdeo

RSS Feed

This NPM module is basically taking the RSS feed for GitHub Stars contributions and converting it into a valid JSON object which can be further used to build Node.js / React applications.

A sample entry from GitHub Stars Contributions feed looks like below:

<entry>
  <title type="html"><![CDATA[ Meet Vinit Shahdeo, a resident of Jharkhand, has been recognized as a GitHub Star ]]></title>
  <id>cknat1te840382f1viftueegf</id>
  <link href="https://thenewskhazana.com/story/meet-vinit-shahdeo-a-resident-of-jharkhand-has-been-recognized-as-a-github-star-22451/"/>
  <updated>2021-04-02T00:00:00.000Z</updated>
  <summary type="html"><![CDATA[ My journey got featured by the News Khajana. ]]></summary>
  <author>
    <name>vinitshahdeo</name>
    <uri>https://stars.github.com/vinitshahdeo</uri>
  </author>
</entry>

Example

Please checkout examples/ directory to view example.

Refer the sample response here.

Acknowledgement

I'm happy to be a part of the GitHub Stars Hall of Fame. From a (green) dot to a star, here’s how my journey uncoiled - tiny.cc/GitHubStar. Check out my GitHub Star profile here. 🌟 Let me know what do you build consuming this API?

PS: Always grateful to GitHub! 🖤

Twitter Follow

You might also like...

Stars Dulu, Baru Fork!

Stars Dulu, Baru Fork!

Dev-3S-Bot 3S~Bot MD Untuk bertanya atau melaporkan bug pribadi Email: [email protected] In Project: Werewolf Presence Update Pokemon Fish Em

Dec 2, 2022

Find related repository by stars.

Find related repository by stars.

Related Repos Find related repository by stars. How it works? By analyzing the star activities of users who have starred a specific repository, this t

May 10, 2023

Silahkan di fork dan jangan lupa stars.nya ya bro...

Silahkan di fork dan jangan lupa stars.nya ya bro...

Chat OWNER Chat BOT (Aktif) BERKAHESPORT.ID OFFICIAL Terimakasih Untuk ALLAH S.W.T. Serta junjungan kami nabi Muhammad S.A.W WhatsappBOT ini menggunak

May 9, 2023

Twitter RSS (.xml) Feed Scraper Without Developer Authentication

Twitter RSS (.xml) Feed Scraper Without Developer Authentication

Twitter RSS Feed Scraper Without Authentication Command-line application using Node.js that scrapes XML feeds from Nitter, the free and open source al

Jun 15, 2022

LinkOff - Cleans the LinkedIn feed based on keywords and filters

LinkOff - Cleans the LinkedIn feed based on keywords and filters

LinkOff - LinkedIn Filter and Customizer 🧹 LinkOff cleans and customizes Linked

Dec 19, 2022

Вlockchain feed index Google Colab

blockchain-feed-index Run Google Colab https://colab.research.google.com/drive/1OShIMVcFZ_khsUIBOIV1lzrqAGo1gfm_?usp=sharing Installation Install node

Jun 25, 2022

Keep your Twitter feed sweet!

Keep your Twitter feed sweet!

Bitter Blocker Keep your Twitter feed sweet! Introducing Bitter Blocker, the Chrome extension that blocks negative tweets! No more scrolling through y

Apr 26, 2022

Contains html file showcasing Earthquake related data generated in the form of VR model, ArcGIS API with real-time earthquake feed and video of simulation of earthquake generated in blender

Contains html file showcasing Earthquake related data generated in the form of VR model, ArcGIS API with real-time earthquake feed and video of simulation of earthquake generated in blender

Module-EADGI-Project-All about Earthquakes Introduction Contains html file showcasing Earthquake related data generated in the form of VR model, ArcGI

Jun 9, 2022

The original SSB feed format, for ssb-db2

ssb-classic This module is a plugin for ssb-db2 which implements the classic SSB feed format. You can use this module as an ssb-db2 plugin, or you can

Jun 18, 2022
Comments
  • react app created

    react app created

    I have used your package to fetch data in feed.json (./src/data/feed.json) from request.js.

    • To run fetch data use npm run fetch.
    • Then use npm run start to load your react app.

    Preview

    image

    opened by tanmayVaish 2
  • Added a warning message in case of empty results

    Added a warning message in case of empty results

    It's most likely to happen that people might provide non-GitHub-Star username which will end up giving empty results. Added a warning message for the same.

    opened by vinitshahdeo 0
  • Sanitize the feed

    Sanitize the feed

    Add an option to sanitize the feed so that only required data will be sent.

    githubStars.getFeed({ sanitize: true }, (err, feed) => {
      if (err) {
        console.log('Something went wrong while fetching GitHub Stars Feed');
      } else {
        console.log(feed); // filtered feed based on options
      }
    });
    
    enhancement 
    opened by vinitshahdeo 0
  • Make a demo React App using this module to show GitHub Star's feed

    Make a demo React App using this module to show GitHub Star's feed

    npm i github-stars-feed
    

    As github-stars-feed is available as an NPM module, can we make a demo React App to show GitHub Star's feed using card view.

    You can Create React App to set up the React app by running one command.

    npx create-react-app github-stars-feed
    cd github-stars-feed
    npm start
    
    good first issue hacktoberfest beginner friendly hacktoberfest2022 
    opened by vinitshahdeo 9
Releases(v1.1.4)
Owner
Vinit Shahdeo
Adores JavaScript ツ ❯ Works @postmanlabs ❯ Project Admin @GirlScriptSummerOfCode ❯ Former President @vinnovateit ❯ Former VP(Tech) @CodeChefVIT ❯ VITian ღ
Vinit Shahdeo
The best UI framework out there 🦆 In development 🚀

Noia UI Getting Started | Community | Creators | ?? Noia UI ?? in development... ?? Getting Started # First clone this repository $ git clone https://

Foton 18 Mar 10, 2022
Solidity Quickstart is an extensive solidity guide for the solidity newbies out there.

?? Solidity Quickstart Solidity Quickstart is an extensive solidity guide for the solidity newbies out there. ?? How does it work? All the guides rela

Kira 8 Aug 6, 2022
⚙️ A GitHub Action to push a feed item to RSS3 network

RSS3 Github Action Update a users feed to reflect changes in a Github Repository. Setup Have a copy of your private key Add an environment secret to y

null 5 Apr 26, 2022
Get the latest Flashbots blocks and Flashbots transactions using TypeScript in two lines of code !

mev-blocks-js This package can let you query the Flashbots blocks API easily from any JavaScript or TypeScript project. You can access the Flashbots b

Luca G.F. 6 May 14, 2022
Remix enables you to build fantastic user experiences for the web and feel happy with the code that got you there. Get a jumpstart on Remix with this workshop.

?? Remix Fundamentals Build Better websites with Remix Remix enables you to build fantastic user experiences for the web and feel happy with the code

Frontend Masters 204 Dec 25, 2022
TS & JS Library for adaptive precision cursor for the web. Releases will come out soon! Meanwhile, check out the demo site:

Haha, cool cursor go brrrr... Table of Content What is this? Installation & Setup Installation Setup Usage Cursor controls Element settings Known issu

LemonOrange 10 Nov 24, 2022
A Leaderboard that shows who has given your stars to your repositories

A Leaderboard that shows who has given your stars to your repositories

Victor Peralta 6 Mar 22, 2022
Complete module to interact with the Brawl Stars API.

BrawlStars-API.js Brawlstars-api.js is a library made to interact with the Official Brawl Stars api, listing all of their endpoints in one place. ✨ Ho

Nícolas Gabriel 4 Nov 3, 2022
Uma aplicação pomodoro conectada com a API do Spotify, para tornar o seu estudo mais dinâmico. Topics Stars

Demo | Tecnologias | Iniciando | Projeto | Layout | Demo ?? Tecnologias Esse projeto foi feito com as seguintes tecnologias. NextJS Next Auth TypeScri

Sophia Gallindo 26 Aug 9, 2022
A jquery plugin that makes images truly responsive, without sacrificing anyone's face. Give it more stars!

Responsify.js A jquery plugin that makes images truly responsive, without sacrificing anyone's face :D When images are used in a responsive container

Wenting Zhang 1.3k Dec 14, 2022