Shōsai (書斎, "study") is an ebook reader for PDF and EPUB files. It is one Dart and Flutter application for desktop and mobile: Dart document engines and a Dart application core under a Flutter interface.
- Read PDF and EPUB files
- Organize a searchable local library
- Resume reading, manage bookmarks and notes, and export bookmarks as Markdown
- Customize font size, line spacing, and light, dark, or sepia reading themes
- Search within documents and use continuous or paginated reading modes
CBZ comic support is planned for a post-launch release.
Shōsai is currently a work in progress and has not been released yet. Follow development on GitHub or watch the Releases page for its first release.
The repository includes a Nix development environment with Flutter and the platform build dependencies:
nix develop
flutter pub get
flutter run # select an available hostmake linux-debug builds the Linux host without running it, and
make macos-debug, make android-profile and the ios-* targets build the
other hosts. Nix acquires the pinned PDFium, OpenSSL and SQLite libraries;
its shell exports NIX_SHOSAI_PDFIUM_ARCHIVES, NIX_SHOSAI_OPENSSL3_ARCHIVES
and NIX_SHOSAI_SQLITE3_ARCHIVES for the Dart hooks to verify and bundle
without network access. On iOS, PDFium instead comes from the existing
checksum-pinned CocoaPods XCFramework, and OpenSSL and SQLite are compiled from
the pinned sources the macOS development shell supplies.
To use a standalone Flutter SDK (3.50.1, matching the repository pin) and native desktop tools, install those platform dependencies, then acquire the host native inputs without entering the development shell:
export NIX_SHOSAI_PDFIUM_ARCHIVES="$(nix build .#pdfium-archives --no-link --print-out-paths)"
export NIX_SHOSAI_OPENSSL3_ARCHIVES="$(nix build .#openssl3-archives --no-link --print-out-paths)"
export NIX_SHOSAI_SQLITE3_ARCHIVES="$(nix build .#sqlite3-archives --no-link --print-out-paths)"
flutter pub get
make linux-debug # or make macos-debug on macOSThis still needs Nix to acquire the archives, but the bundled library bytes are
unchanged and end users do not need Nix. See the PDFium build notes
for supplied targets. make test also needs a PDFium shared library named by
SHOSAI_PDFIUM_LIBRARY (provided by nix develop), because flutter test
does not link native assets. See docs/flutter-architecture.md for how the
application is divided.
nix develop
make checkOrdinary builds, including Release builds, use the existing development app
ID and library. The explicit production build targets
use dev.shosai.reader and start with a separate library and no saved cloud
credentials.
The project is a Flutter application:
libcontains the Flutter interface, the reader controllers and the PDF engine.packages/shosai_epubis the EPUB engine.packages/shosai_coreis the application core: library, storage, reading state, bookmarks, annotations and search.android,ios,linuxandmacoscontain the platform hosts.third_partycontains the patched PDF bindings and their redistribution notices.fixturesholds the test documents the packages and the app share.
Run Flutter and Dart commands from the repository root. Desktop bundles are
written under build/linux/ or build/macos/. The former Rust benchmarks and
standalone evaluation app have been retired; reader regression fixtures and
their generator live in fixtures/epub-layout/.
On Apple Silicon macOS, build the Flutter iOS host with
make ios-simulator-debug, make ios-device-profile, or
make ios-device-release. These targets download a checksum-pinned,
writable Flutter SDK under target and remove Nix compiler and SDK variables
before Xcode runs. Physical device builds are intentionally unsigned; local development
signing must be configured in Xcode before installing them.
Architecture and product proposals follow the Requests for Discussion process; the RFDs live in chaba-dev/rfds and are published at https://chaba-rfds.pages.dev. The project roadmap links to the corresponding RFDs.
Visit the public website or read the independently hosted catalog revision index. The Hugo source lives in the maintainer-only website repository. Catalog snapshots, validation, refresh workflows, and independent Pages publication belong to the catalog repository. The Dart catalog importer and exporter remain in this repository.
Shōsai is licensed under the Apache License 2.0.