cairn
Copyright (c) 2025–2026 Tan Le

Licensed under the MIT License; see LICENSE for full text.

This NOTICE file documents the third-party open-source software used by cairn.
Each package retains its own license; the summaries below are for convenience
and are not legal substitutes for the upstream license texts.

================================================================================
Engine binary dependencies
================================================================================

The cairn engine is a Rust binary. Every crate it links (including the
tree-sitter grammars and the bundled SQLite and sqlite-vec builds) is declared
in Cargo.lock; their licenses are checked on every change by cargo-deny
against the allow-list in rust/deny.toml (Apache-2.0, Apache-2.0 WITH
LLVM-exception, BSD-2-Clause, BSD-3-Clause, CC0-1.0, ISC, MIT, Unicode-3.0,
Zlib). The lockfile is the authoritative inventory; `cargo deny list` in
rust/ renders it.

================================================================================
PyPI package and optional converter
================================================================================

The `cairn-intel` wheel is the engine binary (a maturin bin wheel): it
contains no Python code and declares no runtime dependencies. The optional
`cairn-intel-ingest` package — a separately installed high-fidelity PDF
converter the engine invokes when present — resolves its dependencies from
PyPI at install time; cairn does not bundle or redistribute them. Declared
licenses:

  cairn-intel-ingest  pymupdf4llm / PyMuPDF (AGPL-3.0, commercial license
                      available from Artifex)

================================================================================
Vendored content (dashboard static assets)
================================================================================

The dashboard vendors the minified standalone browser builds of the
third-party libraries below as static assets. They are carried in-tree under
rust/crates/cairn-cli/dashboard-assets/static/, embedded into the cairn binary
(rust/crates/cairn-cli/src/dashboard/assets.rs) and served by its dashboard;
no bundler or CDN is used at runtime.

vis-network (https://github.com/visjs/vis-network), Copyright (c) 2011-2017
Almende B.V, http://almende.com and (c) 2017-2019 vis.js contributors,
https://github.com/visjs. The official standalone UMD minified build is
vendored at pinned version 9.1.13 (unpkg dist file, sha256
39b9a36f17b4ca2e27d1e4327216860b042077b3307402ae315402ac826f878b) at
rust/crates/cairn-cli/dashboard-assets/static/vis-network.min.js, and is dual
licensed under the Apache License 2.0 OR MIT License. The upstream copyright
and license notice are retained unmodified in the file's leading banner
comment.

htmx (https://htmx.org / https://github.com/bigskysoftware/htmx), by Big Sky
Software. The official minified browser build is vendored at pinned version
2.0.10 (jsDelivr npm dist file, sha256
71ea67185bfa8c98c39d31717c6fce5d852370fcdfd129db4543774d3145c0de) at
rust/crates/cairn-cli/dashboard-assets/static/htmx.min.js, licensed under
Zero-Clause BSD (0BSD) per the htmx project license.

Alpine.js (https://alpinejs.dev / https://github.com/alpinejs/alpine),
Copyright Caleb Porzio and Alpine.js contributors. The official CDN build is
vendored at pinned version 3.17.1 (jsDelivr npm dist file, sha256
b30997fc126d808b1a9b20ab3f504ded88df957818c02d6249bba3ec114eb0ec) at
rust/crates/cairn-cli/dashboard-assets/static/alpine.min.js, licensed under
the MIT License.

@alpinejs/morph (https://alpinejs.dev/plugins/morph), Copyright Caleb Porzio
and Alpine.js contributors. The official CDN build is vendored at pinned
version 3.17.1 (jsDelivr npm dist file, sha256
40741b6d946e9c7e01787d8fefead1c1537a20cf7203726be648cda9d2c9f375) at
rust/crates/cairn-cli/dashboard-assets/static/alpinejs-morph.min.js, licensed
under the MIT License.

htmx-ext-alpine-morph
(https://github.com/bigskysoftware/htmx-extensions), by Big Sky Software.
The extension source is vendored at pinned version 2.0.1 (jsDelivr npm dist
file, sha256
762a87ecc98f76558b7d6384c37400ab61e5ab1626196cb7d093fceb89c13b67) at
rust/crates/cairn-cli/dashboard-assets/static/alpine-morph.js. The extension
ships with the htmx project; its package manifest declares no separate
license, and the htmx project license (Zero-Clause BSD) governs upstream.

Mermaid (https://mermaid.js.org / https://github.com/mermaid-js/mermaid),
Copyright (c) 2014-2026 Knut Sveidqvist and mermaid contributors. The
official ESM browser distribution is vendored at pinned version 11.17.2
(jsDelivr npm dist files) at
rust/crates/cairn-cli/dashboard-assets/static/mermaid.min.js (the
mermaid.esm.min.mjs entry, sha256
462d6f73fc9833044bca6dc08e62e0ee83f5a2b09583f588f95d5fd91b1960ed) together
with its content-hash-named chunk files under
rust/crates/cairn-cli/dashboard-assets/static/chunks/mermaid.esm.min/ (the
entry's relative imports resolve there; the chunks are carried unmodified).
Licensed under the MIT License.
