Skip to content

About

A private voice journal you host yourself. Hold a key, say how it's going; listen back to your days like a tape.

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

App icon

Simple Voice Diary

A private voice journal you host yourself.
Hold a key, say how it's going; listen back to your days like a tape. No AI, no cloud.


Download latest   Server: Docker   Android   iOS   macOS 15+   License MIT

The Android app: the timeline and the deck   The desktop app on a Mac with an entry open in the inspector, beside the list

💭 Why I made it

I kept a diary in Obsidian for more than 1,000 days. Along the way I noticed that I never went back to read it, the entries just sat there. Over time it also got harder to sit down and write something every day as it felt a bit meaningless. I started missing days, then writing them afterwards, until I stopped altogether. I'm still glad I have it and would never delete it, but I wanted a better way to keep a diary.

That's why I made Simple Voice Diary. I can record a few quick voice notes throughout the day, give them a title and tags, just like in Obsidian, but without the effort of typing everything out. Then, whenever have my headphones with me I can listen back to my entries while doing something else. Spoken voice also keeps how you felt in a way writing can't, and other people can record a note for you, which makes it even more meaningful.


✨ Features

🎙️ Hold to record, let go to save. Slide to lock it hands-free, to the trash to throw it away, to the pencil to name it
📼 Play your days back like a tape, entry after entry, with a cassette deck's click between them; 1× to 2×, skipping 15 s
🗓️ One timeline, newest first, a heading for each day; names, notes, tags and colours, all optional — the app never fills them in
🛟 Nothing is lost: a recording cut off by a crash or a call is saved up to its last second and recovered on the next launch
📴 Works offline, syncs when the server is reachable, and keeps the last 60 days on each device
👥 Several people, one server: each diary is private from the other users
🧩 Android widget that starts recording at once

🎚️ Menu bar panel

On the Mac, recording is one click away in the menu bar, without opening the window. With a global shortcut of your choosing it starts from anywhere: hold it to record until you let go, or press it once to record hands-free.

The menu-bar panel: a display and the record key with discard and name beside it

🚀 Self-hosting

One Docker image for amd64 and arm64. Everything is kept in one folder, /data, which must be on a local disk (not NFS or SMB).

services:
  simple-voice-diary:
    image: ghcr.io/marecekw/simple-voice-diary:latest # or pin a version, e.g. 0.1.0
    restart: unless-stopped
    # Only this machine: the proxy in front reaches it here. Docker's published ports go
    # around a host firewall such as ufw.
    ports: ["127.0.0.1:8080:8080"]
    environment:
      TRUST_PROXY: "1" # one reverse proxy in front
    volumes: ["./data:/data"]
    logging:
      driver: json-file
      options: { max-size: "10m", max-file: "5" }

Put HTTPS in front of it (a reverse proxy, Tailscale, …) and allow 200 MB request bodies that take a while: a long recording over a slow link can take half an hour to upload. Traefik cuts any request after 60 seconds by default; raise respondingTimeouts.readTimeout on its entrypoint (e.g. to 1h). Then open /healthz (it answers {"status":"ok", …}) and create the first account right away in one of the apps: until then anyone who reaches the server can, and the first account is the admin.

Images are tagged latest, each version (0.1.0) and edge (the newest build of main, for testing). A new version may migrate the database; the server snapshots it first.

Settings

Variable Default What it does
TRUST_PROXY 0 How many proxies stand in front: 1 behind one (Traefik, tailscale serve), 2 with Cloudflare in front of that. Never true: anyone could then pretend to be any address
PORT 8080 The port inside the container
DATA_DIR /data Where the database, audio and backups are kept
MAX_UPLOAD_MB 200 The largest recording accepted in one upload
TRASH_RETENTION_DAYS 30 How long deleted entries can be restored
LOG_LEVEL log error, warn, log (info), debug or verbose (trace)

A recording can be at most 8 hours long. The apps stop and save a recording just under the upload limit or five minutes before 8 hours, whichever comes first (at the default 200 MB, the size comes first, after about 6½ hours).

Logs

The server writes one JSON line per event to standard output: every API request (method, path without its query, status, time taken, client address, user and device ids, request id, the API's error code) and what happened (sign-ins and failed sign-ins, uploads and conversions, edits, deletes, admin changes, jobs, backups). It never logs what a diary says: no titles, notes, tags, names, passwords or tokens. Read them with docker logs <container>, or prettier with docker logs <container> | npx pino-pretty; Loki or any other collector reads them as they are. Set Docker's log rotation as in the example above, or the log grows for ever.

Users, passwords and backups

  • More users: the admin adds them in the app (Server and users → New user) and passes on a one-time password.
  • Forgotten password: docker exec <container> diary reset-password <username>.
  • Backups: the database is snapshotted nightly into /data/backups. Back up the whole /data folder; the copies on your devices are not backups.
  • After restoring a backup: docker exec <container> diary reset-sync-epoch, and the apps sync from scratch.

📦 Installing the apps

Android

  1. Download SimpleVoiceDiary.apk from the latest release on the phone and install it.
  2. Allow the microphone and notifications, and enter your server's address.
  3. On Samsung phones, set battery use to Unrestricted, or syncing waits until you open the app.

The APK is signed with Expo's development key for now: install it from this repository only.

iPhone and iPad

There is no App Store version yet. Each release has an unsigned SimpleVoiceDiary.ipa, which you sign with your own Apple ID (free; no developer membership needed).

  1. Download SimpleVoiceDiary.ipa from the latest release.
  2. Install it with Sideloadly or AltStore and your Apple ID. The first time, trust yourself on the device: Settings → General → VPN & Device Management; on iOS 16 and later also turn on Developer Mode (Settings → Privacy & Security).
  3. A build signed by a free Apple ID stops opening after 7 days until it is installed again (AltStore does that in the background). Always install over the app; never delete it first, or recordings that have not synced yet are lost.

To build it yourself instead: npm run build:ios -w mobile writes the same unsigned apps/mobile/SimpleVoiceDiary.ipa; or, for your own device from Xcode, put your team ID in apps/mobile/.env.local as APPLE_TEAM_ID=… and run npm run install:ios -w mobile.

Desktop app (macOS, Windows, Linux)

  • macOS (15 or later): download Simple.Voice.Diary.app.zip from the latest release, unzip it and drag the app to /Applications. First launch only: the app is not notarized, so macOS blocks it. Open it, click Done, then System Settings → Privacy & Security → Open Anyway. Or: xattr -dr com.apple.quarantine "/Applications/Simple Voice Diary.app". macOS asks for the microphone again after each update.
  • Windows 10 and 11: run Simple.Voice.Diary_<version>_x64-setup.exe. It is not signed, so SmartScreen warns: More info → Run anyway. Windows "N" editions need the Media Feature Pack for recording.
  • Linux (Ubuntu 22.04+, Debian 12+, Fedora): the .deb or the .rpm. They pull in GStreamer's codecs and PulseAudio's library, which recording and playback use. On Wayland a system-wide hotkey is not available; the tray shows a menu instead of the panel.

🛠️ How it works

Tech tour (click to expand)
  • Server: NestJS, SQLite and ffmpeg in one image. Every query is scoped to its user, and tests check that no user can reach another's data. No telemetry, no outbound calls.
  • Recording: every app writes ADTS AAC, which stays playable when cut off mid-file, so a crash loses nothing. The server stores each recording as .m4a and never changes its sound: volume matching and speed happen in the player.
  • Sync: each device keeps its own copy and an outbox; the last change to a field wins. The phone (TypeScript) and desktop (Rust) sync engines pass the same conformance tests in spec/sync/vectors.
  • Apps: Expo with expo-audio on Android, iPhone and iPad; Tauri 2 with React for the desktop app on macOS, Windows and Linux, which records, stores and syncs in Rust (each system's own AAC encoder) and plays in its web view. The API clients are generated from the server's OpenAPI document.

More in docs/: what the app does, how it is built and why, sync, design and self-hosting.

Building and developing (click to expand)

You need Node 24 with npm 11, Docker, ffmpeg (brew install ffmpeg on a Mac), Rust through rustup (the repository pins its version in rust-toolchain.toml, which rustup installs by itself), and Xcode for the iOS app. On Linux the desktop app needs the libraries its CI job installs (.github/actions/linux-desktop-deps/action.yml).

git clone https://github.com/MarecekW/simple-voice-diary.git
cd simple-voice-diary
npm install
npm run check                    # format, lint, types, tests, drift checks, the desktop half
npm run check:image              # builds the server image and runs it
npm run build:android -w mobile  # apps/mobile/SimpleVoiceDiary.apk
npm run build:ios -w mobile      # apps/mobile/SimpleVoiceDiary.ipa (unsigned)
npm run check:ios                # the iOS app still builds, for the simulator
npm run app -w desktop           # the desktop app, Dev build, with hot reload
npm run self-test -w desktop     # the desktop app plays its own test files (a quiet tone)
sh scripts/check-desktop-linux.sh  # the desktop app on Linux, in Docker (encoder, playback)
  • .npmrc sets min-release-age=7: a package version published in the last week will not install.
  • Packages with install scripts must be allowed first (npm approve-scripts <package>); the list is in the root package.json.
  • To keep the Mac's microphone permission across rebuilds of the desktop app, build it signed: APPLE_SIGNING_IDENTITY="Apple Development" npm run app:debug -w desktop.
  • Releasing: bump the version on a branch (node scripts/version.mjs bump [patch|minor|major]); merging its pull request into main is the release. CI tags v<version>, attaches the APK, the iOS .ipa and the desktop app's packages to a GitHub release and tags the image. Every push to main also publishes the image as edge and builds the desktop app for the three systems.
  • After changing a server route or DTO: npm run openapi:generate. After changing packages/tokens/tokens.json: npm run tokens:generate.

The layout of the repository is in docs/architecture.md; contributors (and their agents) start with CLAUDE.md.


🤝 Contributing

Issues and pull requests are welcome. Start with CLAUDE.md: the rules of the codebase, the commands and the traps, written for people and their coding agents alike. npm run check must pass (CI runs it on every pull request). Security problems go through a private report, not an issue: see SECURITY.md.


🙏 Credits

Transition sounds cut from "Tape Recorder, Insert/Eject | Sound Effect" by Don Larkin Sounds.


📜 License

Released under the MIT license, except the two transition sounds, which are Don Larkin Sounds' (see Credits) and not covered by it. The apps and the server image include third-party code and fonts under their own licenses. Their notices, THIRD_PARTY_NOTICES.md, are attached to every release and packed inside the desktop app; npm run notices:generate writes them locally.


Built by @MarecekW · co-authored with Claude

About

A private voice journal you host yourself. Hold a key, say how it's going; listen back to your days like a tape.

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages