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 🙏

© 2025 – Pkg Stats / Ryan Hefner

create-next-bricks

v1.0.11

Published

create-next-bricks is a CLI tool designed to scaffold a modular and scalable structure for Next.js applications. Inspired by the concept of `bricks` as reusable building blocks, this tool helps developers quickly set up a well-structured Next.js project w

Downloads

45

Readme

🚀 Next.js Project Generator

A powerful CLI tool to scaffold a scalable, modular Next.js project with best practices, essential dependencies, and opinionated architecture—ready for real-world development.


📦 Features

  • Modular folder structure
  • 🧠 Redux Toolkit + Persist pre-configured
  • 🌍 i18next for localization
  • 🎨 Material-UI and SCSS support
  • ⚙️ TypeScript, strict linting, and Prettier
  • 🔐 Auth module boilerplate
  • 🗃️ .env.local with default variables
  • 🐳 Docker Setup for seamless containerization and development environment configuration
  • 🧪 Testing ready structure
  • 🛠️ Easily extendable (e.g., Socket.IO, internationalization)

🛠️ How to Use


# Run 
npx create-next-bricks

If no app name is passed, it defaults to app-name.


📁 Generated Folder Structure

your-app-name/
├── public/
├── src/
│   ├── app/                  # Next.js App Router
│   ├── config/               # Environment configs
│   ├── modules/
│   │   └── auth/             # Auth-related logic
│   ├── shared/               # Shared UI/components
│   ├── store/                # Redux Toolkit store setup
│   ├── types/                # Global TypeScript types
│   └── styles/               # Global SCSS files
└── .env.local                # Local environment variables

Temporary folders include .temp files to prevent deletion during initial Git commits.


📚 Pre-installed Packages

| Category | Packages | |-------------------|--------------------------------------------------------------------------| | Core | next, react, react-dom, typescript, sass | | UI Framework | @mui/material, @mui/icons-material, @emotion/react, styled | | State Mgmt | @reduxjs/toolkit, react-redux, redux-persist | | Utilities | axios, i18next, react-i18next | | Dev Tools | @types/react, @types/node, prettier |


⚙️ Configuration Included

  • package.json with common scripts
  • tsconfig.json with @/* path aliases
  • next.config.js with SVG support
  • store with Redux Toolkit + persistence
  • Localization setup with i18next
  • Global layout, styles, and sample components
  • Auth module boilerplate (slice + login page)
  • API helper (api.ts) using Axios

💬 Need Socket.IO Support?

You can easily extend this with Socket.IO.

💡 Just ans:

1. Do you want to include Socket.IO setup? (yes/no):

2. Do you want to add sample chat ui? (yes/no):

It generate a Socket.IO integration with:

  • Socket initialization via custom hook
  • Connection and event handling
  • Folder structure that fits into shared or modules/chat

🧑‍💻 Contributing

This CLI generator is meant for rapid prototyping and scaling production apps. Fork it, modify it, and use it across teams!


📄 License

MIT — Free to use, modify, and distribute.