Next.js 16 Template Generator

PWA • Swagger UI • Logging • Production Ready

PWA Support

Full Progressive Web App with service workers and offline support

Auto Swagger

API documentation automatically generated from routes

Structured Logging

JSON-formatted logs with multiple severity levels

Error Handling

Custom error boundaries and 404 page included

Files Included:

📄 package.json
📄 next.config.js
📄 public/manifest.json
📄 public/sw.js
📄 app/layout.js
📄 app/page.js
📄 app/error.js
📄 app/not-found.js
📄 app/api-docs/page.js
📄 app/api/swagger/route.js
📄 app/api/health/route.js
📄 app/api/users/route.js
📄 lib/logger.js
📄 lib/swagger.js
📄 README.md
📄 .gitignore
📄 jsconfig.json

📦 Quick Start Instructions

  1. Download all files above
  2. Organize files according to the folder structure
  3. Run npm install
  4. Run npm run dev
  5. Visit http://localhost:3000