npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@techjobis/next-gen

v1.0.3

Published

A nextjs package to generate pages, components and routes file

Readme

Next-Gen CLI 🚀

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.


Installation

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

Usage

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.

Syntax:

next-gen make:page <path>

or

npx @techjobis/next-gen make:page <path>

Options:

-t, --type : Specify the file type. The default is tsx.

--type jsx

--type tsx (default)

Examples:

# 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>

Options:

-t, --type : Specify the file type. The default is ts.

--type js

--type ts (default)

Examples:

# 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.

Syntax:

next-gen make:component <name> <path>

or

npx @techjobis/next-gen make:component src/app/api/products

Options:

-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).

Examples:

# 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

Contributing

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.

License

This project is licensed under the MIT License.