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

@yousxlfs/next-arch

v0.3.4

Published

CLI for scaffolding Next.js 16 projects with Feature-Sliced Design

Readme

@yousxlfs/next-arch

CLI for Next.js App Router with strict Feature-Sliced Design — scaffolds projects, generates slices, and ships with eslint-plugin-next-arch bundled.

I built this because Next.js has no fixed folder structure. AI and juniors keep breaking imports (features/cartfeatures/auth). This tool creates the layout once and ESLint enforces it.

Full docs: github.com/angeloscode/next-arch

Install

npx @yousxlfs/next-arch init my-app
cd my-app
pnpm install
pnpm dev

Node 20+.

What you get after init

  • FSD folders: app/, views/, widgets/, features/, entities/, shared/
  • eslint-plugin-next-arch in vendor/ + ESLint config
  • Root AGENTS.md for Cursor / Copilot
  • TanStack Query, providers (based on your init choices)
  • Optional commented examples in src/features/_examples/

Layers

Imports only down:

app → views → widgets → features → entities → shared

Outside a feature: import only @/features/cart, never @/features/cart/ui/....

Commands

# new project
next-arch init my-app
next-arch init my-app -y --no-examples --project-type simple

# add a slice
next-arch generate feature payments
next-arch g view dashboard
next-arch generate widget header
next-arch generate entity user

# full page with preset
next-arch page orders --preset crud

# architecture check (no full eslint run)
next-arch doctor

# remove a slice
next-arch remove feature payments
next-arch remove view dashboard
next-arch rm entity user
next-arch remove feature payments --force

Useful flags

| Flag | Description | |------|-------------| | --output-dir <path> | Parent folder for the new project | | --project-type full\|standard\|simple | How many FSD layers to keep | | --cwd <path> | Project root (generate / page / doctor / remove) | | -y | Skip prompts | | -f | Force overwrite or skip remove confirmation | | --no-examples | Skip _examples/ |

| Command | Description | |---------|-------------| | remove <type> <name> | Remove a FSD slice; warns which files still import it | | rm <type> <name> | Alias for remove |

remove — safe slice deletion

next-arch remove feature payments       # asks for confirmation
next-arch rm widget sidebar -f          # delete immediately

Output when other files depend on the slice:

▲  Found 2 file(s) importing from @/features/payments:
●    src/views/Checkout.tsx
●    src/widgets/cart/ui/Summary.tsx
●  These imports will break after removal.
◇  Will remove: features/payments/ (9 files)

Types: feature, view, widget, entity. Does not auto-fix imports — only warns.

Page presets

auth, crud, dashboard, profile, settings, blank

ESLint plugin

Every generated project includes eslint-plugin-next-arch. Standalone install:

pnpm add -D eslint-plugin-next-arch

Issues

github.com/angeloscode/next-arch/issues

MIT © angeloscode