README.md
197 lines · 5735 bytes
17 symbols in this file
1<div align="center">
2 <h1><img width="200" height="200" src="docs/iamb.svg"></h1>
3
4[](https://github.com/ulyssa/iamb/actions?query=workflow%3ACI+)
5[][crates-io-iamb]
6[](https://matrix.to/#/#iamb:0x.badd.cafe)
7[][crates-io-iamb]
8[](https://snapcraft.io/iamb)
9
10
11
12</div>
13
14## About
15
16`iamb` is a Matrix client for the terminal that uses Vim keybindings. It includes support for:
17
18- Threads, spaces, E2EE, and read receipts
19- Image previews in terminals that support it (sixels, Kitty, and iTerm2), or using pixelated blocks for those that don't
20- Notifications via terminal bell or desktop environment
21- Send Markdown, HTML or plaintext messages
22- Creating, joining, and leaving rooms
23- Sending and accepting room invitations
24- Editing, redacting, and reacting to messages
25- Custom keybindings
26- Multiple profiles
27
28_You may want to [see this page as it was when the latest version was published][crates-io-iamb]._
29
30## Documentation
31
32You can find documentation for installing, configuring, and using iamb on its
33website, [iamb.chat].
34
35## Configuration
36
37You can create a basic configuration in `$CONFIG_DIR/iamb/config.toml` that looks like:
38
39```toml
40[profiles."example.com"]
41user_id = "@user:example.com"
42```
43
44If your homeserver is located on a different domain than the server part of the
45`user_id` and you don't have a [`/.well-known`][well_known_entry] entry, then
46you can explicitly specify the homeserver URL to use:
47
48```toml
49[profiles."example.com"]
50url = "https://example.com"
51user_id = "@user:example.com"
52```
53
54## Installation (from source)
55
56Install Rust and Cargo using [rustup], and then run from the directory
57containing the sources (ie: from a git clone):
58
59```
60cargo install --locked --path .
61```
62
63If you're willing to wait longer on the build, you can use the `release-lto`
64profile to enable link-time optimization:
65
66```
67cargo install --profile release-lto --locked --path .
68```
69
70If you would prefer to optimize for a smaller binary, you can use the
71`release-light` profile, which will do LTO, optimize code generation
72for smaller output, and strip the binary. The `max_level_error` feature
73will also make sure that any `tracing` logs below the error level have
74their strings removed during compile-time, so that you only get `error`
75logs.
76
77```
78cargo install --profile release-light --features max_level_error --path .
79```
80
81Add `--no-default-features` if you want to skip desktop integration (e.g.
82clipboard and notifications support) and you would like to link against your
83system's SQLite instead of using a bundled SQLite.
84
85### Crate features
86
87- `bundled`: use bundled SQLite instead of system library (default)
88- `desktop`: enable desktop notifications and clipboard support (default)
89- `max_level_warn`: disable support for more verbose logging than the default `warn` level
90- `max_level_error`: disable support for more verbose logging than the `error` level
91- `max_level_off`: disable all logs at compile time
92- `chafa-dyn`: use [chafa](https://hpjansson.org/chafa/) as a dynamic library for halfblock rendering
93- `chafa-static`: use [chafa](https://hpjansson.org/chafa/) as a static library for halfblock rendering
94
95## Installation (via `crates.io`)
96
97Install Rust (1.83.0 or above) and Cargo, and then run:
98
99```
100cargo install --locked iamb
101```
102
103See [Configuration](#configuration) for getting a profile set up.
104
105## Installation (via package managers)
106
107### Arch Linux
108
109On Arch Linux a [package](https://aur.archlinux.org/packages/iamb-git) is available in the
110Arch User Repositories (AUR). To install it simply run with your favorite AUR helper:
111
112```
113paru iamb-git
114```
115
116### FreeBSD
117
118On FreeBSD a package is available from the official repositories. To install it simply run:
119
120```
121pkg install iamb
122```
123
124### Gentoo
125
126On Gentoo, an ebuild is available from the community-managed
127[GURU overlay](https://wiki.gentoo.org/wiki/Project:GURU).
128
129You can enable the GURU overlay with:
130
131```
132eselect repository enable guru
133emerge --sync guru
134```
135
136And then install `iamb` with:
137
138```
139emerge --ask iamb
140```
141
142### macOS
143
144On macOS a [package](https://formulae.brew.sh/formula/iamb#default) is available in Homebrew's
145repository. To install it simply run:
146
147```
148brew install iamb
149```
150
151### NetBSD
152
153On NetBSD a package is available from the official repositories. To install it simply run:
154
155```
156pkgin install iamb
157```
158
159### Nix / NixOS (flake)
160
161```
162nix profile install "github:ulyssa/iamb"
163```
164
165### openSUSE Tumbleweed
166
167On openSUSE Tumbleweed a [package](https://build.opensuse.org/package/show/openSUSE:Factory/iamb) is available from the official repositories. To install it simply run:
168
169```
170zypper install iamb
171```
172
173### Snap
174
175A snap for Linux distributions which [support](https://snapcraft.io/docs/installing-snapd) the packaging system.
176
177```
178snap install iamb
179```
180
181### Conda (Linux, macOS, Windows)
182
183A Conda [package](https://prefix.dev/channels/conda-forge/packages/iamb) is available on conda-forge. To install it simply run:
184
185```
186pixi global install iamb
187```
188
189## License
190
191iamb is released under the [Apache License, Version 2.0].
192
193[Apache License, Version 2.0]: https://github.com/ulyssa/iamb/blob/master/LICENSE
194[crates-io-iamb]: https://crates.io/crates/iamb
195[iamb.chat]: https://iamb.chat
196[well_known_entry]: https://spec.matrix.org/latest/client-server-api/#getwell-knownmatrixclient
197[rustup]: https://rustup.rs/