Skip to content
프로젝트

ashenp/palingo-epub-reader

GitHub에서 보기

소개

Local-only, zero-telemetry EPUB reader browser extension for Chrome, Edge, and Firefox (Manifest V3, 11 languages, search, highlights & Markdown export)

생산성 및 자동화

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
기록 수집 중
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

EPUB Reader by Palingo

A local-only browser extension that opens EPUB books on your device. It requires no account and uploads nothing. It provides full-book search, bookmarks, highlights with notes, and Markdown export. One optional "Translate" link opens Palingo Ebook Translator in a new tab when you want to translate a book.

  • Browsers: Chrome, Microsoft Edge, and Firefox (Manifest V3).
  • Local only: books stay in IndexedDB on your device. The extension sends no analytics and no telemetry. Its only network request is the download of a book link that you open (see Privacy and the hosted privacy policy).
  • Web and local links: opens books from web links and file:// links through the context menu, "Open from link" on the shelf, and optional automatic opening of EPUB links (version 0.2).
  • 11 UI languages: English, Simplified Chinese, Traditional Chinese, Japanese, Korean, Spanish, French, German, Brazilian Portuguese, Vietnamese, and Indonesian.

The specification is docs/SPEC.md. The architecture is ARCHITECTURE.md.

Screenshots

Library shelf

Library shelf with reading progress and generated book covers

Two-page reader

Two-page paginated EPUB view

Highlights, bookmarks, and Markdown export

Highlights, bookmark ribbon, and Markdown notes export dialog

Related tools by Palingo

EPUB Reader by Palingo is the free, offline-first EPUB extension from Palingo. If you need bilingual reading or document translation across languages, explore these Palingo tools:

Privacy

These statements are exact; a store listing may use them.

  • Requested at installation: storage of your books and settings on this device (storage, unlimitedStorage), an entry in the link menu (contextMenus), the redirect of EPUB links that you allow (declarativeNetRequestWithHostAccess), and access to local file:// links in Chrome and Edge (file:///*), which has effect only when you turn on "Allow access to file URLs". The browser shows no permission warning at installation.
  • Requested later, only after a click: access to one site, when a book link from that site needs it. The button names the site. Access to all sites, only when you choose "On all sites" in Link settings; the dialog explains this access before the browser asks.
  • Network requests: the extension downloads a book only from a link that you chose to open, or from a site on which you turned on automatic opening. The request goes to that link only. When the link returns a download page (a short HTML page that forwards to the file on the same site), the extension reads that page as text, never shows or runs it, and downloads the forwarded file once. It sends no referrer. It sends that site's cookies only when the extension has access to that site.
  • Web pages: a web page can detect that the extension is installed, because the reader page must be reachable from web pages for automatic opening. A web page can also link to the reader's open page. That page downloads at once only in three cases: you chose the link in the extension (the link menu or "Open from link"); automatic opening is on and the site is in your automatic list (with its cookies); or you chose "On all sites" (then without cookies, and "Try again signed in" sends them after your click). With automatic opening off, every link from a web page waits for your click. In every other case the page shows "Open this book?" with the full link, and makes no request until you click "Open book". A web page cannot add a site to your automatic list.
  • Never sent: your books, your reading positions, bookmarks, highlights, notes, settings, or any usage data. The extension has no analytics and no error reporting. Books stay on this device.
  • Book content: scripts in a book never run, and a book never loads anything from the network.
  • Palingo: the "Translate" link opens Palingo in a new tab only after you click it. The extension sends nothing to Palingo.

Requirements

  • Node 22 or later
  • pnpm 10 or later

Install

pnpm install
pnpm exec playwright install chromium   # only for the E2E tests

pnpm-workspace.yaml sets minimumReleaseAge: 10080: pnpm does not install a version that is less than 7 days old.

Run during development

pnpm dev

WXT opens a browser with the extension loaded. Click the toolbar button to open the reader.

Build

pnpm build

The build writes these outputs to build/:

Output Use
chrome-mv3-local/ Unpacked extension for local loading and the E2E tests
palingo-epub-reader-chrome-web-store-<version>.zip Chrome Web Store package
palingo-epub-reader-edge-add-ons-<version>.zip Microsoft Edge Add-ons package
palingo-epub-reader-firefox-add-ons-<version>.zip Firefox Add-ons package
palingo-epub-reader-firefox-source-<version>.zip Source package for the Mozilla review

pnpm build:chrome builds only the Chrome outputs. pnpm verify checks the outputs (manifest, permissions, CSP, locales, URLs in the built JavaScript, ZIP sizes).

Load the unpacked extension

  1. Run pnpm build.
  2. Open chrome://extensions (or edge://extensions).
  3. Turn on Developer mode.
  4. Click Load unpacked and select build/chrome-mv3-local.

For Firefox, open about:debugging#/runtime/this-firefox, click Load Temporary Add-on, and select manifest.json in .output/firefox-mv3 after pnpm build.

Test

pnpm check   # Biome, TypeScript, Vitest, the Chrome/Edge/Firefox build, and the artifact check
pnpm e2e     # Playwright E2E tests in Chromium with the built extension (run pnpm build first)
FIREFOX_BIN=/path/to/firefox pnpm e2e:firefox   # opt-in Firefox smoke test of the Firefox package

The extension page CSP differs per browser in one rule: Chrome and Edge use frame-ancestors 'none', Firefox uses frame-ancestors moz-extension: (with 'none', Firefox blanks every book). All builds allow blob: stylesheets, which carry the publisher's styles. The reader page also renders nothing when it is not the top window. See ARCHITECTURE.md, "Firefox in a real browser (M14)".

The E2E run uses a new temporary browser profile for each test and stops after 15 minutes. Link tests use a local book server on 127.0.0.1 and the E2E-only build build/chrome-mv3-e2e/, which has site access for 127.0.0.1 (no store package has it). GATE=1 runs the feasibility gate of SPEC 15.8 and EDGE_SMOKE=1 the Edge smoke test; both are skipped by default. It generates its fixture books in test-results/fixtures/ and saves screenshots in test-results/screenshots/. It writes the measured performance values to test-results/performance.json. Git ignores test-results/.

Project layout

Path Content
entrypoints/ The background script and the reader page
src/engine/ The BookEngine interface and the foliate-js adapter
src/library/ IndexedDB, the books repository, and the import pipeline
src/annotations/ Bookmarks and highlights, and the Markdown export
src/settings/ Settings schema, migration, and storage
src/i18n/ Locales, the message catalogs, and the provider
src/ui/ Design-system components
src/features/ The shelf, the reader, the open route, and the dialogs
src/links/ Book links: URL checks, download, open states, rules
src/styles/ Design tokens and the bundled fonts
vendor/foliate-js/ The pinned EPUB engine (see VENDOR.md)
content/welcome-book/ Sources of the welcome book, one file per locale
scripts/ Build, welcome-book, and verification scripts
e2e/ Playwright tests and fixture generators

License

MIT License — see LICENSE.

Bundled fonts (SIL Open Font License 1.1) and vendored third-party components (foliate-js and zip.js) carry separate notices in THIRD_PARTY_NOTICES.md.

관련 프로젝트 살펴보기

불러오는 중…