{"id":20042600,"url":"https://github.com/code4mk/nextjs-friend","last_synced_at":"2026-04-11T22:43:16.770Z","repository":{"id":104452433,"uuid":"472625583","full_name":"code4mk/nextjs-friend","owner":"code4mk","description":"nextjs friend will be your nextjs boilerplate friend.","archived":false,"fork":false,"pushed_at":"2022-09-07T10:02:56.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-19T12:55:25.807Z","etag":null,"topics":["nextjs","nextjs-boilerplate"],"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/code4mk.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}},"created_at":"2022-03-22T05:23:32.000Z","updated_at":"2022-09-07T10:04:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"47ececb2-1c84-40c9-9f4e-da500991354f","html_url":"https://github.com/code4mk/nextjs-friend","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"83a8c352262788b5bb4d39646460ac6853d113fb"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Fnextjs-friend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Fnextjs-friend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Fnextjs-friend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Fnextjs-friend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code4mk","download_url":"https://codeload.github.com/code4mk/nextjs-friend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241470402,"owners_count":19968041,"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":["nextjs","nextjs-boilerplate"],"created_at":"2024-11-13T10:52:27.008Z","updated_at":"2026-04-11T22:43:11.746Z","avatar_url":"https://github.com/code4mk.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nextjs-Friend\nnextjs friend is a nextjs boilerplate.\n\n# Features\n* layout system\n* middleware (hoc)\n* redux\n* organize folder structure\n\n## layout\nAll layouts will live inside layout folder. Then register your layout `./utils/nextjs-friend.tsx`\n\n```tsx\nlet LayoutEnum: any = {\n  'base': Base,\n}\n```\n\n* usages of layout \n\n```tsx \nimport type { NextPage } from 'next'\nimport FriendHoc from '@utils/nextjs-friend'\n\nconst YourPageName: NextPage = () =\u003e {\n  return (\n    \u003cdiv\u003e\n      // your code \n    \u003c/div\u003e\n  )\n}\n\nexport default FriendHoc(YourPageName, {\n  layout: 'base',\n})\n```\n\n\n# middleware\n\nAuth middleware.\n\n```tsx \nexport default FriendHoc(YourPageName, {\n  middleware: ['auth'],\n})\n```\n\n# redux \n\nredux (redux-toolkit) code will live inside `store` folder\n\n* how to use redux toolkit with nextjs-friend.\n\n```tsx \nimport { useAppSelector, useAppDispatch } from '@utils/redux-friend'\n\nfunction YourPage() {\n  const dispatch = useAppDispatch()\n  const getReduxState = useAppSelector((state: any) =\u003e state.name.data)\n}\nexport default YourPage\n```\n\n# Run project \n\n* clone the project.\n\n```bash \nyarn install \nyarn dev\n# with ssr\nyarn dev-server\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode4mk%2Fnextjs-friend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode4mk%2Fnextjs-friend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode4mk%2Fnextjs-friend/lists"}