Next.js Templater
TUI to scaffold Next.js projects with shadcn/ui components and authentication.
Justification
I built this for several reasons (Not in order of importance);
- Im learning how to build apps in GO
- CharmBracelet gives you a lot of tools to do that and learn how to do that well (I think?)
- I make a lot of Next.js projects, I spend a lot of time looking up commands and trying to remember how to install stuff.
- Wanted to see how BetterAuth devx was, I use Clerk for most of my apps auth - no real opinions, I just like it and easy to use.
- Ummm, yeah, building TUI's is fun. thanks if you read this much.
Stayed tuned for me building more shit
^ ^
() ()
O:
|___|
Features
- TUI - Built with Bubble Tea framework
- Responsive Design - Adapts to terminal size
- File Browser - Navigate directories with search
- Themes - Choose from shadcn/ui template configurations
- Authentication - Clerk, Better Auth, or no authentication (Maybe will add more later, any good ideas?)
Installing...
Installation
Option 1: Homebrew (Recommended)
brew install willyv3/tap/nextui
Option 2: Go Install
go install github.com/WillyV3/nextjs-templater@latest
Option 3: Download Binary
# macOS (Apple Silicon)
curl -L https://github.com/WillyV3/nextjs-templater/releases/latest/download/nextui-darwin-arm64.tar.gz | tar xz
sudo mv nextui /usr/local/bin/
# macOS (Intel)
curl -L https://github.com/WillyV3/nextjs-templater/releases/latest/download/nextui-darwin-amd64.tar.gz | tar xz
sudo mv nextui /usr/local/bin/
# Linux
curl -L https://github.com/WillyV3/nextjs-templater/releases/latest/download/nextui-linux-amd64.tar.gz | tar xz
sudo mv nextui /usr/local/bin/
Option 4: Build from Source
git clone https://github.com/WillyV3/nextjs-templater
cd nextjs-templater
go build -o nextui
sudo mv nextui /usr/local/bin/
Prerequisites
- Node.js 18+ and npm (for the generated Next.js projects)
- Git (for project initialization)
Quick Start
After installation, simply run:
nextui
If running locally for dev you can use:
go build .
go run .
How It Works
- Enter App Name - Enter Next.js app name
- Select Directory - Select directory to create project
- Choose Theme - Select from shadcn/ui templates
- Select Auth - Choose Clerk, Better Auth, or skip authentication
- Monitor Progress - Installation with output
Templates
- Default - Next.js with shadcn/ui
- Dashboard - Dashboard template
- Landing Page - Site template
- E-commerce - Store template
- Blog - Blog template
Authentication
- Clerk - Authentication platform with social logins and MFA
- Better Auth - Auth library with Kysely + SQLite integration
- None - Skip authentication setup
Built With
Developer
WillyV3
More from Willy: www.Willyv3.com
Contributing
Submit Pull Requests for contributions.
License
This project is licensed under the MIT License.