# What Sypnia Files is

> Storage for the files of your app, with rules tied to who is signed in, image transforms and an S3-compatible API.

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

For agents: What Sypnia Files is: buckets (public/private), access rules as Postgres policies with auth.uid() (same user as Sypnia Data) or any JWT issuer, signed URLs (download and upload), resumable uploads, image transforms (resize/crop/WebP/AVIF) cached at the edge, optional malware scanning, S3-compatible API, bring-your-own S3/R2/MinIO. With Data in the same project metadata lives in the project database (policies can join tables); Run gets Files variables; Mail can attach by path. Not video streaming/transcoding, not backup, not a people file-sharing app.

> **In plain words**
>
> When someone uploads a photo or a document in your app, it has to be kept somewhere safe, shown only to the right people, and delivered fast. Files does all three.

## What you get

| What                  | In one line                                                                                                                                                            |
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Buckets**           | Folders at the top level, public (anyone with the link) or private (only who your rules allow)                                                                         |
| **Access rules**      | Who can read, upload, replace or delete each file, written as Postgres policies with `auth.uid()`, the same user as in [Sypnia Data](https://data.sypnia.com)          |
| **Signed URLs**       | A link to one private file that works for a few minutes, or a link to upload one file without a session                                                                |
| **Resumable uploads** | Big files and bad connections: an upload that stops continues where it stopped                                                                                         |
| **Images**            | Resize, crop and convert to WebP or AVIF in the URL, cached at the edge                                                                                                |
| **Use cases**         | Each file records the use case that wrote it, and each upload is a step in that case's trace ([Use cases and traces](https://files.docs.sypnia.com/buckets/use-cases)) |
| **Malware scanning**  | Optional per bucket: a file is served only after it is checked                                                                                                         |
| **S3-compatible API** | Use the AWS SDK, rclone or any S3 tool against your buckets                                                                                                            |
| **Your own storage**  | Keep the objects in your AWS S3, Cloudflare R2 or MinIO bucket                                                                                                         |

## How it fits with the rest of Sypnia

- With **Sypnia Data** in the same project, file metadata lives in your project's database, so a policy can join files with your tables («a customer can see the receipt of their own order»).
- **Sypnia Run** apps get the Files address and keys as variables when you connect them.
- **Sypnia Mail** can attach a file from a bucket by its path.
- **Sypnia Domains** serves your public files on your own address, such as `cdn.laespiga.co` ([Your own address](https://files.docs.sypnia.com/images/cdn-and-caching#your-own-address)).
- **Sypnia Telemetry** shows every upload and download inside the trace of the use case that made it.

Files also works alone: point it at any issuer of JWTs (Auth0, Clerk, Firebase, your own) and it checks them the same way.

## What it is not

- Not a video streaming service: it stores and serves video files, without transcoding to adaptive streams.
- Not a backup product for your computers.
- Not a file-sharing app with folders for people; it is the storage behind your app.
