Back to the blog

Thank you, open source

hexshell is closed source, but it stands on a lot of open-source work. Here is all of it, with thanks.

hexshell's own code is closed source. Almost everything under it isn't. A terminal emulator, an SSH library, the cryptography, the fonts and the tools that test it all were written by other people and shared for free. This post names them.

The same list, with the full licence texts, is in the app under Settings › About › Open-source licences.

The terminal

  • libghostty-vt (MIT), from the Ghostty project by Mitchell Hashimoto and its contributors. It parses everything a server sends to the terminal, and it's the reason hexshell's terminal gets the hard cases right. hexshell links it into the app as native code.
  • Inside it: uucode (MIT and Unicode-3.0) for the Unicode tables, Highway (BSD-3-Clause) and simdutf (MIT) for fast text handling, and Wuffs (MIT).
  • Zig (MIT) builds it.

SSH and cryptography

  • Apache MINA SSHD (Apache-2.0) is the SSH and SFTP engine: connections, keys, jump hosts and port forwards.
  • Bouncy Castle (MIT-style) provides Ed25519, modern key exchange, and the AES-OCB encryption Mosh uses.
  • SLF4J (MIT), the logging interface MINA SSHD needs. hexshell never logs hostnames, keys or passwords.

Mosh

hexshell's Mosh client is its own code, written from the protocol's published description. That means:

  • Keith Winstein and Hari Balakrishnan's paper, Mosh: An Interactive Remote Shell for Mobile Clients (USENIX ATC 2012);
  • the IETF's RFC 7253 (OCB) and RFC 6298 (retransmission timers).

It's tested against the real mosh-server, which runs in a test container and never ships in the app. Thank you to the Mosh authors for an idea that makes SSH on a phone bearable.

The app

  • Kotlin, kotlinx.coroutines and kotlinx.serialization (Apache-2.0), from JetBrains.
  • Jetpack (Apache-2.0), from the Android team at Google: Compose and Material 3 for every screen, Room for saved servers, DataStore for settings, Glance for the widgets, plus Navigation, Lifecycle and Biometric.
  • Dagger and Hilt (Apache-2.0) to wire it together.
  • OkHttp (Apache-2.0), from Square, for the Tailscale API and AI providers.

Fonts and colours

  • Manrope by Mikhail Sharanda for the interface (SIL Open Font License).
  • Terminal fonts, all under the SIL Open Font License:
  • Nerd Fonts symbols (MIT) for Powerline and prompt icons.
  • Colour schemes, all MIT: Dracula, Solarized by Ethan Schoonover, Nord, Gruvbox and Tomorrow by Chris Kempson.

Testing and tooling

  • Testcontainers (MIT) starts real OpenSSH, Mosh and Docker servers for every engine test.
  • OpenSSH (BSD) is the server those tests run against, and what most of you will connect to.
  • Docker (Moby, Apache-2.0) runs them.
  • JUnit (EPL-2.0) and Turbine (Apache-2.0) for the tests themselves.
  • detekt (Apache-2.0) for static analysis.
  • Gradle (Apache-2.0) builds it all.
  • Maestro (Apache-2.0) drives the UI on test devices.

This website

  • Vite (MIT) builds the site.
  • marked (MIT) turns these posts from markdown into pages.
  • Shaders (MIT) draws the moving glyph field.
  • Tabler Icons (MIT) for the Google Play icon on the buttons.
  • Martian Mono by Evil Martians (SIL Open Font License), served through Fontsource (MIT).
  • nginx (BSD) serves it.
  • It's deployed by Coolify (Apache-2.0) behind Traefik (MIT), with a certificate from Let's Encrypt.
  • The animations use GSAP, which isn't open source but is free for everyone under its own licence. Thank you to its authors too.

Thank you

hexshell exists because these people chose to share their work. If you use hexshell and one of these projects matters to you, star it, report a bug, or sponsor its authors. Most of them accept donations, and that support keeps the whole stack alive.