{"id":20597773,"url":"https://github.com/triggerdotdev/github-stars-demo","last_synced_at":"2025-03-06T15:22:04.529Z","repository":{"id":134990587,"uuid":"531479178","full_name":"triggerdotdev/github-stars-demo","owner":"triggerdotdev","description":"An app that fetches the star count for a given Github repo using API Hero","archived":false,"fork":false,"pushed_at":"2022-11-18T12:52:39.000Z","size":9886,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-02T00:08:39.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://look-to-the-stars-6eqm0q07h-apihero.vercel.app/","language":"JavaScript","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/triggerdotdev.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":"2022-09-01T10:59:34.000Z","updated_at":"2022-11-18T12:52:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f1b5381-b861-4e09-98ef-5f2df00e6494","html_url":"https://github.com/triggerdotdev/github-stars-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triggerdotdev%2Fgithub-stars-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triggerdotdev%2Fgithub-stars-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triggerdotdev%2Fgithub-stars-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triggerdotdev%2Fgithub-stars-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/triggerdotdev","download_url":"https://codeload.github.com/triggerdotdev/github-stars-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242231466,"owners_count":20093640,"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":[],"created_at":"2024-11-16T08:23:55.523Z","updated_at":"2025-03-06T15:22:04.505Z","avatar_url":"https://github.com/triggerdotdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Hero - Next.js GitHub Demo\n\nThis repository contains a Next.js demo app that interacts with the [GitHub API](https://docs.github.com/en/rest) using [API Hero](https://apihero.run), to fetch the current star count of a repository.\n\n## Getting started\n\n\u003e You'll need an API Hero account to run this demo. Signup for the waitlist [here](https://apihero.run/privateBetaSignup)\n\nClone the repository and install the dependencies:\n\n```bash\ngit clone https://github.com/apihero-run/github-stars-demo.git\ncd github-stars-demo\nnpm install\n```\n\nInvoke the API Hero CLI to add the GitHub integration to your API Hero account:\n\n```\nnpx apihero@latest add github\n```\n\nAfter following the prompts, you should be shown a `projectKey`. Edit the `ApiHeroProvider` component in [pages/index.tsx](/pages/index.tsx) and add the `projectKey` prop:\n\n```tsx\nexport default function App() {\n  return (\n    \u003cAPIHeroProvider projectKey=\"\u003cyour project key here\u003e\"\u003e\n      \u003cHome /\u003e\n    \u003c/APIHeroProvider\u003e\n  );\n}\n```\n\nNow you are ready to run the app with `npm run dev` and visit the app at [http://localhost:3000](http://localhost:3000) and start making requests:\n\n![look to the stars demo](/docs/ShowDontTell.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftriggerdotdev%2Fgithub-stars-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftriggerdotdev%2Fgithub-stars-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftriggerdotdev%2Fgithub-stars-demo/lists"}