Skip to content

youknowom/create-next-vault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

⚑ create-next-vault

Instantly scaffold a professional Next.js project
Built-in TailwindCSS Β· shadcn/ui Β· Themes Β· ESLint Β· TypeScript

npm version GitHub stars Sponsor license


πŸ“‹ Table of Contents


πŸ“˜ Overview

create-next-vault is a powerful CLI tool that scaffolds a fully configured Next.js project with modern tooling and best practices pre-wired. Skip the tedious setup and start building your application immediately with a production-ready foundation.

Perfect for developers who want to:

  • πŸš€ Get started with Next.js quickly
  • 🎨 Use TailwindCSS with zero configuration
  • 🧱 Leverage shadcn/ui components
  • πŸŒ“ Implement dark/light theme support
  • πŸ’« Add smooth animations with Framer Motion
  • 🧹 Maintain code quality with ESLint and Prettier

πŸš€ Features

Core Features

  • ⚑ Next.js 14+ with TypeScript β€” Latest Next.js with App Router and TypeScript preconfigured
  • 🎨 TailwindCSS β€” Utility-first CSS framework ready to use
  • 🧱 shadcn/ui β€” Beautiful, accessible UI components built with Radix UI
  • πŸŒ— Theme Support β€” Dark/light theme switching via next-themes
  • πŸ’« Framer Motion (optional) β€” Smooth animations and transitions
  • 🧹 ESLint + Prettier β€” Code formatting and linting configured
  • πŸͺ„ Git Auto-Init β€” Optional Git repository initialization with initial commit

Technical Highlights

  • βœ… App Router β€” Uses Next.js 13+ App Router by default
  • βœ… TypeScript β€” Full TypeScript support out of the box
  • βœ… Modern Tooling β€” Latest versions of all dependencies
  • βœ… Best Practices β€” Follows Next.js and React best practices
  • βœ… Accessibility β€” shadcn/ui components are built with accessibility in mind

βš™οΈ Requirements

Before using create-next-vault, ensure you have the following installed:

  • Node.js β‰₯ 18 (LTS version recommended)
  • npm, pnpm, or yarn package manager
  • Git (optional, for version control)

🧭 Quick Start

Create a new Next.js project in seconds:

npx create-next-vault my-next-app
cd my-next-app
npm run dev

That's it! Your development server will be running at http://localhost:3000.


πŸ“– Usage

Interactive Setup

When you run create-next-vault, you'll be prompted with several options:

  1. Project Name β€” Name of your project (default: my-next-app)
  2. Add shadcn/ui components? β€” Install and configure shadcn/ui (default: yes)
  3. Add dark/light theme support? β€” Set up next-themes for theme switching (default: yes)
  4. Add framer-motion animations? β€” Install Framer Motion for animations (default: no)
  5. Initialize git repository? β€” Create a Git repo and make an initial commit (default: yes)

Example

$ npx create-next-vault my-awesome-app

πŸ“  Project name: my-awesome-app
🧱  Add shadcn/ui components? Yes
πŸŒ“  Add dark/light theme support? Yes
πŸ’«  Add framer-motion animations? No
πŸͺ„  Initialize git repository? Yes

πŸš€ Creating Next.js project...
βœ… Next.js project created.
🎨 Installing Tailwind CSS...
βœ… TailwindCSS installed.
🧩 Installing extra dependencies...
βœ… Extra dependencies installed.
🧱 Setting up shadcn/ui...
βœ… shadcn/ui initialized.
πŸͺ„ Initializing git...
βœ… Git repository initialized.

βœ…  Project "my-awesome-app" created successfully!

Next steps:
  cd my-awesome-app
  npm run dev

✨  Happy hacking with Next Vault!

βš™οΈ Configuration

TailwindCSS

TailwindCSS is automatically configured with the following content paths:

  • ./app/**/*.{js,ts,jsx,tsx,mdx}
  • ./pages/**/*.{js,ts,jsx,tsx,mdx}
  • ./components/**/*.{js,ts,jsx,tsx,mdx}

Theme Support

If you enabled theme support, the Providers component is automatically added to your root layout. You can use it in your components:

"use client";

import { useTheme } from "next-themes";

export function ThemeToggle() {
  const { theme, setTheme } = useTheme();
  
  return (
    <button onClick={() => setTheme(theme === "dark" ? "light" : "dark")}>
      Toggle theme
    </button>
  );
}

shadcn/ui

After initialization, you can add shadcn/ui components:

npx shadcn@latest add button
npx shadcn@latest add card
npx shadcn@latest add dialog

Visit the shadcn/ui documentation for more components.


πŸ“ Project Structure

After scaffolding, your project will have the following structure:

my-next-app/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ layout.tsx          # Root layout with Providers (if theme enabled)
β”‚   β”œβ”€β”€ page.tsx            # Home page
β”‚   β”œβ”€β”€ globals.css         # Global styles with Tailwind
β”‚   └── providers.tsx       # Theme provider (if theme enabled)
β”œβ”€β”€ components/             # Your React components
β”œβ”€β”€ public/                 # Static assets
β”œβ”€β”€ tailwind.config.js      # Tailwind configuration
β”œβ”€β”€ tsconfig.json           # TypeScript configuration
β”œβ”€β”€ next.config.js          # Next.js configuration
└── package.json            # Dependencies

🧩 Contributing

Contributions are welcome and greatly appreciated! Here's how you can help:

Getting Started

  1. Fork the repository
  2. Create a feature branch
    git checkout -b feature/amazing-feature
  3. Make your changes
  4. Commit your changes
    git commit -m "Add some amazing feature"
  5. Push to the branch
    git push origin feature/amazing-feature
  6. Open a Pull Request

Guidelines

  • Follow the existing code style
  • Add tests for new features (if applicable)
  • Update documentation as needed
  • Ensure all tests pass
  • Be respectful and constructive in discussions

Reporting Issues

If you find a bug or have a suggestion, please open an issue on GitHub.


πŸ“„ License

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


πŸ‘€ Author

Omkar Bagul


πŸ’– Sponsor

If you find this project useful, consider supporting its development on GitHub Sponsors.

Your support helps fund:

  • ✨ New features and improvements
  • πŸ› Bug fixes and maintenance
  • πŸ“š Documentation updates
  • πŸ§ͺ Testing and CI/CD

πŸ—ΊοΈ Roadmap

Upcoming Features (v0.2.0)

  • πŸš€ --fast flag for instant, non-interactive setup
  • πŸ“¦ Option to use pnpm or bun for faster installs
  • 🎨 Pre-configured theme presets
  • πŸ“± Mobile-first component templates
  • πŸ”Œ Plugin system for extensibility
  • 🌐 Internationalization (i18n) support
  • πŸ§ͺ Testing setup (Jest, Vitest, or Playwright)

Future Considerations

  • πŸ” Authentication templates
  • πŸ’Ύ Database integration examples
  • πŸš€ Deployment configurations
  • πŸ“Š Analytics integration
  • 🎯 Performance optimizations

πŸ™ Acknowledgments


πŸ“š Additional Resources


Made with ❀️ by Omkar Bagul

⭐ Star this repo if you find it helpful!

Sponsor this project

 

Packages

 
 
 

Contributors