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. Without Nix, install Flutter
3.41 or newer and the native dependencies the Flutter host needs on your
platform, then run the same Make targets; the PDFium and SQLite libraries are
fetched by the Dart bindings' build hooks. make test also needs a PDFium
shared library named by SHOSAI_PDFIUM_LIBRARY, 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 its catalog revision index. The Hugo source, checked-in catalog and publication workflows live in the maintainer-only website repository, which documents local development, catalog refresh and Cloudflare Pages configuration. The Dart catalog importer and exporter remain in this repository.
Shōsai is licensed under the Apache License 2.0.