Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ All routes sit under `/api` (router files in `backend/app/routers/`, mounted in

| Router file | Routes |
| --- | --- |
| `system.py` | `GET /health`, `GET /capabilities` |
| `system.py` | `GET /health`, `GET /capabilities`, `GET /notices` (THIRD-PARTY-NOTICES.txt as text; 404 `no_notices` when a build lacks it) |
| `models.py` | `GET /models` (paged by `page`) |
| `plan.py` | `POST /plan` |
| `costs.py` | `POST /costs/estimate` (provider, model, kind, options, media counts, promptChars) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ All routes sit under `/api` (router files in `backend/app/routers/`, mounted in

| Router file | Routes |
| --- | --- |
| `system.py` | `GET /health`, `GET /capabilities` |
| `system.py` | `GET /health`, `GET /capabilities`, `GET /notices` (THIRD-PARTY-NOTICES.txt as text; 404 `no_notices` when a build lacks it) |
| `models.py` | `GET /models` (paged by `page`) |
| `plan.py` | `POST /plan` |
| `costs.py` | `POST /costs/estimate` (provider, model, kind, options, media counts, promptChars) |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ jobs:
- name: Engine tests
working-directory: backend
run: python -m pytest
- name: Third-party notices cover what ships
run: python setup/notices.py --check

install:
name: install (ubuntu-latest)
Expand Down
4 changes: 2 additions & 2 deletions LICENSES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ formcraft is licensed under the Apache License, Version 2.0 (see `LICENSE`), Cop

House rules for what may be added: GPL stays out of the distributed app, AGPL is used nowhere, LGPL is allowed only as a separate replaceable binary, MPL files stay unedited, CC BY is credited, CC NC and ND are never used. Every dependency, font, model weight and asset is recorded here and in `NOTICE` before it ships.

How to read the tables: the columns are item, version, licence, where it ships and obligation. Where a row names several packages, the versions in the Version cell follow the same order as the names; a very long group lists "name version" pairs in the Item cell and says so in the Version cell. "Keep the licence text" names the obligation; the installer's bundled licences folder holds only `LICENSE`, `NOTICE` and this file, so a text not printed here or in `NOTICE` is not yet collected (section 11).
How to read the tables: the columns are item, version, licence, where it ships and obligation. Where a row names several packages, the versions in the Version cell follow the same order as the names; a very long group lists "name version" pairs in the Item cell and says so in the Version cell. "Keep the licence text" names the obligation; the full texts (copyright lines, conditions and disclaimers) of everything that ships are in `THIRD-PARTY-NOTICES.txt` at the repository root, written and checked by `setup/notices.py` (section 11). This file stays the human list.

## Contents

Expand Down Expand Up @@ -283,7 +283,7 @@ Listed so that nobody has to ask. None is a dependency and none ships a file.
- The title-bar record names its tabs file `ui/tabs.ts`; the file in the tree is `ui/doc-tabs.ts`. This file uses `ui/doc-tabs.ts`.
- The window record lists only the `core` and `window` lazy chunks of `@tauri-apps/api`; the title-bar work added `menu`, and `app.ts` also imports `event`. Section 3 lists all four.
- Bundle resources: `src-tauri/tauri.conf.json` ships `LICENSE`, `NOTICE` and `LICENSES.md` and `licenses/LGPL-2.1.txt` (the official LGPL 2.1 text, kept in `licenses/` at the repository root) under `licenses/` in every installer. No written offer is stored in this repository or produced by the build. Only the AppImage distributes LGPL libraries (WebKitGTK, GTK, libsoup and what the bundler copies with them); they are unmodified, `NOTICE` and section 5 say where their source is, and their versions are those installed on the build machine, which no step records per release.
- No build step collects the third-party licence texts (Rust crates, Python packages, npm packages) into the installer; there is no `setup/collect_licenses.py` or any other collector. Where a row says "Keep the licence text", the text is today in the published package of that name and version, and the installer carries only `LICENSE`, `NOTICE` and `LICENSES.md`.
- Collected licence texts (closed in v0.11.0): `setup/notices.py` writes `THIRD-PARTY-NOTICES.txt` with the full licence files of the Python runtime, the PyInstaller bootloader, every Python package the engine freezes on macOS, Linux and Windows (from each package's installed metadata), the twelve npm production packages (from `node_modules`), and the 496 crates `Cargo.lock` reaches from `formcraft` (from the cargo registry), plus a reference to the FFmpeg release the engine downloads, whose own `THIRD-PARTY-NOTICES.txt` and LGPL text travel with it. 38 crates publish no licence file (the `objc2` family, `jni`, `ndk` and others); their SPDX licence and repository are recorded with a note saying so. The file ships under `licenses/` in every installer (`bundle.resources`), is frozen into the engine and is shown in About formcraft, Third-party notices. `python setup/notices.py --check` (CI, `tests` job) fails when a pin, an npm package or a crate is added, removed or changed without the file following.
- The npm production tree (`npm ls --omit=dev --all`, recounted for v0.9.1) is twelve packages: the nine direct dependencies in `frontend/package.json`, `fflate` (through Spark) and the two type packages of mediabunny.
- No record covers the system web views on macOS (WKWebView) or Windows (WebView2); only WebKitGTK on Linux is listed. One record mentions that the Linux binary loads libdbus-1 through GTK and WebKitGTK, and no record gives its licence. No rows were added for either.
- Versions that no record gives: the five MPL-2.0 crates (read from `Cargo.lock`), the Vite build tree other than rolldown, postcss, lightningcss and typescript (read from the installed packages), winpthreads, rsvg-convert and the icon-render Pillow (left as "not recorded").
Expand Down
3 changes: 2 additions & 1 deletion NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ Third-party material

Every third-party item that ships with formcraft or builds it is listed in LICENSES.md with
its version, licence, where it ships and what the licence asks of us. These obligations must
travel with the app.
travel with the app. THIRD-PARTY-NOTICES.txt, installed beside this file, holds the full
licence text (copyright lines, conditions and disclaimer) of each of them.

MPL-2.0, unmodified. The Rust crates cssparser, cssparser-macros, dtoa-short, option-ext and
selectors (linked into the desktop binary), the Python package certifi with its cacert.pem
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Code owners are set in [`.github/CODEOWNERS`](.github/CODEOWNERS).

## License

FormCraft is licensed under the Apache License 2.0 ([`LICENSE`](LICENSE), SPDX `Apache-2.0`). Copyright 2026 NodeAgentc, Inc. Third-party notices: [`NOTICE`](NOTICE), [`LICENSES.md`](LICENSES.md).
FormCraft is licensed under the Apache License 2.0 ([`LICENSE`](LICENSE), SPDX `Apache-2.0`). Copyright 2026 NodeAgentc, Inc. Third-party notices: [`NOTICE`](NOTICE), [`LICENSES.md`](LICENSES.md) (what each component is and why) and [`THIRD-PARTY-NOTICES.txt`](THIRD-PARTY-NOTICES.txt) (their full licence texts, also in Help, About formcraft, Third-party notices).

<sub>Screenshot content: CC0 photos and models from Poly Haven, and music made for the Form family.</sub>

Expand Down
Loading
Loading