GithubHelp home page GithubHelp logo

huchenme / github-trending-api Goto Github PK

View Code? Open in Web Editor NEW
745.0 8.0 106.0 3.9 MB

:octocat: The missing APIs for GitHub trending projects and developers 📈

Home Page: https://ghapi.huchen.dev/

License: MIT License

JavaScript 99.99% Dockerfile 0.01%
github trending-repositories trending github-api zeit expressjs

github-trending-api's Introduction

Github Unofficial Trending API

:octocat: A simple API that returns number of Github trending repositories and developers.

hero image

Credits: Illustration by unDraw


Financial Contributors on Open Collective GitHub closed issues Travis semantic-release coverage GitHub license Code of Conduct

npm (scoped) module formats: cjs, es


Table of Contents

Expand Table of Contents

Projects using github-trending-api

  • Hacker Tab (Chrome Store): Chrome extension to view GitHub trending projects on new tab.
  • github-trending-plus (Live): ✨ Experimental Github trending UI.
  • HitUp (Chrome Store) (Website): Help you find top things, including GitHub Trending Repositories.
  • Gitter: Gitter for GitHub - 可能是目前颜值最高的 GitHub 小程序客户端.
  • flutter_wanandroid: Flutter 完整项目,WanAndroid 客户端,BLoC、RxDart 、国际化、主题色、启动页、引导页,拥有较好的项目结构&比较规范的代码!
  • vsc-github-trending: (VS Code Marketplace): Explore Github Trending repositories directly from Visual Studio Code
  • GiTiny(AppStore): iOS app for GitHub with exploring trending.
  • SwiftHub: GitHub iOS client written in RxSwift and MVVM clean architecture.
  • GitNews: Trending repositories from GitHub, HackerNews & Reddit (Mobile & Desktop).
  • mini-github: GitHub WeChat Mini Program (可能是全网功能最全的 GitHub 微信小程序).
  • StarGit (Website): Find trending repositories from GitHub. Built with Angular.
  • GitTouch (App Store, Google Play): Open source GitHub App built with Flutter.
  • lazyhub: :octocat: lazyhub - Terminal UI Client for GitHub using gocui.
  • Gitrepos (Website): :octocat: A simple PWA app that returns Trending Repositories & Developers from GitHub, Gitlab & HackerNews.
  • Trendzz (Website): Github trending PWA focusing on usability.
  • Ceelog Github trending in WeChat Official Account Platform.

Backers

Thank you to all our backers! 🙏 [Become a backer]

Buy Me A Coffee

API Status

API status is available at uptimerobot.

REST API

See the full API documentation in Apiary.

Tutorial

How to scrape any website and build an API using cheerio.js

Trending Repositories

Receive an array of trending repositories.

URL Endpoint:

https://ghapi.huchen.dev/repositories?language=javascript&since=weekly

Parameters:

  • language: optional, list trending repositories of certain programming languages, possible values are listed here.
  • since: optional, default to daily, possible values: daily, weekly and monthly.
  • spoken_language_code: optional, list trending repositories of certain spoken languages (e.g English, Chinese), possible values are listed here.

Response:

[
  ...
  {
    "author": "google",
    "name": "gvisor",
    "avatar": "https://github.com/google.png",
    "url": "https://github.com/google/gvisor",
    "description": "Container Runtime Sandbox",
    "language": "Go",
    "languageColor": "#3572A5",
    "stars": 3320,
    "forks": 118,
    "currentPeriodStars": 1624,
    "builtBy": [
      {
        "href": "https://github.com/viatsko",
        "avatar": "https://avatars0.githubusercontent.com/u/376065",
        "username": "viatsko"
      }
    ]
  }
  ...
]

Note that GitHub trending page sometimes is empty, in that case this API returns [] in response, your application should be able to handle it or read from previous cache.

Trending Developers

Receive an array of trending developers.

URL Endpoint:

https://ghapi.huchen.dev/developers?language=javascript&since=weekly

Parameters:

  • language: optional, list trending repositories of certain programming languages, possible values are listed here.
  • since: optional, default to daily, possible values: daily, weekly and monthly.

Response:

[
  {
    "username": "google",
    "name": "Google",
    "type": "organization",
    "url": "https://github.com/google",
    "avatar": "https://avatars0.githubusercontent.com/u/1342004",
    "repo": {
      "name": "traceur-compiler",
      "description": "Traceur is a JavaScript.next-to-JavaScript-of-today compiler",
      "url": "https://github.com/google/traceur-compiler"
    }
  }
]

type could be organization or user.

List Languages

URL Endpoint:

https://ghapi.huchen.dev/languages

Response:

