{"id":15794146,"url":"https://github.com/hacksore/next-og-github-graphql","last_synced_at":"2025-06-12T00:33:05.767Z","repository":{"id":193037675,"uuid":"673917779","full_name":"Hacksore/next-og-github-graphql","owner":"Hacksore","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-04T20:16:39.000Z","size":607,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-04T20:19:37.898Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://next-og-github-graphql-web.vercel.app","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/Hacksore.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":"2023-08-02T18:06:23.000Z","updated_at":"2025-05-04T20:16:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ec52bbc-4e0d-4091-9d8f-85bfbe0604f2","html_url":"https://github.com/Hacksore/next-og-github-graphql","commit_stats":null,"previous_names":["hacksore/next-og-github-graphql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hacksore/next-og-github-graphql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hacksore%2Fnext-og-github-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hacksore%2Fnext-og-github-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hacksore%2Fnext-og-github-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hacksore%2Fnext-og-github-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hacksore","download_url":"https://codeload.github.com/Hacksore/next-og-github-graphql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hacksore%2Fnext-og-github-graphql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259369846,"owners_count":22847150,"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-10-04T23:40:29.989Z","updated_at":"2025-06-12T00:33:05.759Z","avatar_url":"https://github.com/Hacksore.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-og-github-graphql\n\nYou can make your og image use your github contribution data\n\n### Codegen\nyou must setup a `.env` file to have `GITHUB_TOKEN` that has access to read your data.\n\nThen run `yarn codegen` and it will generate the schema and update.\n\n### Usage\n\nNow you have a fully typeafe call 😎\n\n```ts\nconst response = await getUserContributions({ user: \"Hacksore\" });\n```\n\n### Future Vision 🚀\n\nThis project is currently a Proof of Concept (PoC), but the goal is to transform it into a reusable library that makes it super easy to add GitHub contribution graphs to your OpenGraph images.\n\nThe vision is to create a simple component that you can just drop into your `opengraph-image.tsx`:\n\n```tsx\nimport { GithubGraph } from 'next-og-github-graphql';\n\nexport default function Image() {\n  return (\n    \u003cdiv\u003e\n      \u003cGithubGraph username=\"your-username\" /\u003e\n    \u003c/div\u003e\n  );\n}\n```\n\nThis would abstract away all the complexity of:\n- Fetching GitHub contribution data\n- Handling the GraphQL queries\n- Managing the layout and styling\n- Generating the image\n\nIf you're interested in helping make this vision a reality, contributions are welcome! 🎉\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacksore%2Fnext-og-github-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhacksore%2Fnext-og-github-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacksore%2Fnext-og-github-graphql/lists"}