A drawing app built for agent/human collaboration
Rust
Licence: building from source is free for personal use; larger companies buy a licence
Indicode BVb9f9b608e82a
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex a792a57..7ecee6e 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,7 +5,7 @@The first builds, and klad's licences.- Drawings are `.klad` folders in a fresh format, `klad/4` (drawings from the first builds open as they are, except their bones, which are dropped). Drawings from before (`.draw` folders) do not open and are not converted.-- klad is source-available, not open source: the app is under the PolyForm Internal Use License 1.0.0, with permission for personal use, to propose contributions and to share the drawings you make (`LICENSE`); bought builds are under the same terms. The file format (`docs/format.md`), the command reference (`docs/cli.md`), the agent skill and the new `klad-client` crate are MIT (`LICENSE-MIT`), so any program or agent can read, write and make klad drawings. Contributions come in under a contributor licence agreement (`CLA.md`).+- klad is source-available, not open source: the app is under the PolyForm Internal Use License 1.0.0, with permission for personal use (building from source is free for it), to propose contributions and to share the drawings you make (`LICENSE`). Companies with 100,000 euros or more in revenue a year buy a licence for each person who uses klad; a bought build is that licence, under the same terms. The file format (`docs/format.md`), the command reference (`docs/cli.md`), the agent skill and the new `klad-client` crate are MIT (`LICENSE-MIT`), so any program or agent can read, write and make klad drawings. Contributions come in under a contributor licence agreement (`CLA.md`).- `klad-client`: run klad from Rust, apply edits as JSON ops, read drawings back as JSON, render them.- Builds for macOS (an app, Apple silicon and Intel in one) and Windows, sold on itch.io; Linux from source. Each has the `klad` command line, the editor, the fonts, the licences and the agent skill.- The editor runs on Windows and Linux (`klad open`, or `klad-editor`), with the platform's open dialog; pens that report pressure through the system (Windows) draw with it.diff --git a/CLAUDE.md b/CLAUDE.mdindex 854fc53..3c392d0 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -1,4 +1,4 @@-_Last updated: 2026-11-08 14:52_+_Last updated: 2026-11-09 08:37__Last updated: 2026-11-04 19:41_@@ -33,6 +33,6 @@ Agent-first 2D art application in Rust: a `klad` CLI for agents and a native edi- Determinism in `core`, `brush` and `render`: transcendental math through `libm`, one seeded RNG (`klad_core::rng`), no wall clock, no `HashMap` iteration order in output, parallelism only over independent units (tiles, image rows).- Bundles are never broken by a format change: bump the format version (`klad/N` in `doc.json`) and add a migration, and update `docs/format.md` in the same change. `klad/1` (2026-11-06) started clean: the `.draw` folders before it (`draw-anything/0` to `/9`) do not open, by Kevin's choice.- Permissive dependencies only: MIT, Apache-2.0, BSD-2/3, ISC, Zlib, BSL-1.0, Unicode-3.0, CC0-1.0; fonts bundled in the editor may be OFL-1.1 or the Ubuntu Font Licence (egui's), and the fonts in `fonts/` OFL-1.1 or Apache-2.0 (`fonts/update.py` fetches them unchanged; the notices list them). No GPL, LGPL or MPL unless dual licensed with one of these. `deny.toml` holds the list and `just audit` checks it; every shipped licence text is in `THIRD-PARTY-NOTICES.md` (`just notices`).-- klad is source-available, not open source, copyright Indicode BV: the app is under the PolyForm Internal Use License 1.0.0 with permissions for personal use, proposing contributions and sharing drawings, which also covers the builds it sells (`LICENSE`; `license-file` in Cargo, since it has no SPDX identifier). `docs/format.md`, `docs/cli.md`, `docs/skill/` and `crates/client` are MIT (`LICENSE-MIT`): `klad-client` depends on none of the other crates, a format change updates `docs/format.md` in the same change, and a command change runs `just reference` (a test checks `docs/cli.md`). Outside contributions come in under the CLA (`CLA.md`).+- klad is source-available, not open source, copyright Indicode BV: the app is under the PolyForm Internal Use License 1.0.0 with permissions for personal use (free to build from source), proposing contributions and sharing drawings, and a limit: a company with 100,000 euros or more in revenue in its last tax year needs a bought licence per person; it also covers the builds it sells, and a bought build is such a licence (`LICENSE`; `license-file` in Cargo, since it has no SPDX identifier). `docs/format.md`, `docs/cli.md`, `docs/skill/` and `crates/client` are MIT (`LICENSE-MIT`): `klad-client` depends on none of the other crates, a format change updates `docs/format.md` in the same change, and a command change runs `just reference` (a test checks `docs/cli.md`). Outside contributions come in under the CLA (`CLA.md`).- No em-dashes in docs, messages or UI text.- `just build` counts the version up (patch; `minor` and `major` on request) for every build Kevin makes; agents build with `just compile`, which does not, and commit a counted-up `Cargo.toml` and `Cargo.lock` with the next change.diff --git a/LICENSE b/LICENSEindex d6b49b8..b8db79d 100644--- a/LICENSE+++ b/LICENSE@@ -2,10 +2,13 @@ kladCopyright 2026 Indicode BVThe klad software is licensed under the PolyForm Internal Use License 1.0.0-below, with these additional permissions:+below, with the additional permissions and the limit that follow.++Additional permissions:- Use of the software for your own personal purposes is also use for a- permitted purpose.+ permitted purpose. This includes building the software from its source+ code for that use, free of charge.- You may distribute changes and new works based on the software toIndicode BV, for example as a pull request, to propose them as acontribution to the software.@@ -13,8 +16,19 @@ below, with these additional permissions:including the brush settings and brush pictures the software copies intothem; fonts copied into them keep their own licences.-Builds of the software that you buy, from Indicode BV or from a store such-as itch.io or Steam, are licensed under these same terms.+Limit for larger companies:++- Use of the software for your company, under Internal Business Use below,+ is use for a permitted purpose only if your company had less than+ 100,000 euros (or the same amount in another currency) in total revenue+ in its prior tax year. If your company had more, each individual who uses+ the software for your company needs a licence for the software bought+ from Indicode BV or from a store that sells the software for it. Use by+ an individual with such a bought licence is use for a permitted purpose.++Buying a build of the software, from Indicode BV or from a store such as+itch.io or Steam, gets you such a licence, and the build is licensed under+these same terms.Third-party parts keep their own licences: see THIRD-PARTY-NOTICES.md.diff --git a/README.md b/README.mdindex 945eea6..6db081c 100644--- a/README.md+++ b/README.md@@ -2,7 +2,7 @@-A 2D art app you share with an AI agent. You draw and paint in the editor with a pen; the agent works on the same drawing through the `klad` command line, and each of you sees the other's changes within a second. Everything in a drawing stays editable: strokes are kept as data (their path, pressure and brush), vector shapes keep their points, and effects, light and depth are settings on layers. klad is source-available, not open source: you can read the code, build it and change it for yourself or inside your company, and send changes back, but not hand out copies of it (see [Licence](#licence)).+A 2D art app you share with an AI agent. You draw and paint in the editor with a pen; the agent works on the same drawing through the `klad` command line, and each of you sees the other's changes within a second. Everything in a drawing stays editable: strokes are kept as data (their path, pressure and brush), vector shapes keep their points, and effects, light and depth are settings on layers. klad is source-available, not open source: you can read the code, build it and change it for yourself, free of charge, or inside a company with less than 100,000 euros a year in revenue, and send changes back, but not hand out copies of it. Larger companies buy a licence for each person who uses klad (see [Licence](#licence)).@@ -57,7 +57,7 @@ Every build holds the `klad` command line tool, the editor, the fonts, the licenBuilding takes about ten minutes the first time.1. Install Rust with [rustup](https://rustup.rs) and [`just`](https://github.com/casey/just) (`brew install just`, or `cargo install just`). On Linux also `pkg-config`, `libfreetype-dev`, `libfontconfig1-dev`, `libxkbcommon-dev` and `libwayland-dev`.-2. `git clone https://github.com/klad-app/klad && cd klad`, then `just compile` makes `klad` and `klad-editor` for the machine you are on, in `target/release/` (on Linux in `target/linux/release/`). What you build is for your own use or your company's (see [Licence](#licence)).+2. `git clone https://github.com/klad-app/klad && cd klad`, then `just compile` makes `klad` and `klad-editor` for the machine you are on, in `target/release/` (on Linux in `target/linux/release/`). What you build is for your own use, or your company's if it had less than 100,000 euros in revenue last year (see [Licence](#licence)).3. `target/release/klad open` starts the editor on its start window: make a drawing and start painting, or take first steps (Help > First steps in the editor).4. `just samples` builds the sample drawings in `samples/` (a lantern, a walking creature, a running courier, an underground ruin, an inn sign, a tree, a meadow, painted solids, a bowl of lemons and the same painted over with brushwork, a bouncing ball, ink examples); open one with `target/release/klad open samples/lantern/lantern.klad`. The six listed in `samples/shipped.json` show in the start window and go into every build (`packaging/samples.sh`).5. On a Mac, `just app` makes `klad.app` and a disk image in `dist/`; `just dist` packs this machine's build as an archive. Each machine builds for itself: a Mac builds the Mac version, Linux the Linux one.@@ -96,8 +96,8 @@ just samples # build the sample drawingsklad is source-available, not open source, copyright Indicode BV.-- The app, meaning everything not listed in the next point, is under the [PolyForm Internal Use License 1.0.0](https://polyformproject.org/licenses/internal-use/1.0.0) with three additional permissions (`LICENSE`): you may use it for your own personal purposes as well as inside your company; you may send changes to Indicode BV to propose them as contributions; and the drawings you make with it are yours to share, with the brush settings and pictures klad copies into them. You may build it and change it for those uses; you may not distribute it, from source or as a build.-- Builds you buy, on itch.io, Steam or from Indicode BV, are licensed under these same terms: one licence for the source and the builds, with no separate end-user licence.+- The app, meaning everything not listed in the next point, is under the [PolyForm Internal Use License 1.0.0](https://polyformproject.org/licenses/internal-use/1.0.0) with three additional permissions and one limit (`LICENSE`): you may use it for your own personal purposes, building it from source free of charge, as well as inside your company; you may send changes to Indicode BV to propose them as contributions; and the drawings you make with it are yours to share, with the brush settings and pictures klad copies into them. The limit: a company (counted with the companies it controls or is controlled by) that had 100,000 euros or more in revenue in its last tax year needs a bought licence for each person who uses klad for it. You may build it and change it for those uses; you may not distribute it, from source or as a build.+- Buying a build, on itch.io, Steam or from Indicode BV, gets you that bought licence, and the build is licensed under these same terms: one licence for the source and the builds, with no separate end-user licence.- These files are under the MIT License (`LICENSE-MIT`), so any program or agent can work with klad drawings: `docs/format.md` (the file format), `docs/cli.md` (the command reference), `docs/skill/` (the agent skill) and `crates/client/` (the `klad-client` crate).- Contributions are licensed to Indicode BV for inclusion in klad and in its sold builds, under the contributor licence agreement (`CLA.md`); see `CONTRIBUTING.md`.diff --git a/crates/core/src/lib.rs b/crates/core/src/lib.rsindex b736502..b5d686d 100644--- a/crates/core/src/lib.rs+++ b/crates/core/src/lib.rs@@ -37,6 +37,7 @@ pub mod notices {#[test]fn the_licence_and_the_notices_ship_with_the_code() {assert!(LICENSE.contains("PolyForm Internal Use License 1.0.0") && LICENSE.contains("Indicode BV"));+ assert!(LICENSE.contains("100,000 euros"), "larger companies buy a licence");["skia-safe","eframe",