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
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ jobs:
go-version-file: go.mod
- name: go tests
run: go test -count=1 ./...
# THIRD-PARTY-NOTICES.txt must list every Go module, page package and crate that ships, with its licence
# text; tools/notices.py regenerates it.
- name: third-party notices cover what ships
if: matrix.os == 'ubuntu-latest'
run: python3 tools/notices.py --check
window:
runs-on: ubuntu-latest
timeout-minutes: 20
Expand Down Expand Up @@ -115,5 +120,7 @@ jobs:
run: |
pip install pytest==9.1.1 playwright==1.63.0
python -m playwright install --with-deps chromium
- name: the notices check's own tests
run: python -m pytest tools -q -p no:cacheprovider
- name: window smoke
run: python -m pytest web/tests/window -q -p no:cacheprovider
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The first public version. It is 0.10.2 with nothing added: 0.10.2 was numbered b
Ready to go public: the licences travel with the app, the macOS build names its app correctly, and the README shows FormNET as it is.

- The desktop app now carries the licence texts of everything it ships that was only listed before: the Inter and JetBrains Mono typefaces (OFL-1.1), the terminal's xterm.js and its fit addon (MIT), the window bridge @tauri-apps/api (Apache-2.0 or MIT) and the Go standard library and runtime inside every `formnet` binary (BSD-3-Clause). They are in `licenses/`, and `NOTICES.md` names each file.
- The desktop app also carries the licence text of every Rust crate it links, in `licenses/rust/` (303 crates). Where a crate's package holds no licence file, a note names its licence and the standard text is beside it. `tools/collect_licenses.py` refreshes the folder when `src-tauri/Cargo.lock` changes, with cargo-about where it is installed.
- The desktop app also carries the licence text of every Rust crate it links, in `licenses/rust/` (303 crates). Where a crate's package holds no licence file, its upstream licence text (vendored in `tools/licence_texts/` with a `SOURCE.txt`) is copied in instead, and THIRD-PARTY-NOTICES.txt carries the same text with a line naming its source. `tools/collect_licenses.py` refreshes the folder when `src-tauri/Cargo.lock` changes, with cargo-about where it is installed.
- The standalone server binaries are released with `formnet_<version>_licenses.tar.gz`: `NOTICES.md`, `LICENSE` and the licence texts that apply to the server. `make release` and `./build_app --all` (and `build_app.bat --all`) write it, and `SHA256SUMS` lists it.
- `./build_app` on a Mac names the app it makes `FormNET.app`, as the bundle is called, and its "open it" line points there.
- The README's three pictures are retaken from this version: Flows with a request in the detail pane, a failed request's response, and Hosts.
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ release: web
echo "building $$os/$$arch"; \
GOOS=$$os GOARCH=$$arch $(GO_BUILD) -o release/formnet_$(VERSION)_$${os}_$${arch}$$ext ./cmd/formnet || exit 1; \
done
tar -czf release/formnet_$(VERSION)_licenses.tar.gz --exclude licenses/rust NOTICES.md LICENSE licenses
tar -czf release/formnet_$(VERSION)_licenses.tar.gz --exclude licenses/rust NOTICES.md THIRD-PARTY-NOTICES.txt LICENSE licenses
cd release && (sha256sum formnet_* > SHA256SUMS 2>/dev/null || shasum -a 256 formnet_* > SHA256SUMS)

check:
Expand Down
4 changes: 3 additions & 1 deletion NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

FormNET is Copyright 2026 NodeAgentc, Inc. and licensed under the Apache License 2.0 (see `LICENSE`). It distributes the following third-party works. The desktop app carries this file, `LICENSE` and the whole `licenses/` folder. The standalone server binaries (`make release` or `./build_app --all`) are released beside `formnet_<version>_licenses.tar.gz`, which holds this file, `LICENSE` and `licenses/` without `licenses/rust/`: the server is Go with the page embedded and links no Rust crate.

