Skip to content

About

Plenty Connect: your household's own server for the Plenty apps. Docker, encrypted, no cloud.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Plenty Connect icon

Plenty Connect

Your household's own server.
Free and open source, for Android. Private by design: no account, no ads, no tracking.

Testing version Android 8.0 or newer Licence: GPL-3.0 No account, no ads, no tracking

Run it · What it does · Develop · Guide · Privacy · Security · Website · All Plenty apps

Run Plenty Connect at home, on any NAS, mini PC or old laptop with Docker, and every phone in the house syncs and backs up through it. No account, no cloud, no tracking: everything stays on your server.

Testing. Plenty Connect is in testing (versions 0.x; the badge above shows the newest). It works, but expect rough edges, and back up anything important. Images tagged "(testing)" may not have been tried on a server yet.

What it does

  • Every app: Contacts, call history, texts, calendars, notes, to-do lists, alarms and timers, saved places, cards and passes, voice recordings, recipes and the meal plan, warranties with their receipts and claims, photos you send your family (only until they have them), music finds and requests, and Plenty Files' settings and saved clouds (never your files or passwords).
  • Join once for the whole phone: Scan the QR code in any Plenty app and tick the other Plenty apps on the phone: they all join. An app installed later says Welcome back and joins with a tap. Each app signs every request with its own key.
  • People and devices: Each person with each of their phones and tablets once, the Plenty apps on it, their versions and when each last synced.
  • The household's things: Calendars (with a colour each person can change), notes, to-do lists and family contacts made on the server: every admin can change them, and everyone else gets what the share says.
  • Encrypted: Data is encrypted on the server's disk, and the link between phone and server is encrypted too, even at home.
  • Home and away: Phones try the home address first, then the away address (Cloudflare Tunnel, a reverse proxy or Tailscale).
  • Share in the household: Keep things to yourself, share with everyone (view only or can change), or with picked people. Taking a share away takes it off their phones.
  • The Plenty Connect app: Join once and every Plenty app on the phone joins with it. Admins run the whole server from their phone, and sign in to the web page by scanning its code.
  • Everyone their own passphrase: Each person has their own. Admins (you pick them) open the web page; everyone else just syncs.
  • Two-step sign-in: Signing in to the web page can also need a yes in the Plenty Connect app: tap the number the page shows. Off until you turn it on; then away from home, and at home too if you like. Locked out? A one-time recovery code from the server.
  • Home Assistant: Household to-do lists in step with Home Assistant, both ways, and Home Assistant's calendars in Plenty Calendar (two-way where Home Assistant can change them).
  • Your data, your way: Download contacts (.vcf), calls and lists (.csv), calendars (.ics) and notes (.md), everyone's or one person's.
  • Nightly backups: A copy of everything every night, kept as long as you choose, and put back from the web page or the app in a tap.
  • Leaving and removing: Leave keeping your data, or have it deleted after 30 days. People an admin takes off wait in a recycle bin for 30 days, their data kept or deleted.
  • Updates in a tap: Update the server from its web page or the app, with the small updater container beside it.
  • Careful by default: Downloads protected by a password, phone sign-in to the web page only at home unless you allow it, each person their own space, and calendar link addresses only shown to admins.

Run it

Plenty Connect runs in Docker. Add this to Dockge, Portainer or a compose.yaml and start it:

services:
  plenty-connect:
    image: ghcr.io/plentysoftware/plenty-connect:latest
    restart: unless-stopped
    ports:
      - "8787:8787"
    environment:
      TZ: Australia/Brisbane
    volumes:
      - ./data:/data

Open http://<your server>:8787. The first time, it asks for the setup code from the server's log (in Dockge: open the container's log and look for "setup code"; or set PLENTY_SETUP_CODE), so nobody else can claim your server first. Then set up your household and your own passphrase (you're the first admin).

On each phone, install the Plenty Connect app (from the Plenty F-Droid repo or the releases marked "Android app"), scan the QR code from the web page's Add a phone, then tap Join all my apps: every Plenty app on the phone joins as you, no more scanning. You can still join one app on its own from its Settings → Plenty Connect.

