DEV Community

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

Posted on

77 15 17 15 18

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

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, weโ€™ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, weโ€™ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (78)

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
 
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 โ€ข

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

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
 
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
 
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
 
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
 
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
 
best_codes profile image
Best Codes โ€ข

Of course, awesome job again!

Collapse
 
katlehotech profile image
Thapelo Radebe โ€ข

Sad ๐Ÿ˜ข
Image description

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

๐Ÿ‘‹ Kindness is contagious

Please leave a โค๏ธ or a friendly comment on this post if you found it helpful!

Okay