Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tyn1998 opened this issue Sep 22, 2023 · 5 comments
Open

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

tyn1998 opened this issue Sep 22, 2023 · 5 comments
Labels
kind/feature Category issues or prs related to feature request.

Comments

@tyn1998
Copy link
Member

tyn1998 commented Sep 22, 2023

Description

As @frank-zsy mentioned in X-lab2017/open-wonderland#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!

@tyn1998 tyn1998 added the kind/feature Category issues or prs related to feature request. label Sep 22, 2023
@TieWay59
Copy link
Contributor

image

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

@tyn1998
Copy link
Member Author

tyn1998 commented Sep 24, 2023

Another racing bar for OpenRank is also good. See this: #744 (comment)

image

@TieWay59
Copy link
Contributor

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
Copy link
Contributor

<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
Copy link
Contributor

TieWay59 commented Sep 25, 2023

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:

  • self-host
  • custom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Category issues or prs related to feature request.
Projects
None yet
Development

No branches or pull requests

2 participants