template-hub
v1.1.0
Published
Scaffold production-ready Next.js templates instantly via npx
Maintainers
Readme
template-hub
Scaffold production-ready Next.js templates in seconds.
npx template-hubAvailable templates
| | Template | Stack | |--|----------|-------| | 🎨 | Next.js + MUI | Next.js 14, TypeScript, Material UI v5, custom theme, dark mode | | 🧪 | Next.js + Speckit | Next.js 14, TypeScript, Jest, Testing Library, CI workflow |
Usage
npx template-hub- Pick a template from the interactive list
- Enter your project name
- Confirm → files are created instantly
cd my-project
npm install
npm run devPublishing
npm login
npm publishBump version in package.json before each publish.
Adding a template
- Create
src/templates/your-key/index.js - Export an object with
key,name,icon,description,stack, andfiles - Add it to
src/templates/index.js
export const myTemplate = {
key: 'my-template',
name: 'My Template',
icon: '✨',
description: 'Short description for the picker',
stack: ['Next.js 14', 'TypeScript'],
files: {
'package.json': '{ "name": "PROJECT_NAME" }',
'src/app/page.tsx': '// ...',
},
};The string PROJECT_NAME inside any file is replaced with the user's chosen project name automatically.
License
MIT
