GitHubGet verd

Install

verd is one static binary for Linux and macOS (amd64 and arm64). On Windows, run it inside WSL; native Windows is not supported.

One line#

curl -fsSL https://raw.githubusercontent.com/moneytosms/verd/main/install.sh | sh

It installs the latest release to ~/.local/bin after checking its SHA-256. Make sure that directory is on your PATH. Set VERD_VERSION=v0.8.4 to pin a version, or VERD_INSTALL_DIR to change the target.

Other ways#

go install github.com/moneytosms/verd/cmd/verd@latest   # needs Go

Or download a tarball from the Releases page and put verd on your PATH. Packages for the AUR (verd-bin) and Homebrew (moneytosms/tap/verd) are planned.

What else you need#

Tool For Notes
nvim Editing Any editor works; Neovim is the one verd integrates deeply. Version 0.9 or newer.
g++, gcc, python3 Building and running your Solutions Only the languages you use. Add others under [lang.*].
tmux or herdr The editor split Optional. Without them verd can embed Neovim in its own window.

First run#

verd --version
verd init            # writes config.toml and starter Templates, offers guided setup
verd doctor          # checks your compilers, editor and terminal
verd                 # open the TUI

verd init asks for your Codeforces handle (the only required setting). Everything else has a default. To script the setup instead of answering prompts:

verd init --no-setup
verd config set handle tourist
verd config set default_lang cpp
verd config set theme nord

Shell completions#

verd completions zsh  > ~/.zfunc/_verd                        # zsh (add ~/.zfunc to fpath)
verd completions bash > ~/.local/share/bash-completion/completions/verd
verd completions fish > ~/.config/fish/completions/verd.fish

Update and uninstall#

verd update --check   # is there a newer release?
verd update           # replace the binary (checksum verified)

You do not have to remember. When a newer release exists, verd tells you inside the TUI and asks whether to update: y updates now, n or esc dismisses the question and leaves a hint at the bottom of the screen. Restart verd afterwards to use the new version.

The first launch after an update shows a What's new screen with the release notes. j/k or the arrow keys scroll, enter, esc or q closes it. verd update also prints the notes of every release you skipped. It retries a few times when the network fails, so a flaky connection is not fatal. A source build (version dev) is refused: update those with go install.

verd uninstall        # asks what to remove
verd uninstall --keep           # the binary only
verd uninstall --backup ~/verd-backup --yes   # archive config and data, then remove everything

verd uninstall removes the binary and, as you choose, your config, data and cache. Your Solutions in the Workspace are never touched. verd keeps its data in ~/.config/verd, ~/.local/share/verd and ~/.cache/verd; see Configuration.

Build from source (for development)#

You need Go 1.27 or newer (see go in go.mod), git, and the same tools as above to try it end to end.

git clone https://github.com/moneytosms/verd && cd verd
go build -o verd ./cmd/verd     # a single static binary, no CGO
./verd --version

Run it against a throwaway config so your real one is untouched:

export XDG_CONFIG_HOME=$(mktemp -d) XDG_DATA_HOME=$(mktemp -d) XDG_CACHE_HOME=$(mktemp -d)
./verd init --no-setup && ./verd config set handle tourist
./verd                           # the TUI, using the temp config and cache

Check your change

gofmt -l .                       # must print nothing
go vet ./...
go test ./...                    # unit tests; embedded-pane tests use a pseudo-terminal

Tests use temporary directories and fake servers, not a Codeforces account.

Where things live

Path What
cmd/verd The CLI: command dispatch, test/submit/stress, config, keys, themes, doctor, sync.
internal/tui The Bubble Tea model: screens, the keymap (keymap.go), the shortcut editor, the embedded pane.
internal/config config.toml loading, validation and the comment-preserving writer (Set, SetKeys).
internal/theme Built-in themes, custom [themes.*], palette and styles.
internal/scrape, internal/cf, internal/cses Fetching and rendering statements; the Codeforces and CSES clients.
internal/runner, internal/stress Compiling and running tests locally; the stress loop.
internal/editor, internal/mux, internal/embed Driving Neovim, tmux/herdr panes, and the embedded terminal.
internal/store, internal/refresh The SQLite cache and background refresh.
docs/ The documentation. The site in site/ is generated from it.

Common tasks

Issues and pull requests are welcome on GitHub; the vocabulary used in the code (Problem, Solution, Sample Test, Verdict) is defined in CONTEXT.md.