GithubHelp home page GithubHelp logo

Add support for badges about krihelinator HOT 5 CLOSED

blueyed avatar blueyed commented on May 23, 2024
Add support for badges

from krihelinator.

Comments (5)

Nagasaki45 avatar Nagasaki45 commented on May 23, 2024

Hi @blueyed, thanks for your interest in the project.

I'm not sure I understand your requirement. Can you please elaborate?

BTW, regarding the design/architecture of the project, there are two ways in which new repositories can enter the Krihelinator DB:

  1. There is a poller that loop through all the github repositories, using their API. Each repo pulse page is then scraped and if the stats are above a certain threshold it enters the DB.
  2. There is a periodic process (every 6 hours) that scrape the github trending page and pass everything to the pulse page scraper above.

All of the statistics (num of authors, commits, PR and issues, per week) are saved in the DB in one of the occasions above. Nothing happens on the request-response loop, only fetching from DB and template rendering.

from krihelinator.

blueyed avatar blueyed commented on May 23, 2024

Thanks for explaining the overall process.

I've meant to have something like the Travis CI badge, where you have an URL that renders some image/SVG/HTML to display the stats. This could then be used to in your repo's README etc.
This would not trigger the re-calculation, but provide a way to display the data outside of http://krihelinator.xyz/.

from krihelinator.

Nagasaki45 avatar Nagasaki45 commented on May 23, 2024

Wow! thats a great idea! I will definitely add it soon.

It will require a minor change: Instead of rescraping the pulse page each time I will add a new field to the model like "user_requested". These will not be removed in the periodic process.

from krihelinator.

blueyed avatar blueyed commented on May 23, 2024

Awesome, thanks!

Could this also generate HTML that would expand on clicking it like with the landing page (where you then see the number of authors etc)?
btw: I also wonder why http://krihelinator.xyz/badge/blueyed/vim-diminactive displays 0? (for https://github.com/blueyed/vim-diminactive)

from krihelinator.

Nagasaki45 avatar Nagasaki45 commented on May 23, 2024

Could this also generate HTML that would expand on clicking it like with the landing page (where you then see the number of authors etc)?

Good idea! Can you please open a separate ticket for this?

btw: I also wonder why http://krihelinator.xyz/badge/blueyed/vim-diminactive displays 0? (for https://github.com/blueyed/vim-diminactive)

The Krihelimeter is calculated based on last week activity, scraped from the pulse page of the project. There was no activity on this project in the past week, therefore the Krihelimeter is 0.

from krihelinator.

Related Issues (20)

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.