Skip to content

About

Tavryne Code — a lightweight, native, Rust-first code editor built with egui/eframe. Rope-backed editing, 16-language syntax highlighting, integrated terminal, native formatters and CodeRun integration.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Tavryne Code

Code without the weight. Built in Rust. Designed for developers.

Latest release License: MIT

Tavryne Code is a native, Rust-first code editor for Windows, macOS and Linux. The window, editor engine, terminal, theme system, formatter and configuration layer are all first-party Rust. There is no Electron, no Chromium, no JavaScript frontend, and no Node.js or Python runtime.

What it is

A complete desktop code editor in a single native binary:

  • rope-backed editing with multiple cursors, column selection and undo/redo;
  • find and replace in the document and across the workspace;
  • an integrated terminal, a project explorer and split editing;
  • a Welcome tab with recent projects, a real Git clone workflow and five interactive walkthroughs;
  • 16 embedded languages with semantic syntax highlighting;
  • native and external formatters with a diff preview;
  • Git status indicators, portable mode and TOML configuration;
  • first-class CodeRun installation, discovery, run and stop.

What it solves

Most modern editors ship a browser engine, a JavaScript runtime and a large dependency tree with every install. Tavryne Code takes the opposite approach.

Problem Tavryne Code
Editors that bundle a browser engine Native egui/eframe rendering, no web runtime
Hundreds of megabytes of installers 6.8–15.7 MB downloads for the entire editor
Slow startup and high memory use Rope-backed buffers and a native binary, no JS heap
Node.js or Python prerequisites None — the executable is the editor
Scattered tooling Editor, terminal, search, formatters and run integration in one app
Settings locked to one machine layout Portable mode keeps settings, themes and logs beside the executable
Opaque configuration Plain TOML settings and keybindings with live reload

Tavryne Code is built for developers who want a capable editor without the weight of a web stack.

Download

Everything is published on GitHub Releases. The latest release is v1.5.3.

Primary installers

Platform Download Size Type
Windows 10/11 x64 TavryneCode-Setup-1.5.3-x64.exe 6.9 MB Installer
macOS 11+ (Intel and Apple Silicon) TavryneCode-1.5.3-universal.dmg 15.7 MB Disk image
Debian 12 / Ubuntu 22.04+ x64 tavryne-code_1.5.3_amd64.deb 6.8 MB Debian package

Portable downloads

Platform Download Size Type
Windows 10/11 x64 TavryneCode-1.5.3-Windows-x64.zip 7.0 MB Portable ZIP
macOS 11+ TavryneCode-1.5.3-universal.zip 14.6 MB Application ZIP
Linux x64 TavryneCode-1.5.3-Linux-x64.AppImage 9.1 MB Portable AppImage
Linux x64 TavryneCode-1.5.3-Linux-x64.tar.gz 8.7 MB Portable tarball

All files, checksums and release notes live at github.com/pjprogrammers/tavrynecode/releases. INSTALL.md covers troubleshooting and manual verification in more detail.

Install

Windows 10/11 (x64)

Installer — recommended

Download TavryneCode-Setup-1.5.3-x64.exe (6.9 MB)

  1. Run the installer.
  2. Choose a current-user install (default) or an all-users install.
  3. Optionally enable the desktop shortcut, the tavrynecode command-line launcher (enabled by default) and "Open with" entries for source files.
  4. Launch Tavryne Code from the Start menu or the final installer page.

The installer writes an uninstaller and preserves your settings in %APPDATA% when you uninstall. It never changes file associations without consent. On first launch, Tavryne Code installs the latest CodeRun release into <install>\bin and adds both tavrynecode and coderun to PATH.

The tavrynecode task installs tavrynecode.cmd in the application's bin folder and adds that folder to PATH. Open a new terminal, then run:

tavrynecode .
tavrynecode src\main.rs

Portable ZIP

Download TavryneCode-1.5.3-Windows-x64.zip (7.0 MB)

  1. Extract the archive anywhere.
  2. Run tavryne.exe.
  3. Use tavrynecode.cmd from that folder for command-line launches, or add the folder to PATH manually.

