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

@ubaton/filegen

v2.0.7

Published

File structure generator CLI tool

Downloads

627

Readme

✨ Features

  • 🎯 Interactive CLI interface for easy template selection
  • 📦 Pre-configured Next.js + TypeScript + Tailwind CSS setup
  • 🚀 Multiple project templates for different use cases
  • ⚡ Quick setup with your preferred package manager
  • 🎨 Modern and responsive design patterns
  • 🛠️ Best practices and optimized project structure

🔧 Prerequisites

  • Node.js 16.x or later
  • npm, yarn, pnpm, or bun package manager
  • Basic knowledge of Next.js and React

📦 Installation

You can install FileGen globally using any of these package managers:

# Using npm
npm install -g filegen

# Using yarn
yarn global add filegen

# Using pnpm
pnpm add -g filegen

# Using bun
bun add -g filegen

🚀 Usage

Interactive Mode

Start the interactive CLI to choose your template:

filegen

Follow the prompts to:

  1. Select your preferred template
  2. Choose your package manager
  3. Configure project settings

Direct Template Selection

Generate a project with a specific template:

filegen --template <template-name>

# Example
filegen --template e-commerce

📚 Available Templates

1. E-commerce Store

A complete e-commerce solution featuring:

  • 🛍️ Product catalog with filtering and search
  • 🛒 Shopping cart with persistent storage
  • 💳 Checkout process integration
  • 📱 Responsive product galleries
  • 🔐 User authentication and profiles

2. Blog Platform

Modern blogging platform with:

  • ✍️ Markdown support for content
  • 🏷️ Categories and tags system
  • 👥 Multi-author capabilities
  • 🔍 Full-text search
  • 📊 Analytics integration

3. Tech Website

Professional tech website template with:

  • 🎨 Modern landing page design
  • 📱 Responsive components
  • 📬 Contact form integration
  • 🔍 SEO optimization

4. Portfolio

Personal portfolio template featuring:

  • 🖼️ Project showcase gallery
  • 💪 Skills section
  • 📝 Blog integration
  • 📱 Mobile-first design

5. SaaS Platform

Complete SaaS starter with:

  • 🔐 Authentication system
  • 💼 Admin dashboard
  • 👥 User management
  • 💳 Subscription handling

6. Community Forum

Interactive forum platform with:

  • 💬 Discussion boards
  • 👤 User profiles
  • 🔔 Notification system
  • 🔍 Advanced search

7. Learning Management

E-learning platform featuring:

  • 📚 Course organization
  • 📊 Progress tracking
  • 📝 Assessment tools
  • 👨‍🏫 Instructor dashboard

8. News Portal

News website template with:

  • 📰 Article layouts
  • 🏷️ Category system
  • 🔍 Search functionality
  • 📱 Responsive design

🎯 Interactive Selection

When you run filegen without any arguments, you'll be presented with an interactive CLI interface:

  1. Template Selection
Select a template to generate:
▶ 🛒 E-commerce Store
  ✍️ Blog Platform
  💻 Tech Website
  📁 Portfolio
  🚀 SaaS Platform
  👥 Community Forum
  📚 Learning Management System
  📰 News Portal

[↑↓] Navigate
[Enter] Select template
  1. Package Manager Selection
Choose a package manager to use:
▶ bunx
  npx
  yarn
  pnpm
  1. Project Setup
  • Creates a new Next.js project with:
    • TypeScript configuration
    • Tailwind CSS setup
    • ESLint integration
  • Installs template-specific dependencies
  • Generates the file structure based on your selected template
  1. Post-Installation Once completed, you can start your development server:
# Start the development server
bun dev
# or
npm run dev
# or
yarn dev
# or
pnpm dev

🤝 Contributing

We welcome contributions! Here's how you can help:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📝 License

MIT


GitHub | Twitter | LinkedIn