[
  {
    "urlParam": "1c-enterprise",
    "name": "1C Enterprise"
  },
  {
    "urlParam": "abap",
    "name": "ABAP"
  },
  {
    "urlParam": "abnf",
    "name": "ABNF"
  },
  {
    "urlParam": "actionscript",
    "name": "ActionScript"
  }
]

List Spoken Languages

URL Endpoint:

https://ghapi.huchen.dev/spoken_languages

Response:

[
  {
    "urlParam": "ab",
    "name": "Abkhazian"
  },
  {
    "urlParam": "aa",
    "name": "Afar"
  },
  {
    "urlParam": "af",
    "name": "Afrikaans"
  },
  {
    "urlParam": "ak",
    "name": "Akan"
  }
]

NPM Package

You could also use the API as a NPM package.

Install

$ npm install --save @huchenme/github-trending

Usage

import {
  languages,
  spokenLanguages,
  fetchRepositories,
  fetchDevelopers,
} from '@huchenme/github-trending';

fetchRepositories({ language: 'ruby', since: 'monthly' }).then(
  (repositories) => {
    console.log(repositories);
  }
);

fetchDevelopers({ language: 'javascript' }).then((developers) => {
  console.log(developers);
});

console.log(languages);
console.log(spokenLanguages);

API

languages

List all languages

[
  {
    urlParam: '1c-enterprise',
    name: '1C Enterprise',
  },
  {
    urlParam: 'abap',
    name: 'ABAP',
  },
  {
    urlParam: 'abnf',
    name: 'ABNF',
  },
  {
    urlParam: 'actionscript',
    name: 'ActionScript',
  },
];

spokenLanguages

List all spoken languages

[
  {
    urlParam: 'ab',
    name: 'Abkhazian',
  },
  {
    urlParam: 'aa',
    name: 'Afar',
  },
  {
    urlParam: 'af',
    name: 'Afrikaans',
  },
  {
    urlParam: 'ak',
    name: 'Akan',
  },
];

fetchRepositories(params)

Receive an array of trending repositories.

params:

  • language: possible values are the the ones from languages or just find here.
  • since: daily, weekly or monthly, default to daily.
  • spokenLanguageCode: possible values are the the ones from spokenLanguages or just find here.
[
  ...
  {
    author: 'google',
    name: 'gvisor',
    avatar: 'https://github.com/google.png',
    url: 'https://github.com/google/gvisor',
    description: 'Container Runtime Sandbox',
    language: 'Go',
    languageColor: '#3572A5',
    stars: 3320,
    forks: 118,
    currentPeriodStars: 1624,
    "builtBy": [
      {
        "href": "https://github.com/viatsko",
        "avatar": "https://avatars0.githubusercontent.com/u/376065",
        "username": "viatsko"
      }
    ]
  }
  ...
]

fetchDevelopers(params)

Receive an array of trending developers.

params:

  • language: possible values are the the ones from languages or just find here.
  • since: daily, weekly or monthly, default to daily.
[
  ...
  {
    username: 'google',
    name: 'Google',
    type: 'organization',
    url: 'https://github.com/google',
    avatar: 'https://avatars0.githubusercontent.com/u/1342004',
    repo: {
      name: 'traceur-compiler',
      description:
        'Traceur is a JavaScript.next-to-JavaScript-of-today compiler',
      url: 'https://github.com/google/traceur-compiler'
    }
  }
  ...
]

docker

You can develop by using docker.

$ docker build -t github-trending-api .
$ docker run -d --rm -p 8000:8888 github-trending-api:latest

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

License

MIT

github-trending-api's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

github-trending-api's Issues

RSS Support

Hello, this is really nice.

Would you consider adding or accepting an ‘output’, or similar, URL parameter for using this with RSS readers?

An in-range update of babel7 is breaking the build 🚨

There have been updates to the babel7 monorepo:

    • The devDependency @babel/core was updated from 7.8.4 to 7.8.6.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

This monorepo update includes releases of one or more dependencies which all belong to the babel7 group definition.