Pass --portable to keep settings, sessions, themes and logs beside the executable.

macOS 11+ (Intel and Apple Silicon)

Universal DMG — recommended

Download TavryneCode-1.5.3-universal.dmg (15.7 MB)

  1. Open the DMG.
  2. Drag Tavryne Code into Applications.
  3. Optional: double-click Install Command Line Tool.command to install /usr/local/bin/tavrynecode.
  4. Launch the app from Launchpad or Spotlight.

The DMG contains both aarch64-apple-darwin and x86_64-apple-darwin binaries. The command-line installer can also be run later from /Applications/Tavryne Code.app/Contents/Resources/install-cli.command. On first launch, Tavryne Code installs the latest CodeRun release and registers coderun in ~/.local/bin.

Universal ZIP

Download TavryneCode-1.5.3-universal.zip (14.6 MB)

  1. Unzip the archive.
  2. Drag Tavryne Code.app into Applications.
  3. Launch it from Launchpad or Spotlight.

Debian 12 / Ubuntu 22.04+ (x64)

Debian package

Download tavryne-code_1.5.3_amd64.deb (6.8 MB)

Install with apt so runtime dependencies are resolved:

sudo apt install ./tavryne-code_1.5.3_amd64.deb
tavrynecode .

The package installs /usr/bin/tavryne, the /usr/bin/tavrynecode launcher, /usr/bin/coderun, the desktop entry, AppStream metadata, hicolor icons, themes and assets. postinst downloads the latest verified CodeRun release; a network failure does not fail the package installation, and the editor can retry from Run → Install or Update CodeRun…. Remove it with sudo apt remove tavryne-code; user settings are left in place.

Portable AppImage and tarball

Download TavryneCode-1.5.3-Linux-x64.AppImage (9.1 MB)

chmod +x TavryneCode-1.5.3-Linux-x64.AppImage
./TavryneCode-1.5.3-Linux-x64.AppImage .

Download TavryneCode-1.5.3-Linux-x64.tar.gz (8.7 MB)

tar -xzf TavryneCode-1.5.3-Linux-x64.tar.gz
cd TavryneCode-1.5.3-Linux-x64
./tavryne .

Both portable builds include themes, assets and the CodeRun installer.

Linux releases publish five files: tavryne-code_1.5.3_amd64.deb, TavryneCode-1.5.3-Linux-x64.AppImage, TavryneCode-1.5.3-Linux-x64.tar.gz, SHA256SUMS.txt and SHA256SUMS.txt.asc. The checksum file covers every asset in the release, and the detached signature proves it was signed by the Tavryne release key.

Verify a download

Every release publishes SHA256SUMS.txt and its signature, SHA256SUMS.txt.asc. Import the public key from packaging/linux/tavryne-release-key.asc, then verify:

gpg --import tavryne-release-key.asc
gpg --verify SHA256SUMS.txt.asc SHA256SUMS.txt
sha256sum -c SHA256SUMS.txt --ignore-missing

On macOS use shasum -a 256 -c SHA256SUMS.txt --ignore-missing. On Windows PowerShell, compare Get-FileHash with the matching line in SHA256SUMS.txt:

Get-FileHash .\TavryneCode-Setup-1.5.3-x64.exe -Algorithm SHA256

Signing status

The checksum file is signed with the Tavryne release GPG key. The Windows and macOS builds are not code-signed or notarized because platform signing credentials are not configured. Windows SmartScreen may show "Unknown publisher"; macOS Gatekeeper may ask you to allow the app under System Settings → Privacy & Security. Verify the signed checksum before running either build, and do not disable Gatekeeper globally.

Package managers

WinGet, Homebrew and APT packages are planned for a future release, after signing and package reliability are established. Use the downloads above today.

The tavrynecode command

Installed builds provide a tavrynecode launcher that forwards every argument to the real tavryne executable. The whole application directory is never added to PATH.

