Cobalt README

README проекта с github.com/BandarLabs/Cobalt. Одним файлом markdown: README.md.

Cobalt

Apps and an SDK for Kobo e-readers.

CI Publish apps Latest release License

Cobalt adds apps to Kobo e-readers. It includes a launcher, an app store, a Rust SDK, a runtime that runs each app in its own restricted process, and a simulator for building apps without a device.

Install Cobalt once over USB. After that, apps install, update and uninstall over Wi-Fi, and your Kobo's own reader stays as it was.

Website · Install · Apps · SDK · Community

A Kobo Clara BW paging through the Cobalt launcher, playing the opening of a chess game against the computer in Lichess, then opening a crossword
Recorded on a Kobo Clara BW running Cobalt 0.3.35, with only the waits shortened.

[!IMPORTANT] Tested on the Kobo Clara BW (N365 and the 2025 P365), Clara Colour, Clara HD, Elipsa 2E, Libra 2, Libra Colour, Libra H2O and Nia, at the firmware listed in the device support matrix. Other Kobos can run it too: Cobalt lists what has not been tested and asks once before it starts. Kobo firmware 5.x is not supported. Cobalt is not affiliated with Rakuten Kobo.

Install

The easiest way is the browser installer, in Chrome, Edge or Opera. Plug in your Kobo and follow the steps.

Or, on macOS or Linux:

curl -fsSL https://bandarlabs.github.io/Cobalt/install.sh | sh

Then restart the reader, wait a minute, and open Cobalt from the Kobo menu. If you already use NickelMenu, Cobalt is added to it and your other entries are kept.

The script also turns on the reader's SSH server, with a key only this computer holds as the way in, and saves the reader when it comes back on Wi-Fi. Apps that take files or accounts from your computer, such as Frame, Music Stand and Vault, then work with commands like kobo frame push ~/Pictures/family and nothing else to set up. If you used the browser installer, run the script above once with the reader plugged in when an app first needs your computer; it keeps everything already on the reader. kobo setup --no-ssh leaves SSH off.

Everything the script downloads is checked against the signed release manifest. To verify install.sh itself first, follow the signed-bootstrap procedure. docs/INSTALL.md covers updates, recovery, uninstalling and building from source.

Updates

Apps

Install and remove apps from App Store on the reader, or from an app's page on the website: tap Link a browser in App Store to link a phone or computer, then use Install on any app page. The launcher, App Store, Settings and Terminal come with Cobalt and cannot be removed.

Screenshots are from a Kobo Clara BW or its simulator.

