Documentation
Everything you need to know to get the most out of PlanSurf.
1. How it works
PlanSurf is an offline-first suite of tools: your data is stored first in a local database, right in your browser. The app therefore works without an internet connection, and without an account.
Local storage
Every document (note, kanban, spreadsheet…) is saved on your device. The free plan includes unlimited local storage. Be careful: if you clear browser data or switch device without syncing, your local data does not follow you. Use the backup feature in the dashboard.
Encryption
Your data is encrypted (AES-256) in your browser before anything is sent. The server only stores encrypted data: nobody but you can read it, not even us.
Synchronization (Sync subscription)
With the Sync subscription, your encrypted data is automatically synchronized across all your devices whenever a connection is available. Offline, you keep working normally: changes are sent as soon as the network returns.
Recovery key
When your vault is created, you receive a 24-word phrase. It lets you regain access to your data if you forget your password. Keep it safe, outside the app: without it, your encrypted data cannot be recovered.
2. Dashboard button icons
The "Dashboard" button in the navigation bar always looks the same, but the icon to the left of its label shows the state of your account and of synchronization. On desktop, hover the button for more details.
Not connected
You are not signed in. Your data stays on this device only.
Local only
You are signed in but have no Sync subscription: data is stored locally and not synchronized.
Synced
All your data is up to date on the server and your devices.
Syncing
The icon spins: changes are being exchanged with the server.
Offline
No connection to the server. You can keep working; synchronization resumes automatically.
Sync error
Something went wrong. Hover the button (or open the dashboard) to read the error message, then force a sync from the synchronization settings.
3. Installing the app
PlanSurf is a progressive web app (PWA): you can install it like a regular app, with its own icon and window. Installing also makes it easier to get back to your data, even if you change your default browser.
Using the install button
When your browser allows it, a round orange button appears in the navigation bar (next to the menu on mobile). Tap it, then tap "Install".
Manually
- Chrome / Edge (desktop): click the install icon at the right of the address bar, or ⋮ menu → "Install PlanSurf".
- Android (Chrome): ⋮ menu → "Install app" or "Add to Home screen".
- iPhone / iPad (Safari): Share button → "Add to Home Screen".
- Firefox (desktop): installation is not offered; the app remains usable in a tab.
4. Apps and the calendar
Three main entries in the menu: "Documents", which gathers all your tools in a folder tree, "Calendar" and "Files".
Documents
Use the "Create" button to add a folder or a document. Documents are freely organized in folders, like a file explorer. Available types:
- My space: a customizable home page with widgets (links, shortcuts to your documents, notes, note editor, mini calendar, upcoming appointments) and a background of your choice. On a computer, move and resize the widgets on the grid; on a phone, they are shown in a single column.
- Note: Markdown editor with toolbar and preview, images and task lists.
- Spreadsheet: a sheet with formulas and built-in function help.
- Kanban: boards with columns and cards, customizable labels, resources and a timeline view.
- Whiteboard: a canvas to draw, place shapes and sketch diagrams.
- Expense sharing: track who paid what among several participants, see balances and settlement suggestions, and export the result.
- Accounting book: record income and expenses by category, with summaries, statistics and CSV import.
- Meal planner: weekly meal planning with a recipe book and a recipe catalog.
Calendar & tasks
- Views: week, month or year, in horizontal or vertical layout.
- Tasks: add tasks to each day and tick them off when done.
- Labels: create your own labels (name, color, icon) to sort your tasks.
- Time tracking: start the timer (Pomodoro) from a task's play button; the hours summary can be filtered by period and label.
- External calendars: in the settings, add a CalDAV calendar or an ICS URL, or import an .ics file exported from Google Calendar, Outlook, Apple Calendar…
Files (WebDAV)
- Servers: in the dashboard, "WebDAV servers and S3 buckets" card, add your server (Nextcloud, NAS, VPS…). One server is allowed for now.
- Browser: servers are listed on the left; on the right, browse your folders in icon or list view, with a path bar at the bottom.
- Upload / Export: toolbar buttons, or drag and drop files into the window to upload them. Export gets your files back in clear (see below).
- Organize: new folder, rename (button or F2), delete (button or Delete key); move files and folders by dragging them onto a folder or onto the path bar.
- Preview: select a file and press Space (or the eye button) to view an image, video, audio, PDF or text file; arrow keys go to the next file.
- Views: icons, list (sortable columns) or columns, like macOS Finder.
Getting your files back in clear (export)
Your files are encrypted in storage. To get them back readable, select a file or a folder (or several items) and click "Export". PlanSurf decrypts them and prepares them in the "Exports" window; when an export is "Ready", click "Save to my disk".
- A file is saved as it is. A folder, or several items, comes as a single ZIP file that keeps your folders and names.
- Decryption happens on your device: PlanSurf servers never see your files in clear.
- Preparing uses space on your device, in the browser's storage: at least the size of the export is needed. PlanSurf checks the room before starting. The temporary copy is deleted after you save, or after a few days.
- Keep the tab open while the export is prepared (on mobile, do not switch apps). A ready export stays available if you reload the page; an interrupted export has to be started again.
- On Chrome and Edge you choose where to save; on Firefox and Safari the file goes to your downloads folder.
- If some files of a folder cannot be read, the others are exported and the missing ones are listed in the "Exports" window.
- When you sign out, every pending export on the device is erased.
Media (music & games)
- Music: in "Folders", choose the directories of your WebDAV server that hold your music (mp3, flac, ogg, m4a, wav). Like the Files app, music is decrypted client-side: only files and folders encrypted by PlanSurf are shown, so upload your music with the Files app. Each track is downloaded then played, the next one is prefetched; shuffle, repeat and volume are available.
- Chess: play against the computer (Stockfish engine) at five levels, from beginner to expert, as White or Black.
- Sudoku: four difficulty levels, pencil notes, conflict detection, hints and a timer. Keyboard: digits, arrows, N for notes.
- Resume: the game in progress and the playing track (with its position) are saved and synchronized across your devices.
5. Connect your own storage
The Files app (and music) can use your own WebDAV server or S3 bucket. Your files and their names are always encrypted in your browser before they are sent. When you add a storage (dashboard), you choose how the browser reaches it:
- Direct connection (free): the browser talks to your server itself, nothing goes through PlanSurf. The server must allow the PlanSurf origin (https://plansurf.app): this is CORS, set up once.
- Through PlanSurf (Sync subscription): requests go through the PlanSurf servers, which relay them. Useful for services that do not allow CORS. The data stays encrypted: PlanSurf cannot read it.
- The "Test connection" button tells you whether the chosen mode works. A CORS refusal is shown as such: check the CORS rule, or switch to "Through PlanSurf".
European S3 providers
These services are offered in the "Provider" list of the form, which fills in the address and region. The name links to the provider's CORS documentation.
| Provider | Country | Address (endpoint) | CORS | Note |
|---|---|---|---|---|
| OVHcloud Object Storage | FR | https://s3.gra.io.cloud.ovh.net (gra, sbg, rbx, de, uk, waw, eu-west-par) | Yes | S3 offers (Standard, High Performance); the older Swift offer has no S3 CORS. |
| Scaleway Object Storage | FR | https://s3.fr-par.scw.cloud (fr-par, nl-ams, pl-waw) | Yes | CORS rules can also be edited in the console (Bucket settings tab). |
| Hetzner Object Storage | DE | https://fsn1.your-objectstorage.com (fsn1, nbg1, hel1) | Yes | |
| IONOS Object Storage | DE | https://s3.eu-central-3.ionoscloud.com (eu-central-3, eu-central-4, eu-south-2, eu-central-1, eu-central-2) | Yes | The region depends on the bucket type (user or contract owned): copy it from the console. |
| Exoscale Simple Object Storage | CH | https://sos-ch-gva-2.exo.io (ch-gva-2, ch-dk-2, de-fra-1, de-muc-1, at-vie-1, at-vie-2, bg-sof-1) | Yes | CORS can be edited in the portal (CORS tab of the bucket) or with exo storage cors. |
| Clever Cloud Cellar | FR | https://cellar-c2.services.clever-cloud.com | Yes | CORS as XML, applied with s3cmd setcors. |
| 3DS OUTSCALE Object Storage (OOS) | FR | https://oos.eu-west-2.outscale.com (eu-west-2, cloudgouv-eu-west-1) | Yes | |
| Infomaniak Object Storage | CH | https://s3.gva1.infomaniak.cloud (gva1) | Yes | CORS checked by PlanSurf (rule below, aws s3api put-bucket-cors). Bucket: its name, or PROJECT_ID:name. |
| STACKIT Object Storage | DE | https://object.storage.eu01.onstackit.cloud (eu01) | To check | S3 compatible; CORS not documented yet: run the connection test. |
| Garage (auto-hébergé / self-hosted) | FR | — | Yes | Free software (Deuxfleurs): per-bucket CORS with aws s3api put-bucket-cors. |
The CORS rule of an S3 bucket
Apply this rule to the bucket, from the provider's console or the command line. It lets PlanSurf read, write and delete, and exposes the ETag header, needed to upload big files in parts.
{
"CORSRules": [
{
"AllowedOrigins": [
"https://plansurf.app"
],
"AllowedMethods": [
"GET",
"PUT",
"POST",
"DELETE",
"HEAD"
],
"AllowedHeaders": [
"*"
],
"ExposeHeaders": [
"ETag",
"Content-Length",
"Content-Range"
],
"MaxAgeSeconds": 3600
}
]
}<CORSConfiguration>
<CORSRule>
<AllowedOrigin>https://plansurf.app</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>DELETE</AllowedMethod>
<AllowedMethod>HEAD</AllowedMethod>
<AllowedHeader>*</AllowedHeader>
<ExposeHeader>ETag</ExposeHeader>
<ExposeHeader>Content-Length</ExposeHeader>
<ExposeHeader>Content-Range</ExposeHeader>
<MaxAgeSeconds>3600</MaxAgeSeconds>
</CORSRule>
</CORSConfiguration># AWS CLI (any S3-compatible service)
aws s3api put-bucket-cors --endpoint-url https://S3_ENDPOINT \
--bucket BUCKET --cors-configuration file://cors.json
# s3cmd (XML rule)
s3cmd setcors cors.xml s3://BUCKET- Use a bucket (or a folder, "Bucket folder" field) dedicated to PlanSurf, and a key that only has rights on that bucket.
- Add an "AbortIncompleteMultipartUpload" lifecycle rule (2 days for example): an interrupted upload then leaves no billed parts behind.
- Do not make the bucket public: the direct connection signs every request with your key.
Story boxes from your bucket
- A story box can update itself from your S3 bucket with a direct connection: in the Open Story Teller editor, devices tab, choose the bucket as the box's server.
- PlanSurf writes the stories, encrypted for the box, in a randomly named area (d/…) and adds to the bucket policy a line that makes that area alone readable without credentials: nobody can list the bucket or read your other files. The line is taken out when you revoke the box.
- If the key may not change the bucket policy, PlanSurf shows the line to add yourself, then checks that the box can read its area.
- The address the box reads must not exceed 127 characters: keep the bucket folder short, or use a custom domain. Infomaniak: enter the bucket as PROJECT_ID:name, or reading without credentials fails.
WebDAV servers
WebDAV does not require CORS: it depends on the server. Solutions you administer can allow it; most hosted services cannot, so use "Through PlanSurf" or your own CORS proxy (tutorial below).
| Solution | Country | Typical address | CORS | Note |
|---|---|---|---|---|
| Nextcloud (auto-hébergé / self-hosted) | DE | https://cloud.example.eu/remote.php/dav/files/USER | To set up | Install the WebAppPassword app and add the PlanSurf origin; use an app password. |
| VPS : rclone serve webdav + Caddy | EU | https://dav.example.eu | To set up | See the tutorial below: Caddy adds HTTPS and the CORS headers. |
| SFTPGo (auto-hébergé / self-hosted) | IT | https://files.example.eu | To set up | "cors" section of the WebDAV server in the configuration (to enable). |
| Infomaniak kDrive | CH | https://KDRIVE_ID.connect.kdrive.infomaniak.com | No | No CORS: "Through PlanSurf" mode or your own CORS proxy (tutorial below). |
| Hetzner Storage Box | DE | https://USER.your-storagebox.de | No | |
| Hetzner Storage Share (Nextcloud) | DE | https://NAME.your-storageshare.de/remote.php/dav/files/USER | To check | Managed Nextcloud: direct only if the WebAppPassword app can be installed. |
| Murena Workspace | FR | https://murena.io/remote.php/dav/files/USER | No | |
| Leviia (Nextcloud) | FR | https://…/remote.php/dav/files/USER | No |
Nextcloud with a direct connection
- Install the WebAppPassword app (Nextcloud app store, or the command below).
- In Administration settings > WebAppPassword, add https://plansurf.app to the allowed origins.
- Create an app password (Personal settings > Security) and use it in PlanSurf with the address https://your-nextcloud/remote.php/dav/files/YOUR_USERNAME.
# Nextcloud: install the app, then allow the PlanSurf origin
sudo -u www-data php occ app:install webapppassword
# Administration settings > WebAppPassword > Allowed origins:
# https://plansurf.app
# Then, in PlanSurf, use an app password (Personal settings > Security).Other servers: add the headers
In front of any WebDAV server, a web server can add the CORS headers. Key point: the browser's preflight request (OPTIONS) carries no credentials and must get a 204 answer without authentication.
dav.example.eu {
header {
Access-Control-Allow-Origin "https://plansurf.app"
Access-Control-Allow-Methods "GET, PUT, DELETE, PROPFIND, MKCOL, MOVE, COPY, OPTIONS"
Access-Control-Allow-Headers "Authorization, Content-Type, Depth, Destination, Overwrite"
Access-Control-Expose-Headers "ETag, Content-Length, Content-Range"
Access-Control-Max-Age "86400"
Vary Origin
}
# The browser's preflight carries no credentials: answer it here
@preflight method OPTIONS
respond @preflight 204
reverse_proxy 127.0.0.1:8080
}location / {
add_header Access-Control-Allow-Origin "https://plansurf.app" always;
add_header Access-Control-Allow-Methods "GET, PUT, DELETE, PROPFIND, MKCOL, MOVE, COPY, OPTIONS" always;
add_header Access-Control-Allow-Headers "Authorization, Content-Type, Depth, Destination, Overwrite" always;
add_header Access-Control-Expose-Headers "ETag, Content-Length, Content-Range" always;
add_header Vary Origin always;
# The preflight carries no credentials: answer it before any authentication
if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin "https://plansurf.app";
add_header Access-Control-Allow-Methods "GET, PUT, DELETE, PROPFIND, MKCOL, MOVE, COPY, OPTIONS";
add_header Access-Control-Allow-Headers "Authorization, Content-Type, Depth, Destination, Overwrite";
add_header Access-Control-Max-Age 86400;
return 204;
}
proxy_pass http://127.0.0.1:8080;
}Header always set Access-Control-Allow-Origin "https://plansurf.app"
Header always set Access-Control-Allow-Methods "GET, PUT, DELETE, PROPFIND, MKCOL, MOVE, COPY, OPTIONS"
Header always set Access-Control-Allow-Headers "Authorization, Content-Type, Depth, Destination, Overwrite"
Header always set Access-Control-Expose-Headers "ETag, Content-Length, Content-Range"
Header always merge Vary Origin
# The preflight carries no credentials: answer it before authentication
RewriteEngine On
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^ - [R=204,L]Tutorial: your own WebDAV server on a VPS
For a few euros a month, a small virtual server gives you your own WebDAV with a direct connection. The setup: rclone serves a folder over WebDAV on the server itself, and Caddy, in front, gets the HTTPS certificate automatically and adds the CORS headers.
European VPS hosts: Hetzner (Germany, Finland), OVHcloud (France), Scaleway (France), Infomaniak (Switzerland), IONOS (Germany), Exoscale (Switzerland). A VPS with 2 GB of memory is enough; pick the disk for your files.
- Create a Debian or Ubuntu VPS and log in with SSH.
- Point a domain name (DNS A record, and AAAA with IPv6) at the VPS address, for example dav.example.eu.
- Install rclone, Caddy and htpasswd, create the system user and the WebDAV password (commands below).
- Create the rclone service, then /etc/caddy/Caddyfile, replacing dav.example.eu with your domain.
- In PlanSurf, add a WebDAV server: address https://dav.example.eu, your user name and password, "Direct" connection. Test it.
# Debian / Ubuntu, as root
apt update && apt install -y rclone caddy apache2-utils
useradd --system --home /srv/dav --create-home dav
mkdir -p /etc/rclone
htpasswd -B -c /etc/rclone/htpasswd alice # your WebDAV user
# write the service (below), then:
systemctl daemon-reload && systemctl enable --now rclone-webdav
# write /etc/caddy/Caddyfile (below), then:
systemctl reload caddy
# firewall: only SSH, 80 and 443
ufw allow OpenSSH && ufw allow 80,443/tcp && ufw enable# /etc/systemd/system/rclone-webdav.service
[Unit]
Description=WebDAV (rclone)
After=network-online.target
[Service]
User=dav
ExecStart=/usr/bin/rclone serve webdav /srv/dav --addr 127.0.0.1:8080 \
--htpasswd /etc/rclone/htpasswd
Restart=on-failure
[Install]
WantedBy=multi-user.targetdav.example.eu {
header {
Access-Control-Allow-Origin "https://plansurf.app"
Access-Control-Allow-Methods "GET, PUT, DELETE, PROPFIND, MKCOL, MOVE, COPY, OPTIONS"
Access-Control-Allow-Headers "Authorization, Content-Type, Depth, Destination, Overwrite"
Access-Control-Expose-Headers "ETag, Content-Length, Content-Range"
Access-Control-Max-Age "86400"
Vary Origin
}
# The browser's preflight carries no credentials: answer it here
@preflight method OPTIONS
respond @preflight 204
reverse_proxy 127.0.0.1:8080
}- rclone only listens on 127.0.0.1: only Caddy can be reached from outside, over HTTPS.
- htpasswd -B hashes the password with bcrypt; pick a long password, it guards the access (the files themselves are encrypted by PlanSurf).
- Turn on automatic updates (unattended-upgrades) and the provider's snapshots or backups.
- Several users: add them to the htpasswd file (without -c).
Tutorial: a serverless CORS proxy for a service without CORS
Some WebDAV services (Infomaniak kDrive, Hetzner Storage Box…) do not allow CORS. Without the Sync subscription, you can put your own small proxy in front of them, in a serverless function or a container: it adds the CORS headers and relays the requests to that one service. PlanSurf then connects to the proxy directly.
| Service | Country | Type | Note |
|---|---|---|---|
| Bunny Edge Scripting | SI | Edge scripting | Standard JavaScript (fetch) run close to the visitors; 30 s of CPU and 128 MB per request. |
| Scaleway Serverless Containers | FR | Containers | Container (Bun image below); no documented request size limit, requests up to 1 h. |
| Scaleway Serverless Functions | FR | Functions | Requests limited to 6 MiB: too small for files, prefer Serverless Containers. |
| Clever Cloud | FR | PaaS | Bun or Docker application, billed by the minute. |
| Hetzner, OVHcloud, Scaleway, Infomaniak… | EU | VPS | If you already have a VPS: Caddy alone is enough (configuration below). |
- Copy proxy.js below, then the entry point of your platform.
- Set the UPSTREAM environment variable to the WebDAV address of the service (for kDrive: https://KDRIVE_ID.connect.kdrive.infomaniak.com).
- Deploy, then note the public address of the proxy (for example https://my-proxy.b-cdn.net).
- In PlanSurf, add a WebDAV server with the proxy address, your credentials for the service (an app password if two-factor authentication is on), "Direct" connection.
// CORS proxy for one WebDAV server. Set UPSTREAM (e.g. https://KDRIVE_ID.connect.kdrive.infomaniak.com)
// and ALLOWED_ORIGIN in the environment of the function.
const UPSTREAM = (globalThis.process?.env ?? globalThis.Deno?.env?.toObject() ?? {}).UPSTREAM;
const ALLOWED_ORIGIN = 'https://plansurf.app';
const cors = {
'Access-Control-Allow-Origin': ALLOWED_ORIGIN,
'Access-Control-Allow-Methods': 'GET, PUT, DELETE, PROPFIND, MKCOL, MOVE, COPY, OPTIONS',
'Access-Control-Allow-Headers': 'Authorization, Content-Type, Depth, Destination, Overwrite',
'Access-Control-Expose-Headers': 'ETag, Content-Length, Content-Range',
'Access-Control-Max-Age': '86400',
Vary: 'Origin',
};
export async function handle(request) {
// Only PlanSurf may use this proxy
if (request.headers.get('Origin') !== ALLOWED_ORIGIN) return new Response('Forbidden', { status: 403 });
if (request.method === 'OPTIONS') return new Response(null, { status: 204, headers: cors });
const url = new URL(request.url);
const target = new URL(url.pathname + url.search, UPSTREAM);
const headers = new Headers();
for (const name of ['authorization', 'content-type', 'content-length', 'depth', 'overwrite', 'range']) {
const value = request.headers.get(name);
if (value) headers.set(name, value);
}
// Destination is a full URL: point it at the upstream server
const destination = request.headers.get('destination');
if (destination) headers.set('destination', new URL(new URL(destination).pathname, UPSTREAM).toString());
const answer = await fetch(target, {
method: request.method,
headers,
body: ['GET', 'HEAD'].includes(request.method) ? undefined : request.body,
duplex: 'half',
redirect: 'manual',
});
const out = new Headers(answer.headers);
for (const [k, v] of Object.entries(cors)) out.set(k, v);
out.delete('set-cookie');
return new Response(answer.body, { status: answer.status, headers: out });
}import * as BunnySDK from 'https://esm.sh/@bunny.net/edgescript-sdk@0.12.0';
import { handle } from './proxy.js';
BunnySDK.net.http.serve(handle);// server.js, run with: bun server.js (Dockerfile: FROM oven/bun, CMD ["bun", "server.js"])
import { handle } from './proxy.js';
Bun.serve({ port: Number(process.env.PORT || 8080), maxRequestBodySize: 1024 ** 3, fetch: handle });dav.example.eu {
header {
Access-Control-Allow-Origin "https://plansurf.app"
Access-Control-Allow-Methods "GET, PUT, DELETE, PROPFIND, MKCOL, MOVE, COPY, OPTIONS"
Access-Control-Allow-Headers "Authorization, Content-Type, Depth, Destination, Overwrite"
Access-Control-Expose-Headers "ETag, Content-Length, Content-Range"
Access-Control-Max-Age "86400"
Vary Origin
-Set-Cookie
}
@preflight method OPTIONS
respond @preflight 204
# Only PlanSurf may use this proxy
@foreign not header Origin "https://plansurf.app"
respond @foreign 403
reverse_proxy https://KDRIVE_ID.connect.kdrive.infomaniak.com {
header_up Host {upstream_hostport}
# MOVE / COPY name the destination with this proxy's address: point it at the server
header_up Destination https://dav.example.eu https://KDRIVE_ID.connect.kdrive.infomaniak.com
}
}Unsupported services
| Service | Country | Why |
|---|---|---|
| Twake Workplace / Cozy | FR | Files accept CORS, but OAuth registration and the token exchange refuse it to a foreign origin, with a mandatory client secret: impossible without a server. |
| pCloud | CH | API by file id (no path a box could read), CORS not open. |
| Filen, Internxt | DE, ES | Proprietary end-to-end encryption: neither PlanSurf nor a box can read the files without their software. |
| Proton Drive, Tresorit, Jottacloud | CH, NO | No stable public API, no WebDAV. |
Tips
- Always https://: a browser refuses to call an http:// address from PlanSurf.
- One origin per rule is enough: https://plansurf.app. For local development, also add http://localhost:5173.
- MaxAgeSeconds / Access-Control-Max-Age caches the preflight answer: fewer requests, faster browsing.
- Exoscale: a CORS rule cannot be edited, reset the configuration (exo storage cors reset) and apply it again.
- OVHcloud: use an S3 Object Storage offer (Standard or High Performance); the older Swift offer does not handle the S3 CORS rule.
Troubleshooting
- "refuses the browser's requests (CORS)": the rule is missing, does not contain exactly https://plansurf.app, or the server refuses the OPTIONS request (401).
- "The bucket must expose the ETag header": add ETag to ExposeHeaders; it is used by files uploaded in parts.
- Secret key or region refused: the direct connection signs requests with your device's clock; a clock far off is corrected automatically once.
- The browser console (F12, Console or Network tab) names the missing CORS header.