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.
The Project name is GitEstimate - A github worth estimate calculator.
GitEstimate
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 :
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);
}
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.
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 ๐