# Server SDK

> Prepare document services, storage, and access permissions for your application.

- Human documentation: [https://docs.univer.ai/server](https://docs.univer.ai/server)

- Agent Markdown: [https://docs.univer.ai/server.md](https://docs.univer.ai/server.md)

- Requested language: `en-US`

- Content language: `en-US`

- Documentation version: `1.0.0-rc.0`

- Source: [index.mdx](https://github.com/dream-num/documentation/blob/dev/content/server/index.mdx)

---

The backend saves documents, checks user permissions, and provides interfaces for collaboration or file conversion. Current releases use [Server SDK](https://docs.univer.ai/server.md) to add these capabilities in your own application environment.

This page covers backend setup, storage, and permissions. [Collaboration integration](https://docs.univer.ai/server/collaboration/browser-integration.md) connects the editor to shared documents. [File exchange integration](https://docs.univer.ai/server/import-export.md) covers file upload, conversion, and download. Follow the guide for the feature you need. For features that require a license, start with [license configuration](https://docs.univer.ai/server/license.md). Browser-only editing does not require a collaboration service.

## Choose the services you need

| Requirement                | Backend preparation                                  | Implementation guide                                                                                              |
| -------------------------- | ---------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| Shared document editing    | Collaboration SDK, document storage, and permissions | [Collaboration Quick Start](https://docs.univer.ai/server/collaboration/quick-start.md)                                                    |
| Office file import/export  | Conversion, uploads, task queries, and downloads     | [File conversion](https://docs.univer.ai/server/import-export/node.md) and the [Exchange example](https://docs.univer.ai/server/collaboration/examples.md#exchange) |
| History or shared comments | Their respective services, storage, and permissions  | [Extension modules](https://docs.univer.ai/server/collaboration/extensions.md)                                                             |

Choose only the capabilities you need. File conversion alone does not require collaborative editing. Prepare the [SDK environment](https://docs.univer.ai/server/requirements.md) and keep Univer package versions compatible.

## Connect your application and storage

Run the chosen service's example, then connect it to your backend. For collaborative documents, your application creates the document, records its ownership, and returns its ID to the browser. See [module boundaries](https://docs.univer.ai/server/collaboration/modules.md) for creation APIs. Your application continues to manage users, projects, and folders.

The collaboration example uses memory storage and loses content on restart. Follow [Database Adapters](https://docs.univer.ai/server/collaboration/database-adapters.md) to connect a database, then verify that saved documents survive a restart.

File conversion also needs storage and cleanup for uploads, tasks, and downloads. Follow the [Exchange example](https://docs.univer.ai/server/collaboration/examples.md#exchange).

## Connect login and permissions

Follow [identity and authorization](https://docs.univer.ai/server/collaboration/identity-and-authorization.md) to verify existing login credentials and check whether a user may read or modify a document. Replace fixed example users and allow-all rules.

Protect document reads, collaboration connections, edit submissions, and any enabled history, comments, and downloads. A read-only browser editor does not replace server permission checks.

## Deploy and connect the frontend

Deploy interfaces on your application's domain. For collaboration, forward both HTTP and WebSocket traffic through proxies; HTTPS pages should use WSS. Limit file uploads and handle conversion failures and timeouts.

Once the backend is ready, finish the relevant feature integration:

* [Collaboration integration](https://docs.univer.ai/server/collaboration/browser-integration.md): connect the editor, create and open shared documents, and verify synchronization.
* [File exchange integration](https://docs.univer.ai/server/import-export.md): connect uploads, conversion, and downloads, then check real files.
