TinySync Understand Integrate Decide FAQ Playground ↗
Integrate · Chapter 1 of 5

Why a Platform Layer

TinySync knows devices. Ecosystems know users. Something has to bridge them.

The problem

TinySync is a file sync engine. It has its own identity primitives: devices and device tokens. Everything that reads or writes to a vault authenticates as a device. There are no users, sessions, or roles inside TinySync itself.

But Drive is deployed into other products — Scribe, a workspace platform, a developer tool. Those products have their own users, login flows, roles, and organization structures. When a user opens the Drive app on their laptop, something has to bridge the gap between "Alice logged in to Scribe" and "device dev_7a3b is authorized to read vault v_docs".

That bridge is what this chapter describes. The goal is to keep TinySync's sync engine simple and product-agnostic while giving ecosystems the control they need over who can access what.

The boundary

Core principle
TinySync knows about devices, groups, and vaults. It does not know about users, login sessions, products, or organizations. All ecosystem-level logic lives outside TinySync, in the Platform Service.

This boundary is intentional and load-bearing. The sync engine stays simple and testable precisely because it never has to reason about user identity, organizational membership, or product-level access rules. It asks one question: is this device token valid, and does the device belong to a group that has access to this vault?

The Platform Service owns the translation. It watches ecosystem events — a user logs in, gets promoted, leaves the workspace — and converts each one into TinySync API calls: register a device, add it to a group, revoke a token. The engine never sees the ecosystem event directly.

What the next chapters cover