hypertrons / hypertrons-crx

A browser extension for insights into GitHub projects and developers.
https://crx.hypertrons.io
Apache License 2.0
330 stars 91 forks source link

[Feature] A good way to present Community OpenRank #742

Open tyn1998 opened 9 months ago

tyn1998 commented 9 months ago

Description

As @frank-zsy mentioned in https://github.com/X-lab2017/open-wonderland/issues/311, now we have access to Community OpenRank of 650k repos, which is so exciting!

This is a huge progress for OpenRank and Hypercrx can't wait to present these data in a good way. This issue is created for discussions, please leave your ideas!

TieWay59 commented 9 months ago

image

A simple idea: find a way to embed this chart into md.

tyn1998 commented 9 months ago

Another racing bar for OpenRank is also good. See this: https://github.com/hypertrons/hypertrons-crx/pull/744#issue-1909099473

image
TieWay59 commented 9 months ago

Active Contributors of hypertrons/hypertrons-crx - Last 28 days

Commits Time Distribution of hypertrons/hypertrons-crx

Company Affiliation of hypertrons/hypertrons-crx

First Response to Issues of hypertrons/hypertrons-crx

Issue Opened and Closed of hypertrons/hypertrons-crx

Lines of Code Changes of hypertrons/hypertrons-crx

Pull Request Lifecycle of hypertrons/hypertrons-crx

Pull Request Size of hypertrons/hypertrons-crx

Pushes and Commits of hypertrons/hypertrons-crx

Star History of hypertrons/hypertrons-crx

Star Geographical Distribution of hypertrons/hypertrons-crx

Contributors of hypertrons/hypertrons-crx

Collaborative Productivity of hypertrons/hypertrons-crx - Last 28 days

Performance Stats of hypertrons/hypertrons-crx - Last 28 days

Top Contributors of hypertrons/hypertrons-crx - Last 28 days

TieWay59 commented 9 months ago
<a href="https://next.ossinsight.io/widgets/official/compose-recent-top-contributors?repo_id=259035151" target="_blank" style="display: block" align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://next.ossinsight.io/widgets/official/compose-recent-top-contributors/thumbnail.png?repo_id=259035151&image_size=auto&color_scheme=dark" width="380" height="auto">
    <img alt="Top Contributors of hypertrons/hypertrons-crx - Last 28 days" src="https://next.ossinsight.io/widgets/official/compose-recent-top-contributors/thumbnail.png?repo_id=259035151&image_size=auto&color_scheme=light" width="380" height="auto">
  </picture>
</a>

Wow, they even use <picture> tag, what brilliant engineers. @tyn1998

Details

在 md 内嵌动态 svg 我观察到有两种方案。 本质都是服务器缓存图片,通过 api 的方式分发给客户端。 一种是嵌入 html 的方式,这样的好处是能定制 web 元素的尺寸,并且能获得web标签的辅助优势,但是看起来复杂一些。 另一种是完全按照 md 的格式,比如 anuraghazra/github-readme-stats ,改不了图片尺寸,在外面包装引导连接也是可以的。 `[![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats)` PS:之所以要包装连接是因为,图片资源连接打开只是图片,跳不到你希望的官方页面。(除非你在服务端做某种根据用户访问的重定向)

TieWay59 commented 9 months ago

https://github.com/anuraghazra/github-readme-stats

github-readme-stats is more mature than oss-insight but they calculate data by visit (not ahead).

key feature I see: