{"id":9243620,"url":"https://github.com/purescript-react/purescript-nextjs","last_synced_at":"2026-02-16T13:35:18.460Z","repository":{"id":84195328,"uuid":"529966425","full_name":"purescript-react/purescript-nextjs","owner":"purescript-react","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-23T11:08:26.000Z","size":89,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-08-17T07:32:25.294Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PureScript","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/purescript-react.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2022-08-28T20:00:58.000Z","updated_at":"2023-08-27T03:13:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"33518463-69a9-420b-8711-7a2130d25a20","html_url":"https://github.com/purescript-react/purescript-nextjs","commit_stats":null,"previous_names":["purescript-react/purescript-nextjs"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/purescript-react/purescript-nextjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-nextjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-nextjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-nextjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-nextjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purescript-react","download_url":"https://codeload.github.com/purescript-react/purescript-nextjs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-nextjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29509202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-05-08T00:10:25.836Z","updated_at":"2026-02-16T13:35:18.444Z","avatar_url":"https://github.com/purescript-react.png","language":"PureScript","readme":"# purescript-nextjs\n\nPurescript FFI bindings to [Next.js](https://nextjs.org).\n\nIn order to bootstrap a Next.js project with Purescript you can use our [`purescript-nextjs-template`](https://github.com/rowtype-yoga/purescript-nextjs-template). You can find the information on how to get started in that repo.\n\n## Usage\n\nOnce you have set up a Next.js project, you can use the FFI bindings here. This library provides bindings for many of the features described in the [Next.js documentation](https://nextjs.org/docs). We don't have FFI for everything yet, if you are missing something feel free to create an issue or even better: create a PR! \n\n\n### Router\nHere is an example how to use the router.\n\n```purescript\nimport React.Basic.DOM.Simplified.Generated as R\nimport React.Basic.Hooks as React\nimport Next.Router as NextRouter\n\n...\n\nReact.component \"MyComponent\" \\props -\u003e React.do\n    router \u003c- NextRouter.useRouter\n    let\n        q :: { myQueryParam :: String }\n        q = query router\n\n        dispatchRoute = Router.push Router\n    pure $ R.button { onClick: handler_ $ dispatchRoute \"/about\" } \"Click me\"\n```\n\n## Credits\n\nThis lib has been heavily inspired by and initially extracted from [`next-purescript-example`](https://github.com/jonasbuntinx/next-purescript-example), which is licensed under [MIT](https://github.com/jonasbuntinx/next-purescript-example/blob/master/LICENSE).\n","funding_links":[],"categories":["UI"],"sub_categories":["React"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurescript-react%2Fpurescript-nextjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurescript-react%2Fpurescript-nextjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurescript-react%2Fpurescript-nextjs/lists"}