babel7 is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).
  • now: Deployment has completed (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of husky is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye 👋 and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


The devDependency husky was updated from 4.2.4 to 4.2.5.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

husky is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • now: Deployment has failed (Details).
  • codecov/patch: Coverage not affected (Details).
  • codecov/project: No report found to compare against (Details).

Release Notes for v4.2.5
  • Fix wrong error message #709
  • Update dependencies #710
Commits

The new version differs by 4 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Export modules into packages

Currently the functions and Express server is mixed in index.js, it would be good to separate the server with fetch functions so other project could be benefit from them

An in-range update of @types/express is breaking the build 🚨

The devDependency @types/express was updated from 4.17.1 to 4.17.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@types/express is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • now: Deployment has failed (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

forks count always be zero for all repositories

$ http "https://github-trending-api.now.sh/repositories?language=&since=daily" | json_pp | grep forks
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,
      "forks" : 0
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,
      "forks" : 0,

Info: Unofficial trending api

Hu Chen, I have been using your API for a hobby project. Some of the folks I have asked me how do you get trending repositories and trending developer (maths behind it). Can you throw some light on that ?. That will be really helpful.

An in-range update of rollup is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye 👋 and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


The devDependency rollup was updated from 2.6.1 to 2.7.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • now: Deployment has failed (Details).

Release Notes for v2.7.0

2020-04-21

Features

  • Add preserveEntrySignatures option to control how exports of entry points are handled (#3498)
  • Add preserveSignature flag to this.emitFile to control exports of emitted chunks (#3498)
  • Add output.minifyInternalExports option to control if internal exports are minified (#3498)

Pull Requests

Commits

The new version differs by 4 commits ahead by 4, behind by 1.

  • 437934e 2.7.0
  • c953270 Update changelog
  • 9011204 Add option to configure if entry signatures are preserved (#3498)
  • c0c206e Use chokidar as test watcher

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of @types/jest is breaking the build 🚨

The devDependency @types/jest was updated from 24.0.16 to 24.0.17.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@types/jest is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • now: Deployment has failed (error: #WnhSTqF) (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Export the scraping functions in the utils dir

After your API has been taken down, I tried calling other APIs provided by the good people who offered them for free. Unfortunately, I've had troubles with them and want something more sustainable.

I installed the npm package of this repo thinking that the fetchRepositories function would be the function that does the scraping. Instead, it's the function that calls your API directly which as you know, is currently not working.

I can work on exposing the scraping functions directly instead of the current functions that call your API first. Just thought I'd get your opinion on it first. Should it replace the existing functions? Should the scraping functions be exported using a different name? Should they not be exported at all?

An in-range update of rollup is breaking the build 🚨

The devDependency rollup was updated from 1.18.0 to 1.19.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • now: Deployment has failed (Details).

Commits

The new version differs by 6 commits.

  • 9af119d 1.19.0
  • b3f361c Update changelog
  • 456f4d2 Avoid variable from empty module name be empty (#3026)
  • 17eaa43 Use id of last module in chunk as name base for auto-generated chunks (#3025)
  • 871bfa0 Switch to a code-splitting build and update dependencies (#3020)
  • 2443783 Unified file emission api (#2999)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Repo of Trending Developers may be empty

request url: https://ghapi.huchen.dev/developers?language=&since=daily
response snippet:

[
    ...
    {
        "username": "peterp",
        "name": "Peter Pistorius",
        "url": "https://github.com/peterp",
        "avatar": "https://avatars0.githubusercontent.com/u/44849",
        "repo": {
              "name": "",
              "description": "",
              "url": "https://github.comundefined"
        }
    },
    ...
]

An in-range update of rollup is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye 👋 and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


The devDependency rollup was updated from 1.32.0 to 1.32.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).
  • now: Deployment has completed (Details).

Release Notes for v1.32.1

2020-03-06

Bug Fixes

  • Handle default export detection for AMD and IIFE externals that do not have a prototype (#3420)
  • Handle missing whitespace when the else branch of an if-statement is simplified (#3421)
  • Mention the importing module when reporting errors for missing named exports (#3401)
  • Add code to warning for missing output.name of IIFE bundles (#3372)

Pull Requests

  • #3372: Add warning code for missing output.name of IIFE bundle that has export (@rail44)
  • #3401: Missing exports errors now print the importing module (@timiyay)
  • #3418: Structure lifecycle hooks, add links to build time hooks (@lukastaegert)
  • #3420: Update generated code of getInteropBlock() to work with null prototype objects (@jdalton)
  • #3421: Avoid invalid code when "else" branch is simplified (@lukastaegert)
Commits

The new version differs by 8 commits.

  • f458cbf 1.32.1
  • 8cbf216 Update changelog
  • 97b8c40 warn.code for missing output.name of IIFE bundle that has export (#3372)
  • eeda078 Update generated code of getInteropBlock() to work with null prototype objects (#3420)
  • 85c54ee Avoid invalid code when "else" branch is simplified (#3421)
  • 1e6284f Missing exports errors now print the importing module (#3401)
  • baf382a Fix internal documentation links
  • 6f0f62b Structure lifecycle hooks, add links to build time hooks (#3418)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Response has weird characters and stars and forks are equal to zero

Hi,

Just realized that the response is a bit weird, here is one of the trending:

{"author":"lumen /\n\n\n\n      lumen","avatar":"https://github.com/lumen /\n\n\n\n      lumen.png","url":"https://github.com/lumen/lumen","description":"An alternative BEAM implementation, designed for WebAssembly","language":"Rust","languageColor":"#dea584","stars":0,"forks":0,"currentPeriodStars":1077,"builtBy":[{"username":"KronicDeth","href":"https://github.com/KronicDeth","avatar":"https://avatars0.githubusercontent.com/u/298259"},{"username":"hansihe","href":"https://github.com/hansihe","avatar":"https://avatars3.githubusercontent.com/u/843730"},{"username":"bitwalker","href":"https://github.com/bitwalker","avatar":"https://avatars3.githubusercontent.com/u/955793"},{"username":"heydtn","href":"https://github.com/heydtn","avatar":"https://avatars0.githubusercontent.com/u/19793673"},{"username":"ShaneWilton","href":"https://github.com/ShaneWilton","avatar":"https://avatars2.githubusercontent.com/u/285821"}]},

The author contains: " /\n\n\n\n" and forks and stars are equal to zero.

The C# bug

Hi @huchenme! Yesterday I posted on HN the experimental example I made using your API. I received some comments informing that when they search 'C#' the results shown are for 'C'. I checked that issue yesterday and the same happens to me. Is there a way to fix that?
Thank you!

An in-range update of rollup is breaking the build 🚨

The devDependency rollup was updated from 1.27.6 to 1.27.7.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • now: Deployment has failed (Details).

Release Notes for v1.27.7

2019-12-01

Bug Fixes

  • Fix a scenario where a reassignments to computed properties were not tracked (#3267)

Pull Requests

Commits

The new version differs by 4 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of @babel/runtime-corejs3 is breaking the build 🚨

The dependency @babel/runtime-corejs3 was updated from 7.8.4 to 7.8.7.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@babel/runtime-corejs3 is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • now: Now is deploying your app (Details).
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

✨ Projects using github-trending-api ✨

Let's collect some links here ❤️

We could feature more projects on the front-page. This issue could also serve as a way to explore all the cool stuff that people have created.

Please share some, any live app or site you've made that using this API. 😍

Please feel free to update README file to include your project in

Deploy to Docker

Currently it is deployed to now and it is not very stable, ideally we can deploy the API to docker

An in-range update of @types/jest is breaking the build 🚨

The devDependency @types/jest was updated from 24.0.19 to 24.0.20.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@types/jest is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • codecov/project: 100% remains the same compared to cded894 (Details).
  • codecov/patch: Coverage not affected when comparing cded894...ffe7a82 (Details).
  • now: deployment did not complete within 45 minutes (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

APIs are returning broken JSON

Hi,

When I hit the API for example List Trending Repositories the response JSON it returns is broken. I am trying from the console here. Can you please take a look? If I am doing something wrong please let me know.

The automated release is failing 🚨

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can resolve this 💪.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here is some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Invalid npm token.

The npm token configured in the NPM_TOKEN environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/.

If you are using Two-Factor Authentication, make configure the auth-only level is supported. semantic-release cannot publish with the default auth-and-writes level.

Please make sure to set the NPM_TOKEN environment variable in your CI with the exact value of the npm token.


Good luck with your project ✨

Your semantic-release bot 📦🚀

An in-range update of rollup-plugin-babel is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye 👋 and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


The devDependency rollup-plugin-babel was updated from 4.3.3 to 4.4.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

rollup-plugin-babel is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • now: Now is deploying your app (Details).
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Commits

The new version differs by 2 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Can we make repositories.builtBy just an array of usernames?

For example, we can respond as below

"builtBy": ["timneutkens", "arunoda", "nkzawa", "rauchg"]

instead of

"builtBy": [
      {
        "username": "timneutkens",
        "href": "https://github.com/timneutkens",
        "avatar": "https://avatars2.githubusercontent.com/u/6324199"
      },
      {
        "username": "arunoda",
        "href": "https://github.com/arunoda",
        "avatar": "https://avatars3.githubusercontent.com/u/50838"
      },
      {
        "username": "nkzawa",
        "href": "https://github.com/nkzawa",
        "avatar": "https://avatars1.githubusercontent.com/u/775227"
      },
      {
        "username": "rauchg",
        "href": "https://github.com/rauchg",
        "avatar": "https://avatars1.githubusercontent.com/u/13041"
      }
    ]

Thus we can reduce much net traffic, and because both the user profile link and avatar link can be derived from username:

let profileLink = `https://github.com/${username}`;
let avatar = `https://avatars.githubusercontent.com/${username}?s=200&v=4`;

See also HitUP's implementation, which has a built-by-members component only consumes the username property: https://github.com/wonderbeyond/HitUP/blob/master/src/components/built-by-members/index.js#L9

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.