# Design decisions

> The choices behind Sypnia Files, and why each one was made.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://files.docs.sypnia.com/reference/decisions/

For agents: Sypnia Files design decisions: files are served on <ref>.files.sypnia.app (sypnia.app is in the Public Suffix List), never under sypnia.com; malware scanning is off by default, with a console warning on buckets that accept public uploads; video is stored and served as files, without transcoding to adaptive streams; the largest file is 50 GB on paid plans and 50 MB on the free plan; one pair of publishable and secret keys per project for every product, with scopes per product; licenses: AGPL-3.0 engine, MIT @sypnia/files.

| # | Decision                  | What Sypnia Files does, and why                                                                                                                                                                                                 |
| - | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1 | **The content domain**    | Files are served on `<ref>.files.sypnia.app`. `sypnia.app` is in the Public Suffix List, so a file can never set cookies for another project, and user files are never served under `sypnia.com`, where Sypnia's sessions live. |
| 2 | **Malware scanning**      | Off by default, with a console warning on buckets that accept public uploads; turn it on per bucket ([Bucket settings](https://files.docs.sypnia.com/buckets/metadata-and-quotas)).                                             |
| 3 | **Video**                 | Stored and served as files, without transcoding to adaptive streams: Files is not a streaming service.                                                                                                                          |
| 4 | **Largest file**          | 50 GB on paid plans, 50 MB on the free plan.                                                                                                                                                                                    |
| 5 | **Keys shared with Data** | One pair of publishable and secret keys per project for every Sypnia product, with scopes per product on each key, so one key never opens more than it should.                                                                  |
| 6 | **Licenses**              | AGPL-3.0 for the engine (a hosted copy must share its changes) and MIT for `@sypnia/files`, like every Sypnia engine and SDK.                                                                                                   |