An audiobook player with cover art and playback controls on a Kobo
Audiobooks
Play the audiobooks on your Kobo, with chapters, speed, a sleep timer and your place kept. Or make one from a topic.
Backgammon on a Kobo in the middle of a game against the computer, with its last move marked on the board and described below it.
Backgammon
Play complete solo or pass-and-play backgammon on one Kobo.
A labelled collage of public-domain bird plates filling a Kobo screen.
Birds
Show the birds heard by BirdNET-Go on your Mac or Linux computer. Needs your computer.
An answer displayed for touch-friendly reading on a Kobo
Chat
Ask a question, then read and navigate the answer with touch controls. Needs an account.
Cobalt typography and interface components on a Kobo
Components
See every Cobalt UI component on the device in one reference app.
Crossword grid on a Kobo with an answer filled in, the current clue above it and every clue below it.
Crossword
Sixty-one offline crosswords with clue navigation and saved progress.
A numbered daily news brief on a Kobo
Daily Brief
A daily news brief that fetches a fresh one when you open it and keeps every story for offline reading.
Deck paired with a computer, showing Test, Format, Lint, Docs and Deploy command pads.
Deck
Turn your Kobo into a remote control for your computer. Needs your computer.
An essay from Walden open in Digest on a Kobo, under an engraving of Thoreau's house.
Digest
Read your Miniflux feeds anywhere. Needs an account.
A followed work in Fanshelf naming its author, fandom, rating and chapter count, with a Download EPUB button.
Fanshelf
Save public AO3 works to a shelf made for offline reading.
Unread articles from one subscribed feed in the Feeds app on a Kobo
Feeds
Follow feeds, search saved articles and read offline with images.
Fieldbook during an outing at Lake Merced, listing the birds logged so far with a Finish outing button.
Fieldbook
Log bird sightings anywhere and build your life list.
A Flashcards review showing the revealed answer with Again, Hard, Good and Easy rating buttons.
Flashcards
Review flashcards anywhere, even without Wi-Fi.
Ansel Adams's The Tetons and the Snake River filling the Frame screen on a Kobo Clara BW.
Frame
Show photos from your computer as a slideshow, with the screen on or waking on a schedule. Needs your computer.
Grimoire initiative order showing the active combatant and round counter on a Kobo.
Grimoire
Browse offline SRD references and manage tabletop combat.
Popular Project Gutenberg books with their covers in Gutenbird on a Kobo
Gutenbird
Download free books from Project Gutenberg and other libraries, and read them offline.
Habits today screen on a Kobo Clara BW, with Read 20 pages checked off and two more habits due.
Habits
Track daily and weekday habits with local streaks.
A ranked list of Show HN stories on a Kobo
Hacker News
Read Top, New, Ask, and Show stories with complete comment threads.
Home Panel tile grid on a Kobo showing eight Home Assistant tiles with the last refresh time.
Home Panel
Control saved Home Assistant tiles from a low-power panel. Needs an account. Home Assistant must be on HTTPS.
A solved Inkling puzzle in three guesses, with right-spot letters in black squares.
Inkling
Solve a fresh five-letter puzzle each day.
Kitchen Card showing a large cooking instruction with Steps and Ingredients tabs.
Kitchen Card
Keep Mealie recipes handy in a counter-friendly cooking view. Needs an account.
The first page of Pride and Prejudice from a calibre-web library on a Kobo.
Library
Browse and read books from your calibre-web library. Needs an account.
Lichess on Kobo with Play the computer first, then Play online, Your games, Puzzles and How to play.
Lichess
Play Lichess games, challenge players, solve puzzles, or play offline.
A solved Hashi puzzle in Logic Pack, with sixteen islands joined by single and double bridges.
Logic Pack
Play four familiar logic games offline.
The Kobo hall sensor responding to a magnet
Magnet
Find the hall sensor behind the bezel and watch it respond to a magnet.
A letter filling the Kobo screen while the front light sends Morse code
Morse
Type a message and send it in Morse code with the front light.
Music Stand showing the opening of the Prelude from Bach's Cello Suite No. 1 at reading size.
Music Stand
Read music scores with setlists and half-page turns. Needs your computer.
Needles row counter showing the current row, section and repeat progress, with +1 row and Undo.
Needles
Count rows, browse Ravelry collections, and read your synced patterns offline.
A Nonograms puzzle with the selected square and its row and column clues highlighted.
Nonograms
Solve 78 picture and pattern puzzles, or make your own from photos.
The Panels comic shelf with a cover and saved progress, page 3 of 4.
Panels
Read comics added from your computer or Komga library.
Paperterm showing a laptop terminal session in portrait, with the keyboard open.
Paperterm
Pair with a computer to mirror a terminal session on e-ink. Needs your computer.
Reversi against the computer on a Kobo, on a ruled board with the computer's last disc marked and the legal moves shown as grey dots.
Parlor
Play Reversi, Draughts, Nine Men's Morris and Kalah on one Kobo.
Parser opening Lamplight, with every word of the story tappable, a run of verbs such as Look and Take, and a row of compass directions.
Parser
Play an original interactive story without Wi-Fi.
Post inbox listing Hermes letters newest first, with Newer and Older paging.
Post
Read and reply to letters from Hermes. Needs an account.
The newest Artificial Intelligence preprints listed newest first in the Preprints app on a Kobo
Preprints
Browse every arXiv category, keep preprints with their figures, and read them offline on your Kobo.
Pub Quiz pass-around question on Ada's turn, with four numbered answer choices.
Pub Quiz
Play offline solo or pass-around trivia rounds.
Read Later's unread queue of synced Wallabag articles with reading times.
Read Later
Read your Wallabag articles anywhere. Needs an account.
Readeck inbox on a Kobo listing four public-domain essays with their reading times.
Readeck
Read and search your saved Readeck articles. Needs an account.
Sidekick showing several coding-agent sessions and their pending approvals.
Sidekick
Answer coding-agent permission prompts from your Kobo. Needs your computer.
The opening of Darwin's On the Origin of Species, read from a Zotero library's indexed text on a Kobo
Stacks
Browse Zotero collections, read metadata and indexed paper text, and keep papers available offline. Needs an account.
An original Sudoku puzzle with pencil notes, an answer entered in grey and the selected square's row, column and box shaded
Sudoku
Play 600 original Sudoku puzzles with pencil notes, undo and saved games.
Sync folders: notes for Vault, photos for Frame and books come from the computer, and out goes back to it.
Sync
Sync folders between your computer and your Kobo with Syncthing. Needs your computer.
Tailscale connected on a Kobo, with the reader's tailnet name and address
Tailscale
Put your Kobo on your tailnet, so your computer reaches it from any network.
A completed game of tic-tac-toe on a Kobo
Tic-tac-toe
Play tic-tac-toe together on one Kobo.
A to-do list with four open items and one done on a Kobo.
Todo
Keep a simple to-do list that stays on your Kobo.
Vault home on a Kobo with eight notes and Browse, Tags, Recent and Search rows.
Vault
Browse your notes by folder, tag, link, and backlink. Needs your computer.
William Blake's The Tiger in Verses, set in a spacious Kobo reading layout.
Verses
Read a public-domain poem each day.

