Skip to content

Architecture

How Sypnia Files is built: its parts, where Rust runs, and how they connect.

Applies to EngineCloud
View as Markdown
Figure. Sypnia Files: the API and the content edge, the engine's modules, and where metadata and bytes live.
  1. Your app or a tool calls the Files API with a token, a key or S3 signatures.
  2. The engine checks the token and runs the policy in Postgres.
  3. Metadata goes to sypnia_files in Postgres; bytes go to S3-compatible storage.
  4. Visitors get files and transforms from the content host through the CDN.
Read this diagram as text

Apps, S3 tools and agents call the Files API. The engine is one Rust binary with an auth module, the object API, the tus upload server, the S3 gateway, the image transformer and the MCP server. It keeps metadata and policies in Postgres and bytes in S3-compatible storage. The content host, behind the CDN, serves public files and image transforms and checks signed URLs.

PartLanguageOpen source
Files engine: API, tus, S3 gateway, transforms, MCPRust (axum, libvips for images)yes
@sypnia/filesTypeScriptyes
Content edge in Sypnia CloudCloudFront + Lambda running the engine’s transform modulethe module, yes
ConsoleTypeScript (React)no
  • Request paths

    An upload, a private download and an image transform, call by call.

  • Data model

    The sypnia_files schema: buckets, objects, uploads in progress, S3 keys and the functions policies use.

  • Reference implementation on AWS

    Every AWS service Files uses in Sypnia Cloud, and how.

  • Failures and scaling

    What happens when storage, the database or scanning fails, and how Files grows.

  • Codebase

    How the open-source repository is organized.

    Search pages, sections and terms