{"id":24664648,"url":"https://github.com/cssorlandi/nextjs-template","last_synced_at":"2025-10-08T01:31:53.554Z","repository":{"id":42512019,"uuid":"461075113","full_name":"cssorlandi/nextjs-template","owner":"cssorlandi","description":"A TypeScript template for Next.js 15 that includes all you need to build your next project 🚀","archived":false,"fork":false,"pushed_at":"2025-05-15T16:53:39.000Z","size":702,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-14T21:02:47.994Z","etag":null,"topics":["commitlint","eslint","github-actions","husky","javascript","lint-staged","nextjs","nextjs-boilerplate","nextjs-template","prettier","react","reactjs","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/cssorlandi.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-02-19T03:25:06.000Z","updated_at":"2025-02-04T14:19:13.000Z","dependencies_parsed_at":"2025-05-27T09:55:00.827Z","dependency_job_id":"11a404bd-29ae-4707-bbef-04854640b24c","html_url":"https://github.com/cssorlandi/nextjs-template","commit_stats":null,"previous_names":["csorlandi/next-template","csorlandi/nextjs-template","cssorlandi/nextjs-template"],"tags_count":6,"template":true,"template_full_name":null,"purl":"pkg:github/cssorlandi/nextjs-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssorlandi%2Fnextjs-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssorlandi%2Fnextjs-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssorlandi%2Fnextjs-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssorlandi%2Fnextjs-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cssorlandi","download_url":"https://codeload.github.com/cssorlandi/nextjs-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssorlandi%2Fnextjs-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278877078,"owners_count":26061380,"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-10-07T02:00:06.786Z","response_time":59,"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":["commitlint","eslint","github-actions","husky","javascript","lint-staged","nextjs","nextjs-boilerplate","nextjs-template","prettier","react","reactjs","typescript"],"created_at":"2025-01-26T06:13:52.060Z","updated_at":"2025-10-08T01:31:53.275Z","avatar_url":"https://github.com/cssorlandi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/26466516/141659551-d7ba5630-7200-46fe-863b-87818dae970a.png\" alt=\"Next.js Starter\"\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n\u003cdiv align=\"center\"\u003e\u003cstrong\u003eTypeScript starter for Next.js\u003c/strong\u003e\u003c/div\u003e\n\u003cdiv align=\"center\"\u003eAll you need to build your next project.\u003c/div\u003e\n\n\u003cbr /\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/static/v1?label=PRs\u0026message=welcome\u0026style=flat-square\u0026color=0076FF\u0026labelColor=000000\" alt=\"PRs welcome!\" /\u003e\n\n  \u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/csorlandi/nextjs-template?style=flat-square\u0026color=0076FF\u0026labelColor=000000\"\u003e\n\n  \u003ca href=\"https://github.com/csorlandi\"\u003e\n    \u003cimg src=\"https://img.shields.io/static/v1?label=Follow\u0026message=@csorlandi\u0026style=flat-square\u0026color=0076FF\u0026labelColor=000000\" alt=\"Follow @csorlandi\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003csub\u003eCreated by \u003ca href=\"https://linkedin.com/in/csorlandi\"\u003eClaudio Orlandi\u003c/a\u003e.\u003c/sub\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n## Features\n\n- ⚡️ Next.js 15 (App Router)\n- ⚛️ React 19\n- ⛑ TypeScript\n- 📏 ESLint 9 — 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- 👷 PR Workflow — Run Type Check \u0026 Linters on Pull Requests\n- ⚙️ EditorConfig - Consistent coding styles across editors and IDEs\n- 🗂 Path Mapping — Import components or images using the `@` prefix\n- 🔐 CSP — Content Security Policy for enhanced security (default minimal policy)\n- 🧳 T3 Env — Type-safe environment variables\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/csorlandi/nextjs-template\n# pnpm\npnpm create next-app -e https://github.com/csorlandi/nextjs-template\n# npm\nnpx create-next-app -e https://github.com/csorlandi/nextjs-template\n```\n\n### Development\n\nTo start the project locally, run:\n\n```bash\nyarn dev\n```\n\nOpen `http://localhost:3000` with your browser to see the result.\n\n## Documentation\n\n### Requirements\n\n- Node.js \u003e= 20\n- yarn\n\n### Directory Structure\n\n- [`.github`](.github) — GitHub configuration including the CI workflow.\u003cbr\u003e\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.\n\n### Scripts\n\n- `yarn dev` — Starts the application in development mode at `http://localhost:3000`.\n- `yarn build` — Creates an optimized production build of your application.\n- `yarn start` — Starts the application in production mode.\n- `yarn type-check` — Validate code using TypeScript compiler.\n- `yarn lint` — Runs ESLint for all files in the `src` directory.\n- `yarn lint:fix` — Runs ESLint fix for all files in the `src` directory.\n- `yarn format` — Runs Prettier for all files in the `src` directory.\n- `yarn format:check` — Check Prettier list of files that need to be formatted.\n- `yarn format:ci` — Prettier check for CI.\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 '@/components/Button';\n// To import images or other files from the public folder\nimport avatar from '@/public/avatar.png';\n```\n\n### Environment Variables\n\nWe use [T3 Env](https://env.t3.gg/) to manage environment variables. Create a `.env.local` file in the root of the project and add your environment variables there.\n\nWhen adding additional environment variables, the schema in `./src/lib/env/client.ts` or `./src/lib/env/server.ts` should be updated accordingly.\n\n### CSP (Content Security Policy)\n\nThe Content Security Policy (CSP) is a security layer that helps to detect and mitigate certain types of attacks, including Cross-Site Scripting (XSS) and data injection attacks. The CSP is implemented in the `next.config.ts` file.\n\nIt contains a default and minimal policy that you can customize to fit your application needs. It's a foundation to build upon.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssorlandi%2Fnextjs-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcssorlandi%2Fnextjs-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssorlandi%2Fnextjs-template/lists"}