{"id":16633160,"url":"https://github.com/yazaldefilimone/clean-arch-nextjs-starter","last_synced_at":"2026-02-13T01:36:32.853Z","repository":{"id":54249924,"uuid":"519785882","full_name":"yazaldefilimone/clean-arch-nextjs-starter","owner":"yazaldefilimone","description":"Clean architecture starter for Next.js with TypeScript. All the tools you need to build your next project.","archived":false,"fork":false,"pushed_at":"2022-10-06T07:27:50.000Z","size":328,"stargazers_count":76,"open_issues_count":0,"forks_count":16,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-20T04:33:28.658Z","etag":null,"topics":["boilerplate","clean-architecture","eslint","frontend","jest","next","nextjs","react","reactjs","tdd","testing-library","typescript"],"latest_commit_sha":null,"homepage":"https://clean-arch-nextjs-starter.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/yazaldefilimone.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}},"created_at":"2022-07-31T13:36:56.000Z","updated_at":"2025-07-18T11:15:06.000Z","dependencies_parsed_at":"2023-01-19T08:30:57.328Z","dependency_job_id":null,"html_url":"https://github.com/yazaldefilimone/clean-arch-nextjs-starter","commit_stats":null,"previous_names":["yazaldefilimone/clean-arch-nextjs-starter"],"tags_count":2,"template":true,"template_full_name":null,"purl":"pkg:github/yazaldefilimone/clean-arch-nextjs-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazaldefilimone%2Fclean-arch-nextjs-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazaldefilimone%2Fclean-arch-nextjs-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazaldefilimone%2Fclean-arch-nextjs-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazaldefilimone%2Fclean-arch-nextjs-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yazaldefilimone","download_url":"https://codeload.github.com/yazaldefilimone/clean-arch-nextjs-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazaldefilimone%2Fclean-arch-nextjs-starter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266834535,"owners_count":23992201,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["boilerplate","clean-architecture","eslint","frontend","jest","next","nextjs","react","reactjs","tdd","testing-library","typescript"],"created_at":"2024-10-12T05:12:19.292Z","updated_at":"2026-02-13T01:36:27.814Z","avatar_url":"https://github.com/yazaldefilimone.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cp align=\"center\" \u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/26466516/141659551-d7ba5630-7200-46fe-863b-87818dae970a.png\" /\u003e\n\u003cP/\u003e\n\n \u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/static/v1?label=Clean-Arch TDD NextJs\u0026message=Welcome\u0026color=FFFFFF\u0026labelColor=110C2F\" alt=\"Unsplash welcome!\" /\u003e\n  \u003cimg alt=\"License\" src=\"https://img.shields.io/static/v1?label=version\u0026message=1.0\u0026color=FFFFFF\u0026labelColor=110C2F\"\u003e\n  \u003cimg alt=\"License\" src=\"https://img.shields.io/static/v1?label=license\u0026message=MIT\u0026color=FFFFFF\u0026labelColor=110C2F\"\u003e\n  \u003cimg alt=\"Stars\" src=\"https://img.shields.io/github/stars/yazaldefilimonepinto/clean-architecture-nextjs-tdd-boilerplate?color=FFFFFF\u0026labelColor=110C2F\"\u003e\n  \u003cimg alt=\"Languages\" src=\"https://img.shields.io/github/languages/count/yazaldefilimonepinto/clean-architecture-nextjs-tdd-boilerplate?color=FFFFFF\u0026labelColor=110C2F\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\" \u003e\nClean architecture starter for Next.js with TypeScript. \u003cbr\u003e\nAll the tools you need to build your nextxroject.\n\u003cP/\u003e\n\n## Features\n- ⚡️ Next.js 12\n- ⚛️ React 18\n- ⛑ TypeScript\n- ✨ Styled Components - CssInJs for component styling\n- 📏 ESLint — To find and fix problems in your code\n- 💖 Prettier — Code Formatter for consistent style\n- 🐶 Husky — For running scripts before committing\n- 🚓 Commitlint — To make sure your commit messages follow the convention\n- 🚫 lint-staged — Run ESLint and Prettier against staged Git files\n- ⚙️ EditorConfig - Consistent coding styles across editors and IDEs\n- 🗂 Path Mapping — Import components or images using the `~/` prefix\n- ‽ Either Error Handler - For error handling. (Either is designed to hold either a left or a right value but never both).\n\n\n## Quick Start\n\nThe best way to start with this template is using [Create Next App](https://nextjs.org/docs/api-reference/create-next-app).\n\n```\n# yarn\nyarn create next-app -e https://github.com/yazaldefilimonepinto/clean-arch-nextjs-starter\n# npm\nnpx create-next-app -e https://github.com/yazaldefilimonepinto/clean-arch-nextjs-starter\n```\n\n### Development\n\nTo start the project locally, run:\n\n```bash\n  npm dev\n  our\n  yarn dev\n```\n\nOpen `http://localhost:3000` with your browser to see the result.\n\n\n### Requirements\n\n- Node.js \u003e= 12.22.0\n- npm our yarn\n\n### Directory Structure\n\n- [`.husky`](.husky) — Husky configuration and hooks.\u003cbr\u003e\n- [`public`](./public) — Static assets such as robots.txt, images, and favicon.\u003cbr\u003e\n- [`src`](./src) — Application source code, including pages, components, styles.\u003cbr\u003e\n\n### Scripts\n- `yarn/npm dev` — Starts the application in development mode at `http://localhost:3000`.\n- `yarn/npm build` — Creates an optimized production build of your application.\n- `yarn/npm start` — Starts the application in production mode.\n- `yarn/npm lint` — Runs ESLint for all files in the `src` directory.\n\n### Path Mapping\n\nTypeScript are pre-configured with custom path mappings. To import components or files, use the `~/` prefix.\n\n```tsx\nimport { Button } from '~/presentation/components/Button';\n\n// To import images or other files from the public folder\nimport avatar from '~/public/avatar.png';\n```\n\n**NOTE:**\nAs many use styled-component\nI added the settings for it, but you can remove it at: `src/pages/_document.tsx` and remove global styles in: `src/shared/styles/globals.ts`\n\n\u003ca id=\"license\"\u003e\u003c/a\u003e\n\n## License\n\n[MIT](https://github.com/yazaldefilimonepinto/clean-arch-nextjs-starter/blob/main/LICENSE) © [Yazalde Filimone](https://www.linkedin.com/in/yazalde-filimone/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyazaldefilimone%2Fclean-arch-nextjs-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyazaldefilimone%2Fclean-arch-nextjs-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyazaldefilimone%2Fclean-arch-nextjs-starter/lists"}