{"id":25695645,"url":"https://github.com/abhub23/github-metrics","last_synced_at":"2026-04-12T22:03:01.154Z","repository":{"id":274276601,"uuid":"922424931","full_name":"abhub23/Github-Metrics","owner":"abhub23","description":"The idea was to integrate Api's from github and make something cool out of it Hope your github profile beats the other. Please Do Checkout.","archived":false,"fork":false,"pushed_at":"2025-02-22T11:10:06.000Z","size":3683,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T12:19:47.234Z","etag":null,"topics":["api-wrapper","githubapiwrapper"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abhub23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-26T06:53:03.000Z","updated_at":"2025-02-22T11:10:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"31d43299-3ae0-4f58-8ddc-116af06aa5a6","html_url":"https://github.com/abhub23/Github-Metrics","commit_stats":null,"previous_names":["abhub23/github-metrics"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhub23%2FGithub-Metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhub23%2FGithub-Metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhub23%2FGithub-Metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhub23%2FGithub-Metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhub23","download_url":"https://codeload.github.com/abhub23/Github-Metrics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240582031,"owners_count":19824146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-wrapper","githubapiwrapper"],"created_at":"2025-02-25T00:52:15.012Z","updated_at":"2026-04-12T22:02:56.105Z","avatar_url":"https://github.com/abhub23.png","language":"TypeScript","readme":"# React + TypeScript + Vite + Github API's\n\nThis Project takes two Github profiles and compare them on various stats which are stated by the deveoper to code base of this Repository.\n\n# How to run Locally?\n\nFirst clone the repository into your machine\n\n```bash\ngit clone https://github.com/abhub23/Github-Metrics.git\n```\n\nFollowed by installing required npm packages\n\n```bash\nnpm install\n```\n\nMake sure you have latest version of [Node](https://nodejs.org/en) and [TypeScript](https://www.typescriptlang.org/download/) installed in your System Locally\n\nFinally run the following command to run on your localhost\n\n```bash\nnpm run dev\n```\n\n## New Things i have learned during this Project\n\n- Giving types to my enviorment variables (env) for type safety using the **_vite-env.d.ts_** file from src in VITE\n\n- The _vite-env.d.ts_ file looks like this for variable VITE_API\n\n```typescript\n// src/vite-env.d.ts or vite-env.d.ts in the root (both work)\n/// \u003creference types=\"vite/client\" /\u003e\n\ninterface ImportMetaEnv {\n  readonly: string; // Declare VITE_API as a string type\n}\n\ninterface ImportMeta {\n  readonly VITE_API: string;\n}\n```\n\n- The env variables can be used using **_import.meta.env.VITE_API_**\n\n- Also in Vite we don't need dotenv package, Vite handles that itself and env variables should always start with VITE\\_ thats a convention\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhub23%2Fgithub-metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhub23%2Fgithub-metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhub23%2Fgithub-metrics/lists"}