← Back to Projects

gladeshell

Open SourceMIT License
gladeshell - Ultra-fast Pure Rust Shell Environment and Developer Suite

An open-source (MIT Licensed), ultra-high-performance pure Rust shell environment and developer suite delivering a record 0.0114 ms (11.4 µs) prompt latency (~210x faster than Starship). Designed with zero external runtime dependencies and strict '#![deny(unsafe_code)]' memory safety, it integrates 55 hot-swappable prompt themes, pure Rust Git telemetry ('gix 0.88'), native Ratatui TUI utilities (Todo, Notes, Process Monitor), parallel Rayon multi-core compression, a 24-in-1 FFmpeg multimedia suite, and a hardened AES-256 PBKDF2 security vault.

Performance & Architecture Benchmarks

✓0.0114 ms (11.4 µs) Core Prompt Latency (Criterion micro-benchmarked)
✓0 Subshell Process Forks (Eliminates shell spawn overhead completely)
✓~3.9 MB RSS Memory Footprint (Fat-LTO compiled & stripped)
✓7-Platform Native Release Matrix (Linux glibc/musl, macOS ARM/x86, Windows)

Technologies Used

Rust (2024 Edition)Ratatui TUIGitoxide (gix)RayonAES-256 GCMZstandardShell (Bash / Zsh / Fish / Pwsh)Open Source (MIT)

Key Features & Capabilities

  • ⚡ Sub-Millisecond Smart Prompt: 0.0114 ms prompt latency with zero subshell forks and live runtime badges (Rust, Node, Bun, Python, Docker).
  • 🦀 100% Pure Rust Architecture: Compiled binary with strict memory safety guarantees and zero external runtime dependencies.
  • 🌿 Subshell-Free Git Telemetry: Pure Rust 'gix 0.88' engine providing 4.8 µs cache hits and adaptive monorepo TTL tracking.
  • 🎨 55 Prompt Themes: Instant hot-swapping between Tokyo Night, Catppuccin, Dracula, Matrix, Gruvbox, Nord, and 49 more.
  • 🖥️ Ratatui TUI Developer Apps: Terminal-native interactive GUIs for Task Management (Todo), Notes, and System Diagnostics ('sysmon').
  • 🗜️ Rayon Parallel Multi-Core Compressor: High-throughput parallel zstd compression engine with smart pre-compressed media bypass.
  • 🔐 Hardened AES-256-GCM Vault: Multi-vault encryption with PBKDF2 (100,000 iterations), automatic RAM zeroization, and decoy panic mode.
  • 🎬 24-in-1 FFmedia Suite: Swiss Army knife for FFmpeg video/audio compression, GIF conversions, visualizers, and screen capture.
  • 🔄 Universal Cross-Shell Integration: 1-command in-memory bootstrap for Bash, Zsh, Fish, and PowerShell 7+ ('eval $(gladeshell init <shell>)').
  • 📦 Mega Updater ('uup') & Cleaner ('uu'): Cross-platform interactive application remover across apt, snap, flatpak, and AppImage.

Challenges Faced

  • Engineering a zero-subshell-fork prompt engine that renders git and telemetry in 11.4 µs using pure Rust ('gix 0.88'), bypassing traditional subshell bottlenecks.
  • Implementing a fast-path CLI dispatcher that completely bypasses heavy argument parsing overhead for hot-path commands ('prompt', 'init').
  • Achieving cross-shell compatibility (Bash, Zsh, Fish, PowerShell) with safe, idempotent in-memory loaders that never corrupt existing shell configs.
  • Hardening the AES-256 directory vault with RAM zeroization ('zeroize') to guarantee encryption keys are wiped from memory immediately upon exit.

Future Plans & Improvements

  • Integrate an embedded local AI command assistant for context-aware shell workflow suggestions.
  • Publish automated packages to Homebrew, Arch User Repository (AUR), Scoop, and crates.io.
  • Build a modular Lua/WASM plugin engine for custom user-created Ratatui TUI extensions.
  • Implement an eBPF-powered real-time system latency and process tracing module.