Uses the Next.js App Router, with application code centralized in the /src directory
nextjs-v16-template — Next.js Starter Template
By weaponsforge
A minimal starter template based on the Next.js App Router, with custom ESLint rules and Docker configurations, supporting both static export and Docker standalone builds.
Explore the design
Compare the page layouts and mobile experience. Open any screenshot for a closer look.
Actual screenshot captured by the server browser.
All pages & views 2
Screenshots show visual appearance; interactive behavior may differ.
What stands out
A quick read of the recorded project description.
Includes custom ESLint rules and provides lint and lint:fix scripts
Switches between static export and Docker standalone builds via the IS_BUILD_STATIC and IS_BUILD_DOCKER environment variables
Provides three Docker Compose configurations: development, production, and static export
Supports quick creation of new repositories as a GitHub Template
Includes a types:check script that runs next typegen before checking TypeScript type errors
Template Details
This is a minimal starter template for the Next.js App Router. Application code resides in the /src directory, and the repository can be used directly as a GitHub Template to create new projects. The template includes custom ESLint rules and provides Docker development and build configurations.
For builds, the template uses environment variables to distinguish two output modes: when IS_BUILD_STATIC=1 is set, it performs a static export with output to /nextapp/out; when IS_BUILD_DOCKER=1 is set, it builds in Docker standalone mode with output to /nextapp/.next/standalone and /nextapp/.next/static. The README notes that both variables cannot be set to 1 simultaneously, and applications using many React Server Components or Next.js server-side features cannot be built via static export.
The development environment supports both running directly with Node and using Docker. When running via Docker on Windows, IS_WEBPACK=1 and WATCHPACK_POLLING=true must be set to get hot reload, because Turbopack hot reload is unreliable in that scenario. The template also provides npm scripts for linting and type checking, as well as Docker Compose files for production and static export.
Is it right for your project?
Use Cases
- As a starting skeleton for a new Next.js App Router project, writing pages and components in /src
- When you need to export a frontend application as pure static HTML/CSS/JS and deploy it to static hosting
- When you need to package and deploy a Next.js application in Docker standalone mode
- When developing locally via Docker on Windows and needing hot reload
Suitable For
- Developers who want to start a Next.js App Router project from a minimal structure
- Teams that need to switch between static export and Docker deployment builds within the same template
- Developers who use Docker as a local development or delivery environment
- Frontend projects that require custom ESLint rules and TypeScript type checking
Getting started & customization
Use these recorded setup notes alongside the repository instructions for your chosen version.
- 1
Node version recommended >= 24.11.0; Docker is an optional dependency
- 2
After cloning the repository, enter the nextapp directory and run npm install
- 3
Create .env.local from .env.example, and ensure only one of IS_BUILD_STATIC and IS_BUILD_DOCKER is set to 1
- 4
For local development, run npm run dev and access http://localhost:3000 by default
- 5
When developing via Docker on Windows, set IS_WEBPACK=1 and WATCHPACK_POLLING=true to enable hot reload
License & source material
Usage conditions & limitations
Free to use · keep license noticeThis entry covers the free version under the MIT license from the public repository; the free scope applies to that version's code and does not imply that external services or third-party assets are free.
Must comply with when using
- Free use, modification, commercial use, and distribution of this version's code are permitted.
- When distributing copies or substantial portions of the code, retain the original author's copyright notice and the full MIT license notice.
- The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.
Additional costs & items to verify
- Demo images, fonts, icons, and other third-party assets must be checked against their respective licenses; they cannot be judged solely by the code's MIT license.
- External services such as domains, hosting, databases, payments, or AI may incur additional charges.
- At build time, only one of IS_BUILD_STATIC and IS_BUILD_DOCKER can be set to 1; otherwise, build conflicts will occur.
- Applications using many React Server Components or Next.js server-side features cannot be built via static export and require adjustments to next.config.ts and other settings first.
- When running the application via Docker on Windows, IS_WEBPACK must be set to 1 to enable hot reload.
- In a Docker + Windows environment, WATCHPACK_POLLING must be set to true for hot reload, because Turbopack hot reload is unreliable in that scenario.
- Before using Docker, ensure port 3000 is not occupied.
- npm start runs the application in production mode and requires npm run build to be executed first.
View Original Text Basis
Permission is hereby granted, free of charge
Original License Text
> ⚠️ Ensure only one of `IS_BUILD_STATIC` or `IS_BUILD_DOCKER` has a value of `1` to avoid build conflicts.
Original README
⚠️ Next.js apps that use heavy React Server Components (RSC) and Next.js server features will fail to build as a static output.
Original README
⭐ **IMPORTANT**: When running the app via **Docker** on Windows OS (`docker compose up`), this must be set to `1` to enable hot reload.
Original README
Set to `true` to enable Webpack-based hot reloading when running the app in Docker on Windows. Required because Turbopack hot reload is currently unreliable in this setup (Docker + Windows).
Original README
> **IMPORTANT** > Ensure that port `3000` is free before proceeding.
Original README
https://github.com/weaponsforge/nextjs-v16-template/blob/dev/LICENSEhttps://github.com/weaponsforge/nextjs-v16-template/blob/dev/README.mdRuns the NextJS app in production mode. Requires running `"npm run build"` first.
Original README
Compiled by DeepSeek based on repository license and README ·2026-10-12. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.
Project checks & description sources
Template Information
- Source platforms
- GitHub
- Documentation and maintenance reference score
- More documented · 80 / 100
- Technologies
- Next.js · React
- Website type
- Starter
How this score is calculated
Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.
What to verify for this project
- Repository update recorded
- 2026-10-12
- Screenshot last checked
- 2026-10-12
A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.
The catalog identifies Next.js as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.
Use a selection guide →How this description was prepared
AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.
Review declaration: [email protected] · 2026-10-13
Inspect the recorded source material
SHA-256: 6f901e871e17f64c13afcc30ccdd4a33756c89934b1cab495263e564f86ee4d6
2026-10-12T13:17:44.758Z
Source file / repository## nextjs-v16-template Barebones NextJS v16 React app template using the **App Router** with custom ESLint rules and Docker configurations. > Next application code lives inside the `/src` directory. > [!TIP] > You may use this project as a **GitHub Template** for quick setup.<br> > Click **Use this template** (upper right), then select **Create a new repository** ## 📋 Requirements 1. NodeJS (recommended: >= 24.11.0) ``` node: 24.11.0 npm: 11.6.1 ``` 2. Docker (optional) ## 📦 Core Libraries / Frameworks <details> <summary>This app uses the following libraries and frameworks</summary> | Library | Version | Description | | --- | --- | --- | | Next | 16.3.0 | A React framework | | React | 19.2.8 | Library for creating reusable/composable and interactive components | | Tailwind CSS | 4.3.3 | Generic, composable utility classes for CSS styling | | ESLint | 9+ | Enforces coding formats, rules and preferences | </details> ## 🛠️ Installation #### 1. Clone this repository or your fork/template. ```sh git clone https://github.com/weaponsforge/next-v16-template.git ``` #### 2. Install dependencies. ```sh cd nextapp npm install ``` #### 3. Create a `.env.local` file from the `.env.example` file inside the `/nextapp` directory. > ⚠️ Ensure only one of `IS_BUILD_STATIC` or `IS_BUILD_DOCKER` has a value of `1` to avoid build conflicts. | Variable | Description | | --- | --- | | IS_BUILD_DOCKER | If value is `1`, builds the NextJS app for Docker in production using the standalone mode build into the `/nextapp/.next/standalone` and `/nextapp/.next/static` directories. | | IS_BUILD_STATIC | If value is `1`, builds and exports the NextJS app into a static build in the `/nextapp/out` directory when running `"npm run build"`.<br><br>⚠️ Next.js apps that use heavy React Server Components (RSC) and Next.js server features will fail to build as a static output. Te enable true static export, [adjust necessary settings](https://nextjs.org/docs/app/guides/static-exports) in the `next.config.ts` file and the overall app before export. | | IS_WEBPACK | Set to `1` to run the app in development mode using **Webpack**. <br><br>⭐ **IMPORTANT**: When running the app via **Docker** on Windows OS (`docker compose up`), this must be set to `1` to enable hot reload.| | WATCHPACK_POLLING | Set to `true` to enable Webpack-based hot reloading when running the app in Docker on Windows. Required because Turbopack hot reload is currently unreliable in this setup (Docker + Windows). | ## 📖 Usage Using Node #### 1. Run the React app for local development. ```sh cd nextapp npm run dev ``` #### 2. Launch the local app website in a web browser at: ``` http://localhost:3000 ``` #### 3. Edit the source code and wait for changes to display in the web browser. View the [STRUCTURE.md](/docs/STRUCTURE.md) for guidance on how to structure project folders and files within this project. #### 4. To build the React app - For [static export](https://nextjs.org/docs/app/getting-started/deploying#static-export) (only frontend HTML/CSS/JS), set the environment variables `IS_BUILD_STATIC=1` and `IS_BUILD_DOCKER=0`. - For [Docker standalone mode](https://nextjs.org/docs/app/getting-started/deploying#docker), set the environment variables `IS_BUILD_STATIC=0` and `IS_BUILD_DOCKER=1`. - Run ```sh npm run build ``` - This command exports the build artifacts to the `/nextapp/out` directory for **STATIC EXPORT** (`IS_BUILD_STATIC=1`). - This command exports the build artifacts to the `/nextapp/.next/standalone ` and `/nextapp/.next/.static` directories for **DOCKER STANDALONE MODE** (`IS_BUILD_DOCKER=1`). ## ⚡Alternate Usage > [!TIP] > Set `IS_WEBPACK=1` and `WATCHPACK_POLLING=true` to enable hot reloading in development mode when running in Docker on Windows, as Turbopack is currently unreliable in this setup. <details> <summary>Using Docker</summary> <br> Usage with Docker is an alternate option to using Node directly from the [Usage](#-usage) section. > **IMPORTANT** > Ensure that port `3000` is free before proceeding. ### Build the Development Docker Image #### 1. Set up the environment variables for the `/nextapp` directory. - Refer to the [Installation](#️-installation) section **# 3** for more information. #### 2. Build the image for local development. ```sh docker compose build --no-cache ``` > 💡 **INFO:** Do this step only once during initial installation. Re-run this step if there will be changes to the Dockerfile or after installing new Node libraries. #### 3. Run the container for local development. ```sh docker compose up ``` #### 4. Launch the local app website in a web browser at: ``` http://localhost:3000 ``` #### 5. Edit the source code and wait for changes to display in the web browser. ### Other Docker Builds 1. **`docker-compose.prod.yml`** - packages the NextJS app into a standalone mode for Docker NextJS (app router) deployment. > Outputs build files in the `/nextapp/.next/standalone` and `/nextapp/.next/.static` directories. 2. **`docker-compose.static.yml`** - packages the frontend-only NextJS app into a static export. > Outputs build files in the `/nextapp/out` directory. </details> <br> ## 📜 Available Scripts These scripts, compatible with running in Node and Docker, run various TypeScript scripts and tests. <details> <summary>👉 Click to expand the list of available scripts</summary> ### `npm start` Runs the NextJS app in production mode. Requires running `"npm run build"` first. ### `npm run dev` - Runs the NextJS app in development mode with hot-reload using Turbopack and NodeJS. - Set `IS_WEBPACK=1` then run `"docker compose up"` to run the NextJS app in development mode with hot-reload using Docker from a Windows host. ### `npm run build` Builds the NextJS app for production mode. > ⚠️ **WARNING**: Ensure only one of `IS_BUILD_STATIC` or `IS_BUILD_DOCKER` has a value of `1` to avoid build conflicts. - **Static export**<br> When `IS_BUILD_STATIC=1`: exports the frontend-only build artifacts to the `/nextapp/out` directory.<br> >⚠️ **NOTE**: Next.js apps that use Next.js server features will fail to build as a **static output**. Te enable true static export, [adjust necessary settings](https://nextjs.org/docs/app/guides/static-exports) in the `next.config.ts` file and the overall app before export. - **Docker standalone mode**<br> When `IS_BUILD_DOCKER=1`: exports the NextJS app (uses app router) build artifacts to the `/nextapp/.next/standalone ` and `/nextapp/.next/.static` directories for Docker deployment. > ℹ️ **INFO**: See the `"npm run docker:build"` script to build the NextJS app for production mode using Docker (NextJS standalone mode build). ### `npm run lint` Lints TypeScript source codes and files, checking for linting errors. ### `npm run lint:fix` Fixes lint errors. ### `npm run types:check` - Checks for TS type errors by generating run-time next-specific types via `"next typegen"` first. </details> <br> ## 📦 Docker Scripts These scripts are called within the `Dockerfile` for building images. <details> <summary>👉 Click to expand the list of available scripts</summary> ### `npm run docker:webpack` - Runs the NextJS app in development mode inside Docker using Webpack and NodeJS. - Requires `IS_WEBPACK=1` in `.env.local`. - Uses the `docker-compose.yml` Docker compose file. > 💡 **NOTE**: To enable hot reloading, set `WATCHPACK_POLLING=true` in `.env.local`. This is required because Turbopack hot reload is not yet reliable for Next.js apps running in Docker on Windows. ### `npm run docker:build` - Sets `IS_BUILD_DOCKER=1` and builds a Docker image containing a standalone NextJS build. - Uses the `docker-compose.prod.yml` Docker compose file. ### `npm run docker:static` - Sets `IS_BUILD_STATIC=1` and builds a Docker image containing a NextJS static export. - Uses the `docker-compose.static.yml` Docker compose file. > 💡 **INFO**: When running `docker compose up` > > You can also run `docker exec -it weaponsforge-next-v16-template-dev npm run docker:static` to build a static output. ## References - Next (Turbopack) currently doesn't work in Docker <sup>[[1]](https://github.com/ymeskini/ai-app/issues/1)</sup> </details> <br> @weaponsforge<br> 20260216<br> 20260403
Explore similar templates
Compare previews and descriptions within the same stack and category.

