New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

rorg

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rorg

CLI tool for organizing React projects with different architectural patterns

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

rorg

A flexible CLI tool for organizing React projects with different architectural patterns.

Installation

You can run this tool directly using npx:

npx rorg

On first run, you'll be prompted to:

  • Choose your preferred architectural pattern
  • Specify the base path for components (e.g., src, app)
  • Decide if you want test files for each component
  • Choose whether to use separate CSS files

These preferences will be saved in .rorg-config.json. After initialization, rerun the command to start generating components.

Available Generators

Atomic Design

npx rorg atom
npx rorg molecule
npx rorg organism
npx rorg template
npx rorg page

Pages & Components

npx rorg component
npx rorg page

Feature First

npx rorg feature
npx rorg shared

Structure

Depending on your chosen pattern, the tool will create one of these structures (under your specified base path):

Atomic Design

<basePath>/
  components/
    atoms/
    molecules/
    organisms/
    templates/
    pages/

Pages & Components

<basePath>/
  components/
  pages/

Feature First

<basePath>/
  features/
    feature-name/
      components/
      hooks/
      utils/
  shared/

Configuration

The tool creates a .rorg-config.json file in your project root after initialization. This file stores:

  • Your chosen architectural pattern
  • The base path for components
  • Whether to include test files
  • Whether to use separate CSS files

Example configuration:

{
  "pattern": "atomic",
  "basePath": "src",
  "includeTests": true,
  "separateCss": true,
  "initialized": "2023-09-20T12:34:56.789Z"
}

Keywords

react

FAQs

Package last updated on 10 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts