GithubHelp home page GithubHelp logo

stophobia / code-statistic Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zmh-program/code-statistic

0.0 1.0 0.0 1.17 MB

⚡ Dynamically generate your github stat cards! Contains User Card, Repo Card, Contributor Card, Release Card, Issue Card and PR Card! Support dark mode, API calling, waiting for you to explore! ⚡ 动态生成你的 GitHub 统计卡片!包含用户卡片,仓库卡片,Contributor 卡片,Relase 卡片,Issue 卡片,PR 卡片!支持暗黑模式,API 调用,更多等你探索!

Home Page: https://stats.deeptrain.net

License: MIT License

PHP 58.49% Go 32.78% TypeScript 0.33% HTML 0.81% Vue 7.58%

code-statistic's Introduction

Code Statistic

⚡ Dynamically generate your github statistic card!

License GitHub release GitHub stars

🍊 User Card

Hey, want to generate quickly? Have a look at our website!

The user card is used to count the languages of all projects under the user and generate statistics, calculate total stars earned, forks acquired, followers, watchers, number of open issues, etc.

[![zmh-program's Github Stats](https://stats.deeptrain.net/user/zmh-program/)](https://github.com/zmh-program/code-statistic)

zmh-program's Github Stats

Note currently only your own repositories as statistics, do not support the repositories contributed to others, do not support private repositories, excluding fork repositories.

We will count all repository data such as stars, forks, open issues and output the statistic.

🍉 Repository Card

The repository card are used to show the language analysis of the project, stars, forks, license, repository size, etc.

[![Deeptrain's Github Stats](https://stats.deeptrain.net/repo/zmh-program/Deeptrain)](https://github.com/zmh-program/code-statistic)

Deeptrain's Github Stats

Warning by default, we can't get the data of private repo, please use your own token to deploy. Don't forget to check the box to access your private repositories!

🍎 Contributor Card

The contributor card is used to count the contributors in a project and will be ranked by the number of commits.

[![Web ChatGPT QQ Bot's Contributors](https://stats.deeptrain.net/contributor/zmh-program/web-chatgpt-qq-bot)](https://github.com/zmh-program/code-statistic)

Web ChatGPT QQ Bot's Contributors

The param column is the number of contributors in each row. The minimum is 4 and the default is 6. Add &column= to customize the number of columns.

🍇 Release Card

The release card is used to display information about the release, such as branch, tag name, time and description, etc.

[![Deeptrain's Latest Release](https://stats.deeptrain.net/release/zmh-program/Deeptrain)](https://github.com/zmh-program/code-statistic)

Deeptrain's Latest Release

Show previous release versions by setting the parameter tag. Customize the release tag by adding &tag=. The default is latest.

🍋 Issue Card

The issue card is used to show the status of the issue, title, time, communication, etc.

[![Vue's Issue #13013](https://stats.deeptrain.net/issue/vuejs/vue/13013)](https://github.com/zmh-program/code-statistic)

Vue's Issue #13013

🍓 Pull Request Card

The pull request card is used to show the status of the pull request, branches, title, time, migrations, etc.

[![Code Statistic's PR #1](https://stats.deeptrain.net/pull/zmh-program/code-statistic/1)](https://github.com/zmh-program/code-statistic)

Code Statistic's PR #1

🥝 Dark Theme

Very easy, just add ?theme=dark after it in any kind of card!

[![web-chatgpt-qq-bot's Github Stats](https://stats.deeptrain.net/repo/zmh-program/web-chatgpt-qq-bot/?theme=dark)](https://github.com/zmh-program/code-statistic)

web-chatgpt-qq-bot's Github Stats

👨‍💻 API

  1. User

    GET https://stats.deeptrain.net/api/user/{user}

    Example response:

    {
      "username": "zmh-program",
      "org": false,
      "location": "Shandong, China",
      "repos": 24,
      "stars": "0.3k",
      "watchers": "0.3k",
      "followers": "45",
      "forks": "10",
      "issues": "2",
      "languages": [
        {
          "color": "#3572A5",
          "lang": "Python",
          "percent": 35.30345154490841,
          "text": "Python 35% (525.1k)",
          "value": 525070
        }, 
        ...
      ]
    }

    Error response:

    {
     "message": "user not found"
    }

  2. Repo

    GET https://stats.deeptrain.net/api/repo/{user}/{repo}

    Example response:

    {
      "username": "zmh-program",
      "license": "MIT",
      "repo": "code-statistic",
      "stars": "26",
      "watchers": "26",
      "color": "#a91e50",
      "forks": "1",
      "issues": "0",
      "size": "1.0 MiB",
      "languages": [
        {
          "color": "#3178c6",
          "lang": "TypeScript",
          "percent": 42.76333789329686,
          "text": "TypeScript 43% (21.9k)",
          "value": 21882
        }, 
        ...
      ]
    }

    Error response:

    {
      "message": "repo not found"
    }
  3. Contributor

    GET https://stats.deeptrain.net/api/contributor/{user}/{repo}

    Example response:

    {
      "color": "#d2cece",
       "contributors": [{
           "avatar": "https://avatars.githubusercontent.com/u/112773885?v=4",
           "commits": 18,
           "image": "iVBORw0KGgoAAAANSUhEUgAA…uxEC+HwAAAAAElFTkSuQmCC",
           "username": "zmh-program"
       }],
       "repo": "zmh-program",
       "username": "zmh-program"
    }

    Error response:

    {
      "message": "repo not found"
    }
  4. Release

    GET https://stats.deeptrain.net/api/release/{user}/{repo}/{tag|latest}

    Example response:

    {
      "assets": [
        {
          "name": "install.sh",
          "size": "1.6k",
          "type": "application/x-sh"
        },
        {
          "name": "package.zip",
          "size": "791.5k",
          "type": "application/zip"
        }
      ],
      "author": {
        "avatar": "https://avatars.githubusercontent.com/u/112773885?v=4",
        "image": "iVBORw0KGgoAAAANSUhEUgAA…uxEC+HwAAAAAElFTkSuQmCC",
        "type": "User",
        "username": "zmh-program"
      },
      "branch": "main",
      "color": "#41b883",
      "date": "2023-05-23T15:17:52Z",
      "draft": false,
      "name": "1.6",
      "prerelease": false,
      "repo": "web-chatgpt-qq-bot",
      "tag": "1.6",
      "text": "here is release description...",
      "username": "zmh-program"
    }

    Error response:

    {
      "message": "release not found"
    }
  5. Issue

    GET https://stats.deeptrain.net/api/issue/{user}/{repo}/{id}

    Example response:

    {
      "color": "#f1e05a",
      "comments": 1,
      "date": "2022-01-18T21:10:09Z",
      "description": "...",
      "id": 12,
      "labels": [],
      "opener": {
        "avatar": "https://avatars.githubusercontent.com/u/63081316?v=4",
        "image": "iVBORw0KGgoAAAANSUhEUgAA…0cg9hQAAAAASUVORK5CYII=",
        "type": "User",
        "username": "mollthecoder"
      },
      "reactions": 0,
      "repo": "extensions",
      "state": "closed",
      "title": "Create dictionaries.js",
      "username": "turbowarp"
    }

    Error response:

    {
      "message": "issue not found"
    }
  6. Pull Request

    GET https://stats.deeptrain.net/api/pull/{user}/{repo}/{id}

    Example response:

    {
      "additions": "72",
      "changed_files": 1,
      "color": "#f1e05a",
      "comments": 1,
      "commits": 1,
      "creator": {
        "avatar": "https://avatars.githubusercontent.com/u/63081316?v=4",
        "image": "iVBORw0KGgoAAAANSUhEUgAA…0cg9hQAAAAASUVORK5CYII=",
        "type": "User",
        "username": "mollthecoder"
      },
      "date": "2022-01-18T21:10:09Z",
      "deletions": "0",
      "description": "...",
      "id": 12,
      "labels": [],
      "migration": {
        "base": "TurboWarp:master",
        "head": "mollthecoder:patch-1"
      },
      "repo": "extensions",
      "state": "closed",
      "title": "Create dictionaries.js",
      "username": "turbowarp"
    }

    Error response:

    {
      "message": "pull requst not found"
    }

Changelog

  • v1 Express + EJS
  • v2 Nuxt + Element
  • v3 Golang + PHP + Vue3 + TDesign

code-statistic's People

Contributors

zmh-program avatar

Watchers

 avatar

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.