Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Solid Foundation for Building Scalable and Efficient Progressive Web Application!
Next.js PWA Template (Cats Realm) is an open-source boilerplate for building progressive web apps on Next.js 13, pre-configuring the PWA layer so developers can ship a performant, installable web app without writing service-worker or manifest code from scratch.
Next.js PWA Template is a starter kit created by Ajay Kanniyappan that combines Next.js 13, React, TypeScript, Tailwind CSS, and PostCSS into a single project structure. It takes a fresh clone and gives you a working PWA with service workers, offline support, a manifest file, basic layout components, and routing already wired up. The template is licensed under MIT and can be deployed to Vercel or any Node.js-capable hosting provider.
The repository includes a src directory organized into common, components, constants, hooks, layouts, pages, services, styles, svg, types, and utils folders. It ships with .vscode settings for debugging, Husky for automated git commits, and a manifest.json with icons in multiple pixel sizes.
tsconfig.json and tsconfig.node.json for strict typing.npm run lint reformats code and fails on warnings.tailwind.config.js included..vscode folder enables one-click VSCode debugging.npm run prepare to initialize the hooks.src directory structure, add routes under pages, and integrate custom services in the services folder without fighting existing config.Start by cloning the repository, then run npm install to pull dependencies. The development server starts with npm run dev on port 5050; change the port by editing the dev script in package.json. For production, run npm run build followed by npm start, which serves the built .next folder from a Node.js server.
Yes, the template is released under the MIT License, so it is free to use, modify, and redistribute, including in commercial projects.
The README specifies Node.js version 14 or later and npm. The project uses Next.js 13, which requires Node 14.6.0 or newer.
Yes, it includes service workers and offline support as part of the pre-configured PWA setup, allowing the app to function without a network connection.
The development and start scripts in package.json both use port 5050. Edit the dev and start script values, for example next dev -p 3000, to switch to a different port.
