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

foldera

v1.0.0

Published

πŸš€ Foldera CLI - Foldera is a blazing‑fast project scaffolding CLI. Bootstrap modern stacks in seconds with interactive prompts, pre‑baked templates, and smart defaults

Readme

πŸš€ FOLDERA β€” The Fast Project Generator

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•—      β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•β•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β•β•β• β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘      β–ˆβ–ˆ   β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•”β•β•β•β•β• β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘      β–ˆβ–ˆ   β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘
β–ˆβ–ˆβ•š      β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘      β–ˆβ–ˆ   β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•”β•β•β•   β–ˆβ–ˆβ•”β•β–ˆβ–ˆ   β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘
β–ˆβ–ˆβ•‘       β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β•‘ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘
══╝       β•šβ•β•β•β•β•β•  β•šβ•β•β•β•β•β•β•  β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β• β•šβ•β•      β•šβ•β•  β•šβ•β•

Foldera is a blazing‑fast project scaffolding CLI. Bootstrap modern stacks in seconds with interactive prompts, pre‑baked templates, and smart defaults.

npm license downloads


✨ Features

  • ⚑ Instant scaffolding: npx foldera my-app
  • 🎨 Templates: Node (basic), React + Vite + Tailwind + Nodejs + Express (fullstack), Express API
  • πŸ”Œ Interactive UX via Clack prompts
  • πŸ“¦ Auto‑install dependencies (root + nested client/, server/)
  • πŸ”” Update notifier built‑in
  • 🧩 Extensible commands (init)
  • πŸ› οΈ Clean, modular architecture (ESM)

πŸ“¦ Installation

# Global install
npm install -g foldera

# OR run directly
npx foldera my-app

πŸš€ Quick Start

Default Generator (Interactive)

foldera          # asks for name, template, install

Named Project (Interactive Template)

foldera my-app   # skips name prompt, picks template interactively

Fully Non‑Interactive

foldera my-app nodejs   # name + template provided

Explicit Command

foldera generate             # same interactive generator

Initialize Existing Folder

foldera init

Add a Feature Later

foldera add tailwind

πŸ—οΈ Templates

  • nodejs β€” Minimal Node.js starter
  • fullstack-vite β€” React + Vite + Tailwind, prewired configs
  • express-api β€” RESTful API skeleton with routing & scripts

Use a template directly:

npx foldera my-app react-basic

🏷️ Flags

  • --help, -h β€” Show help
  • --version, -v β€” Show installed version

Strict flags: Unknown flags (e.g., --helo) produce an error. Use --help to see valid options.


πŸ› οΈ Project Architecture

project-root/
β”‚
β”œβ”€β”€ app.js                 # CLI entry β†’ runs src/core/cli.js
β”‚
β”œβ”€β”€ /src
β”‚   β”œβ”€β”€ /core
β”‚   β”‚   β”œβ”€β”€ cli.js         # Router: parses flags/args, dispatches
β”‚   β”‚   β”œβ”€β”€ prompts.js     # Clack prompts
β”‚   β”‚   β”œβ”€β”€ installer.js   # npm installs (root + nested)
β”‚   β”‚   β”œβ”€β”€ notifier.js    # update checks
β”‚   β”‚   └── utils.js       # helpers
β”‚   β”‚
β”‚   β”œβ”€β”€ /commands
β”‚   β”‚   β”œβ”€β”€ index.js       # registers commands
β”‚   β”‚   β”œβ”€β”€ generate.js    # scaffold projects
β”‚   β”‚   β”œβ”€β”€ add.js         # add features/templates
β”‚   β”‚   β”œβ”€β”€ init.js        # init in existing dir
β”‚   β”‚   └── help.js        # help renderer
β”‚   β”‚
β”‚   β”œβ”€β”€ /templates
β”‚   β”‚   β”œβ”€β”€ nodejs/
β”‚   β”‚   β”œβ”€β”€ fullstack-vite/
β”‚   β”‚   β”œβ”€β”€ express-api/
β”‚   β”‚   └── config.json

πŸ”§ Template: React + Vite + Tailwind (Expectations)

Dependencies (dev): tailwindcss, @tailwindcss/vite, autoprefixer

index.css

@import "tailwindcss";

App.jsx (sample)

export default function App() {
  return (
    <div className="text-4xl font-semibold text-center mt-10">
      πŸš€ Tailwind is ready!
    </div>
  );
}

βš™οΈ Behavior & Routing Rules

  • No args β†’ run interactive generator.
  • npx foldera <folder-name> β†’ treat <name> as project name, prompt for template & install.
  • Known command (e.g., init) β†’ dispatch to command handler(still in development).
  • Flags first: --help, -h, --version, -v handled globally.
  • Strict flag mode: any unknown --something β†’ error out with guidance.

πŸ§ͺ Local Development

git clone https://github.com/your-username/foldera.git
cd foldera
npm install
npm link          # use `foldera` globally during dev

Run CLI:

foldera --help
foldera my-app

🀝 Contributing

  • Use ESM (import), no CommonJS
  • Keep commands small, focused
  • Document changes in this README + /docs
  • Add tests for new flags/commands

PR checklist:

  • [ ] Feature works on Node 18/20+
  • [ ] No breaking UX without docs
  • [ ] Tests and docs updated

❓ FAQ

Q: How do I create a new project? npx foldera my-app

Q: Can I specify the template directly? npx foldera my-app react-basic

Q: How do I show help or version? npx foldera --help, npx foldera --version

Q: Why do I get Unknown flag? Flags are strict. Use exact names.

Q: Does it install nested deps (client/server)? Yes. The installer scans root and known subfolders and runs npm install where needed.


πŸ“– Deep Dives

For focused guides, see /docs:

  • Architecture β€” docs/architecture.md
  • Commands β€” docs/commands.md

πŸ“œ License

MIT Β© 2025 Nikhil Mishra