Raxol brings modern UI development patterns to the terminal. Think React, Svelte, LiveView meets tmux.
Generate type specifications for private functions automatically:
mix raxol.gen.specs lib/my_module.ex
mix raxol.gen.specs lib --recursive --dry-run
Centralized configuration with environment-specific overrides:
Raxol.Config.get([:terminal, :width], default: 80)
Raxol.Config.set([:rendering, :fps_target], 120)
Four-level debugging system with performance monitoring:
Raxol.Debug.enable(:verbose)
Raxol.Debug.time_debug(:render, "frame", fn -> render() end)
# Add to mix.exs
{:raxol, "~> 1.4.1"}
# Clone and explore
git clone https://github.com/Hydepwns/raxol.git
cd raxol
mix deps.get
# Run quality checks
mix raxol.check
# Run tests
mix raxol.test
# Generate type specs
mix raxol.gen.specs lib --recursive
use Raxol.UI, framework: :react # Familiar React patterns
use Raxol.UI, framework: :svelte # Reactive with compile-time optimization
use Raxol.UI, framework: :liveview # Phoenix LiveView patterns
use Raxol.UI, framework: :heex # Phoenix templates
use Raxol.UI, framework: :raw # Direct terminal control
defmodule MyApp do
use Raxol.Component
def render(assigns) do
~H"""
<Box padding={2}>
<Text color="green" bold>Hello, Raxol!</Text>
<Button on_click={@on_click}>Click me!</Button>
</Box>
"""
end
end
Metric | Raxol | Alacritty | Kitty | iTerm2 | WezTerm |
---|---|---|---|---|---|
Parser Speed | 3.3μs/op | ~5μs/op | ~4μs/op | ~15μs/op | ~6μs/op |
Memory Usage | 2.8MB | ~15MB | ~25MB | ~50MB | ~20MB |
Startup Time | <150μs | ~50ms | ~40ms | ~100ms | ~60ms |
Test Suite | 4361 tests | ~800 tests | ~600 tests | ~500 tests | ~700 tests |
Documentation Hub - Complete documentation index
Development version available in editors/vscode/
. To install:
cd editors/vscode
npm install
npm run compile
code --install-extension .
Features: Syntax highlighting, IntelliSense, component snippets, live preview
Perfect for terminal IDEs, DevOps tools, system monitoring, database clients, chat applications, and games.
MIT License - see LICENSE.md