Next.js SaaS Starter
The official Next.js SaaS starter template, integrating email/password authentication, Stripe Checkout subscriptions, a dashboard with user/team CRUD, basic Owner/Member RBAC, and activity logging.
Next.js · SaaS

Next.js Commerce
Vercel's officially maintained Next.js App Router ecommerce starter with deep Shopify integration, offering a complete product catalog, cart, and checkout flow. Core logic is modular for swapping backends, and community provider versions exist for BigCommerce, Medusa, and Saleor.
Next.js · E-commerce

Next-js-Boilerplate
A developer-first Next.js 16 starter with Tailwind CSS 4 and TypeScript, supporting both App Router and Page Router.
Next.js · Starter

tailwind-nextjs-starter-blog
A Next.js and Tailwind CSS blog starter template using Contentlayer for Markdown/MDX, with built-in SEO, code highlighting, and tags. It targets personal technical blogs and migration from Jekyll/Hugo to React, and supports one-click Vercel deployment.
Next.js · Blog

next-forge
next-forge is a Turborepo-based Next.js template maintained by Vercel, positioned as a starting point for SaaS products.
Next.js · Starter

SaaS-Boilerplate
SaaS-Boilerplate is an open-source SaaS starter template built with Next.js App Router, React 19, TypeScript, Tailwind CSS, and Shadcn UI.
Next.js · SaaS