Command Action
tavrynecode Launch the editor
tavrynecode . Open the current directory
tavrynecode src/main.rs Open a specific file
tavrynecode folder/ Open a specific folder
tavrynecode --new-window Accepted for compatibility; each launch is a new process
tavrynecode --version Print the version
tavrynecode --help Print usage
Platform Launcher Installed by
Windows installer <install>\bin\tavrynecode.cmd Optional task, enabled by default
Windows portable ZIP tavrynecode.cmd beside tavryne.exe Included; add the folder to PATH manually
macOS /usr/local/bin/tavrynecode Optional Install Command Line Tool.command
Debian package /usr/bin/tavrynecode Installed automatically
Linux AppImage /usr/bin/tavrynecode inside the image Included; run the AppImage
Linux tarball tavrynecode beside tavryne Included; add the folder to PATH manually

Builds run directly from target/ use the executable name:

tavryne --portable
tavryne --no-portable
tavryne --run-with coderun main.cpp
tavryne --log-level debug

Features

  • Native egui/eframe shell with glow as the compatibility renderer and an optional wgpu backend that can be enabled without changing application logic.
  • Rope-backed editor with multiple cursors, column selection, undo/redo, bracket matching, auto-close pairs, auto-indent, comment toggling, line duplication and movement.
  • Find and replace in the document and across the workspace, with literal and regex modes, case and whole-word toggles, gitignore-aware search, and a per-file preview before a workspace-wide replacement.
  • Autosave on by default after a configurable idle delay, with a settings toggle to turn it off; untitled buffers are never written without a path.
  • 16 embedded languages: Rust, C, C++, Python, Java, JavaScript, TypeScript, HTML, CSS, JSON, TOML, YAML, Markdown, Bash, SQL and R.
  • Semantic syntax tokens so themes switch instantly without re-parsing.
  • Four built-in themes — Midnight, Obsidian, Light and Ocean — plus drop-in TOML themes.
  • Native formatters for JSON, TOML, YAML, Markdown and CSS/SCSS, with optional adapters for rustfmt, clang-format, black and prettier. Format-on-save and a modal diff preview are built in.
  • Git integration through the installed git CLI: status decorations in the explorer, tabs, breadcrumbs and status bar; a Source Control view with staging, commits, branches, merge-conflict resolution, diffs, history and blame; missing git or a non-repository is harmless.
  • Integrated terminal built on portable-pty and alacritty_terminal, started lazily and fully independent of the editor core.
  • First-class CodeRun integration: automatic verified installation from the latest GitHub release, a ▶ Run button, run-with-arguments, stop and clean, all routed through the integrated terminal.
  • Two-pane split editing, clickable path breadcrumbs, a project explorer with lightweight file-type icons, quick open, command palette, go-to-line, keyboard shortcuts and a status bar.
  • Portable mode: keep settings, themes, sessions and logs beside the executable.
  • TOML configuration with live reload for settings and keybindings.
  • Native file dialogs and clipboard via rfd and arboard.

Requirements

Platform Supported
Windows Windows 10/11 x64
macOS macOS 11 or later, Intel and Apple Silicon (universal)
Linux x64; Debian 12 / Ubuntu 22.04+ (.deb)

ARM64 Windows and Linux builds are not published for 1.5.3. Build from source if you need them, and treat them as untested until a release ships them.

Linux builds load X11, Wayland and OpenGL libraries dynamically. A headless or minimal install may need the runtime packages listed in the Debian control file.

Configuration

Platform Default location
Linux ~/.config/tavryne-code/
macOS ~/Library/Application Support/com.tavryne.code/
Windows %APPDATA%\Tavryne\Tavryne Code\

In portable mode, settings live in portable/ beside the executable:

portable/
  settings.toml
  keybindings.toml
  recent.toml
  themes/
  logs/

Use --portable to require portable mode, or --no-portable to ignore an existing portable/ directory. Settings and keybindings reload when the files change. See docs/themes.md and docs/portability.md.

Autosave

Autosave is enabled by default. After the configured idle delay, every dirty file with a path is written atomically and without a notification. Untitled buffers are never saved automatically because they have no destination.

