I Build a GitHub Worth Estimate Generator
Tags: webdev, javascript, programming, github
Published: 2023-12-28 19:05:33

**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** 👇

{% embed https://x.com/shyam_tawli/status/1739187814569476232?s=20 %}

---


## [GitEstimate](https://gitestimate.vercel.app/) 


![demo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mnjq183icsnil4r6slfl.gif)

{% cta https://gitestimate.vercel.app/ %}Live Demo 🟢{% endcta %}

GitEstimate is an fun innovative project hosted at `https://gitestimate.vercel.app/`. Code by me [Md Taqui Imam](mdtaquiimam.vercel.app), 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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7adkmgmjdp1q8prkyuep.png)

{% cta https://github.com/taqui-786/GitEstimate %}Give a Star⭐{% endcta %}


---


## 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 : 

``` js
  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.

{% cta https://devletter.vercel.app %}Join Devletter 💌{% endcta %}

---

 
## 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 😊

---


{% embed https://dev.to/random_ti %}
[![github](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/taqui-786) 

[![twitter](https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/Taquiimam14)

[![portfolio](https://img.shields.io/badge/Portfolio-255E63?style=for-the-badge&logo=About.me&logoColor=white)](https://mdtaquiimam.vercel.app)

[![buymeacoffee](https://img.shields.io/badge/Buy_Me_A_Coffee-FFDD00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/taquiDevloper)