# Forks and the name Blossom

The code of Blossom is under the MIT license: anyone may fork it, change it and ship what they built. The name Blossom and its icon are not part of that license. They tell people that a build comes from this project, and they keep doing that only if forks use their own.

## What a fork may do

- Keep the code, change it and distribute it, with the copyright notice and the text of the license, as the MIT license asks.
- Say what it is: "a fork of Blossom" or "based on Blossom", in its README, its About pane and its release notes.
- Build this repository unchanged and pass that build on, under the name Blossom, as long as nothing in it was changed.

## What a fork changes before it ships a build

A build that differs from this repository is a different app, and must not be mistaken for Blossom by people or by macOS.

| What | Where it is set today | Why |
|---|---|---|
| The name | `apps/macos/project.yml`, the String Catalog and the documentation | People must not take the fork for this project |
| The icon and the mark | [design/icon.md](design/icon.md) and their sources | Same reason; they stand for this project |
| The bundle identifier | `dev.blossom`, and `dev.blossom.macos` with `dev.blossom.macos.development` for a Debug build, in `apps/macos/project.yml` | macOS keys login items, the Keychain and settings by it; two apps with one identifier overwrite each other |
| The name of its identity | `BLOSSOM_IDENTITY` in `apps/macos/project.yml`, `Blossom` and `Blossom Development`; the app names the folder of its data and its Keychain service after it | The two would share one configuration, one set of plugins and one Keychain service |
| The folder of the sockets and backups | `Blossom` in `~/Library/Application Support/Blossom/<tool>/socket` and `…/Blossom/backups`, written in the hooks of each adapter, in the source of each adapter and once in the core, `SHARED_FOLDER` in `crates/infrastructure/src/connection/mod.rs`, which the backups and the uninstaller read | The two would share one socket per agent, and each would take the other's hooks for its own |
| The Keychain service | `<identity> plugin credential`, `Blossom plugin credential` for a release | The two would read each other's tokens |
| The signing identity | Ad hoc today; see [decisions/signing.md](decisions/signing.md) | A build signed as this project's would claim to be it |
| The update feed and its key | Not set up yet; see [decisions/distribution.md](decisions/distribution.md) | A fork's users must get the fork's updates, signed by the fork |
| The catalog address and its keys | `CATALOG_ADDRESS` in `crates/bridge/src/core.rs`, `KEYS` and `LOWEST_SEQUENCE` in `crates/infrastructure/src/catalog/keys.rs`, and the secret `CATALOG_KEY` of the environment `catalog` of the fork | A fork that publishes plugins signs its own catalog; it never ships this project's key as its own |

A fork that publishes its own catalog makes a key with `bun run catalog key`, puts its public half in `KEYS` and sets `LOWEST_SEQUENCE` to 0, points `CATALOG_ADDRESS` at its own Pages, `https://<owner>.github.io/<repository>/`, and follows "What only the maintainer does" in [roadmap/catalog.md](roadmap/catalog.md) with its own repository: the workflows read and deploy the Pages of the repository they run in, so they need no other change, and `ADDRESS` in `apps/catalog/src/site.rs`, which `bun run catalog check` reads on a laptop, takes the address of its Pages too. A fork served from another host also changes `BLOSSOM_CATALOG` in both workflows and the job `deploy`. A fork that publishes no catalog sets `CATALOG_ADDRESS` to `None`, and Blossom says the catalog is not set up.

## What a fork may not do

- Call itself Blossom, or use a name or an icon close enough to be taken for it.
- Suggest that this project made, reviewed or endorses it.
- Publish to this project's catalog or update feed, or sign with its keys.

The logos of other products that Blossom shows are not this project's to give; their terms are in [trademarks.md](trademarks.md).