Admins can make other people admins and give them a passphrase, and anyone who's an admin can sign in to the web page with their name and passphrase, or by scanning its code with the Plenty Connect app.

Every option is in docs/configuration.md, with a hardened compose file; every route is in docs/api.md.

Behind Cloudflare Tunnel, add PLENTY_TRUST_PROXY: "cloudflare" (behind your own reverse proxy, "1"), so the server sees each visitor's real address for its wrong-passphrase limits and for telling home from away.

Keep data/keys.json safe: without it the data can't be read. To keep the key off the data disk, put it in a file and set PLENTY_DATA_KEY_FILE.

Updating from the web page

To update with a button (on the web page's Settings, or in the Plenty Connect app), add the small updater container to the same stack. It's Watchtower, and it only updates containers labelled for it. Plenty Connect asks it to pull the new image and restart; Plenty Connect itself never touches Docker. Both read the same long random token from the stack's .env file (in Dockge, the .env box under the compose file), so it never sits in the compose file itself: make one with echo "PLENTY_UPDATE_TOKEN=$(openssl rand -hex 24)" and paste the line it prints there.

services:
  plenty-connect:
    image: ghcr.io/plentysoftware/plenty-connect:latest
    container_name: plenty-connect
    restart: unless-stopped
    ports:
      - "8787:8787"
    environment:
      TZ: Australia/Brisbane
      PLENTY_REQUIRE_ENCRYPTION: "1"
      PLENTY_UPDATE_TOKEN: ${PLENTY_UPDATE_TOKEN}
    labels:
      com.centurylinklabs.watchtower.enable: "true"
    volumes:
      - ./data:/data
    read_only: true
    tmpfs:
      - /tmp
    security_opt:
      - no-new-privileges:true
    cap_drop:
      - ALL

  plenty-updater:
    image: nickfedor/watchtower:latest
    container_name: plenty-updater
    restart: unless-stopped
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      WATCHTOWER_HTTP_API_ENDPOINTS: update
      WATCHTOWER_HTTP_API_TOKEN: ${PLENTY_UPDATE_TOKEN}
      WATCHTOWER_LABEL_ENABLE: "true"
      WATCHTOWER_CLEANUP: "true"
    labels:
      com.centurylinklabs.watchtower.enable: "false"

Without it, update the usual way: pull the newest image and restart (in Dockge: Update).

Adding it to a server you already have running (in Dockge: open the stack, Edit):

  1. Make a token: run echo "PLENTY_UPDATE_TOKEN=$(openssl rand -hex 24)" and paste the line it prints into the stack's .env (in Dockge, the .env box).
  2. Under plenty-connect: › environment:, add PLENTY_UPDATE_TOKEN: ${PLENTY_UPDATE_TOKEN}, lined up with the other environment lines.
  3. Under plenty-connect:, at the same indent as environment:, add the labels: lines shown above.
  4. Add the whole plenty-updater: block inside services:, 2 spaces in, lined up with plenty-connect:. It must go above anything else at the top level (like networks:).
  5. Keep everything else you already had (your ports, data folder, user:, other settings) as it was.
  6. Save, then Update (or docker compose up -d from the stack's folder). The web page's Settings › Update card should then say it's up to date. From then on, update from that card or the Connect app.

Indentation matters in compose files: each level is 2 more spaces, and tabs aren't allowed. If Dockge won't save, the error usually points to a line that's indented one step too far or not far enough.

Calendar links

Anyone can subscribe to one of your calendars (view only) with a link from Plenty Calendar: the calendar's Share button, then Link for any calendar app. For the link to work away from home, set the server's Away from home address (Settings on the web page) to one people outside your house can reach, like a domain behind Cloudflare Tunnel.

Every app works fully without a server; Plenty Connect is optional.

Help

The full Plenty Connect guide covers everything step by step: setting it up, people and admins, passphrases, phones, sharing, backups, updates, Home Assistant, getting to it away from home and fixing problems. The usual questions:

What do I need to run it?

Any computer that can run Docker and stays on: a NAS (TrueNAS, Unraid, Synology, QNAP), a mini PC, a Raspberry Pi 4 or 5, or an old laptop. It's light: a little memory, and disk space for your things and backups.

How do I set it up the first time?

Start the container, open http://<server>:8787, and enter the setup code from the container's log. Then name your household and set your own passphrase: you're the first admin.

How do I add people and phones?

On the web page (or in the Plenty Connect app as an admin): Users › Add a person, then Add a device for them. The new phone scans the QR code in the Plenty Connect app (or any Plenty app) within 15 minutes.

How do I make someone an admin?

Open them under Users and turn on Admin. Admins can open the web page and change everything; someone always has to be an admin. Give them a passphrase there too, or they can sign in by scanning the web page's code with the Plenty Connect app.

Someone forgot their passphrase, or nobody can sign in

Any admin can set a new one: Users › the person › Passphrase (it signs them out of every browser). An admin who forgot their own can set a new one in the Plenty Connect app (Run the server › Your passphrase): the phone proves it's them. Nobody can sign in? On the server, run docker exec plenty-connect touch /data/reset-passphrase. Within a minute the log shows a one-time RECOVERY CODE: on the sign-in page, tap Forgot your passphrase? and use it to set a new passphrase (and turn two-step sign-in off, if you've lost your phone).

What is two-step sign-in?

A yes on your phone when you sign in to the web page, like GitHub: the page shows a number, and you tap the same one in the Plenty Connect app. Turn it on under Settings › Sign-in and security. It's off until you do, and then asks away from home (https) but not at home (http) unless you tick that too. Only the web page uses it: phones keep syncing as they are.

I lost a phone

On the web page, Users › the person › that phone › Remove from the server. Every Plenty app on it stops syncing straight away. What it already synced stays on the server, ready for the new phone.

How do I back it up, and put a backup back?

It backs itself up every night, kept as long as you choose (Backups). Tap a backup to put the server back to that night (changes since are set aside, not deleted). Also keep data/keys.json safe, somewhere off the server: without it, the data and backups can't be read.

How do I update it?

With the updater container added (see the README), tap Update on the web page's Settings or in the Plenty Connect app. Without it: pull the newest image and restart (Dockge: Update).

How do phones reach it away from home?

Give it an away address (Settings): a Cloudflare Tunnel, your own reverse proxy with a certificate, or Tailscale. Phones try home first, then away. Behind Cloudflare, set PLENTY_TRUST_PROXY: "cloudflare".

How do I connect Home Assistant?

In Home Assistant, make a long-lived access token (your profile › Security). On the web page or Connect app, Home Assistant › Connect Home Assistant, with its address and the token. Then choose who gets its to-do lists and calendars.

Still stuck? Open an issue or email support@plentysoftware.org.

Develop

Node 22.13 or newer, no npm packages. npm test runs the tests; docs/protocol.md is what the apps and the server agree on, including the encrypted link. Raising the version in package.json on main makes a release and a new image.

The phone app is in android/ and builds like the other Plenty apps (cd android && ./gradlew :app:assembleFossDebug, with the shared code in the plenty-apps submodule). Raising VERSION_NAME in android/gradle.properties makes a release tagged android-v<version>, which the F-Droid repo picks up.

Credits

Parts of the sync, address and file handling come from Restock server.

Part of Plenty Apps

Plenty Apps

A family of free, open-source, local-first Android apps. Private by design, open for anyone to check, and built to keep working for years without anyone's cloud.

Plenty Talk Plenty Phone Plenty Messages Plenty Contacts Plenty Calendar Plenty Notes Plenty To Do Plenty Clock Plenty Calculator Plenty Voice Recorder Plenty Wallet Plenty Music Plenty Recipes Plenty Files Plenty Weather Plenty Warranty Plenty Gallery Plenty Mail Plenty Maps

See all the apps · The shared code

Licence

GPL-3.0. See LICENSE.

About

Plenty Connect: your household's own server for the Plenty apps. Docker, encrypted, no cloud.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages