π A modern Next.js application scaffolding tool with TailwindCSS, HeroUI, and configurable authentication & database options.
Create Unstack is a streamlined CLI tool that helps you bootstrap complete Next.js applications with a carefully selected tech stack, sensible defaults, and optional features to suit your project needs.
- π Next.js 15+ - The latest version of the React framework
- π¨ TailwindCSS - Utility-first CSS framework with pre-configured design tokens
- π§° HeroUI - Modern component library for building beautiful UIs
- ποΈ ShadCN - Pre-configured component library for TailwindCSS
- π Authentication - Optional Better-Auth integration for secure user management
- ποΈ MongoDB - Optional MongoDB integration for data storage
- β‘ Million.js - Optional React performance optimization
- π ESLint & Prettier - Pre-configured with sensible defaults
- π¦ TypeScript - Type-safe JavaScript with strict configuration
- π Fast Start - Get up and running in seconds, not hours
You can use Create Unstack without installing it by using npx:
npx create-unstack my-appOr install it globally to use it anywhere:
npm install -g create-unstack
create-unstack my-appCreate Unstack was made because it took me more time than I wanted to setup a new NextJS project with everything I wanted. I always had to delete a lot of things I didn't want, and I always had to add a lot of things I did want. So I decided to make a CLI that would do it for me. The stack used is what I personally use for my projects. I hope you like it!
Simply run the CLI command and follow the interactive prompts:
npx create-unstack my-appYou can bypass the interactive prompts by using command line flags:
npx create-unstack my-app --db --auth --millionAvailable options:
--db: Enable MongoDB integration--auth: Enable Better-Auth authentication--million: Enable Million.js optimization--yes: Use default options without prompts
The generated project follows a clean, modern structure:
my-app/
βββ app/ # Next.js App Router
β βββ layout.tsx # Root layout with providers
β βββ page.tsx # Home page
β βββ providers.tsx # Client-side providers
βββ components/ # Reusable UI components
β βββ ui/ # UI components
βββ config/ # Configuration files
β βββ fonts.ts # Font definitions
β βββ site.ts # Site metadata
βββ lib/ # Utility functions and services
β βββ utils.ts # Helper functions
β βββ db.ts # MongoDB client (if enabled)
βββ styles/ # Global styles
β βββ globals.css # TailwindCSS imports and variables
βββ .eslintrc.mjs # ESLint configuration
βββ .prettierrc # Prettier configuration
βββ .gitignore # Git ignore rules
βββ next.config.js # Next.js configuration
βββ package.json # Dependencies and scripts
βββ postcss.config.js # PostCSS configuration
βββ tailwind.config.js # TailwindCSS configuration
βββ tsconfig.json # TypeScript configuration
The scaffolded application includes:
- Next.js 15+ with App Router and React Server Components
- TailwindCSS 3.4+ with design token variables
- HeroUI and ShadCN setup out of the box for beautiful UI components
- TypeScript with strict configuration
- ESLint & Prettier with comprehensive rule sets
- next-themes for dark/light mode
- Inter & Fira Code fonts from Google Fonts
When selected, these features are seamlessly integrated:
- MongoDB - Connection with development mode optimization
- Better-Auth - Authentication with MongoDB adapter
- Million.js - Performance optimization for React components
While there are many starter templates available, Create Unstack offers:
- Fine-tuned Tech Selection - Carefully chosen libraries that work well together
- Minimal Boilerplate - Just enough structure without overwhelming complexity
- Optional Features - Add only what you need
- Modern Practices - Latest patterns and best practices for Next.js development
- Developer Experience - Beautiful CLI, sensible defaults, and clear structure
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Next.js - The React Framework
- TailwindCSS - Utility-first CSS framework
- HeroUI - Beautiful UI components
- Better-Auth - Authentication library
- @clack/prompts - Beautiful CLI prompts
Made with β€οΈ by The Untraceable