Skip to content
/ cli Public

🧩 A CLI to interact with the OpenSASS ecosystem.

License

Notifications You must be signed in to change notification settings

opensass/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

56 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧩 OpenSASS

Crates.io Crates.io Downloads Crates.io License made-with-rust Rust Maintenance

Join our Discord

logo

🐧 Linux (Recommended) πŸͺŸ Windows
cargo install opensass cargo install opensass
Download Executable File Download .exe File
os -h os -h

🧩 OpenSASS: A CLI tool for downloading reusable OpenSASS components from crates.io and integrating them into your WASM frontend projects.

πŸ“– Table of Contents

πŸš€ Installation

To install the CLI:

cargo install opensass

Or build from source:

git clone https://github.com/opensass/cli.git
cd cli
cargo build --release

✨ Features

  • 🧩 Add OpenSASS component-based crates with a single command.
  • βš™ Automatically updates Cargo.toml with proper features.
  • πŸ” Copies only the src/ files related to the specified feature.

πŸ’‘ Usage

os-yew.mp4

Add an OpenSASS component to your project

os add i18nrs yew

This will:

  • Download the i18nrs crate.
  • Extract files only related to the yew feature.
  • Copy src/ files into your project.
  • Update your Cargo.toml dependencies and feature flags.

πŸ§ƒ Components

Open SASS offers the following components:

🧩 Component πŸ“¦ GitHub Repository πŸ“ Description
accordion GitHub ↕️ A highly customizable accordion component for WASM frameworks.
alert GitHub ⚠️ A highly customizable alert component for WASM frameworks.
eld GitHub πŸš› ELD Toolkit for WASM frameworks.
i18n GitHub 🌐 Internationalization (i18n) component for WASM frameworks.
input GitHub πŸ”€ A highly customizable input component for WASM frameworks.
radio GitHub πŸŽ›οΈ A highly customizable radio buttons component for WASM frameworks.
scroll GitHub πŸ–±οΈ A highly customizable scroll-to-anywhere component for WASM frameworks.
select GitHub πŸ”½ A highly customizable select group component for WASM frameworks.

And much more coming over time...

⚑ Benchmark

❯ time npx shadcn@latest add accordion
5.93s user 2.22s system 93% cpu
❯ time os add accordion-rs yew
0.17s user 0.02s system 6% cpu

Open SASS CLI is ~50Γ— faster and uses ~15Γ— less CPU than shadcn. More optimizations on the way πŸš€.

🀝 Contributions

Contributions are welcome! Whether it's bug fixes, feature requests, or examples, we would love your help to make Open SASS better.

  1. Fork the repository.
  2. Create a new branch for your feature/bugfix.
  3. Submit a pull request for review.

πŸ“œ License

Open SASS is licensed under the MIT License. You are free to use, modify, and distribute this library in your projects.