DEV Community

Cover image for I Build a GitHub Worth Estimate Generator
Random
Random

Posted on

I Build a GitHub Worth Estimate Generator

Hellooo Developers πŸ‘‹ Welcome to my another blog post .

In the fast-paced world of software development, GitHub has become the epicenter of collaboration, innovation, and code-sharing among developers worldwide.

Yesterday, i was scrolling on a twitter and i saw one tweet discussing about this project idea on making with nextjs and shadcnui.

And don't forget to Drop a "πŸ’–πŸ¦„πŸ”₯πŸ™ŒπŸ€―" .

The Project name is GitEstimate - A github worth estimate calculator. And i am Inspired by πŸ‘‡


GitEstimate

demo

Live Demo 🟒

GitEstimate is an fun innovative project hosted at https://gitestimate.vercel.app/. Code by me Md Taqui Imam, Just enter your Github username and it will fetch your data and calculate your estimated worth and you can also download it as JPEG and share it to others .

Download Result be like :

result

Give a Star⭐


Tech stack i used πŸ‘‡ ?

  • Nextjs 14
  • Shadcn Ui
  • Html-to-canvas
  • github-contributions-canvas
  • lodash
  • cheerio
  • typescript
  • Zod
  • Reach-hook-form.

How GitEstimate Works πŸ€”?

Upon visiting the GitEstimate website, users are prompted to enter their valid GitHub username. It fetch user Total Contribuitions, Total Stars got on repositories and Followers , and to generate an estimate of the GitHub profile's worth i created this function :

  function calculateGitHubWorth(
    contributions: number,
    followers: number,
    stars: number
  ) {
    // You can adjust the weights as per your preference
    const contributionWeight = 0.5;
    const followerWeight = 0.1;
    const starWeight = 0.3;

    // Calculate the estimated worth using the formula
    const estimatedWorth =
      contributions * contributionWeight +
      followers * followerWeight +
      stars * starWeight;

    return estimatedWorth.toFixed(1);
  }
Enter fullscreen mode Exit fullscreen mode

What is Devletter πŸ“© ?

Devletter is a great weekly newsletter for all things tech.
You'll get the latest coding news and insights to stay ahead of trends.

Devletter is a perfect way to learn about upcoming hackathons and events in your area too.

Make sure to Join Devletter now so you never miss out on amazing opportunities and discovery in the tech space.

Join Devletter πŸ’Œ


That's it πŸ˜…

Thank you for reading till here, i hope you find this blog post interesting and helpful.

See you next week πŸ‘‹

Happy Coding 😊




github

twitter

portfolio

buymeacoffee

Top comments (79)

Collapse
 
moopet profile image
Ben Sinclair

I don't really understand what you mean by, "worth".

I could say that I'll use a formula like (age in weeks) + (height in bananas) + (number of credit cards) to calculate my worth in Francs, but that's just me making stuff up. "Worth" is only relevant to marketable things.

So... is there anywhere I could sell my github presence for a bit of extra cash?

Collapse
 
thesanjeevsharma profile image
Sanjeev Sharma

Image description

Awesome app! One suggestion, please add a reset/refresh button if I want to try another account.

Collapse
 
random_ti profile image
Random

Glad to Hear that you liked it πŸ’– And Thank you for your suggestion πŸ™

Collapse
 
oliver_again profile image
Oliver

If only there was a way to cash out. I could do with the money as I can't afford next month's rent!

Image description

Collapse
 
random_ti profile image
Random

Sure i will add withdraw option for you πŸ˜‚

Collapse
 
oliver_again profile image
Oliver

Great. Booking the holiday now. 😁

Thread Thread
 
random_ti profile image
Random

okay🀣

Collapse
 
darkwiiplayer profile image
π’ŽWii πŸ³οΈβ€βš§οΈ

Is there a reason to present the rating as an amount in dollars, or is it just to spice things up a bit? From what I can see, the number is really just the weighted sum of some account metrics, right?

Cool project though πŸ‘

Collapse
 
code42cate profile image
Jonas Scholz

Looks exactly like something that went viral a few days ago on twitter, got inspired a lot huh? twitter.com/shyam_tawli/status/173...

Collapse
 
random_ti profile image
Random

Yes, i got inspired by github-worth.vercel.app/.

Collapse
 
wakywayne profile image
wakywayne

Are you saying he stole/copied the idea?

Collapse
 
tr11 profile image
Tiago Rangel

It's probably. My account worth is almost the same using both, maybe he stole the formula using the console

Collapse
 
random_ti profile image
Random

No i didn't stole his idea i inspired by her and i also tweet about this and mention her . And his github-worth.vercel.app/ Github repositories hi private so we cannot see him .

Collapse
 
code42cate profile image
Jonas Scholz

Maybe just a weird coincidence. I think copying/getting inspired is fine if it's made clear that it is:)

Thread Thread
 
random_ti profile image
Random

I only inspired by him but the code is written by my only not copy pasted .

Collapse
 
code42cate profile image
Jonas Scholz

Okay lol, not sure if I was too tired while reading or if he just edited the post to mention the tweet..

Collapse
 
lukeocodes profile image
@lukeocodes πŸ•ΉπŸ‘¨β€πŸ’»

I appreciate the sentiment but I would caution against attributing value to green dots. It's bragging rights and I can make a lot of very harmful changes, pointless changes, and valuable changes all in the name of green dots.

Keep having great ideas though, and I love the stack you used.

Collapse
 
lukeocodes profile image
@lukeocodes πŸ•ΉπŸ‘¨β€πŸ’»

Lol...

Image description

Collapse
 
atinypixel profile image
Aziz Kaukawala • Edited

Lol! Didn't knew I've added 11k+ commits!

Work Profile

Image description

Freelancing Profile

Image description

Collapse
 
random_ti profile image
Random

Its total contributions from since you created you github account .

Collapse
 
atinypixel profile image
Aziz Kaukawala

Yeah. I figured out that much!
Btw, that's a cool app! πŸ”₯

Thread Thread
 
random_ti profile image
Random

Thank you so much Aziz πŸ’–

Collapse
 
samchon profile image
Jeongho Nam

Image description

I should try to accomplish the $10,000.

By the way, "Save as JPEG" button is not working for me.

  • Windows 11
  • Microsoft Edge 120.0.2210.91
Collapse
 
random_ti profile image
Random

Actually i have reached the free tier image-source-optimization limit in vercel.

mail

Sorry for that πŸ˜₯

Collapse
 
smikodanic profile image
SaΕ‘a M

The image is broken

Image description

Collapse
 
random_ti profile image
Random

Actually i have reached the free tier image-source-optimization limit in vercel.

mail

Sorry for that πŸ˜₯

Collapse
 
smikodanic profile image
SaΕ‘a M

no problem man, just continue your great work
:thumbup

Collapse
 
best_codes profile image
Best Codes

Awesome job on the app! I love it.

Just want to point out two things:

  1. The button says β€œSave as JPEG”, but it actually saves the file as a PNG. (Minor detail).

Image description

  1. The dollar sign should be before the number, not after it. (Also a minor issue, but important for style).

Image description

Also, it seems a lot like the one here:
github-worth.vercel.app/
But being inspired (or as is likely coming up with it all by yourself!) is fine.

Otherwise, awesome job! I like yours more than the other because it gives me a higher worth. :D

Collapse
 
random_ti profile image
Random

Thank you so much for your awesome feedback, Yes i got inspired by github-worth.vercel.app/ but i had not copied his code because his Github repositories is private and we cannot see him.

Collapse
 
tr11 profile image
Tiago Rangel

Yeah but you can inspect it via the console and discover the formula πŸ”Ž

Thread Thread
 
best_codes profile image
Best Codes

You can also view it on GitHub. Are you inferring that he stole it?

Collapse
 
best_codes profile image
Best Codes

Of course, awesome job again!

Some comments have been hidden by the post's author - find out more