{"id":15640359,"url":"https://github.com/jaydenseric/next-graphql-react","last_synced_at":"2025-08-21T13:32:58.146Z","repository":{"id":50308560,"uuid":"163785327","full_name":"jaydenseric/next-graphql-react","owner":"jaydenseric","description":"A graphql-react integration for Next.js.","archived":false,"fork":false,"pushed_at":"2023-11-22T06:08:55.000Z","size":286,"stargazers_count":77,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-29T14:09:31.458Z","etag":null,"topics":["graphql","maintained","next","node","npm","react"],"latest_commit_sha":null,"homepage":"https://npm.im/next-graphql-react","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaydenseric.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":".github/funding.yml","license":"license.md","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},"funding":{"github":"jaydenseric"}},"created_at":"2019-01-02T02:33:53.000Z","updated_at":"2024-06-19T12:50:00.000Z","dependencies_parsed_at":"2023-11-21T05:37:16.920Z","dependency_job_id":"a9213ae7-b7df-4e9a-8194-5a4378d51236","html_url":"https://github.com/jaydenseric/next-graphql-react","commit_stats":{"total_commits":229,"total_committers":1,"mean_commits":229.0,"dds":0.0,"last_synced_commit":"a52487be595a30b308f6c04002a8ac1a5ad74485"},"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Fnext-graphql-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Fnext-graphql-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Fnext-graphql-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Fnext-graphql-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaydenseric","download_url":"https://codeload.github.com/jaydenseric/next-graphql-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230516191,"owners_count":18238353,"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":["graphql","maintained","next","node","npm","react"],"created_at":"2024-10-03T11:34:49.297Z","updated_at":"2024-12-20T00:08:44.054Z","avatar_url":"https://github.com/jaydenseric.png","language":"JavaScript","readme":"![graphql-react logo](https://cdn.jsdelivr.net/gh/jaydenseric/graphql-react@0.1.0/graphql-react-logo.svg)\n\n# next-graphql-react\n\nA [`graphql-react`](https://npm.im/graphql-react) integration for [Next.js](https://nextjs.org).\n\n## Installation\n\nWithin an existing [Next.js](https://nextjs.org) project, to install [`next-graphql-react`](https://npm.im/next-graphql-react) and its [`graphql-react`](https://npm.im/graphql-react) peer dependency with [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm), run:\n\n```sh\nnpm install next-graphql-react graphql-react\n```\n\nSetup the [Next.js custom `App`](https://nextjs.org/docs/advanced-features/custom-app) module:\n\n- Polyfill the [required globals](https://github.com/jaydenseric/graphql-react#requirements).\n- Decorate the default export with the function [`withGraphQLReact`](./withGraphQLReact.mjs).\n\nThen [React](https://reactjs.org) hooks imported from [`graphql-react`](https://npm.im/graphql-react) can be used within the [Next.js](https://nextjs.org) project pages and components.\n\n## Requirements\n\nSupported runtime environments:\n\n- [Node.js](https://nodejs.org) versions `^18.17.0 || \u003e=20.4.0`.\n- Browsers matching the [Browserslist](https://browsersl.ist) query [`\u003e 0.5%, not OperaMini all, not dead`](https://browsersl.ist/?q=%3E+0.5%25%2C+not+OperaMini+all%2C+not+dead).\n\nProjects must configure [TypeScript](https://www.typescriptlang.org) to use types from the ECMAScript modules that have a `// @ts-check` comment:\n\n- [`compilerOptions.allowJs`](https://www.typescriptlang.org/tsconfig#allowJs) should be `true`.\n- [`compilerOptions.maxNodeModuleJsDepth`](https://www.typescriptlang.org/tsconfig#maxNodeModuleJsDepth) should be reasonably large, e.g. `10`.\n- [`compilerOptions.module`](https://www.typescriptlang.org/tsconfig#module) should be `\"node16\"` or `\"nodenext\"`.\n\n## Exports\n\nThe [npm](https://npmjs.com) package [`next-graphql-react`](https://npm.im/next-graphql-react) features [optimal JavaScript module design](https://jaydenseric.com/blog/optimal-javascript-module-design). It doesn’t have a main index module, so use deep imports from the ECMAScript modules that are exported via the [`package.json`](./package.json) field [`exports`](https://nodejs.org/api/packages.html#exports):\n\n- [`withGraphQLReact.mjs`](./withGraphQLReact.mjs)\n","funding_links":["https://github.com/sponsors/jaydenseric"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaydenseric%2Fnext-graphql-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaydenseric%2Fnext-graphql-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaydenseric%2Fnext-graphql-react/lists"}