GithubHelp home page GithubHelp logo

jaywcjlove / github-rank Goto Github PK

View Code? Open in Web Editor NEW
2.1K 40.0 154.0 397.42 MB

🕷️Github China/Global User Ranking, Global Warehouse Star Ranking (Github Action is automatically updated daily).

Home Page: http://jaywcjlove.github.io/github-rank

License: MIT License

TypeScript 47.11% EJS 52.89%
github ranking git github-api github-pages github-rank segmentfault github-star

github-rank's Introduction

[中文] Preview: Github | Gitee | UNPKG | Githack | Statically

Github Ranking

Buy me a coffee

Github global/Chinese user rankings, global repositories Star rankings, page data generated through Github API v3, ranking preview.

Released on npm from April 20, 2019, the version number is defined by year, month, and day, such as: v19.4.20.

Now it can be updated automatically every day, using GitHub Actions Workflows to trigger the GitHub workflow every day at 00:00 (8:00 am Beijing time) through the timer, automatically crawl the data, submit the generated web page to the gh-pages branch, and Automatically publish npm version, really fragrant! !

Update date: 2024-04-30 17:59:20

Plug-in Usage

npm install @wcj/github-rank --save-dev

Users can obtain ranking data by importing data, or directly access the user leaderboard through UNPKG.

import users from '@wcj/github-rank';
import repos from '@wcj/github-rank/dist/repos.json';
import trendingDaily from '@wcj/github-rank/dist/trending-daily.json';
import trendingWeekly from '@wcj/github-rank/dist/trending-weekly.json';
import trendingMonthly from '@wcj/github-rank/dist/trending-monthly.json';
import users from '@wcj/github-rank';

// By default users outputs the following data:
[
  {
    "login": "jaywcjlove",
    "id": 1680273,
    "node_id": "MDQ6VXNlcjE2ODAyNzM=",
    "avatar_url": "https://avatars1.githubusercontent.com/u/1680273?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/jaywcjlove",
    "html_url": "https://github.com/jaywcjlove",
    "followers_url": "https://api.github.com/users/jaywcjlove/followers",
    "following_url": "https://api.github.com/users/jaywcjlove/following{/other_user}",
    "gists_url": "https://api.github.com/users/jaywcjlove/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/jaywcjlove/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/jaywcjlove/subscriptions",
    "organizations_url": "https://api.github.com/users/jaywcjlove/orgs",
    "repos_url": "https://api.github.com/users/jaywcjlove/repos",
    "events_url": "https://api.github.com/users/jaywcjlove/events{/privacy}",
    "received_events_url": "https://api.github.com/users/jaywcjlove/received_events",
    "type": "User",
    "site_admin": false,
    "score": 1,
    "rank": 117,
    "name": "小弟调调™",
    "company": "ʕ•̫͡•ʔ-̫͡-ʕ•͓͡•ʔ-̫͡-ʔ",
    "blog": "http://wangchujiang.com",
    "location": "Shanghai, China",
    "email": "[email protected]",
    "hireable": true,
    "bio": "(͡·̮̃·̃) 撸码的乐趣 💯 ,“人没了,™代码还在”",
    "public_repos": 78,
    "public_gists": 1,
    "followers": 2519,
    "following": 91,
    "created_at": "2012-04-26T00:30:25Z",
    "updated_at": "2019-04-12T14:27:54Z"
  }
]

Development

$ git clone https://github.com/jaywcjlove/github-rank.git
$ cd github-rank
$ npm install   # Install dependencies
$ npm run build # Compilation output script

Crawlers get data

$ npm run get:trending    # Get trending data
$ npm run get:repos       # Get repos data
$ npm run get:users       # Get users data
$ npm run get:users:china # Get users(china) data

Generate HTML page

$ npm run start

Contributors

As always, thanks to our amazing contributors!

小弟调调

Mend Renovate Leon-kfd mindsets Anthony Fu Feei ZY Ryan Co

Made with contributors, automatically generated.

License

Licensed under the MIT License.

github-rank's People

Contributors

372798735 avatar antfu avatar dependabot[bot] avatar feeicn avatar github-actions[bot] avatar jaywcjlove avatar leon-kfd avatar renovate-bot avatar renovate[bot] avatar rr210 avatar zhenyong avatar

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  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

github-rank's Issues

Search users

Could you please create a search input field for searching by username?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Other Branches

These updates are pending. To force PRs open, click the checkbox below.

  • chore(deps): update actions/checkout action to v4
  • chore(deps): update actions/setup-node action to v4
  • chore(deps): update peaceiris/actions-gh-pages action to v4

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v4
  • actions/setup-node v4
  • peaceiris/actions-gh-pages v3
.github/workflows/ci3.yml
  • actions/checkout v3
  • actions/setup-node v3
npm
package.json
  • @octokit/request ~8.1.0
  • @types/cheerio ~0.22.31
  • @types/dotenv ~8.2.0
  • @types/fs-extra ~11.0.0
  • @types/node-fetch ~2.6.2
  • @uiw/formatter ^2.0.2
  • @wcj/ejs-cli ^1.1.3
  • cheerio ~1.0.0-rc.12
  • console-emojis ~2.0.0
  • dotenv ~16.3.0
  • fs-extra ^11.1.1
  • node-fetch ^3.3.1
  • tsbb ^4.1.4

  • Check this box to trigger a request for Renovate to run again on this repository

排名中人名显示灰色的问题

看到排名中一些人的名字是灰色的,简单查了一下代码

users.forEach(function(user, idx){ const isUnActive = ((Date.now() - new Date(user.updated_at || '')) / 86400000) > 100;

说的好像是不活跃的天数超过100天。

但是这个好像是有问题的,比如第二名 Evan You yyx990803 几乎每天都是活跃的,不应该是显示灰色的。

排名发生错乱

见下图,这是 2020-12-9 日的排名。图上灰色的用户的排名比较低,但是穿插到了榜单中。

多个维度来做用户排名

目前的用户排名,仅仅是根据 follower 来的,建议增加更多维度,例如用户所有项目的 star 之和。

搜索排名

可以考虑加个搜索功能,输入 GitHub ID 看排名,比如输入 jaywcjlove 看看自己的排名,输入仓库名称看 star 排名。需要看下是否有 API 支持,纯属好奇😀

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

界面的格式

是为了手机浏览方便吗?
为何页面有点窄,我想除了让页面丰满一点,还可以通过什么办法让页面变得更燃一点,毕竟他们是“封号斗罗”的存在。

但同样重要的是,无论做什么,也不能失去它简约美观的效果。

人物bug?

image

image

在Golbal/ 类别下 Evan You 的 follow 为88k,而在China/ 类别下则是50k
在Golbal/ 类别下 Evan You 的 归属地为Singapore,而在China/ 类别下则是 New Jersey

数据不全?

不太清楚这个排行榜是怎么抓取数据的,我感觉我应该大概能上榜,但是没有出现在榜单里。

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.