As a user I want to highlight number of lines I code, and also card for fun facts about my profile
Reference - https://sourcerer.io/adiralashiva8
This seems like a pretty fun thing to add. I did a quick look on the Github API docs and it seems there is no way to count lines of commits. After a quick search it seems you can do it with a script that can check the lines of code committed from you, so that might be the only way to implement it 馃
If not possible please ignore this request.
@adiralashiva8 Thanks for requesting the feature, This seems interesting to implement.
We have to do some research with the https://sourcerer.io's source code to see if we can salvage some algorithms to calculate the Fun Facts Card.
And @FabioRosado points are totally valid too.
really like this idea. Interesting!
I've tried sourcerer and you need to download the sourcerer app and choose which repos to add to your profile then it will do some "magic" and will show you, your stats. To add this feature we might need to work on some piece of code that does the same thing 馃
I've tried sourcerer and you need to download the sourcerer app and choose which repos to add to your profile then it will do some "magic" and will show you, your stats. To add this feature we might need to work on some piece of code that does the same thing
Yes i've also used so https://sourcerer.io/ i think they also use web scraping to collect some extra info which are not in the GraphQL API.
I've tried sourcerer and you need to download the sourcerer app and choose which repos to add to your profile then it will do some "magic" and will show you, your stats. To add this feature we might need to work on some piece of code that does the same thing
Yes i've also used so https://sourcerer.io/ i think they also use web scraping to collect some extra info which are not in the GraphQL API.

It's definitely magic. Some simple API can't handle that.
I've tried sourcerer and you need to download the sourcerer app and choose which repos to add to your profile then it will do some "magic" and will show you, your stats. To add this feature we might need to work on some piece of code that does the same thing
Yes i've also used so https://sourcerer.io/ i think they also use web scraping to collect some extra info which are not in the GraphQL API.
It's definitely _magic_. Some simple API can't handle that.
"magic" here is referred to algorithm to calculate those statistics. https://github.com/sourcerer-io/sourcerer-app/blob/develop/src/main/kotlin/app/FactCodes.kt
if apps runs on magic i would have started graduating from hogwarts :p
"magic" here is referred to algorithm to calculate those statistics. https://github.com/sourcerer-io/sourcerer-app/blob/develop/src/main/kotlin/app/FactCodes.kt
I know that. JK.
NOTE
I tried the 3 methods. The 3rd path API (Method#3) counts almost the same as my local result (using cloc).
Result (jQuery/jQuery):
I don't think requesting a 3rd party API is a bad choice.
@adiralashiva8 I think this is what you want https://github.com/anmol098/waka-readme-stats/tree/dev#extras
please have a look at this
@anmol098 Thanks for sharing, It meets my requirement. If samething implemented here with nice UI, that could be awesome.
@adiralashiva8 We are directly writing on the markdown file...UI Customization is limited on markdown file.
@adiralashiva8 I think this is what you want https://github.com/anmol098/waka-readme-stats/tree/dev#extras
please have a look at this
How does it calculates the LOC? it uses WakaTime API (never tried it)?
Thanks for clarification @anmol098
Seems author is working on feature based on reference i shared, may be this helps them in implementation of feature
Let us wait for @anuraghazra and @FabioRosado view on this (im bit curious about UI part, which makes my profile bit awesome)
Actually there are lot of options/ways to calculate total LOC of a github user, but github-readme-stats needs to be realtime & have to calculate them fast (under 10sec limit of vercel) which is not an issue with services which uses Github Action.
https://sourcerer.io is calculating LOC on demand but as you can see they show a nice little loader & it takes lot of time (they even email you when the calculations are done)
The problem is not everyone tracks their coding time with WakaTime.
NOTE
waka-readme-status use code_frequency to count LOC too.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
@adiralashiva8 Thanks for requesting the feature, This seems interesting to implement.
We have to do some research with the https://sourcerer.io's source code to see if we can salvage some algorithms to calculate the Fun Facts Card.
And @FabioRosado points are totally valid too.