Want an app that is not here? Add it to the app request thread.

Desktop app

kobo ui opens Cobalt in a window on your computer. It sets up a reader, installs, updates and removes apps over the cable, and sends files and web articles to the reader over Wi-Fi. On a Mac the window is a native app, which the installer puts beside the kobo command; elsewhere it is a page in your browser.

The Cobalt Mac app on its Apps place, showing the apps on a Kobo Clara BW, each by a picture of its first screen

The Cobalt Mac app on the page for Chess, with the app's first screen, what it does, its version and size, what it needs and an Install button

The Cobalt Mac app on its Send place, sending a comic to the reader, with a field for a web article and two articles waiting for the reader
The Mac app in Cobalt 0.3.39, with sample data.

docs/companion-cli.md describes each part of the window.

Features

How it compares

Menu add-ons put actions in the Kobo's menu, and alternative readers replace the book reader. Cobalt is a platform for building and installing many kinds of apps. It handles the screen, touch input, e-ink refreshes, app lifecycle, device access, isolation and signed installs, so app authors do not have to. The FAQ has more.

Build an app

git clone https://github.com/BandarLabs/Cobalt && cd Cobalt
cargo install --path crates/kobo-cli
kobo new my-app
cd my-app
kobo dev

kobo dev runs the app in the Clara BW simulator in your browser. Set KOBO_SIM_PROFILE=libra-2-388 or KOBO_SIM_PROFILE=elipsa-2e-389 to try the larger screens, or KOBO_SIM_PROFILE=clara-colour-393 to see the app as a colour reader draws it.

Area What the SDK provides
App model Plain Rust programs with declarative screens, named actions, lifecycle callbacks and Back navigation
E-ink UI Measured text, rows, tiles, pictures, dialogs, keyboards, terminal views, pagination and refresh planning
Network and credentials HTTPS requests, ranged downloads, size limits, and named secrets that the app never sees
State and background work Per-app storage, cancellable tasks, background and foreground events, and scheduled wake
Device and media Battery, cover sensor, front light, Wi-Fi, Bluetooth and audio, each behind a declared capability
Tooling Scaffolding, simulators, layout checks, failure scenarios, packaging and device deployment

Apps ask the runtime for services instead of opening devices themselves. A request can be refused because it was not declared, the battery is too low or the device does not support it, and the app receives the refusal as a value it can handle.

Start with the SDK reference. The full guide is SDK.md, and docs/companion-cli.md covers the kobo command.

Contributing

Contributions are welcome: apps, fixes, documentation and device testing. See CONTRIBUTING.md. Pull requests go to the beta branch.

To add an app:

  1. Add it as a workspace package under apps/<app-id>/, with its Store metadata in apps/<app-id>/cobalt-app.json.
  2. Add unit tests and layout checks for each supported screen.
  3. Run it in the simulators, then on a supported Kobo, and attach a photo, GIF or video to the pull request.
  4. Include a screenshot for the app's README and website page.

Once merged, the app is signed and published to the Beta catalog. It reaches Stable when that commit is promoted. See docs/CONTRIBUTING_APPS.md and docs/RELEASE-TRAIN.md.

Own a Kobo that is not tested yet? You can help without writing code. Open or join a device thread with your model, firmware and whether you can run attended tests. See device testing.

Repository layout

Path Purpose
apps/ Store apps and the app registry
examples/ Built-in apps and SDK examples
crates/kobo-sdk The application SDK
crates/kobod The runtime on the reader
crates/kobo-ui Layout and e-ink rendering
crates/kobo-sim The simulator
crates/kobo-app-store Signed package and catalog formats
crates/kobo-cli The kobo command: setup, build, simulation, packaging and release
docs/ Guides, indexed in docs/README.md

Development

cargo test --workspace --all-features
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo fmt --all --check
cargo run -p kobo-cli -- run --sim --app sudoku

