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

project-structure-generator

v1.0.2-Beta

Published

A CLI program for Windows OS

Readme

PSG - Project Structure Generator

A standalone toolkit for starting project.

Installation

npm i -g project-structure-generator

Before using service

If you want to use PSG service, you must execute this command.
But, you can use any command with no enter this command other than PSG make <filename> command.

psg init

This is will generate a directory(named ".projectStructures") for management your project structure file.

Note: Please enter this command at your project root directory.

Rule for writing your project structure

You must follow these rules before writing your project structure at file.

  1. If it's a directory, you must prefix it with /
    ex) /src, /.logs, /configs, ...

  2. If it's a file, you must have an extension
    ex) index.js, README.md, ...

  3. The file you write your project structure should have a .txt extension
    ex) sample.txt, projectStructre1.txt, ...

  4. Make a relationship with the upper directory per 2 indentaion spaces

ex)
/src
  image.js

Then, index.js is located in src directory.

Available Commands

PSG supports serveral commands, for your project and manage file or directory.

project-generate

Note: You must execute psg init before executing this command.

psg make <filename>

If you pass filename that written at ./projectStructures, will generate for directory and file as is stated here.

If you already created file or directory stated, will be ignore.

touch

touch <filenames>

If you pass filename, will create empty file in current working directory.

For example)
C:\PSG\src> touch app.js

Then, create "app.js" file in "PSG\src".

If you passed path with filename, then create empty file in specified path.

For example)
C:\PSG\src> psg touch ../.env

Then, create ".env" file in "PSG".

Also, you can pass multiple file names. In that case, a corresponding blank file will be created.

For example)
C:\PSG\src> psg touch .env .gitignore README.md 

Then, create ".env", ".gitignore", "README.md" file in "C:\PSG\src".

cat

cat <filenames>

If you pass filename, will show content written.
Also, you can pass multiple file names.

Available Options

PSG supports serveral options. But these options must be use alone, not use together command.

-v, --version

<service_name> -v
<service_name> --version

Show service version

-h, --help

<service_name> -h
<service_name> --help

Show avvaiable options and commands

How to contribute

Get code

  1. Clone this repository
git clone https://github.com/MinJunSeo/project-structure-generator.git
cd project-structure-generator
  1. Install dependencis
npm i
  1. Install this code globally
npm i -g

Then, you can use commands.

Code Reivews

All of code require review. You can use GitHub pull requests for this purpose. Consult GitHub Pull Request Help for more information on using pull requests.

Bug Report or Suggestions for new function

You can use issues for this purpose. Consult GitHub Issues Help for more information on using issues.

Develop Diary and Review

  • velog: PSG 회고록