create-nextjs-flex

0.1.24 • Public • Published

create-nextjs-flex

A flexible Next.js boilerplate creator with optional React Query, Apollo, Zustand, and AI integration.

Installation

Install the package globally using npm:

npm install -g create-nextjs-flex

Usage

To create a new project, run:

create-nextjs-flex <project-name> [options]

Options:

  • -y, --yes: Skip prompts and use default options
  • -v, --version: Output the current version

Examples:

Create a basic Next.js project:

create-nextjs-flex my-app

Features

  • Next.js 13+ with App Router
  • TypeScript
  • Tailwind CSS
  • ESLint
  • Optional integrations:
    • React Query
    • Apollo Client
    • Zustand
    • AI services (OpenAI, Claude, or Vercel AI)
  • Flexible service architecture (functional or class-based)

Project Structure

The generated project will have the following structure:

my-project/
├── src/
│   ├── app/
│   ├── components/
│   ├── lib/
│   ├── services/
│   └── utils/
├── public/
├── .gitignore
├── next.config.js
├── package.json
├── README.md
├── tailwind.config.js
└── tsconfig.json

Additional files and directories will be created based on the options you choose.

Contributing

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

License

This project is licensed under the MIT License.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.241latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.241
0.1.230
0.1.221
0.1.210
0.1.200
0.1.190
0.1.180
0.1.170
0.1.160
0.1.150
0.1.140
0.1.130
0.1.120
0.1.110
0.1.101
0.1.91
0.1.81
0.1.70
0.1.60
0.1.50
0.1.40
0.1.31
0.1.20
0.1.10
0.1.01

Package Sidebar

Install

npm i create-nextjs-flex

Weekly Downloads

6

Version

0.1.24

License

MIT

Unpacked Size

12.5 kB

Total Files

4

Last publish

Collaborators

  • wareja