5

I Build a GitHub Worth Estimate Generator

 8 months ago
source link: https://dev.to/random_ti/i-build-a-github-worth-estimate-generator-4jjd
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Cover image for I Build a GitHub Worth Estimate Generator
Random

Posted on Dec 28

46 10 11 10 13

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
  • 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);
  }

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 😊



About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK