Credits & licenses

FarsiEPUB, RTLBook and ShamsaInk are independent projects, built on open-source software. Thank you to the people who make it.

With thanks to

Thorium Web and ReadiumThe reader on this site

Books on this site open in Thorium Web, by EDRLab, with small changes of ours (the icon, the title and where its links lead). It’s built on the Readium toolkits, and Readium’s publication server prepares each book for it. Both are shared under the BSD 3-Clause License: Thorium Web’s (copyright 2024 EDRLab) and the publication server’s (copyright 2025 Readium).

Our reader is Thorium Web’s code running in your browser, so here is its license in full:

BSD 3-Clause License

Copyright (c) 2024, EDRLab (European Digital Reading Lab)

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
   contributors may be used to endorse or promote products derived from
   this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Tesseract, ParisaOCR, PDFium and EPUBCheckUsed by RTLBook to make the books

RTLBook reads each page with Tesseract and its trained models (Apache License 2.0), and the lines of a scanned book with the model of ParisaOCR (copyright 2026 Ali Javadi, Apache License 2.0). It opens PDFs with PDFium through pypdfium2, and checks every EPUB with EPUBCheck (BSD 3-Clause).

Blitz, Stylo and Readium's Go toolkitUsed by ShamsaInk, the e-ink reader

ShamsaInk is a different reader from the one on this site: it is made for Kobo and Kindle, in early test releases.

  • EPUB: Readium’s Go toolkit (BSD 3-Clause).
  • Pages: laid out and drawn with Blitz and the text libraries beside it (Parley, HarfRust, ICU4X: MIT, Apache 2.0 or the Unicode license).
  • CSS: Blitz brings Firefox’s CSS engine, Stylo, under the Mozilla Public License 2.0, used unchanged.
Parastoo and VazirmatnThe fonts, SIL Open Font License

The books we make are set in Parastoo (copyright 2015 Saber Rastikerdar), and Farsi text on this site and in the apps in Vazirmatn (copyright 2015 The Vazirmatn Project Authors). Both are by Saber Rastikerdar, shared under the SIL Open Font License 1.1.

GanjoorThe poems' texts, used in the ShamsaInk sleep screens

Texts and vowel marks of the sleep screens’ poems from Ganjoor, the free library of Farsi poetry, with thanks. The poems are classical and in the public domain; the short explanations are ours.

What we share

The code, free to useRTLBook and ShamsaInk, Apache License 2.0

The code of RTLBook and of ShamsaInk is under the Apache License 2.0: you may use, change and share it under that license, and its text says how.

Using the names and logosFarsiEPUB, ShamsaInk and RTLBook

FarsiEPUB, ShamsaInk and RTLBook are names of this project, and their logos are ours: © 2026 FarsiEPUB, all rights reserved. The software licenses above cover the code, not the names or the logos. ShamsaInk’s and RTLBook’s code is under the Apache License 2.0, which says so itself (section 6).

You are welcome to say that your work uses, is built on or works with any of them, to write about them, and to link to them with the unmodified logo. Please don’t name a product, company, domain or account with one of these names or something easily mistaken for it, say we made or endorse your work, or change a logo. If you fork a project and change it, give your version another name. Questions: contact@farsiepub.org.