See docs/DEVELOPING.md, docs/DEVICES.md and the roadmap.

Safety

Cobalt does not replace the Kobo's boot chain, and a restart always returns to the stock reader. Installing it adds files to the reader's user storage. It is provided without warranty. Report security issues as described in SECURITY.md.

License

GNU Affero General Public License v3.0. See LICENSE and THIRD-PARTY.md.

An application links kobo-sdk, which is AGPL-3.0-only with no linking exception, so an application built with it is AGPL-3.0 as well. The SDK crates are not published to crates.io: Store applications live in this repository and are built from a checkout of it.

Bluetooth, Wi-Fi and Kobo are trademarks of their owners. See TRADEMARKS.md.

Cobalt (BandarLabs/Cobalt)

Ищем в базе…

Что это такое?Cobalt — это open-source платформа приложений для электронных читалок Kobo: лаунчер, магазин приложений, SDK на Rust и среда выполнения с изоляцией возможностей, которые превращают читалку в устройство, запускающее настоящие приложения.
Так Cobalt живёт на самой Kobo или это программа для компьютера?Он живёт на Kobo: одна установка по USB добавляет Cobalt в читалку, а после этого приложения можно устанавливать, обновлять и удалять по Wi-Fi. Компьютер нужен только для первичной установки и для разработки.
Как установить его на мою читалку?С компьютера под macOS или Linux запустите скрипт install.sh и подключите Kobo по USB. Затем перезапустите читалку, подождите минуту, пока отработает защита NickelMenu, и откройте Cobalt в меню Kobo.
Что мне нужно, кроме самой читалки?Компьютер с macOS или Linux для разовой установки по USB (Macs на Intel или Apple Silicon, Linux на x86_64 или arm64). Приложения — статические бинарники ARMv7, поэтому на устройстве ничего не требуется ставить через менеджер пакетов.
Будет ли это работать на моей модели Kobo?Clara BW, Clara HD, Clara Colour, Libra 2, Libra Colour, Libra H2O, Elipsa 2E и обновлённая Clara BW 2025 года полностью проверены на реальном железе. Другие Kobo тоже работают, но Cobalt один раз предупредит, что устройство не тестировалось.
А без Wi-Fi что-нибудь работает?Да, для чтения и игр: Flashcards работают даже без Wi-Fi, Lichess и Logic Pack играются офлайн, а Gutenbird, Feeds, Preprints и Stacks сохраняют книги, статьи и научные работы для чтения без сети.
Нужен ли аккаунт, чтобы устанавливать и синхронизировать приложения?Аккаунт не нужен: ссылки на установку из Store связывают телефон или компьютер с читалкой через зашифрованный QR-код или код сопряжения, а синхронизация папок идёт через ваш собственный приватный пир Syncthing вместо облака.
Какие приложения можно установить из Store?45 подписанных приложений: Hacker News, шахматы Lichess, Gutenbird для OPDS-библиотек вроде Project Gutenberg, Read Later для Wallabag, Stacks для Zotero, Preprints для arXiv, офлайн-Flashcards, Sudoku и другие игры, а также панель Home Assistant.
Чем это отличается от KOReader или NickelMenu?NickelMenu просто добавляет действия в штатное меню Kobo, а KOReader и Plato — это приложения для чтения. Cobalt же — платформа для создания и установки приложений: он берёт на себя экраны, жизненный цикл приложений, рисование на e-ink, частичное обновление экрана, сенсорный ввод, изоляцию процессов и проверку подписи при установке, чтобы авторы могли сосредоточиться на своём приложении.
Могу ли я писать для него свои приложения?Да, с помощью Rust SDK: приложения — обычные бинарники на Rust, собранные на декларативном наборе инструментов для e-ink-интерфейсов, а 'kobo dev' запускает их в симуляторе браузера Clara BW на вашем компьютере. Слияние PR с приложением автоматически публикует его в Store, и релиз Cobalt для этого не нужен.
Приложениям из Store можно доверять?Приложения запускаются как отдельные непривилегированные процессы с проверкой возможностей для каждого приложения: сеть, хранилище, звук и подсветка. Store — единственный интерфейс управления приложениями, а среда выполнения проверяет каталог, пакет, манифест и бинарник перед каждым запуском.
Какие есть похожие проекты?koreader, crosspoint-reader, zen-os, calibre-web, qiaomu-book-reader-legacy, kcc, oryx, Kavita
Автор
BandarLabs
Размер
308.8 MB
Звёзды
438
Возраст
4 мес
Коммиты · 90 дней