{"id":31287889,"url":"https://github.com/wimpykid719/next-js-devcontainer-boilerplate","last_synced_at":"2026-04-07T08:01:41.808Z","repository":{"id":315882212,"uuid":"1061120121","full_name":"wimpykid719/next-js-devcontainer-boilerplate","owner":"wimpykid719","description":"⚡️ Next.js Boilerplate with \u0026 Devcontainer Ready-to-use development and production setup featuring","archived":false,"fork":false,"pushed_at":"2025-09-21T10:23:13.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-21T12:12:37.732Z","etag":null,"topics":["biomejs","boilerplate","devcontainer","docker","docker-compose","git","github","nextjs","nextjs-starter","nextjs-template","tailwindcss","template"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/wimpykid719.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-21T09:31:50.000Z","updated_at":"2025-09-21T10:23:16.000Z","dependencies_parsed_at":"2025-09-21T12:12:47.754Z","dependency_job_id":"e479f92a-3348-41b2-96a6-7793ea2d227f","html_url":"https://github.com/wimpykid719/next-js-devcontainer-boilerplate","commit_stats":null,"previous_names":["wimpykid719/next-js-devcontainer-boilerplate"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/wimpykid719/next-js-devcontainer-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wimpykid719%2Fnext-js-devcontainer-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wimpykid719%2Fnext-js-devcontainer-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wimpykid719%2Fnext-js-devcontainer-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wimpykid719%2Fnext-js-devcontainer-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wimpykid719","download_url":"https://codeload.github.com/wimpykid719/next-js-devcontainer-boilerplate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wimpykid719%2Fnext-js-devcontainer-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31504897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["biomejs","boilerplate","devcontainer","docker","docker-compose","git","github","nextjs","nextjs-starter","nextjs-template","tailwindcss","template"],"created_at":"2025-09-24T11:29:29.174Z","updated_at":"2026-04-07T08:01:41.796Z","avatar_url":"https://github.com/wimpykid719.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚡️ Next.js Boilerplate with Docker \u0026 Devcontainer\n\nReady-to-use **Next.js** development and production setup featuring:\n\n- 🐳 **Multi-stage Docker build**: Zsh-powered dev environment + lightweight production image\n- 📦 **pnpm** via Corepack\n- 🖥️ **Zsh with autosuggestions \u0026 persistent history** for smooth CLI workflows\n- 🛠 **Biome** as formatter \u0026 linter with Git integration for consistent commits\n- 🎨 **Tailwind CSS** support with preinstalled VS Code extension\n- 🔧 **Devcontainer configuration** for a reproducible and portable workspace\n- 🛡️ **Supply chain attack protection**: Version pinning, release age checks, and npm/npx usage restrictions\n\n\n## 🚀 Getting Started\n\n### 1. Clone this repository\n```zsh\ngit clone https://github.com/your-username/nextjs-boilerplate.git\ncd next-js-boilerplate\n```\n\n### 2. Create environment file\nBefore starting the container, copy the sample environment file:\n\n```zsh\ncp .devcontainer/.env.sample .devcontainer/.env\n```\n### 3. Open in Dev Container\nOpen the project in VS Code and run \"Reopen in Container\" to initialize the development environment.\nAll necessary tools (pnpm, Biome, Tailwind, etc.) are already preinstalled.\n\n### 4. Run the Next.js app\nInside the container:\n\n\n```zsh\ncd app \u0026\u0026 pnpm dev\n```\n\nNow you can access the app at 👉 http://localhost:3000.\n\n\n### 5. Biome Settings\nBecause our repository setup removes or ignores the .gitignore in app/, we must delete the corresponding configuration block in the default Next.js biome.json.\n\nIf this setting is not deleted, a \".gitignore not found\" error occurs, causing formatting (likely) to fall back to the editor's extension settings instead of using Biome.\n```\n// delete this line\n{\n  \"vcs\": {\n    \"enabled\": true,\n    \"clientKind\": \"git\",\n    \"useIgnoreFile\": true\n  }\n}\n```\n\nOn first launch, Biome cannot reference the Biome installed in node_modules, causing an error. To resolve this, press Ctrl+Shift+P to open the command palette and execute the following command:\n\n```\n\u003eBiome: Restart\n```\n\n## 🛡️ Supply Chain Attack Protection\n\nThis boilerplate includes several security measures to protect against npm supply chain attacks:\n\n### 1. pnpm Usage Enforcement\n- npm/npx commands require confirmation before execution (use `USE_NPM_ANYWAY=1` to bypass)\n- pnpm is enforced as the primary package manager via Corepack\n\n### 2. Version Pinning\n- `.npmrc` with `save-exact=true` ensures exact versions are saved\n- `npm-package-json-lint` checks that all dependencies use exact versions (no `^` or `~`)\n- Run `pnpm lint:package-json` to verify version pinning\n\n### 3. Release Age Protection\n- `pnpm-workspace.yaml` sets `minimumReleaseAge: 4320` (3 days) to prevent installing newly released packages\n- `renovate.json` configures Renovate to wait 3 days before updating to new versions\n\n### Configuration Files\nThe following security configuration files are automatically copied to `app/` during initialization:\n- `.npmrc` - Version pinning configuration\n- `.npmpackagejsonlintrc.json` - Linting rules for package.json\n- `pnpm-workspace.yaml` - pnpm workspace settings with release age protection\n\nRoot-level configuration:\n- `renovate.json` - Renovate bot configuration for dependency updates\n\n## 📂 Project Structure\n```\n.\n├── .devcontainer/      # Devcontainer configs, Dockerfile \u0026 environment settings\n│   ├── .env.sample\n│   ├── .zshrc\n│   ├── app/            # Template files for Next.js app initialization\n│   │   ├── .npmrc\n│   │   ├── .npmpackagejsonlintrc.json\n│   │   └── pnpm-workspace.yaml\n│   ├── compose.yml\n│   ├── devcontainer.json\n│   ├── Dockerfile\n│   └── entrypoint.sh\n├── .gitignore          # Git ignore file\n├── app/                # Next.js application source code\n│   ├── public/         # Static assets\n│   ├── src/            # Application source\n│   ├── next.config.ts\n│   └── package.json\n├── LICENSE.md          # Project License\n├── README.md\n└── renovate.json       # Renovate bot configuration\n```\n## ✅ Features\nConsistent development environment with Docker \u0026 Dev Containers\n\nOpinionated setup with Biome + TailwindCSS out-of-the-box\n\nZsh shell with history persistence for productivity\n\nProduction-ready build optimized for deployment\n\n## 📜 License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwimpykid719%2Fnext-js-devcontainer-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwimpykid719%2Fnext-js-devcontainer-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwimpykid719%2Fnext-js-devcontainer-boilerplate/lists"}