- Rust 64.7%
- QML 31.8%
- C++ 1.8%
- JavaScript 0.6%
- Shell 0.5%
- Other 0.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| assets | ||
| ci | ||
| docs | ||
| gemini-core | ||
| rpm | ||
| sfos | ||
| sfos-gemini | ||
| vendor | ||
| .gitignore | ||
| .gitmodules | ||
| .rustfmt.toml | ||
| AGENTS.md | ||
| bump.sh | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| LICENSE-MPL-2.0 | ||
| README.md | ||
| refactor_tinylog.py | ||
| THIRD_PARTY.md | ||
Metonic
Metonic is a native Gemini and Spartan browser for Sailfish OS. Read capsules, follow feeds, and keep your bookmarks together in an app built around Sailfish’s menus and swipe navigation.
Type an address or search terms into the address bar to get started. Gemini search uses TLGS by default; you can choose another search engine in Settings and add one for Spartan too.
Features
- Tabbed browsing, history, Find in Page, and adjustable text size.
- Bookmarks and bookmark sources. Save individual pages, or use a Gemini or Spartan page of links as a bookmark collection. Sources appear in collapsible sections alongside your device bookmarks and refresh at most once an hour while the app is running. Search across both by title or address.
- A combined feed. Subscribe to Gemtext and Atom feeds, keep track of unread posts, and read entries without losing your place in the timeline. Optional background refresh and notifications let you follow new posts. Each subscription keeps its newest 500 entries by default. Max Entries Per Subscription in Settings offers 250, 500, or 1000. Lowering the limit immediately removes the oldest posts, including unread posts; there is no age-based expiry. Back to Feed closes the current feed tab by default; turn off Close Feed Tabs On Return to keep it.
- Page information. Choose Page Info below Copy URL in the popup menu for the full title and URL, response size and media type, address and loading details, content counts, and Gemini certificate information. Tap any value to copy it to the clipboard.
- Inline images. View previews as you scroll, tap to zoom, or save an image. Automatic loading can be turned off. Animated images display as still frames.
- Gemini identities. Create an identity or import PEM certificates and keys,
including Lagrange
.crt/.keypairs. Assign identities to particular paths, domains, or all Gemini sites, with anonymous exceptions where needed. - ANSI colour and Terminal Mode for pages that use terminal-style layouts.
- Optional inline text formatting. Enable Inline Text Formatting in
Settings to display inline code, bold, italic and strikethrough text in Gemtext.
It is off by default; changing it updates open pages without reloading them.
Markdown media types and
.mdfiles served as plain text use this limited formatting automatically, independently of the setting.
The blank page shows up to eight bookmark tiles ranked by visits and an All Bookmarks (N) shortcut, without scrolling. The address overlay shows four recent-history rows and an All History shortcut, and searches bookmarks and history once you start typing. Open Bookmarks to manage saved pages, or swipe to its attached Bookmark Sources page to manage sources. Feeds have a similar Manage Feeds page.
HTTP and HTTPS links open in your external browser after confirmation. Gemini certificates are trusted automatically on first use and remembered; an unexpected change is rejected unless the saved certificate has expired. You can inspect or forget saved certificates in Settings.
Imported identity files are copied into the app’s private storage. Private keys are stored without password encryption, so keep a separate backup if you need them for an account.
Build an RPM
You’ll need Git and either Docker or Podman. Run these commands from your checkout:
git submodule update --init --recursive
./vendor/apply-patches.sh
# Build for an aarch64 phone.
./sfos/build.sh aarch64
The script prepares a Sailfish SDK container and writes the finished packages to
RPMS/. The first build takes longer because it downloads the SDK and compiles
the dependencies; later builds reuse the caches.
Choose the architecture for your device, or build several at once:
./sfos/build.sh armv7hl
./sfos/build.sh i486 aarch64 armv7hl
With no architecture argument, the script builds for i486. It uses Sailfish SDK
5.0.0.43 by default. Set SFOS_VERSION to use another SDK version, or
CONTAINER=docker / CONTAINER=podman to choose the container runtime explicitly.
Package versions come from Git; --stable uses the version in the RPM spec.
See the Sailfish build notes for SDK tests, deployment options, and more detail.
Work on the Code
The Rust workspace has two parts: gemini-core handles protocols, storage, and
browser logic without Qt; sfos-gemini provides the Sailfish app and QML UI.
For host checks, install Rust 1.89 or newer and prepare the submodule and patches as above, then run:
cargo check -p gemini-core --locked
cargo test --workspace --no-default-features --locked
The Find in Page JavaScript tests also run on the host with Node.js:
node sfos-gemini/tests/find.test.cjs
UI and Qt bridge checks need the Sailfish SDK; instructions are in the build notes. The implementation status tracks the app’s current coverage.
Vendored dependencies live in vendor/deps/, with local patches in
vendor/patches/. Applying patches is safe to repeat and happens automatically
during RPM preparation. A patched submodule appears modified in Git; keep local
changes in the patch files rather than committing them inside the submodule.
License and Credits
Metonic’s original application code is licensed under AGPL-3.0-or-later. Parts of the browser interface are adapted from Atlantic Browser under MPL-2.0. Feed parsing draws on Gemfreely. See THIRD_PARTY.md for dependency notices and other credits.