[files]
auto_save = true          # set false to turn autosave off
auto_save_delay_ms = 1000 # 100–60000 ms

The same controls are in Settings → Files.

Keybindings

Action Shortcut
New file Ctrl/Cmd+N
Open file Ctrl/Cmd+O
Save Ctrl/Cmd+S
Save all Ctrl/Cmd+Shift+S
Close tab Ctrl/Cmd+W
Find Ctrl/Cmd+F
Replace Ctrl/Cmd+H
Find in files Ctrl/Cmd+Shift+F
Command palette Ctrl/Cmd+Shift+P
Quick open Ctrl/Cmd+P
Go to line Ctrl/Cmd+G
Toggle terminal Ctrl+` or Ctrl+J
Toggle sidebar Ctrl/Cmd+B
Split editor Ctrl/Cmd+\
Run file Ctrl+F5
Stop run Shift+F5
Next/previous tab Ctrl+Tab / Ctrl+Shift+Tab

The full, platform-aware table is in docs/keybindings.md. Override any binding in keybindings.toml:

"ctrl+shift+p" = "view.command_palette"
"ctrl+k" = "file.open"

CodeRun

Tavryne Code installs the latest published CodeRun release on first use. The bundled installer selects the archive for your OS and CPU, verifies its SHA-256 checksum against the release's SHA256SUMS, and puts both tavrynecode and coderun on PATH. It never clones the repository or runs a remote installation script.

  • ▶ Run in the breadcrumb bar saves the active file and runs coderun "<absolute path>" in the bottom terminal.
  • Run → Install or Update CodeRun… retries a failed download or updates to the latest release.
  • Run → Stop and Shift+F5 terminate the run.
  • Ctrl+J toggles the bottom terminal panel.

An independent coderun earlier on PATH is preferred and is never overwritten. CodeRun remains independently usable with coderun <file> from any terminal. If the download is unavailable, editing, search, formatting and the terminal continue to work and the installation can be retried later. See docs/coderun.md.

Workspace layout

crates/
  tavryne/     binary, CLI and startup
  app/         toolkit-independent application core
  ui/          egui/eframe rendering and input
  editor/      cursors, selections, editing operations
  buffer/      rope document, undo/redo, atomic saves
  syntax/      syntect integration and semantic tokens
  indent/      indentation profiles and editorconfig
  formatter/   native formatters and external adapters
  filesystem/  tree, search, replacement, watcher
  terminal/    PTY sessions and terminal snapshots
  theme/       semantic tokens and theme manager
  config/      settings, paths, portable mode
  commands/    command registry and keymap
  coderun/     CodeRun discovery and run plans

The UI depends on the application core; the core depends on the engines. The editor, buffer, syntax, formatter, filesystem, terminal, theme, config, commands and CodeRun crates never import egui or eframe. See docs/architecture.md.

Build from source

Requirements:

  • Rust 1.85 or newer (edition 2024). rust-toolchain.toml pins the stable channel.

  • A C toolchain and pkg-config.

  • Linux only: X11/Wayland and OpenGL development headers. On Debian/Ubuntu:

    sudo apt install build-essential pkg-config libxkbcommon-dev \
        libwayland-dev libx11-dev libxcursor-dev libxrandr-dev libxi-dev \
        libgl1-mesa-dev

Build and run:

cargo build --release
cargo run --release

Run the checks used by CI:

cargo fmt --all --check
cargo check --workspace --all-targets
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
cargo audit
cargo deny check

Benchmarks:

cargo bench -p tavryne-buffer --bench editing
cargo bench -p tavryne-filesystem --bench search
cargo bench -p tavryne-syntax --bench syntax
cargo bench -p tavryne-app --bench startup

Documentation

License

MIT. See LICENSE.

About

Tavryne Code — a lightweight, native, Rust-first code editor built with egui/eframe. Rope-backed editing, 16-language syntax highlighting, integrated terminal, native formatters and CodeRun integration.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages