MCPcopy Index your code
hub / github.com/avencera/rustywind

github.com/avencera/rustywind @v0.24.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.24.3 ↗ · + Follow
76 symbols 121 edges 22 files 12 documented · 16% updated 1d agov0.25.0 · 2026-07-06★ 6199 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

RustyWind Mean Bean CI npm version crates.io

Install

Available via npm

yarn global add rustywind

or

npm install -g rustywind

or

Install from homebrew (mac and linux):

brew install avencera/tap/rustywind

or

Install from crates.io:

cargo install rustywind

or

cargo binstall rustywind

or

Install from a github release:

curl -LSfs https://avencera.github.io/rustywind/install.sh | sh -s -- --git avencera/rustywind

or

Download a release directly from github: github.com/avencera/rustywind/releases

or

You can use the dockerized version

docker run --rm -v $PWD:/app avencera/rustywind:latest <rustywind arguments>

Usage

Run rustywind with a path to output updated file contents to the terminal:

  • rustywind .

If you want to reorganize all classes in place, and change the files run with the --write flag

  • rustywind --write .

Run rustywind with a path and the --dry-run to get a list of files that will be changed:

  • rustywind --dry-run .

Run rustywind on your STDIN:

  • echo "<FILE CONTENTS>" | rustywind --stdin

Run in CI, exit with error if unsorted classes are found:

  • rustywind --check-formatted .

Run RustyWind with a custom sorter. The config_file.json should have a top level entry of sortOrder which is an array with the classes listed in the order you want them sorted.

  • rustywind --config-file config_file.json

Use with tailwind prettier plugin

  • rustywind --output-css-file <path to the tailwind generated css file>

  • rustywind --vite-css <url to the css generated by vite>

Usage: rustywind [OPTIONS] [PATH]...

Run rustywind with a path to get a list of files that will be changed
  rustywind . --dry-run

If you want to reorganize all classes in place, and change the files run with the `--write` flag
  rustywind --write .

To print only the file names that would be changed run with the `--check-formatted` flag
  rustywind --check-formatted .

If you want to run it on your STDIN, you can do:
  echo "<FILE CONTENTS>" | rustywind --stdin

Arguments:
  [PATH]...
          A file or directory to run on

Options:
      --stdin
          Uses stdin instead of a file or folder

      --write
          Changes the files in place with the reorganized classes

      --dry-run
          Prints out the new file content with the sorted classes to the terminal

      --check-formatted
          Checks if the files are already formatted, exits with 1 if not formatted

      --allow-duplicates
          When set, RustyWind will not delete duplicated classes

      --config-file <CONFIG_FILE>
          When set, RustyWind will use the config file to derive configurations. The config file current only supports json with one property sortOrder, e.g. { "sortOrder": ["class1", ...] }

      --output-css-file <OUTPUT_CSS_FILE>
          When set RustyWind will determine the sort order by the order the class appear in the the given css file

      --vite-css <VITE_CSS>
          When set RustyWind will determine the sort order by the order the class appear in the CSS file that vite generates.

          Please provide the full URL to the CSS file ex: `rustywind --vite-css "http://127.0.0.1:5173/src/assets/main.css" . --dry-run`

          Note: This option is experimental and may be removed in the future.

      --skip-ssl-verification
          When set, RustyWind will skip SSL verification for the vite_css option

      --ignored-files <IGNORED_FILES>
          When set, RustyWind will ignore this list of files

      --custom-regex <CUSTOM_REGEX>
          Uses a custom regex instead of default one

      --quiet
          Do not print log messages

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

What

Inspired by Ryan Heybourn's headwind vscode plugin. This is a CLI tool that will look through your project and sort all Tailwind CSS classes.

It will also delete any duplicate classes it finds.

Core symbols most depended-on inside this repo

download
called by 3
npm/lib/download.js
sanitizePathForPowershell
called by 3
npm/lib/download.js
print_file_name
called by 3
rustywind-cli/src/main.rs
should_ignore_current_file
called by 2
rustywind-cli/src/main.rs
print_file_contents
called by 2
rustywind-cli/src/main.rs
has_classes
called by 2
rustywind-core/src/app.rs
sort_file_contents
called by 2
rustywind-core/src/app.rs
as_str
called by 2
rustywind-core/src/class_wrapping.rs

Shape

Function 48
Method 19
Class 5
Enum 4

Languages

Rust82%
TypeScript18%

Modules by API surface

rustywind-core/src/app.rs16 symbols
rustywind-cli/src/options.rs15 symbols
rustywind-cli/src/main.rs10 symbols
rustywind-core/src/sorter.rs8 symbols
npm/lib/download.js8 symbols
rustywind-core/src/defaults.rs7 symbols
rustywind-core/src/class_wrapping.rs4 symbols
npm/lib/postinstall.js2 symbols
npm/lib/download-release.js2 symbols
rustywind-vite/src/sorter.rs1 symbols
rustywind-cli/src/cli.rs1 symbols
npm/lib/update-release.js1 symbols

For agents

$ claude mcp add rustywind \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact