diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index c62cd1c..0ae46b5 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -2,14 +2,16 @@ name: Website # Publishes akamachinecode.github.io/exhale: the download page (site/, ADR # 0029) at the root and the documentation (docs/, Starlight, ADR 0016) under # /docs/. A repository has one Pages site, so both go out in one deployment. -# The download page links to releases/latest/download/, so a release -# needs no deploy. On a pull request the site is built (which checks every +# The download page lists the latest release's files through the GitHub API; +# without it, the version in site/app.js (kept in step by release-please). +# The Linux install script is published at /install.sh. On a pull request the site is built (which checks every # link between pages) but not published. on: push: branches: [main] paths: - site/** + - scripts/install.sh - docs/** - web/openapi.json - .release-please-manifest.json @@ -18,6 +20,7 @@ on: pull_request: paths: - site/** + - scripts/install.sh - docs/** - web/openapi.json - .release-please-manifest.json @@ -48,6 +51,7 @@ jobs: run: | mkdir _site cp -R site/. _site/ + cp scripts/install.sh _site/install.sh cp -R docs/dist _site/docs - if: github.event_name != 'pull_request' uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 diff --git a/AGENTS.md b/AGENTS.md index 9a2597a..58542bb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -29,7 +29,8 @@ Exhale is a self-hosted subscription manager written in Go (backend, single bina | ③ Slack (Socket Mode, Block Kit, Home tab) | `internal/channels/slack` | | ④ Web Push (encryption, VAPID, action tokens — ADR 0026) | `internal/channels/webpush`; devices and keys in `internal/channels/notifiers`; service worker `web/public/sw.js` | | ⑮ CLI, supervisor, logging | `cmd/exhale`, `internal/platform` | -| desktop app: `exhale open`, start at login (ADR 0029) | `internal/desktop`; installers in `deploy/desktop` (built and tried by `.github/workflows/installers.yml`); download page in `site/` | +| desktop app: `exhale open`, start at login (ADR 0029) | `internal/desktop`; installers in `deploy/desktop` (built and tried by `.github/workflows/installers.yml`) | +| website at `akamachinecode.github.io/exhale/`: landing page with every download | `site/` (`index.html`, `style.css`, `app.js`; the version in `app.js` is kept by release-please, the lists come from the GitHub API); `scripts/install.sh` is published at `/install.sh`; screenshots in `site/img` (light and dark), also used by the README; dark by default like the app, with a sun/moon switch stored under Starlight's `starlight-theme` so the docs open in the same theme | | documentation site (Starlight, ADR 0016) at `akamachinecode.github.io/exhale/docs/` | `docs/` package: `scripts/sync.mjs` turns `docs/{install,guides,adr}/*.md` and `vision.md` into pages, `astro.config.mjs` holds the sidebar; published with `site/` by `.github/workflows/pages.yml` | ## Commands @@ -39,6 +40,7 @@ Exhale is a self-hosted subscription manager written in Go (backend, single bina - `go test ./internal/actions -update` to regenerate conversation golden files (review the diff) and the web's copy of the server texts; same for `./internal/assistant` - `pnpm -C web i18n` checks the web's translations (`--update` fills an incomplete language) - `pnpm -C docs build` builds the documentation site and fails on a broken link between pages +- `mise run screenshots` retakes the website and README screenshots (`site/img`) from the current code, with demo data dated from today ## Rules @@ -53,4 +55,6 @@ Exhale is a self-hosted subscription manager written in Go (backend, single bina - New migrations get a number above every existing one; never renumber or reuse one that shipped. - `mise run test:e2e` drives a real browser against a fresh server; keep it green when changing web flows. - A new page in `docs/install` or `docs/guides` starts with a `# Title` line, links other pages by relative `.md` path, and is added to the sidebar in `docs/astro.config.mjs`. Never edit `docs/src/content/docs/` except `index.mdx`: the rest is generated. +- Every picture on the website and in the README shows the latest version. Run `mise run screenshots` in any PR that changes how the app looks, and check them before merging a release PR. Never edit them by hand or take them from a real database. +- A feature people would choose Exhale for is announced when it ships: a card in the website's features (`site/index.html`, Spanish in `site/app.js`) and a row in the README's table, ordered by the pain it solves. - Commits: Conventional Commits, signed off (`git commit -s`). diff --git a/README.md b/README.md index 0ff223a..09df4ed 100644 --- a/README.md +++ b/README.md @@ -10,21 +10,21 @@ Exhale reminds you before every renewal and lets you fix it **from the reminder mark it paid, move the date, change the card, cancel. In Telegram, Slack or your browser.
It runs on your own computer, so your data stays with you. -**[Download](https://akamachinecode.github.io/exhale/)** · **[Documentation](https://akamachinecode.github.io/exhale/docs/)** · **[Releases](https://github.com/akamachinecode/exhale/releases)** +[**Download**](https://akamachinecode.github.io/exhale/#download) · [Website](https://akamachinecode.github.io/exhale/) · [Docs](https://akamachinecode.github.io/exhale/docs/) · [Changelog](CHANGELOG.md) -[![Release](https://img.shields.io/github/v/release/akamachinecode/exhale?include_prereleases&sort=semver)](https://github.com/akamachinecode/exhale/releases) +[![Latest release](https://img.shields.io/github/v/release/akamachinecode/exhale?include_prereleases&sort=semver&label=release)](https://github.com/akamachinecode/exhale/releases/latest) [![CI](https://github.com/akamachinecode/exhale/actions/workflows/ci.yml/badge.svg)](https://github.com/akamachinecode/exhale/actions/workflows/ci.yml) [![License: AGPL-3.0](https://img.shields.io/badge/license-AGPL--3.0-blue)](LICENSE) +![macOS · Windows · Linux · Docker](https://img.shields.io/badge/macOS%20·%20Windows%20·%20Linux%20·%20Docker-5b5e67) -Free and open source · macOS, Windows, Linux and Docker · English and Spanish - -
- -Exhale's overview: monthly and yearly spend, charges that need you, the next 30 days and spend by category +Free and open source · English and Spanish -
+ + + Exhale's overview: monthly and yearly spend, charges that need attention, the next 30 days and spend by category and by card + ## The reminder is the app @@ -47,44 +47,53 @@ One tap and the message updates in place, with an undo. The web updates at the s | | | |---|---| -| 🔔 **Reminders you can answer** | Already paid, a new date (this charge or from now on), another amount or card, skip, cancel, undo. Also by email, ntfy, web push and webhook. | -| 📱 **The whole app in a chat message** | A pinned Telegram message is Exhale itself: spend, upcoming charges, every subscription, an add wizard, payment methods and settings. It redraws when anything changes. | +| 🔔 **Reminders you can answer** | Already paid, a new date (this charge or from now on), another amount or card, skip, cancel, undo. One tap in the message, and it updates in place. | | ⏳ **The dates that cost money** | Free trials before they charge, the last day to cancel, renewals that need you (domains, licences), fixed-term contracts and price rises announced ahead. | -| 📆 **Billing days as banks charge them** | Day 31 in short months, "the third Wednesday", weekends moved to a business day. Counted from the first charge, so dates never drift. | +| 🔍 **Find the ones you forgot** | Import a bank export (CSV) or a PDF statement and Exhale finds the charges that repeat, with no AI needed. Later statements show what was paid, what changed price and what never arrived. | +| 📱 **The whole app in a chat message** | A pinned Telegram or Slack message is Exhale itself: spend, upcoming charges, every subscription, an add wizard, payment methods and settings. It redraws when anything changes. Send the bot a statement to import it. | | 🩺 **A check-up of facts, not tips** | The same service paid twice, prices that went up this year, trials about to charge, a card about to expire and everything that depends on it. | +| 💻 **Awake when it matters** | An icon in the menu bar (or the tray) with your next charges. Keep a laptop awake for an hour or a night, even with the lid closed, never down to an empty battery. What was due while it slept goes out when it wakes. | +| 📲 **On your phone, no app store** | Install the web as an app and get push notifications with a button that works from the notification. Or reminders by email, ntfy and webhook. | +| 📆 **Billing days as banks charge them** | Day 31 in short months, "the third Wednesday", weekends moved to a business day. Counted from the first charge, so dates never drift. | | 💶 **Every currency, exact** | Totals in your currency at ECB rates, what each subscription has really cost you, and how much to set aside each month for the yearly bills. | | 👥 **Shared, not mixed** | A partner or flatmates get their own account and reminders. Split a subscription and see who owes whom. Private ones stay private. | | 🤖 **Ask it anything** | Plain language in chat, or Claude, ChatGPT and local models over MCP. Every change shows a preview first and can be undone. | -| 📥 **Bring everything with you** | Import from Wallos, a spreadsheet or your bank statement (CSV or PDF). Export it all as JSON, CSV or ZIP, or follow it in your calendar. | +| 📥 **Bring everything with you** | Import from Wallos or a spreadsheet. Export it all as JSON, CSV or ZIP, or follow your charges in your calendar. | | 🔒 **Yours, on your computer** | One program, one data folder, a backup every day. No cloud, no telemetry, no account with us, no paid tier. | -## Up and running in a minute - -1. **Download and open it.** Get `Exhale.dmg` (macOS), `Exhale-Setup.exe` (Windows) or a `.deb`/`.rpm` (Linux) from the **[download page](https://akamachinecode.github.io/exhale/)**. Exhale opens in its own window and starts by itself with your computer. -2. **Create your account.** The home page walks you through the rest. Making your own Telegram bot takes a minute and is guided. -3. **Add your subscriptions.** By hand, from Wallos or a spreadsheet, or from your bank statement. Reminders start the same day. - -No public address needed: Exhale talks to Telegram and Slack with outgoing connections only, so it works behind a home router. +## Download -### On a server or NAS +| | | +|---|---| +| **macOS** 12+ | [`Exhale.dmg`, Apple silicon and Intel](https://akamachinecode.github.io/exhale/#download-mac) | +| **Windows** 10/11 | [`Exhale-Setup.exe`, or a `.zip` for x64 and ARM64](https://akamachinecode.github.io/exhale/#download-windows) | +| **Linux** | [`.deb`, `.rpm` or `.tar.gz`, x86-64, ARM64 and ARM 32-bit (Raspberry Pi)](https://akamachinecode.github.io/exhale/#download-linux) | +| **Server or NAS** | [Docker image](https://akamachinecode.github.io/exhale/#download-server), `ghcr.io/akamachinecode/exhale` | -An always-on machine (a home server, a Raspberry Pi, a VPS) never misses a reminder: +Or from a terminal: ```sh +curl -fsSL https://akamachinecode.github.io/exhale/install.sh | sh -s -- --service # Linux, as a systemd service docker run -d --name exhale --restart unless-stopped \ - -p 8484:8484 -v exhale-data:/data \ - ghcr.io/akamachinecode/exhale:latest -docker logs exhale # shows the one-time setup code + -p 8484:8484 -v exhale-data:/data ghcr.io/akamachinecode/exhale # anywhere with Docker ``` -Open `http://:8484`, enter the setup code and follow the steps on the home page. The [install guide](docs/install/README.md) covers Linux packages with a hardened systemd service, [HTTPS and remote access](docs/install/https.md), [backups](docs/install/backups.md) and [single sign-on](docs/install/sso.md). +Every release has cosign-signed checksums and build provenance. The [install guide](https://akamachinecode.github.io/exhale/docs/install/) covers first-launch prompts, [verifying downloads](https://akamachinecode.github.io/exhale/docs/install/linux/#verify-a-download), [HTTPS and remote access](docs/install/https.md), [backups](docs/install/backups.md) and [single sign-on](docs/install/sso.md). + +## Quick start + +1. **Open Exhale.** It opens in its own window and starts by itself with your computer. On a server, open `http://:8484` and enter the one-time setup code from the log (`docker logs exhale`). +2. **Create your account.** The home page walks you through the rest. Making your own Telegram bot takes a minute and is guided. +3. **Add your subscriptions.** By hand, from Wallos or a spreadsheet, or from your bank statement. Reminders start the same day. + +No public address needed: Exhale talks to Telegram and Slack with outgoing connections only, so it works behind a home router. An always-on machine (a home server, a Raspberry Pi, a VPS) never misses a reminder. ## Questions before installing
Does my computer have to be on? -Reminders go out while Exhale is running. On a laptop that sleeps, Exhale can keep it awake (Settings → This computer), and anything due while it slept is sent when it wakes. A home server or a Raspberry Pi that never sleeps is ideal. +Reminders go out while Exhale is running. On a laptop, Exhale can keep it awake for a while, even with the lid closed, from its menu bar icon or Settings → This computer, and anything due while it slept is sent when it wakes. A home server or a Raspberry Pi that never sleeps is ideal.
@@ -96,7 +105,7 @@ In one folder on your computer, backed up every day. Nothing is sent anywhere un
Can I use it on my phone? -Yes. Reminders reach your phone through Telegram or Slack, and the web works on a phone. Exhale itself runs on a computer. +Yes. Reminders reach your phone through Telegram or Slack, or as push notifications once you install the web as an app (it needs HTTPS). Exhale itself runs on a computer.
@@ -121,7 +130,9 @@ The **[documentation site](https://akamachinecode.github.io/exhale/docs/)** has - [Tools for many subscriptions](docs/guides/many-subscriptions.md) - [Vision](docs/vision.md) and [architecture decisions](docs/adr/README.md) -> **Status:** Exhale is young (0.x). It is used every day by its author; read the [release notes](CHANGELOG.md) before upgrading. +## Status + +Exhale is young (v0.x) and used every day by its author. Expect rough edges and tell us about them in [Issues](https://github.com/akamachinecode/exhale/issues); read the [changelog](CHANGELOG.md) before upgrading. ## Contributing diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index dc606cf..6e35504 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -50,6 +50,7 @@ const sidebar = [ collapsed: true, items: [{ label: "How we decide", link: "/adr/" }, { autogenerate: { directory: "adr" } }], }, + { label: "Changelog", link: `${github}/blob/main/CHANGELOG.md` }, ], }, ]; diff --git a/docs/install/linux.md b/docs/install/linux.md index 524e653..015139c 100644 --- a/docs/install/linux.md +++ b/docs/install/linux.md @@ -32,7 +32,7 @@ The package also lets the service keep the computer awake when you ask for it in ## Install script ```sh -curl -fsSLO https://raw.githubusercontent.com/akamachinecode/exhale/main/scripts/install.sh +curl -fsSLO https://akamachinecode.github.io/exhale/install.sh less install.sh # read it first sh install.sh --service sudo systemctl start exhale diff --git a/mise.toml b/mise.toml index 5b77fbc..3cc994e 100644 --- a/mise.toml +++ b/mise.toml @@ -29,6 +29,10 @@ run = "go test ./..." description = "Browser test against a fresh server (needs: pnpm -C web exec playwright install chromium)" run = "sh scripts/e2e.sh" +[tasks.screenshots] +description = "Retake the website and README screenshots (site/img) from the current code" +run = "sh scripts/screenshots.sh" + [tasks.lint] description = "Lint Go code" run = "golangci-lint run ./..." diff --git a/release-please-config.json b/release-please-config.json index e038d2f..3fc8239 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -6,7 +6,13 @@ "include-component-in-tag": false, "packages": { ".": { - "package-name": "exhale" + "package-name": "exhale", + "extra-files": [ + { + "type": "generic", + "path": "site/app.js" + } + ] } } } diff --git a/scripts/screenshots.sh b/scripts/screenshots.sh new file mode 100755 index 0000000..b9a2cec --- /dev/null +++ b/scripts/screenshots.sh @@ -0,0 +1,35 @@ +#!/bin/sh +# Retakes the screenshots of the website and the README (site/img) from the +# current code: builds the web UI and the server, starts it with an empty, +# temporary database and no channels, fills it with demo data and captures +# the overview on a desktop and a phone, light and dark. +# Used by `mise run screenshots`; run it whenever the app's look changes. +set -eu +cd "$(dirname "$0")/.." + +# Never reach a real bot, Slack or assistant from here. +for v in $(env | sed -n 's/^\(EXHALE_[A-Z_]*\)=.*/\1/p'); do unset "$v"; done + +port="${EXHALE_SHOTS_PORT:-18485}" +data="$(mktemp -d)" +bin="$data/exhale" +trap 'kill "$pid" 2>/dev/null || true; rm -rf "$data"' EXIT INT TERM + +(cd web && pnpm install --frozen-lockfile && pnpm build) +go build -o "$bin" ./cmd/exhale + +"$bin" --data-dir "$data/data" serve --listen "127.0.0.1:$port" --no-backups >"$data/server.log" 2>&1 & +pid=$! +i=0 +until curl -sf "http://127.0.0.1:$port/healthz" >/dev/null; do + i=$((i + 1)) + if [ "$i" -gt 50 ]; then + echo "the server did not start:" >&2 + cat "$data/server.log" >&2 + exit 1 + fi + sleep 0.2 +done + +cd web +node scripts/site-screenshots.mjs "http://127.0.0.1:$port" ../site/img diff --git a/site/app.js b/site/app.js new file mode 100644 index 0000000..4e5fe73 --- /dev/null +++ b/site/app.js @@ -0,0 +1,408 @@ +// Fills the download lists, picks the right build for the visitor, wires the +// install tabs and translates the page into Spanish. The lists render at once +// from VERSION (kept in step by release-please), then the GitHub API fills in +// sizes, dates and any newer release. +(function () { + "use strict"; + const repo = "akamachinecode/exhale"; + const VERSION = "0.4.0"; // x-release-please-version + + // Every build of a release, in the order each card shows them. `name` + // spells the file for a version; `match` finds it among the API's assets. + // `label`, `group` and `kind` are keys of the texts below. + const BUILDS = [ + { os: "darwin", arch: "any", group: "g.app", label: "a.mac", kind: "k.dmg", ext: ".dmg", name: () => "Exhale.dmg", match: /^Exhale\.dmg$/ }, + { os: "darwin", arch: "arm64", group: "g.cli", label: "a.silicon", kind: "k.archive", ext: ".tar.gz", name: (v) => `exhale_${v}_darwin_arm64.tar.gz`, match: /_darwin_arm64\.tar\.gz$/ }, + { os: "darwin", arch: "amd64", group: "g.cli", label: "a.intel", kind: "k.archive", ext: ".tar.gz", name: (v) => `exhale_${v}_darwin_amd64.tar.gz`, match: /_darwin_amd64\.tar\.gz$/ }, + { os: "windows", arch: "any", group: "g.app", label: "a.x64", kind: "k.installer", ext: ".exe", name: () => "Exhale-Setup.exe", match: /^Exhale-Setup\.exe$/ }, + { os: "windows", arch: "amd64", group: "g.cli", label: "a.x64", kind: "k.archive", ext: ".zip", name: (v) => `exhale_${v}_windows_amd64.zip`, match: /_windows_amd64\.zip$/ }, + { os: "windows", arch: "arm64", group: "g.cli", label: "a.arm64", kind: "k.archive", ext: ".zip", name: (v) => `exhale_${v}_windows_arm64.zip`, match: /_windows_arm64\.zip$/ }, + ...["deb", "rpm"].flatMap((pkg) => + ["amd64", "arm64", "armv7"].map((arch) => ({ + os: "linux", arch, distro: pkg, group: "g." + pkg, label: "a." + arch, kind: "k.package", ext: "." + pkg, + name: () => `exhale_linux_${arch}.${pkg}`, match: new RegExp(`^exhale_linux_${arch}\\.${pkg}$`), + })), + ), + ...["amd64", "arm64", "armv7"].map((arch) => ({ + os: "linux", arch, group: "g.any", label: "a." + arch, kind: "k.archive", ext: ".tar.gz", + name: (v) => `exhale_${v}_linux_${arch}.tar.gz`, match: new RegExp(`_linux_${arch}\\.tar\\.gz$`), + })), + ]; + const OS_NAMES = { darwin: "macOS", linux: "Linux", windows: "Windows" }; + const CARD = { darwin: "mac", linux: "linux", windows: "windows" }; + const DOWNLOAD_ICON = ''; + + // ---- texts ---- + + // English for what this script writes; the page's own English stays in + // the page and is put back when switching from Spanish. + const en = { + "pill.default": "Free and open source · Runs on your computer", + "pill.release": "v{v} is out", + "cta.any": "Download Exhale", "cta.for": "Download for {os}", "cta.phone": "Get it for your computer", + "note.default": "Free and open source under the AGPL-3.0. Every build has signed checksums.", + "note.build": "{extra}v{v} · {ext}{size}. Not your computer? See every build.", + "note.linux": "v{v} for {arch}: .deb for Debian, Ubuntu and Raspberry Pi OS, .rpm for Fedora and openSUSE, or an archive for any distribution.", + "note.phone": "Exhale runs on a computer; reminders reach your phone.", + "meta.default": "The latest release, straight from GitHub Releases.", + "meta.release": "Version {v}{date}. What's new", + "meta.date": ", released {d}", + mine: "For this computer", download: "Download", copy: "Copy", copied: "Copied", + "theme.light": "Light mode", "theme.dark": "Dark mode", + "g.app": "App", "g.cli": "Command line", "g.deb": "Debian, Ubuntu, Raspberry Pi OS", "g.rpm": "Fedora, RHEL, openSUSE", "g.any": "Any distribution", + "a.mac": "Apple silicon and Intel", "a.silicon": "Apple silicon", "a.intel": "Intel", "a.x64": "x64", "a.amd64": "x86-64", "a.arm64": "ARM64", "a.armv7": "ARM 32-bit", + "k.dmg": "Disk image", "k.installer": "Installer", "k.archive": "Archive", "k.package": "Package", + }; + // Spanish for everything, page and script. + const es = { + "nav.features": "Funciones", "nav.how": "Cómo funciona", "nav.download": "Descargar", "nav.docs": "Documentación", + "pill.default": "Libre y de código abierto · Funciona en tu ordenador", + "pill.release": "Ya está aquí la v{v}", + h1a: "Respira.", h1b: "Tus suscripciones están bajo control.", + lead: "Exhale te avisa antes de cada renovación y te deja arreglarla desde el propio aviso: marcarla como pagada, mover la fecha, cambiar la tarjeta, cancelarla. En Telegram, Slack o el navegador. Funciona en tu propio ordenador, así que tus datos se quedan contigo.", + "cta.any": "Descargar Exhale", "cta.for": "Descargar para {os}", "cta.phone": "Descárgalo en tu ordenador", "cta.other": "Todas las descargas", + "note.default": "Libre y de código abierto bajo la AGPL-3.0. Cada compilación tiene sumas de comprobación firmadas.", + "note.build": "{extra}v{v} · {ext}{size}. ¿No es tu ordenador? Mira todas las compilaciones.", + "note.linux": "v{v} para {arch}: .deb para Debian, Ubuntu y Raspberry Pi OS, .rpm para Fedora y openSUSE, o un archivo para cualquier distribución.", + "note.phone": "Exhale funciona en un ordenador; los avisos te llegan al móvil.", + "alt.overview": "Resumen de Exhale: gasto mensual y anual, cargos que necesitan atención, los próximos 30 días y el gasto por categoría y por tarjeta", + "alt.phone": "Exhale en un móvil, con el dock de todas las páginas", + "feat.kicker": "Qué hace", "feat.title": "El aviso es la app.", + "feat.sub": "El mensaje que dice que Netflix se renueva en tres días te deja arreglarlo ahí mismo. Se actualiza solo, y la web también.", + "f1.t": "Avisos que se contestan", "f1.p": "Ya pagado, otra fecha, otro importe o tarjeta, saltar, cancelar, deshacer. Un toque en el mensaje.", + "f2.t": "Las fechas que cuestan dinero", "f2.p": "Pruebas gratis antes de que cobren, el último día para cancelar, renovaciones que te necesitan, subidas de precio anunciadas.", + "f3.t": "Encuentra las que olvidaste", "f3.p": "Importa un extracto del banco (CSV o PDF) y Exhale encuentra los cargos que se repiten, sin IA. Los siguientes extractos muestran qué se pagó, qué cambió de precio y qué no llegó.", + "f4.t": "La app entera en un chat", "f4.p": "Un mensaje fijado en Telegram o Slack es Exhale entero: gasto, próximos cargos, todas las suscripciones, un asistente para añadir y los ajustes.", + "f5.t": "Un chequeo con hechos, no consejos", "f5.p": "El mismo servicio pagado dos veces, precios que han subido este año, pruebas a punto de cobrar, una tarjeta a punto de caducar y todo lo que depende de ella.", + "f6.t": "Despierto cuando importa", "f6.p": "Un icono en la barra de menús con tus próximos cargos. Mantén el portátil despierto una hora o una noche, incluso con la tapa cerrada, sin agotar nunca la batería.", + "f7.t": "En el móvil, sin tienda de apps", "f7.p": "Instala la web como una app y recibe notificaciones con un botón que funciona desde la propia notificación. O avisos por correo, ntfy y webhook.", + "f8.t": "Cualquier moneda, exacta", "f8.p": "Totales en tu moneda con los tipos del BCE, y cuánto apartar cada mes para los pagos anuales.", + "f9.t": "Compartido, sin mezclar", "f9.p": "Tu pareja o tus compañeros de piso tienen su cuenta y sus avisos. Divide una suscripción y mira quién debe a quién.", + "f10.t": "Pregúntale lo que quieras", "f10.p": "En lenguaje natural por chat, o con Claude, ChatGPT y modelos locales por MCP. Cada cambio se previsualiza y se puede deshacer.", + "f11.t": "Trae todo contigo", "f11.p": "Importa desde Wallos o una hoja de cálculo. Exporta todo en JSON, CSV o ZIP, o sigue tus cargos en tu calendario.", + "f12.t": "Tuyo, en tu ordenador", "f12.p": "Un programa, una carpeta de datos, una copia cada día. Sin nube, sin telemetría, sin cuenta con nosotros, sin versión de pago.", + "how.kicker": "Cómo funciona", "how.title": "Instalado en un minuto. Después, funciona solo.", + "s1.t": "Descárgalo y ábrelo", "s1.p": "Exhale arranca en segundo plano y se abre en su propia ventana. Desde entonces arranca solo con tu ordenador.", + "s2.t": "Crea tu cuenta", "s2.p": "Después sigue los pasos de la página de inicio. Crear tu propio bot de Telegram lleva un minuto y está guiado.", + "s3.t": "Añade tus suscripciones", "s3.p": "A mano, desde Wallos o una hoja de cálculo, o desde el extracto del banco. Los avisos empiezan ese mismo día.", + "dl.kicker": "Descargar", "dl.title": "Elige tu ordenador.", + "meta.default": "La última versión, directamente desde GitHub Releases.", + "meta.release": "Versión {v}{date}. Novedades", + "meta.date": ", publicada el {d}", + "mac.req": "macOS 12 o posterior", + "mac.note": "Ábrelo y arrastra Exhale a Aplicaciones. La primera vez, macOS dice que no puede verificar al desarrollador: ve a Ajustes del Sistema → Privacidad y seguridad y pulsa Abrir igualmente.", + "win.req": "Windows 10 u 11", + "win.note": "El instalador no necesita permisos de administrador. Si aparece SmartScreen, pulsa Más información → Ejecutar de todas formas.", + "linux.req": "x86-64, ARM64, Raspberry Pi", + "linux.note": "El .deb y el .rpm hacen de Exhale un servicio que arranca con el ordenador, y lo añaden a tus aplicaciones.", + verify: "Verifica una descarga:", "verify.sig": "firma de cosign", "verify.how": "Cómo verificarla", "verify.all": "Todas las versiones", + "term.title": "En un servidor, o desde la terminal", "term.linux": "Script para Linux", copy: "Copiar", + "term.docker": "Para un servidor en casa, un NAS, una Raspberry Pi o un VPS: en una máquina siempre encendida no se pierde ni un aviso. docker logs exhale muestra el código de configuración de un solo uso. La guía de Docker explica Compose, HTTPS y las copias.", + "term.script": "Para una máquina sin el .deb ni el .rpm. El script comprueba el SHA-256 de lo que descarga antes de instalar, y deja Exhale como un servicio de systemd. Léelo antes, o mira la guía de Linux.", + "faq.kicker": "Preguntas", "faq.title": "Antes de instalar", + q1: "¿Mi ordenador tiene que estar encendido?", a1: "Los avisos salen mientras Exhale está en marcha. En un portátil, Exhale puede mantenerlo despierto un rato, incluso con la tapa cerrada, desde su icono en la barra de menús o en Ajustes → Este ordenador, y lo que venza mientras dormía se envía al despertar. Lo ideal es un servidor en casa o una Raspberry Pi que nunca se apague.", + q2: "¿Dónde están mis datos?", a2: "En una carpeta de tu ordenador, copiada cada día. No se envía nada a ningún sitio salvo que configures un canal como Telegram.", + q3: "¿Puedo usarlo en el móvil?", a3: "Sí. Los avisos te llegan al móvil por Telegram o Slack, o como notificaciones si instalas la web como una app (necesita HTTPS). Exhale en sí funciona en un ordenador.", + q4: "¿De verdad es gratis?", a4: "Sí. Exhale es software libre bajo la AGPL-3.0, sin versión de pago, sin cuenta con nosotros y sin telemetría.", + q5: "Uso Wallos. ¿Puedo pasarme?", a5: "Sí. Importa tu base de datos de Wallos y revisa cada suscripción antes de guardarla.", + q6: "¿Cómo lo desinstalo?", a6: "En un Mac, desactiva Exhale en Ajustes del Sistema → General → Ítems de inicio y arrástralo a la Papelera. En Windows, Configuración → Aplicaciones. En Linux, quita el paquete. Tus datos se quedan hasta que borres su carpeta.", + foot: "Software libre bajo la AGPL-3.0.", "foot.docs": "Documentación", "foot.install": "Guía de instalación", "foot.security": "Seguridad", + "foot.changelog": "Cambios", "foot.source": "Código", "foot.issues": "Incidencias", + mine: "Para este ordenador", download: "Descargar", copied: "Copiado", + "theme.light": "Modo claro", "theme.dark": "Modo oscuro", + "g.app": "App", "g.cli": "Línea de comandos", "g.deb": "Debian, Ubuntu, Raspberry Pi OS", "g.rpm": "Fedora, RHEL, openSUSE", "g.any": "Cualquier distribución", + "a.mac": "Apple silicon e Intel", "a.silicon": "Apple silicon", "a.intel": "Intel", "a.x64": "x64", "a.amd64": "x86-64", "a.arm64": "ARM64", "a.armv7": "ARM 32 bits", + "k.dmg": "Imagen de disco", "k.installer": "Instalador", "k.archive": "Archivo", "k.package": "Paquete", + }; + + let lang = "en"; + try { lang = localStorage.getItem("lang") || ""; } catch (e) { /* storage blocked */ } + if (!lang) lang = (navigator.languages || [navigator.language]).some((l) => /^es\b/i.test(l)) ? "es" : "en"; + + function t(key, vars) { + let s = (lang === "es" ? es[key] : undefined) ?? en[key] ?? key; + for (const k in vars || {}) s = s.split("{" + k + "}").join(vars[k]); + return s; + } + + // Remember the English in the page (as nodes, never as HTML text) before + // translating it. + const original = new Map(); + document.querySelectorAll("[data-t]").forEach((el) => { original.set(el, Array.from(el.childNodes, (n) => n.cloneNode(true))); }); + document.querySelectorAll("[data-t-alt]").forEach((el) => { en[el.dataset.tAlt] = el.alt; }); + + function translatePage() { + document.documentElement.lang = lang; + document.querySelectorAll("[data-t]").forEach((el) => { + const v = lang === "es" ? es[el.dataset.t] : undefined; + if (v) { + // Only the constant Spanish texts above are read as HTML. + const tpl = document.createElement("template"); + tpl.innerHTML = v; + el.replaceChildren(tpl.content); + } else { + el.replaceChildren(...original.get(el).map((n) => n.cloneNode(true))); + } + }); + document.querySelectorAll("[data-t-alt]").forEach((el) => { el.alt = t(el.dataset.tAlt); }); + const other = lang === "es" ? "en" : "es"; + const btn = document.getElementById("lang"); + btn.textContent = other; + btn.setAttribute("aria-label", other === "es" ? "Español" : "English"); + btn.lang = other; + } + + // ---- light and dark ---- + + // Dark by default, like the app. The choice is stored under the docs' + // key (Starlight's "starlight-theme"), so it carries over to /docs/. + const light = () => document.documentElement.dataset.theme === "light"; + + function renderTheme() { + const btn = document.getElementById("theme"); + // The button offers the other theme, like the app's sun and moon. + btn.querySelector("use").setAttribute("href", light() ? "#i-moon" : "#i-sun"); + btn.setAttribute("aria-label", t(light() ? "theme.dark" : "theme.light")); + btn.title = btn.getAttribute("aria-label"); + document.querySelector('meta[name="theme-color"]').content = light() ? "#fafafa" : "#0a0a0a"; + } + + function toggleTheme() { + const next = light() ? "dark" : "light"; + if (next === "light") document.documentElement.dataset.theme = "light"; + else delete document.documentElement.dataset.theme; + try { localStorage.setItem("starlight-theme", next); } catch (e) { /* storage blocked */ } + renderTheme(); + } + + // ---- what is the visitor on ---- + + function detectOS() { + const ua = navigator.userAgent || ""; + const platform = (navigator.userAgentData && navigator.userAgentData.platform) || navigator.platform || ""; + if (/Android|iPhone|iPad|iPod/i.test(ua) || (/Mac/i.test(platform) && navigator.maxTouchPoints > 1)) return "phone"; + if (/Win/i.test(platform) || /Windows/i.test(ua)) return "windows"; + if (/Mac/i.test(platform) || /Mac OS X/i.test(ua)) return "darwin"; + if (/Linux|X11|CrOS/i.test(platform) || /Linux/i.test(ua)) return "linux"; + return ""; + } + + function detectDistro() { + const ua = navigator.userAgent || ""; + if (/Fedora|Red Hat|CentOS|openSUSE|SUSE/i.test(ua)) return "rpm"; + if (/Ubuntu|Debian|Mint|Raspbian/i.test(ua)) return "deb"; + return ""; + } + + // Browsers hide the CPU. Chromium tells it on request; elsewhere the user + // agent sometimes does. Unknown: x86-64. + async function detectArch() { + try { + if (navigator.userAgentData && navigator.userAgentData.getHighEntropyValues) { + const v = await navigator.userAgentData.getHighEntropyValues(["architecture", "bitness"]); + if (v.architecture === "arm") return v.bitness === "32" ? "armv7" : "arm64"; + if (v.architecture === "x86") return "amd64"; + } + } catch (e) { /* not allowed: fall through */ } + const ua = navigator.userAgent || ""; + if (/aarch64|arm64/i.test(ua)) return "arm64"; + if (/armv7|armv8l|armhf/i.test(ua)) return "armv7"; + return "amd64"; + } + + // ---- rendering ---- + + function el(tag, attrs, html) { + const n = document.createElement(tag); + for (const k in attrs || {}) n.setAttribute(k, attrs[k]); + if (html != null) n.innerHTML = html; + return n; + } + + function size(bytes) { + if (!bytes) return ""; + return bytes >= 1e6 ? (bytes / 1e6).toFixed(1) + " MB" : Math.round(bytes / 1e3) + " KB"; + } + + function downloadURL(tag, name) { + return `https://github.com/${repo}/releases/download/${tag}/${name}`; + } + + // release: { tag, version, date, assets: name -> {url, size} | null } + function resolve(release, b) { + if (release.assets) { + const name = Object.keys(release.assets).find((n) => b.match.test(n)); + return name ? { name, ...release.assets[name] } : null; + } + const name = b.name(release.version); + return { name, url: downloadURL(release.tag, name), size: 0 }; + } + + // The macOS and Windows apps fit every Mac and every Windows PC (Windows + // on ARM runs the x64 installer). Linux needs the CPU and the package + // format; without the format, point at the card rather than guess. + function choose(os, arch, distro) { + if (os === "darwin" || os === "windows") return { os, arch, build: BUILDS.find((b) => b.os === os && b.arch === "any") }; + if (os === "linux") return { os, arch, build: distro ? BUILDS.find((b) => b.os === os && b.arch === arch && b.distro === distro) || null : null }; + return null; + } + + function renderLists(release, pick) { + document.querySelectorAll(".platform").forEach((card) => { + const os = card.dataset.os; + const list = card.querySelector(".files"); + list.textContent = ""; + card.classList.toggle("mine", !!pick && pick.os === os); + let group = ""; + for (const b of BUILDS.filter((x) => x.os === os)) { + const file = resolve(release, b); + if (!file) continue; + if (b.group !== group) { + group = b.group; + list.appendChild(el("li", { class: "group" }, t(group))); + } + const mine = !!pick && pick.build === b; + const meta = [t(b.kind) + " · " + b.ext, size(file.size)].filter(Boolean).join(" · "); + const a = el("a", { class: "file" + (mine ? " recommended" : ""), href: file.url, download: "" }, + `${t(b.label)}${mine ? ` ${t("mine")}` : ""}` + + `${meta}${DOWNLOAD_ICON}`); + a.setAttribute("aria-label", `${t("download")} ${OS_NAMES[os]} ${t(b.label)} ${b.ext}${file.size ? ", " + size(file.size) : ""}`); + const li = el("li"); + li.appendChild(a); + list.appendChild(li); + } + }); + } + + const ICONS = { darwin: "#i-apple", windows: "#i-windows", linux: "#i-linux" }; + + function renderHero(release, os, pick) { + const link = document.getElementById("hero-download"); + const label = document.getElementById("hero-download-label"); + const note = document.getElementById("hero-download-note"); + document.querySelector("#hero-download-icon use").setAttribute("href", ICONS[os] || "#i-down"); + link.href = "#download"; + label.textContent = t("cta.any"); + note.innerHTML = t("note.default"); + if (os === "phone") { + label.textContent = t("cta.phone"); + note.textContent = t("note.phone"); + return; + } + if (!pick) return; + label.textContent = t("cta.for", { os: OS_NAMES[pick.os] }); + const b = pick.build; + if (!b) { + link.href = "#download-linux"; + note.innerHTML = t("note.linux", { v: release.version, arch: t("a." + pick.arch) }); + return; + } + const file = resolve(release, b); + if (!file) return; + link.href = file.url; + note.innerHTML = t("note.build", { + extra: t(b.label) + " · ", v: release.version, ext: b.ext, + size: file.size ? " · " + size(file.size) : "", card: CARD[pick.os], + }); + } + + function renderMeta(release) { + const pill = document.getElementById("release-pill"); + const pillText = document.getElementById("release-pill-text"); + const meta = document.getElementById("release-meta"); + if (!release.date) { + pillText.textContent = t("pill.default"); + meta.textContent = t("meta.default"); + return; + } + const d = new Date(release.date).toLocaleDateString(lang, { year: "numeric", month: "short", day: "numeric" }); + const notes = `https://github.com/${repo}/releases/tag/${release.tag}`; + pill.href = notes; + pillText.textContent = t("pill.release", { v: release.version }) + " · " + d; + meta.innerHTML = t("meta.release", { v: release.version, date: t("meta.date", { d }), notes }); + document.getElementById("checksums").href = downloadURL(release.tag, "checksums.txt"); + document.getElementById("signature").href = downloadURL(release.tag, "checksums.txt.sigstore.json"); + } + + async function latest() { + const res = await fetch(`https://api.github.com/repos/${repo}/releases/latest`, { headers: { Accept: "application/vnd.github+json" } }); + if (!res.ok) throw new Error(String(res.status)); + const rel = await res.json(); + const assets = {}; + for (const a of rel.assets || []) assets[a.name] = { url: a.browser_download_url, size: a.size }; + return { tag: rel.tag_name, version: rel.tag_name.replace(/^v/, ""), date: rel.published_at, assets }; + } + + // ---- install tabs and copy buttons ---- + + function selectTab(name, focus) { + document.querySelectorAll(".tabs button").forEach((b) => { + const on = b.dataset.tab === name; + b.setAttribute("aria-selected", String(on)); + b.tabIndex = on ? 0 : -1; + if (on && focus) b.focus(); + }); + document.querySelectorAll(".panel").forEach((p) => { p.hidden = p.dataset.tab !== name; }); + } + + function wireTabs(os) { + const tabs = Array.from(document.querySelectorAll(".tabs button")); + tabs.forEach((b, i) => { + b.addEventListener("click", () => selectTab(b.dataset.tab)); + b.addEventListener("keydown", (e) => { + if (e.key !== "ArrowRight" && e.key !== "ArrowLeft") return; + const next = tabs[(i + (e.key === "ArrowRight" ? 1 : tabs.length - 1)) % tabs.length]; + selectTab(next.dataset.tab, true); + }); + }); + selectTab(os === "linux" ? "linux" : "docker"); + document.querySelectorAll(".copy").forEach((btn) => { + btn.addEventListener("click", async () => { + const text = btn.parentElement.querySelector("code").textContent; + try { + await navigator.clipboard.writeText(text); + btn.textContent = t("copied"); + btn.classList.add("done"); + setTimeout(() => { btn.textContent = t("copy"); btn.classList.remove("done"); }, 1600); + } catch (e) { /* clipboard blocked: the command stays selectable */ } + }); + }); + } + + // ---- start ---- + + async function main() { + const os = detectOS(); + const desktop = os && os !== "phone"; + let release = { tag: "v" + VERSION, version: VERSION, date: "", assets: null }; + let pick = desktop ? choose(os, "amd64", detectDistro()) : null; + const render = () => { + translatePage(); + renderTheme(); + renderLists(release, pick); + renderHero(release, os, pick); + renderMeta(release); + }; + + wireTabs(os); + document.getElementById("theme").addEventListener("click", toggleTheme); + document.getElementById("lang").addEventListener("click", () => { + lang = lang === "es" ? "en" : "es"; + try { localStorage.setItem("lang", lang); } catch (e) { /* storage blocked */ } + render(); + }); + const top = document.querySelector(".top"); + addEventListener("scroll", () => top.classList.toggle("scrolled", scrollY > 8), { passive: true }); + render(); + + const [arch, fresh] = await Promise.all([ + desktop ? detectArch() : Promise.resolve(""), + latest().catch(() => null), // offline or rate-limited: keep VERSION's links + ]); + if (fresh) release = fresh; + if (desktop) pick = choose(os, arch, detectDistro()); + render(); + } + + main(); +})(); diff --git a/site/img/app-dark.webp b/site/img/app-dark.webp new file mode 100644 index 0000000..2b1fc89 Binary files /dev/null and b/site/img/app-dark.webp differ diff --git a/site/img/app-light.webp b/site/img/app-light.webp new file mode 100644 index 0000000..6c06c75 Binary files /dev/null and b/site/img/app-light.webp differ diff --git a/site/img/overview.webp b/site/img/overview.webp deleted file mode 100644 index 34291c1..0000000 Binary files a/site/img/overview.webp and /dev/null differ diff --git a/site/img/phone-dark.webp b/site/img/phone-dark.webp new file mode 100644 index 0000000..be35458 Binary files /dev/null and b/site/img/phone-dark.webp differ diff --git a/site/img/phone-light.webp b/site/img/phone-light.webp new file mode 100644 index 0000000..4924bd1 Binary files /dev/null and b/site/img/phone-light.webp differ diff --git a/site/img/phone.webp b/site/img/phone.webp deleted file mode 100644 index 15062b0..0000000 Binary files a/site/img/phone.webp and /dev/null differ diff --git a/site/index.html b/site/index.html index 9e68883..54dc771 100644 --- a/site/index.html +++ b/site/index.html @@ -3,142 +3,24 @@ -Exhale — your subscriptions, handled - +Exhale: your subscriptions, handled + - - - + + + + - + +
-

Free and open source · Runs on your computer

+ + + Free and open source · Runs on your computer + +

Breathe out. Your subscriptions are handled.

-

Exhale reminds you before every renewal and lets you fix it from the reminder itself: mark it paid, move the date, change the card, cancel. In Telegram, Slack or your browser. It runs on your own computer, so your data stays with you.

+

Exhale reminds you before every renewal and lets you fix it from the reminder itself: mark it paid, move the date, change the card, cancel. In Telegram, Slack or your browser. It runs on your own computer, so your data stays with you.

-

+

Free and open source under the AGPL-3.0. Every build has signed checksums.

-
- Exhale's overview: monthly and yearly spend, charges that need attention, the next 30 days and spend by category + Exhale's overview: monthly and yearly spend, charges that need attention, the next 30 days and spend by category and by card + Exhale's overview: monthly and yearly spend, charges that need attention, the next 30 days and spend by category and by card +
+
+ Exhale on a phone, with the dock of every page + Exhale on a phone, with the dock of every page
- Exhale on a phone, with the dock of every page -
-
- -
-

How it works

-

Installed in a minute. Then it just runs.

-
-

Download and open it

Exhale starts in the background and opens in its own window. From then on it starts by itself with your computer.

-

Create your account

Then follow the steps on the home page. Making your own Telegram bot takes a minute and is guided.

-

Add your subscriptions

By hand, from Wallos or a spreadsheet, or from your bank statement. Reminders start the same day.

-
+

What it does

The reminder is the app.

The message that says Netflix renews in three days lets you fix it right there. It updates in place, and so does the web.

Reminders you can answer

Already paid, a new date, another amount or card, skip, cancel, undo. One tap in the message.

The dates that cost money

Free trials before they charge, the last day to cancel, renewals that need you, price rises announced ahead.

-

Every currency, exact

Totals in your currency at ECB rates, and what to set aside each month for the yearly bills.

-

Shared, not mixed

A partner or flatmates get their own account and reminders. Split a subscription and see who owes whom.

-

Ask it anything

Plain language in chat, or Claude, ChatGPT and local models over MCP. Every change shows a preview and can be undone.

-

Yours, on your computer

One program, one data folder, a backup every day. No cloud, no telemetry, no account with us, no paid tier.

+

Find the ones you forgot

Import a bank export or a PDF statement and Exhale finds the charges that repeat, with no AI needed. Later statements show what was paid, what changed price and what never arrived.

+

The whole app in a chat

A pinned Telegram or Slack message is Exhale itself: spend, upcoming charges, every subscription, an add wizard and settings.

+

A check-up of facts, not tips

The same service paid twice, prices that went up this year, trials about to charge, a card about to expire and everything that depends on it.

+

Awake when it matters

An icon in the menu bar with your next charges. Keep a laptop awake for an hour or a night, even with the lid closed, never down to an empty battery.

+

On your phone, no app store

Install the web as an app and get push notifications with a button that works from the notification. Or reminders by email, ntfy and webhook.

+

Every currency, exact

Totals in your currency at ECB rates, and what to set aside each month for the yearly bills.

+

Shared, not mixed

A partner or flatmates get their own account and reminders. Split a subscription and see who owes whom.

+

Ask it anything

Plain language in chat, or Claude, ChatGPT and local models over MCP. Every change shows a preview and can be undone.

+

Bring everything with you

Import from Wallos or a spreadsheet. Export it all as JSON, CSV or ZIP, or follow your charges in your calendar.

+

Yours, on your computer

One program, one data folder, a backup every day. No cloud, no telemetry, no account with us, no paid tier.

+
+
+ +
+

How it works

+

Installed in a minute. Then it just runs.

+
+

Download and open it

Exhale starts in the background and opens in its own window. From then on it starts by itself with your computer.

+

Create your account

Then follow the steps on the home page. Making your own Telegram bot takes a minute and is guided.

+

Add your subscriptions

By hand, from Wallos or a spreadsheet, or from your bank statement. Reminders start the same day.

Download

Pick your computer.

-

Free, for every system. Open the installer and you are done.

-
-
-

macOS

macOS 12 or later · Apple silicon and Intel

- -

Open it and drag Exhale to Applications, then open Exhale. The first time, macOS says it cannot verify the developer: go to System Settings → Privacy & Security and click Open Anyway.

-
-
-

Windows

Windows 10 and 11 · 64-bit

- -

Open it: Exhale installs and opens, no administrator needed. If SmartScreen appears, click More info → Run anyway.

-
-
-

Linux

Ubuntu, Debian, Raspberry Pi OS · Fedora, RHEL

-
- - .deb - .rpm -
-

Open it with your software center, or sudo apt install ./exhale_linux_amd64.deb. Exhale runs as a service that starts with the computer, and appears among your apps.

-
-
-

Server or NAS

Docker, a home server, a Raspberry Pi or a VPS

-
docker run -d --name exhale --restart unless-stopped \
+		

The latest release, straight from GitHub Releases.

+ + + +
+
+

macOS

macOS 12 or later
+
    +

    Open it and drag Exhale to Applications. The first time, macOS says it cannot verify the developer: go to System Settings → Privacy & Security and choose Open Anyway.

    +
    +
    +

    Windows

    Windows 10 or 11
    +
      +

      The installer needs no administrator. If SmartScreen warns you, choose More info → Run anyway.

      +
      +
      +

      Linux

      x86-64, ARM64, Raspberry Pi
      +
        +

        The .deb and .rpm run Exhale as a service that starts with the computer, and add it to your applications.

        +
        +
        + +
        + Verify a download: + checksums.txt + cosign signature + How to verify + All releases +
        + +
        +

        On a server, or from the terminal

        +
        + + +
        +
        +
        +
        docker run -d --name exhale --restart unless-stopped \
           -p 8484:8484 -v exhale-data:/data \
           ghcr.io/akamachinecode/exhale
        -

        Reminders never miss on a machine that is always on. The install guide covers HTTPS, backups and every option.

        -
        + +
        +

        For a home server, a NAS, a Raspberry Pi or a VPS: reminders never miss on a machine that is always on. docker logs exhale shows the one-time setup code. The Docker guide covers Compose, HTTPS and backups.

        + + -

        Every file, with signed checksums and build provenance, is on the release page. Prefer to build it yourself? The source is on GitHub.

        -
        +

        Questions

        Before you install

        -
        Does my computer need to stay on?

        Reminders go out while Exhale runs. On a computer that sleeps, Exhale can keep it awake (Settings → This computer), and anything due while it slept is sent when it wakes. A home server or a Raspberry Pi that never sleeps is ideal.

        +
        Does my computer need to stay on?

        Reminders go out while Exhale runs. On a laptop, Exhale can keep it awake for a while, even with the lid closed, from its menu bar icon or Settings → This computer, and anything due while it slept is sent when it wakes. A home server or a Raspberry Pi that never sleeps is ideal.

        Where is my data?

        In one folder on your computer, copied every day. Nothing is sent anywhere unless you set up a channel such as Telegram.

        -
        Can I use it on my phone?

        Yes. Reminders reach your phone in Telegram or Slack, and the web works on phones. Exhale itself runs on a computer.

        +
        Can I use it on my phone?

        Yes. Reminders reach your phone in Telegram or Slack, or as push notifications once you install the web as an app (it needs HTTPS). Exhale itself runs on a computer.

        Is it really free?

        Yes. Exhale is free software under the AGPL-3.0, with no paid tier, no account with us and no telemetry.

        -
        How do I uninstall it?

        On a Mac, turn Exhale off in System Settings → General → Login Items and drag it to the Trash. On Windows, Settings → Apps. On Linux, remove the package. Your data stays until you delete its folder.

        +
        I use Wallos. Can I move over?

        Yes. Import your Wallos database and review every subscription before it is saved.

        +
        How do I uninstall it?

        On a Mac, turn Exhale off in System Settings → General → Login Items and drag it to the Trash. On Windows, Settings → Apps. On Linux, remove the package. Your data stays until you delete its folder.

        - - diff --git a/site/style.css b/site/style.css new file mode 100644 index 0000000..c9b0dc9 --- /dev/null +++ b/site/style.css @@ -0,0 +1,172 @@ +/* Exhale's download page. Same look as the app (web/src/styles.css): black, + white and greys in both themes, Geist, and the brand gradient only on the + logo and the headline. Dark by default, like the app; the button in the + header switches to light (data-theme="light" on ) and remembers it. */ + +@font-face { font-family: "Geist"; src: url(fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; } +@font-face { font-family: "Geist Mono"; src: url(fonts/geist-mono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; } + +:root { + color-scheme: dark; + --bg: light-dark(oklch(0.985 0 0), oklch(0.13 0 0)); + --surface: light-dark(oklch(1 0 0), oklch(0.165 0 0)); + --raised: light-dark(oklch(0.955 0 0), oklch(0.205 0 0)); + --hover: light-dark(oklch(0.97 0 0), oklch(0.19 0 0)); + --line: light-dark(oklch(0.915 0 0), oklch(0.255 0 0)); + --line-strong: light-dark(oklch(0.86 0 0), oklch(0.33 0 0)); + --fg: light-dark(oklch(0.16 0 0), oklch(0.97 0 0)); + --muted: light-dark(oklch(0.45 0 0), oklch(0.72 0 0)); + --faint: light-dark(oklch(0.53 0 0), oklch(0.6 0 0)); + --code-bg: light-dark(oklch(0.96 0 0), oklch(0.185 0 0)); + --brand: linear-gradient(120deg, oklch(0.78 0.12 300), oklch(0.8 0.1 230) 50%, oklch(0.85 0.12 175)); + --glow: light-dark(oklch(0.7 0.12 260 / 0.14), oklch(0.8 0.1 250 / 0.16)); + --shadow: light-dark(oklch(0.2 0.02 260 / 0.22), oklch(0 0 0 / 0.75)); + --radius: 14px; +} +/* Light: the same palette through light-dark(), and the gradient's hues + darker, since the dark ones are too pale on white. */ +:root[data-theme="light"] { + color-scheme: light; + --brand: linear-gradient(120deg, oklch(0.52 0.19 300), oklch(0.53 0.15 245) 50%, oklch(0.56 0.12 185)); +} +/* Each screenshot is in the page twice; only the current theme's shows. */ +.for-light, :root[data-theme="light"] .for-dark { display: none; } +:root[data-theme="light"] .for-light { display: block; } + +* { box-sizing: border-box; } +html { scroll-behavior: smooth; scroll-padding-top: 72px; } +@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } } +body { + margin: 0; + background: var(--bg); + color: var(--fg); + font: 16px/1.55 "Geist", ui-sans-serif, system-ui, sans-serif; + letter-spacing: -0.006em; + -webkit-font-smoothing: antialiased; + font-feature-settings: "ss01"; + overflow-x: hidden; +} +a { color: inherit; } +img { max-width: 100%; height: auto; display: block; } +code, pre { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.88em; } +code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 5px; overflow-wrap: anywhere; } +pre { margin: 0; } +pre code { background: none; padding: 0; } +:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; border-radius: 6px; } +.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; } +.icon { width: 18px; height: 18px; fill: currentColor; flex: none; } + +h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 620; max-width: 26ch; text-wrap: balance; } +.kicker { color: var(--faint); font-size: 13px; font-weight: 550; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; } +.sub { color: var(--muted); margin: 12px 0 0; max-width: 62ch; } +.fine { color: var(--faint); font-size: 13.5px; margin: 0; } +.fine a, .sub a { color: var(--muted); } +.fine a:hover, .sub a:hover { color: var(--fg); } +.fine strong { color: var(--fg); font-weight: 550; } + +/* header */ +.top { position: sticky; top: 0; z-index: 10; background: color-mix(in oklch, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; } +.top.scrolled { border-bottom-color: var(--line); } +.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; } +.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; } +.logo img { width: 28px; height: 28px; } +.top nav { display: flex; align-items: center; gap: 2px; margin-left: auto; } +.top nav a, .lang, .theme-toggle { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 8px; transition: color .15s, background-color .15s; } +.top nav a:hover, .lang:hover, .theme-toggle:hover { color: var(--fg); background: var(--raised); } +.lang { background: none; border: 0; font: inherit; font-size: 12px; font-weight: 600; text-transform: uppercase; cursor: pointer; } +.theme-toggle { display: grid; place-items: center; padding: 6px 8px; background: none; border: 0; cursor: pointer; } +.theme-toggle .icon { width: 16px; height: 16px; } +@media (max-width: 640px) { .top nav .wide { display: none; } } + +/* hero */ +.hero { position: relative; text-align: center; padding: 80px 0 48px; } +.hero::before { content: ""; position: absolute; inset: -60px 0 auto; height: 520px; z-index: -1; pointer-events: none; background: radial-gradient(60% 55% at 50% 30%, var(--glow), transparent 70%); } +.pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 0 0 22px; padding: 5px 12px 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; text-decoration: none; transition: border-color .15s, color .15s; } +.pill:hover { border-color: var(--line-strong); color: var(--fg); } +.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; } +.pill .arrow { color: var(--faint); } +h1 { margin: 0 auto; max-width: 15ch; text-wrap: balance; font-size: clamp(40px, 7vw, 72px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 650; } +h1 .brand { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; } +.lede { margin: 22px auto 0; max-width: 60ch; color: var(--muted); font-size: clamp(16px, 2.2vw, 18px); } +.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; } +.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 12px; font-size: 15px; font-weight: 550; text-decoration: none; border: 1px solid var(--line-strong); color: var(--fg); background: var(--surface); transition: transform .1s, background-color .15s, border-color .15s; } +.btn:hover { background: var(--hover); } +.btn:active { transform: scale(.98); } +.btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); } +.btn.primary:hover { opacity: .88; } +.hero .fine { margin-top: 14px; } + +/* screenshots */ +.shots { position: relative; margin: 44px auto 0; padding-bottom: 40px; } +.shots .window img { border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); box-shadow: 0 40px 120px -40px var(--glow), 0 30px 70px -30px var(--shadow); } +.shots .phone { position: absolute; right: -12px; bottom: 0; width: 23%; min-width: 150px; } +.shots .phone img { border-radius: 30px; border: 6px solid light-dark(oklch(0.9 0 0), oklch(0.22 0 0)); box-shadow: 0 30px 70px -20px var(--shadow), 0 0 0 1px var(--line); } +@media (max-width: 720px) { .shots .phone { display: none; } .shots { padding-bottom: 0; } } + +/* sections */ +section.block { padding: 104px 0 0; } + +.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 36px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; } +.feature { padding: 26px 24px; background: var(--surface); } +.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; counter-reset: step; } +.step { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); } +.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 18px; border-radius: 8px; background: var(--raised); color: var(--fg); font-size: 13px; font-weight: 600; } +.step h3, .feature h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.01em; font-weight: 600; } +.step p, .feature p { margin: 0; color: var(--muted); font-size: 14.5px; } +@media (max-width: 860px) { .steps, .features { grid-template-columns: 1fr 1fr; } } +@media (max-width: 560px) { .steps, .features { grid-template-columns: 1fr; } } + +/* download */ +.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; margin-top: 36px; } +@media (max-width: 380px) { .platforms { grid-template-columns: 1fr; } } +.platform { display: flex; flex-direction: column; gap: 12px; padding: 20px 8px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s; } +.platform.mine { border-color: var(--line-strong); box-shadow: 0 0 0 1px var(--line-strong); } +.platform > header { display: flex; align-items: center; gap: 10px; padding: 0 12px; } +.platform > header .icon { width: 22px; height: 22px; } +.platform h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; } +.platform .req { margin-left: auto; color: var(--faint); font-size: 12.5px; text-align: right; } +.platform > .fine { padding: 0 12px; } +.files { list-style: none; margin: 0; padding: 0; } +.files li + li { border-top: 1px solid var(--line); } +.files .group { padding: 12px 12px 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 550; border-top: none !important; } +.file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; transition: background .12s; } +.file:hover { background: var(--hover); } +.file .what { flex: 1; min-width: 0; display: flex; flex-direction: column; } +.file .label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 550; } +.file .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; color: var(--faint); } +.file .get { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line-strong); color: var(--muted); } +.file .get svg { width: 14px; height: 14px; } +.file:hover .get { color: var(--fg); } +.file.recommended .get { background: var(--fg); border-color: var(--fg); color: var(--bg); } +.badge { padding: 1px 7px; border-radius: 999px; background: var(--raised); color: var(--fg); font-size: 11px; font-weight: 600; } + +.verify { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 20px 4px 0; color: var(--faint); font-size: 13.5px; } +.verify a { color: var(--muted); text-decoration: none; } +.verify a:hover { color: var(--fg); text-decoration: underline; } + +.terminal { max-width: 760px; margin-top: 64px; } +.terminal h3 { margin: 0 0 14px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; } +.tabs { display: inline-flex; gap: 2px; margin-bottom: 12px; padding: 3px; border-radius: 9px; background: var(--raised); } +.tabs button { padding: 5px 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 550; cursor: pointer; } +.tabs button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px var(--shadow); } +.panel[hidden] { display: none; } +.cmd { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 6px 6px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--code-bg); } +.cmd pre { flex: 1; overflow-x: auto; padding: 8px 0; font-size: 12.5px; line-height: 1.6; } +.copy { flex: none; align-self: flex-start; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 550; cursor: pointer; } +.copy:hover, .copy.done { color: var(--fg); } + +/* questions */ +.faq { margin-top: 28px; border-top: 1px solid var(--line); } +.faq details { border-bottom: 1px solid var(--line); } +.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 550; list-style: none; cursor: pointer; } +.faq summary::-webkit-details-marker { display: none; } +.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 20px; line-height: 1; } +.faq details[open] summary::after { content: "−"; } +.faq p { margin: 0 0 18px; color: var(--muted); max-width: 70ch; } + +/* footer */ +footer { margin-top: 110px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px; } +footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; } +footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; } +footer a { color: var(--muted); text-decoration: none; } +footer a:hover { color: var(--fg); } diff --git a/web/scripts/site-screenshots.mjs b/web/scripts/site-screenshots.mjs new file mode 100644 index 0000000..28889ca --- /dev/null +++ b/web/scripts/site-screenshots.mjs @@ -0,0 +1,107 @@ +// The screenshots on the website and in the README (site/img), taken from the +// current code: a fresh server with demo data, desktop and phone, light and +// dark. Run through `mise run screenshots` (scripts/screenshots.sh), which +// builds and starts that server. Dates are relative to today, so the pictures +// never show a stale month. +// +// Usage: node scripts/site-screenshots.mjs +import { writeFileSync } from "node:fs"; +import { join } from "node:path"; +import { chromium } from "playwright"; + +const [base, out] = process.argv.slice(2); +if (!base || !out) throw new Error("usage: node scripts/site-screenshots.mjs "); + +const day = (n) => new Date(Date.now() + n * 864e5).toISOString().slice(0, 10); +// The last day of the month after next: a card that expires soon. +const soon = (() => { + const d = new Date(); + return new Date(Date.UTC(d.getUTCFullYear(), d.getUTCMonth() + 2, 0)).toISOString().slice(0, 10); +})(); + +const browser = await chromium.launch(); + +// ---- demo data ---- + +const setup = await browser.newContext(); +const api = async (method, path, data) => { + const res = await setup.request.fetch(base + "/api/v1" + path, { method, data, headers: { origin: base } }); + if (!res.ok()) throw new Error(`${method} ${path}: ${res.status()} ${await res.text()}`); + return res.json(); +}; +await api("POST", "/auth/setup", { + name: "Alex", email: "alex@example.com", password: "a long demo password", + householdName: "Home", currency: "EUR", timezone: "Europe/Madrid", locale: "en", +}); +const method = async (m) => (await api("POST", "/payment-methods", m)).paymentMethod.id; +const revolut = await method({ name: "Revolut", kind: "card", last4: "0937" }); +const visa = await method({ name: "Visa", kind: "card", last4: "4421", expiresOn: soon }); +const paypal = await method({ name: "PayPal", kind: "paypal" }); +const categories = Object.fromEntries((await api("GET", "/household")).categories.map((c) => [c.name, c.id])); + +const subscriptions = [ + ["Netflix Premium", "19.99", "EUR", 1, "month", 0, "Streaming", visa], + ["Spotify Family", "17.99", "EUR", 1, "month", -4, "Music", revolut], + ["iCloud+ 2 TB", "9.99", "EUR", 1, "month", 2, "Cloud & Dev", revolut], + ["GitHub Copilot", "10.00", "USD", 1, "month", 8, "Software", visa], + ["ChatGPT Plus", "20.00", "USD", 1, "month", 21, "AI", visa], + ["Amazon Prime", "49.90", "EUR", 1, "year", 10, "Streaming", revolut], + ["Hetzner Cloud", "4.51", "EUR", 1, "month", 13, "Cloud & Dev", paypal], + ["Basic-Fit", "29.99", "EUR", 4, "week", 5, "Health & Fitness", revolut], + ["1Password Families", "59.88", "USD", 1, "year", 52, "Software", visa], +]; +const ids = {}; +for (const [name, price, currency, interval, unit, first, category, paymentMethodId] of subscriptions) { + const s = await api("POST", "/subscriptions", { + name, price, currency, interval, unit, firstCharge: day(first), categoryId: categories[category], paymentMethodId, + }); + ids[name] = s.subscription.id; +} +// A charge that was due nine days ago and is still unconfirmed. +const gpt = await api("GET", `/subscriptions/${ids["ChatGPT Plus"]}`); +await api("POST", "/charges/move", { chargeId: gpt.upcoming[0].id, newDate: day(-9), scope: "this" }); +const session = await setup.storageState(); + +// ---- pictures ---- + +const shots = [ + ["app", { width: 1440, height: 900 }, { width: 2000, height: 1250 }], + ["phone", { width: 390, height: 844 }, { width: 780, height: 1688 }], +]; +for (const theme of ["light", "dark"]) { + for (const [name, viewport, size] of shots) { + const phone = name === "phone"; + const ctx = await browser.newContext({ + viewport, deviceScaleFactor: 2, colorScheme: theme, reducedMotion: "reduce", + isMobile: phone, hasTouch: phone, locale: "en-US", storageState: session, + }); + await ctx.addInitScript((t) => { + localStorage.setItem("theme", t); + localStorage.setItem("lang", "en"); + localStorage.setItem("exhale.getStarted.hidden", "1"); + }, theme); + const page = await ctx.newPage(); + await page.goto(base + "/", { waitUntil: "networkidle" }); + await page.evaluate(() => document.fonts.ready); + await page.waitForTimeout(800); + const png = await page.screenshot(); + // The browser encodes WebP itself, so no image tool is needed. + const webp = await page.evaluate(async ({ src, width, height }) => { + const img = new Image(); + img.src = src; + await img.decode(); + const canvas = document.createElement("canvas"); + canvas.width = width; + canvas.height = height; + const g = canvas.getContext("2d"); + g.imageSmoothingQuality = "high"; + g.drawImage(img, 0, 0, width, height); + return canvas.toDataURL("image/webp", 0.82).split(",")[1]; + }, { src: "data:image/png;base64," + png.toString("base64"), ...size }); + const file = join(out, `${name}-${theme}.webp`); + writeFileSync(file, Buffer.from(webp, "base64")); + console.log("wrote", file); + await ctx.close(); + } +} +await browser.close();