🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

57 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Create Unstack

npm License Downloads Node Version

πŸš€ 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.

Features

  • 🌐 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

Installation

You can use Create Unstack without installing it by using npx:

npx create-unstack my-app

Or install it globally to use it anywhere:

npm install -g create-unstack
create-unstack my-app

Why?

Create 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!

Usage

Basic Usage

Simply run the CLI command and follow the interactive prompts:

npx create-unstack my-app

Command Line Options

You can bypass the interactive prompts by using command line flags:

npx create-unstack my-app --db --auth --million

Available options:

  • --db: Enable MongoDB integration
  • --auth: Enable Better-Auth authentication
  • --million: Enable Million.js optimization
  • --yes: Use default options without prompts

Project Structure

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

Generated Tech Stack

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

Optional Features

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

Why Create Unstack?

While there are many starter templates available, Create Unstack offers:

  1. Fine-tuned Tech Selection - Carefully chosen libraries that work well together
  2. Minimal Boilerplate - Just enough structure without overwhelming complexity
  3. Optional Features - Add only what you need
  4. Modern Practices - Latest patterns and best practices for Next.js development
  5. Developer Experience - Beautiful CLI, sensible defaults, and clear structure

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments


Made with ❀️ by The Untraceable

About

A template for creating a NextJS app with the best UI libraries and MongoDB and the best Auth Library, all setup ready-to-go

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages