المساعدة والخصوصية

Where your data lives

قراءة 4 دقيقة

Where does what you write in Slima actually live? This page walks through the four storage layers — so you know the full path from keystroke to cloud.

Account → Preferences (zh-TW shown): local-cache settings affect the IndexedDB storage layer

Four storage layers

Layer Where What
Cloud database Slima's primary database (PostgreSQL) Chapter text, file structure, version history, AI conversations, account
Object storage Cloudflare R2 or equivalent Cover images, embedded media in chapters (images, PDFs)
Frontend IndexedDB Your browser, locally Local cache; buffers pending changes when offline
Desktop local files 🚧 Electron app folder (once Desktop ships) Desktop's independent cache, encrypted token

A paragraph's journey from keystroke to cloud

You type
IndexedDB local cache (instant write)
Background buffer + push to cloud DB
Cloud confirms receipt
IndexedDB marks "synced"

Other devices pull the other way:

Device opens the book
Fetch latest content from cloud DB
Write into that device's IndexedDB
Render in the editor

Media (images / covers / PDFs) — separate path

Media is stored separately from text:

  1. You drag an image into Slima
  2. The image uploads to R2 object storage (not the cloud DB)
  3. The cloud DB only records the R2 URL
  4. Other devices: IndexedDB cache + direct R2 fetch when viewing

This split exists because a text database isn't great for large binary files — images and PDFs go to dedicated object storage for efficiency.

Desktop extra local storage (🚧 in development)

Once the Electron desktop app ships, it'll have its own app folder:

OS Path
macOS ~/Library/Application Support/Slima/
Windows %APPDATA%\Slima\
Linux ~/.config/Slima/

It contains:

  • Token (OS-encrypted)
  • Local cache
  • Preferences

Deleting this folder = the desktop app resets to fresh-install state. Your cloud data is untouched — just sign in again.

Regions / multi-region

The cloud DB and object storage are deployed across multiple regions. For specific regions and data-residency policy, see the Slima Privacy Policy.

Related

Was this helpful?