Skip to content

Latest commit

 

History

History
144 lines (112 loc) · 14.5 KB

THIRD_PARTY_NOTICES.md

File metadata and controls

144 lines (112 loc) · 14.5 KB

Third-Party Notices & License Compliance Report (THIRD_PARTY_NOTICES.md)

This document provides a comprehensive license audit and attribution registry for TypesetOK (TOK), covering:

  1. The repository's own governing license (TOK-NCCL v1.1).
  2. All third-party Rust crates declared in Cargo.toml and resolved in Cargo.lock.
  3. All third-party Node.js / TypeScript packages declared in package.json and resolved in package-lock.json.
  4. All bundled Hebrew and UI fonts in assets/fonts/ and assets/fonts/ui/.
  5. Legal compliance observations and flagged clauses requiring attention prior to commercial or public distribution.

1. Repository License (LICENSE.md)

  • License Name: TypesetOK Non-Commercial Copyleft License, Version 1.1 (TOK-NCCL v1.1)
  • Copyright Holder: Copyright (c) 2026 TypesetOK Project Contributors
  • License Category: Source-Available, Non-Commercial Copyleft (Dual-Licensed for Commercial Use)
  • Full Text: See LICENSE.md

Important Legal Classification & Flagged Clause Notes

  1. Source-Available vs. Open Source (OSD #6):

    • TOK-NCCL v1.1 is a Source-Available license, not an OSI-approved Open Source license or FSF Free Software license. Section 3 (Strict Non-Commercial Restriction) prohibits Commercial Use without a separate written commercial license agreement, which intentionally restricts field of endeavor (Open Source Definition #6).
    • Documentation, package metadata, and public announcements must refer to TypesetOK as "Source-Available (Non-Commercial Copyleft)" rather than "Open Source".
  2. Section 3.2 ("Commercial Output Clause") Enforceability & Scope:

    • Section 3.2 of LICENSE.md states that "Commercial Use" includes using the Software to typeset, paginate, or generate PDF/X, HTML, or .tok files for commercially sold books, periodicals, or paid client work, or use by any entity with annual gross revenue exceeding $10,000 USD.
    • Flagged Legal Consideration: Under copyright law in several jurisdictions (including U.S. copyright jurisprudence regarding computer program output), the output generated by a software tool (such as a layout or PDF document containing the user's own text) is generally not a derivative work of the software engine itself unless the output embeds copyrighted creative expression belonging to the software licensor. Consequently:
      • Enforceability of output restrictions relies primarily on contractual acceptance (EULA / clickwrap / terms of use) rather than pure copyright infringement remedies in jurisdictions that distinguish tool code from user-authored output.
      • Furthermore, the bundled fonts in assets/fonts/ are licensed under the SIL Open Font License 1.1 (OFL-1.1), which explicitly grants unrestricted permission to use, study, copy, and embed the fonts in any document (commercial or non-commercial), provided the fonts themselves are not sold by themselves. The TOK-NCCL v1.1 output restriction applies solely to the use of the TypesetOK software engine under contract/license, and does not alter or restrict the independent OFL-1.1 rights governing the third-party font files.
  3. Section 14 (Third-Party Compatibility):

    • Because TOK-NCCL v1.1 imposes non-commercial restrictions, it is incompatible with strong copyleft licenses such as GPL-2.0, GPL-3.0, AGPL-3.0, or LGPL-3.0 (when statically linked) that forbid adding further restrictions beyond the GPL.
    • Audit Result: A full audit of Cargo.lock and package-lock.json confirms that zero GPL, AGPL, or LGPL libraries are linked or bundled in TypesetOK. All third-party dependencies use permissive licenses (MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, Zlib, Unicode-3.0) or Public Domain (SQLite), which are fully compatible with distribution alongside TOK-NCCL v1.1.

2. Third-Party Rust Dependencies (Cargo.toml / Cargo.lock)

All direct workspace dependencies and their core transitive libraries used across tok-core, tok-typeset, tok-pdf, tok-storage, tok-plugin-host, tok-ipc, and tok-cli are listed below:

Crate Version License Role in TypesetOK
serde 1.0.x MIT OR Apache-2.0 Serialization and deserialization framework for document AST and layout structures
serde_json 1.0.x MIT OR Apache-2.0 Canonical JSON parsing and serialization for .tok manifests, documents, and CLI I/O
ulid 1.1.x MIT Lexicographically sortable Universally Unique Identifiers (ULID) for immutable document nodes
ropey 1.6.x MIT B-Tree text rope data structure for $O(\log N)$ text editing in tok-core
rayon 1.10.x MIT OR Apache-2.0 Data-parallel work-stealing thread pool for typesetting and pagination
thiserror 1.0.x MIT OR Apache-2.0 Ergonomic std::error::Error derive macros across all workspace crates
log 0.4.x MIT OR Apache-2.0 Structured logging facade
env_logger 0.11.x MIT OR Apache-2.0 Environment-configured logger for tok-cli
rustybuzz 0.14.x MIT Pure-Rust HarfBuzz OpenType text shaping engine (mark, mkmk, kern, liga) in tok-typeset
ttf-parser 0.21.x MIT OR Apache-2.0 Zero-allocation TrueType/OpenType font table parser (used by rustybuzz and tok-pdf)
unicode-bidi 0.3.x MIT OR Apache-2.0 Unicode Standard Annex #9 (UAX #9) bidirectional algorithm implementation
unicode-normalization 0.1.x MIT OR Apache-2.0 Unicode Canonical Composition (NFC) and Decomposition (NFD) primitives
unicode-ccc 0.2.x MIT OR Apache-2.0 Canonical Combining Class lookup tables for Hebrew diacritic normalization
unicode-properties 0.1.x MIT OR Apache-2.0 Unicode general category and script property queries
unicode-vo 0.1.x MIT OR Apache-2.0 Unicode Vertical Orientation (UAX #50) properties
cassowary 0.3.x MIT OR Apache-2.0 Linear constraint solving algorithm for multi-flow Mikraot Gedolot & Talmudic frame geometry
pdf-writer 0.10.x MIT OR Apache-2.0 Step-by-step binary PDF/X-1a and PDF/X-4 stream generation in tok-pdf
rusqlite 0.31.x MIT Ergonomic Rust bindings to SQLite for the crash-resilient WAL workspace store in tok-storage
libsqlite3-sys 0.28.x MIT (Bindings) / Public Domain (SQLite C Amalgamation) Bundled SQLite 3 database engine
zstd / zstd-safe / zstd-sys 0.13.x MIT (Rust crate) / BSD-3-Clause OR GPL-2.0 (elected under BSD-3-Clause) Zstandard compression for .tok document packages
zip 0.6.x MIT Archive reader and writer for .tok package containers
flate2 / miniz_oxide 1.0.x / 0.7.x MIT OR Apache-2.0 OR Zlib Deflate compression support for ZIP and PDF streams
sha2 / digest 0.10.x MIT OR Apache-2.0 Cryptographic SHA-256 hashing for asset integrity and determinism verification
tempfile 3.10.x MIT OR Apache-2.0 Secure temporary file creation and atomic file replacement in tok-storage and tests
bitflags 2.x MIT OR Apache-2.0 Type-safe bitmask flags
smallvec / arrayvec 1.x / 0.7.x MIT OR Apache-2.0 Stack-allocated small vector optimizations
hashbrown / ahash 0.14.x / 0.8.x MIT OR Apache-2.0 High-performance hash table primitives
itoa / ryu 1.0.x MIT OR Apache-2.0 Fast integer and floating-point to string conversion

3. Third-Party Node.js / TypeScript Dependencies (package.json / package-lock.json)

All direct and transitive npm packages in the workspace are development/build tools (typescript, esbuild, rcedit) or the desktop runtime shell (electron):

Package Version License Role in TypesetOK
electron 29.4.6 MIT (Electron) / BSD-3-Clause (Chromium) Cross-platform desktop shell hosting the hardened UI renderer and IPC preload bridge
@electron/get 2.0.3 MIT Electron binary downloader utility
typescript 5.9.3 Apache-2.0 TypeScript compiler and typechecker (tsc) for all 5 packages in packages/
esbuild 0.27.4 MIT Fast TypeScript/JavaScript bundler for packages/tok-ui/dist/app.js
@types/node 20.19.37 MIT TypeScript type definitions for Node.js APIs
rcedit 3.1.0 MIT Windows executable resource editor for build/packaging tooling
Transitive npm utilities (fs-extra, semver, minimatch, progress, sumchecker, global-agent, roarr, got, extract-zip, yauzl, fd-slicer, pend) Various MIT, ISC, BSD-2-Clause, BSD-3-Clause, Apache-2.0 Build-time and Electron packaging helper libraries

Note on Zero External UI Runtime Frameworks: The renderer bundle (packages/tok-ui/dist/app.js) is compiled purely from the workspace's own TypeScript packages (tok-ui, tok-viewer, tok-canvas, tok-story-editor) with zero third-party runtime JavaScript dependencies bundled into the renderer process. In particular, @vivliostyle/core and Paged.js are not used or included anywhere in the codebase.


4. Bundled Fonts (assets/fonts/)

All fonts distributed with TypesetOK in assets/fonts/ (TrueType .ttf for the Rust tok-typeset / tok-pdf engine) and assets/fonts/ui/ (.woff2 for the desktop UI) are licensed under the SIL Open Font License, Version 1.1 (OFL-1.1):

Font Family Files in Repository Copyright & Author Attribution License & Local License File
David Libre assets/fonts/DavidLibre-Regular.ttf Copyright (c) 2015, Meir Sadan (meir@sadan.com), with Reserved Font Name "David Libre". SIL Open Font License 1.1 — assets/fonts/OFL-DavidLibre.txt
Frank Ruhl Libre assets/fonts/FrankRuhlLibre-Regular.ttf
assets/fonts/FrankRuhlLibre-Bold.ttf
assets/fonts/ui/frank-ruhl-libre-*.woff2
Copyright (c) 2015–2016, Yanek Iontef (yanek@fontef.com), with Reserved Font Name "Frank Ruhl Libre". SIL Open Font License 1.1 — assets/fonts/ui/OFL-FrankRuhlLibre.txt
Noto Rashi Hebrew assets/fonts/NotoRashiHebrew-Regular.ttf
assets/fonts/NotoRashiHebrew-Bold.ttf
assets/fonts/ui/noto-rashi-hebrew-*.woff2
Copyright (c) 2020–2021, Google LLC, with Reserved Font Name "Noto". SIL Open Font License 1.1 — assets/fonts/OFL-Noto.txt & assets/fonts/ui/OFL-NotoRashiHebrew.txt
Noto Serif Hebrew assets/fonts/NotoSerifHebrew-Regular.ttf Copyright (c) 2015–2021, Google LLC, with Reserved Font Name "Noto". SIL Open Font License 1.1 — assets/fonts/OFL-Noto.txt
IBM Plex Sans Hebrew assets/fonts/ui/ibm-plex-sans-hebrew-*.woff2 Copyright (c) 2017–2021, IBM Corp. (mike@boldmonday.com), with Reserved Font Name "IBM Plex". SIL Open Font License 1.1 — assets/fonts/ui/OFL-IBMPlexSansHebrew.txt
IBM Plex Mono assets/fonts/ui/ibm-plex-mono-*.woff2 Copyright (c) 2017, IBM Corp. (mike@boldmonday.com), with Reserved Font Name "IBM Plex". SIL Open Font License 1.1 — assets/fonts/ui/OFL-IBMPlexMono.txt

SIL Open Font License 1.1 Compliance Summary

  • Permitted: Bundling with software (commercial or non-commercial), embedding in PDF/HTML documents (tok-pdf subsetting and tok-ui rendering), and redistribution alongside the application.
  • Conditions:
    1. The copyright notices and the OFL-1.1 license texts (assets/fonts/OFL-*.txt and assets/fonts/ui/OFL-*.txt) must always be distributed alongside the font files.
    2. The font files themselves may not be sold standalone without software.
    3. Any modified versions of the fonts must not use the Reserved Font Names ("David Libre", "Frank Ruhl Libre", "Noto", "IBM Plex"). TypesetOK distributes the unmodified upstream font binaries and subsets them only inside generated PDF documents as permitted by OFL-1.1 Section 1 & 2.

5. Common Permissive License Texts Summary

MIT License (Applicable to ulid, ropey, rustybuzz, rusqlite, zip, electron, esbuild, etc.)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Apache License, Version 2.0 (Applicable to serde, rayon, unicode-bidi, pdf-writer, typescript, etc.)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use these components except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

BSD 3-Clause License (Applicable to zstd C library and Chromium components in electron)

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the copyright notice, list of conditions, and disclaimer are retained in redistributions of source code and binary documentation, and that the names of the copyright holders are not used to endorse or promote products derived from the software without specific prior written permission.