
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@techjobis/next-gen
Advanced tools
A powerful and intuitive command-line interface (CLI) tool for generating files for Next.js applications. Easily create pages, components, and API routes with a single command, speeding up your development workflow.
You can install next-gen to use it in any Next.js project.
npm install -g @techjobis/next-gen
You can also use npx to run the command if you don't want to install the package globally.
npx @techjobis/next-gen help make:page
The next-gen CLI provides three main commands to help you quickly scaffold your Next.js application: make:page, make:route, and make:component.
make:page - Generate a New Page
This command creates a new page file in your specified directory. It's perfect for quickly adding new pages to your application's app or pages directory.
next-gen make:page <path>
or
npx @techjobis/next-gen make:page <path>
-t, --type : Specify the file type. The default is tsx.
--type jsx
--type tsx (default)
# Creates a page.tsx file at src/app/dashboard/
next-gen make:page src/app/dashboard
or
npx @techjobis/next-gen make:page src/app/dashboard
# Creates a page.tsx file at src/app/blog/[slug]
next-gen make:page 'src/app/blog/[slug]'
# Creates a page.jsx file at pages/blog/
next-gen make:page pages/blog --type jsx
or
npx @techjobis/next-gen make:page pages/blog --type jsx
make:route - Generate a New API Route
This command creates a new route file, ideal for building API endpoints. Note: This command will not create a route file if a page file already exists in the same directory to avoid conflicts.
Syntax:
next-gen make:route <path>
or
npx @techjobis/next-gen make:route <path>
-t, --type : Specify the file type. The default is ts.
--type js
--type ts (default)
# Creates a route.ts file at src/app/api/products/
next-gen make:route src/app/api/products
or
npx @techjobis/next-gen make:route src/app/api/products
# Creates a route.js file at src/app/api/users/
next-gen make:route src/app/api/users --type js
or
npx @techjobis/next-gen make:route src/app/api/users --type js
make:component - Generate a New Component
This command allows you to create either a server or client component. The generated component will be a functional component with a default export.
next-gen make:component <name> <path>
or
npx @techjobis/next-gen make:component src/app/api/products
-t, --type : Specify the component type. The default is server.
--type server (default)
--type client
--no-ts: Use this flag to generate a component using JavaScript (.jsx) instead of TypeScript (.tsx).
# Creates a ServerComponent.tsx at src/components/ui/
next-gen make:component ServerComponent src/components/ui
or
npx @techjobis/next-gen make:component ServerComponent src/components/ui
# Creates a ClientComponent.jsx at src/app/
next-gen make:component ClientComponent src/app --type client --no-ts
or
npx @techjobis/next-gen make:component ClientComponent src/app --type client --no-ts
We welcome contributions! If you'd like to improve the next-gen cli, please follow these steps:
Fork the repository.
Create a new branch (git checkout -b feature/your-feature).
Commit your changes (git commit -m 'Add new feature').
Push to the branch (git push origin feature/your-feature).
Create a new Pull Request.
This project is licensed under the MIT License.
FAQs
A nextjs package to generate pages, components and routes file
We found that @techjobis/next-gen demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.