`THIRD-PARTY-NOTICES.txt` holds the full licence text of everything that ships, in one file: the Go standard library and runtime, every Go module package linked into `formnet` on the release targets (with the licence files of each linked package's folder), the production npm packages built into the page, and every crate in `src-tauri/Cargo.lock` that the desktop shell reaches. `tools/notices.py` writes it and `tools/notices.py --check` fails in CI when it no longer covers what ships. It is embedded in every `formnet` binary (shown in Preferences, General, About, from `GET /api/notices`), installed with the desktop app and packed into the licences archive.

## The page (web client)

Built by Vite into `web/dist`, embedded in the formnet server and shown in the desktop window. Versions from `web/package-lock.json`.
Expand Down Expand Up @@ -35,7 +37,7 @@ Linked into the `formnet` binary to decode `br` and `zstd` bodies for display an

Every Rust crate linked into `formnet-desktop` for macOS (aarch64-apple-darwin, x86_64-apple-darwin), Windows (x86_64-pc-windows-msvc) or Linux (x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu), resolved from `src-tauri/Cargo.lock`: the normal dependency tree with default features, without build dependencies and proc-macro crates, which run at compile time and are not part of the program. Licence and source are the `license` and `repository` fields of `cargo metadata --format-version 1`. Where a crate offers a choice of licences, the recipient may use any one of them.

The crates' licence texts are in `licenses/rust/<crate>-<version>/`, copied unchanged from each crate's package by `tools/collect_licenses.py` (or, where cargo-about is installed, in `licenses/rust-src-tauri.html`, which the same script writes from `src-tauri/about.toml` and `src-tauri/about.hbs`). The script takes every crate reached through normal dependencies on the five targets; because `cargo metadata` joins the features of build and normal dependencies, that folder covers 303 crates, a superset of this table. 18 crates hold no licence file in their package: alloc-stdlib 0.3.0 (BSD-3-Clause), block2 0.6.2, dlopen2 0.8.2, objc2 0.6.5, objc2-encode 4.1.0, objc2-foundation 0.3.2, webview2-com 0.39.1 and webview2-com-sys 0.39.1 (MIT), libappindicator-sys 0.9.0 (Apache-2.0 OR MIT), dispatch2 0.3.1, objc2-app-kit, objc2-core-foundation, objc2-core-graphics, objc2-exception-helper 0.1.1, objc2-io-surface, objc2-quartz-core and objc2-web-kit 0.3.2 (Zlib OR Apache-2.0 OR MIT), and selectors 0.38.0 (MPL-2.0). Each has a `NOTE.txt` in its folder naming its licence and source, and the standard texts of those licences are in `licenses/rust/standard/`.
The crates' licence texts are in `licenses/rust/<crate>-<version>/`, copied unchanged from each crate's package by `tools/collect_licenses.py` (or, where cargo-about is installed, in `licenses/rust-src-tauri.html`, which the same script writes from `src-tauri/about.toml` and `src-tauri/about.hbs`). The script takes every crate reached through normal dependencies on the five targets; because `cargo metadata` joins the features of build and normal dependencies, that folder covers 303 crates, a superset of this table. 18 crates hold no licence file in their package: alloc-stdlib 0.3.0 (BSD-3-Clause), block2 0.6.2, dlopen2 0.8.2, objc2 0.6.5, objc2-encode 4.1.0, objc2-foundation 0.3.2, webview2-com 0.39.1 and webview2-com-sys 0.39.1 (MIT), libappindicator-sys 0.9.0 (Apache-2.0 OR MIT), dispatch2 0.3.1, objc2-app-kit, objc2-core-foundation, objc2-core-graphics, objc2-exception-helper 0.1.1, objc2-io-surface, objc2-quartz-core and objc2-web-kit 0.3.2 (Zlib OR Apache-2.0 OR MIT), and selectors 0.38.0 (MPL-2.0). For each, the licence texts from its upstream repository (or, for selectors, which has none upstream, the SPDX MPL-2.0 text with the holders its Cargo.toml names) are vendored in `tools/licence_texts/crate/<crate>-<version>/` with a `SOURCE.txt` naming the file, repository and commit, and the script copies that folder in. `tools/notices.py` uses the same folders for the 35 crates THIRD-PARTY-NOTICES.txt lists without a licence file in their package. The standard texts of those licences are also in `licenses/rust/standard/`.

`option-ext` 0.2.0 is used unmodified under the Mozilla Public License 2.0; its source code is available from https://crates.io/crates/option-ext/0.2.0 and from its repository listed below, and the MPL-2.0 text is at https://mozilla.org/MPL/2.0/. The `icu_*`, `litemap`, `potential_utf`, `tinystr`, `writeable`, `yoke`, `zerofrom`, `zerotrie`, `zerovec` and `unicode-ident` crates include Unicode data under the Unicode License v3 (https://www.unicode.org/license.txt).

Expand Down
Loading
Loading