- TypeScript 48%
- Kotlin 20%
- CSS 12%
- Go 8%
- Shell 5%
- 4 more languages 7%
Altitude #
Altitude is a small, personal task manager inspired by Height's calm, compact interface. This is an independent implementation, not an official continuation of Height.
What works #
- Create and customize flat lists: name, description, color, and symbol.
- Tasks belong directly to a list; there are no projects or nested lists.
- Create, edit, move between lists, complete, reopen, and delete tasks.
- Task descriptions, three statuses, priorities, and due dates.
- List and board views, search, status filters.
- Personal accounts, short-lived access tokens, rotating refresh tokens, logout.
- Responsive web interface and a Tauri 2 Rust shell using the same React UI.
- Separate native Android client in
mobile/android/, built with Kotlin and Jetpack Compose (initial feature set). - Required sign-in or account creation before accessing the workspace; no demo mode or sample data.
No team features, chat, billing, attachments, notifications, offline synchronization, or automatic account recovery are included. Board status changes happen through task details; drag and drop is not implemented.
Local development with Docker #
Requirements: Docker with Compose. The API uses Go, chi, pgxpool, sqlx and Goose; PostgreSQL stores application data.
docker compose up --build
Open http://localhost:5173. The API is at http://localhost:8080/api/health. PostgreSQL is private to the Compose network and persists in altitude_postgres_data. The API applies embedded Goose migrations before listening. Rebuild the API image after changing Go source; the frontend still uses its development bind mount.
Local credentials are development defaults. Set DB_PASSWORD for your own deployment; URL-encode it in connection URLs. Existing initialized PostgreSQL volumes keep their database password until it is explicitly changed in PostgreSQL.
Local development without Docker #
Requirements: Go 1.25+, PostgreSQL 17+, and Node 22.12+ (Node 24 recommended).
cd backend
export DATABASE_URL='postgres://altitude:password@localhost:5432/altitude?sslmode=disable'
export COOKIE_SECURE=0
go run ./cmd/api
In another terminal:
cd frontend
npm ci
npm run dev
Vite proxies /api to port 8080. HTTP_ADDR overrides the Go server address. The API reads exported environment variables; it does not automatically load .env files. See backend/.env.prod.example.
Converting an existing MySQL installation #
Stop API writes and take a MySQL backup before importing. Keep the original MySQL volume until you have verified PostgreSQL and your backups. Do not run docker compose down -v during conversion.
The importer expects the latest flat-list MySQL schema. Older schemas must be upgraded to that schema before importing; this repository does not include the historical MySQL migration tooling. It copies users, workspaces, lists, tasks, token families and throttling records; preserves IDs, password hashes, avatars, date-only due dates and both list orders; and resets PostgreSQL ID sequences. It verifies row counts and commits all data in one transaction. A populated target is rejected, and MySQL is never modified by the importer.
For the existing local capstone_mysql_data volume:
docker compose stop api
# Stop any older MySQL container mounting this volume before starting mysql-legacy.
docker compose --profile migration up -d db mysql-legacy
mkdir -p .local/backups
chmod 700 .local/backups
docker compose exec -T mysql-legacy sh -c 'exec mysqldump -u root -p"$MYSQL_ROOT_PASSWORD" --single-transaction --routines --triggers height' > .local/backups/mysql-before-postgres.sql
chmod 600 .local/backups/mysql-before-postgres.sql
docker compose --profile migration run --build --rm import-mysql
docker compose up -d --build api web
docker compose --profile migration stop mysql-legacy
Use LEGACY_DB_PASSWORD and LEGACY_MYSQL_ROOT_PASSWORD if your old volume has different credentials. For a remote source, run go run ./cmd/import-mysql with MYSQL_DSN (Go MySQL driver DSN) and DATABASE_URL exported. Never point integration tests at your real database.
Before accepting writes, verify account sign-in, workspace/list/task contents and ordering. Existing Argon2id hashes and height_refresh cookies remain compatible. If you roll back after accepting new writes, reconcile those writes first: the old MySQL copy does not receive PostgreSQL changes.
Production #
For a private deployment with an Umbrel dashboard icon, see the native Umbrel package guide. For standalone hosting, see the private Docker deployment guide. It includes production web/API images, an offline image bundle, persistent PostgreSQL storage, and backup/update instructions.
Run the Go binary or container behind an HTTPS reverse proxy, with the compiled React assets served on the same origin. Route /api/* to the Go service.
cd backend
go build -o /tmp/altitude-api ./cmd/api
# Export DATABASE_URL, COOKIE_SECURE=1 and ALLOWED_ORIGINS first.
/tmp/altitude-api migrate
/tmp/altitude-api
The runtime container runs as a non-root user. Configure database credentials, TLS, restart policy and PostgreSQL backups through your host. /api/health checks database connectivity. Forwarded client-IP headers are ignored by default; auth throttling uses the direct peer IP, so configure any trusted-proxy support deliberately before relying on per-client limits behind a proxy.
Run a daily database maintenance job:
DELETE FROM tokens WHERE expires_at < EXTRACT(EPOCH FROM now())::bigint;
DELETE FROM auth_attempts WHERE resets_at < EXTRACT(EPOCH FROM now())::bigint;
Used refresh records remain until expiry so replay can revoke their token family.
Updating Altitude on Umbrel #
- On your development computer, open the Altitude repository and check out the code you want to deploy. The updater builds local files, including uncommitted changes; fetch/pull any desired repository updates yourself first.
- Start Docker and make sure Docker Buildx, Docker API 1.48+, Python 3, SSH, and SCP are available. Connect to the server's network or Tailscale so SSH can reach it. The existing native Umbrel app and its database must be running before updating.
- From the repository root on your computer, run:
./umbrel-update
- Complete any SSH or sudo authentication prompts and wait for
Altitude update completedbefore closing the terminal. - Open Altitude from the Umbrel dashboard, refresh the page, and verify sign-in and your saved lists/tasks. Check Settings → About the app for the installed version; the displayed version changes only when the release version is bumped.
This builds the current local checkout, copies a private release to umbrel@server.long-shiner.ts.net, makes a verified PostgreSQL backup and configuration archive, and updates the existing native altitude-private app through Umbrel. Docker must be running locally; SSH and sudo may ask for authentication. The app has a short maintenance pause after the upload, while its backup and update are applied.
The command preserves the existing database directory, database credentials, app ID, browser port, and HTTP/HTTPS cookie policy. It keeps the private registry at ~/altitude-native/registry-data/, with uploaded releases under ~/altitude-native/releases/. It never uninstalls the app, removes its volumes, or replaces its data with an empty database. It applies only to the native Umbrel installation, not the older standalone Compose deployment.
Recovery files are retained on the server under ~/altitude-native/backups/<timestamp>/: database.dump (PostgreSQL custom format), database-contents.txt, and package.tar.gz (installed configuration, excluding the live database directory). Backups are restricted to the administrator; keep an additional copy off the server. The update aborts if its backup fails and resumes the previous containers if no migration has started. After a migration/update failure, it keeps the backup and reports the error instead of attempting an unsafe automatic database rollback. Successful completion requires Umbrel to report the app ready and the updated API/database health check to pass.
To reuse an already built native bundle or choose a different SSH destination:
./umbrel-update --bundle .local/umbrel-native
./umbrel-update --host umbrel@another-server
Run ./umbrel-update --help for options. This command does not pull Git changes, publish images, or perform PostgreSQL major-version upgrades. If it fails, keep the printed backup/recovery directory and inspect the app on the server:
ssh -t umbrel@server.long-shiner.ts.net
sudo umbreld client apps.state.query --appId altitude-private
sudo umbreld client apps.logs.query --appId altitude-private
See the native deployment guide for initial installation and recovery details. For the older standalone deployment, follow its separate update instructions.
App versions #
Both apps show their installed version under Settings → About the app. Versions use major.minor.patch, starting at 0.1.0.
For web/desktop releases, update frontend/package.json (and its lockfile), frontend/src-tauri/tauri.conf.json, and the package version in frontend/src-tauri/Cargo.toml (and its lockfile) together. The frontend build checks that the displayed version and native package versions agree.
For Android releases, update ALTITUDE_VERSION_NAME and increment ALTITUDE_VERSION_CODE in mobile/android/gradle.properties. These can also be overridden with Gradle -P flags for a release build. The About screen reads the packaged version and build number from BuildConfig.
Native Android #
With a USB-debugging-enabled Android phone connected, run ./mobile/android/android-usb from the repository root to start the backend, build, install, and open the app. Requires Docker running, JDK 17, and the Android SDK.
The standalone Kotlin + Jetpack Compose app lives in mobile/android/, under mobile/, which will also hold the future iOS app. Open that folder in Android Studio. It connects directly to the Go API and includes authentication, workspaces, lists, and basic task management. See its README for setup, API configuration, and current limitations.
Desktop with Tauri #
The UI is React + TypeScript organized into src/components/atoms (StatusIcon), src/components/molecules (TaskRow), and src/components/organisms (TaskDetail). Rust provides the native shell and an HTTP client bound to your selected server. The Go API serves all platforms.
cd frontend
npm run tauri dev
The desktop app asks for your server URL before sign-in. Enter the HTTP or HTTPS address of your Altitude deployment, including its port (for the native Umbrel package, for example http://server.long-shiner.ts.net:8788). Server roots and URLs ending in /api are both accepted. Altitude checks the API before saving the URL in the native app configuration; it does not store login credentials there. On later launches it reconnects to that server. Change it from the sign-in screen or Settings → General → Server. Switching servers clears the device's current session and workspace selection.
npm run tauri build
Desktop builds accept HTTP for private LAN/Tailscale servers and HTTPS where configured. HTTPS uses trusted system/public certificates; certificate checks are never silently bypassed. The web app continues to use its current origin, and the Tauri mobile experiment retains its compile-time ALTITUDE_API_URL setting.
The native bridge accepts only relative API paths and known HTTP methods. It disables redirects and keeps the refresh cookie in native code, backed by the OS credential store (macOS Keychain, Windows Credential Manager, or Linux Secret Service). Access tokens remain in JS memory. Sessions resume after quitting and reopening; sign-out and server changes clear the saved session. Expired or revoked sessions require sign-in. Tokens are not written into localStorage or plaintext files.
When connecting to the native Umbrel app, the package must whitelist /api/* through Umbrel's outer login gate. The prepared package includes this setting; Altitude's API still enforces its own account authentication. Existing installations need the updated package configuration before a desktop client can connect. The browser UI remains behind Umbrel login.
The existing Tauri mobile tooling remains available for experimentation. Native Android development now lives in mobile/android/. The Tauri commands below still require platform SDK setup, generated mobile projects, signing, and target testing:
npm run tauri android init
npm run tauri android dev
# macOS with Xcode:
npm run tauri ios init
npm run tauri ios dev
When Tauri runs on a physical device, Vite binds to the TAURI_DEV_HOST address provided by Tauri and uses that address for hot reload. Standalone web development stays on 127.0.0.1. Tauri’s dev:tauri startup hook reuses a reachable Vite server belonging to this project on the required address, or starts one if needed. Other applications occupying the port produce a clear error. Standalone npm run dev keeps port 5173 strict. The hook shuts down only the Vite process it started. If updating these settings during an existing tauri android dev run, stop it with Ctrl+C and restart the command.
For Android setup on macOS, the command-line tools belong in $ANDROID_HOME/cmdline-tools/latest/ (with bin/ and lib/ inside it). If Tauri reports that an NDK was installed but its directory is missing, verify the actual installed packages and install a stable version explicitly:
export ANDROID_HOME="$HOME/Library/Android/sdk"
"$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" --sdk_root="$ANDROID_HOME" --install "ndk;29.0.14206865"
export NDK_HOME="$ANDROID_HOME/ndk/29.0.14206865"
test -f "$NDK_HOME/source.properties"
npm run tauri android init
Persist ANDROID_HOME and NDK_HOME in your shell configuration. A package skipped because its license was not accepted is not installed, even if the caller prints an installation success message. The version 29.0.13846066 is a release candidate; 29.0.14206865 is the stable r29 package used to verify this setup. See the Android SDK command-line tools layout and Tauri Android prerequisites.
During tauri android dev, the startup hook automatically maps the debug app’s local API port back to the development machine using adb reverse (port 8080 by default). Start the backend with docker compose up -d api db. This keeps the API bound to the computer’s loopback interface while allowing the connected phone to access it through ADB. Custom loopback ports in ALTITUDE_API_URL are forwarded too; remote API URLs skip this step. If multiple authorized devices are connected, select one with ANDROID_SERIAL.
USB forwarding is cleared when the phone disconnects. Restart Android development to restore it, or run adb reverse tcp:8080 tcp:8080 manually after reconnecting. A standalone debug APK also needs that mapping when it uses the default local API. For iOS devices or testing without ADB, set the Rust compile-time ALTITUDE_API_URL to a reachable API address. Tauri mobile release builds require HTTPS. Desktop builds need the target OS toolchain; mobile builds need Android SDK/NDK or Xcode respectively.
Authentication #
Access tokens are random opaque bearer tokens valid for 15 minutes. Refresh tokens expire after 30 days, rotate on every refresh, and use HttpOnly/SameSite=Strict cookies (Secure in production). Only SHA-256 token hashes are stored in the database. Refresh token replay revokes the entire session family, including its access tokens. Passwords use Argon2id. Login and registration share a 20-attempt/15-minute per-IP database-backed rate limit. All list/task queries enforce ownership, including moves between lists. The API ignores proxy forwarding headers by default; configure trusted proxies deliberately if your host requires them.
Verification #
Run the backend suite with Go and Docker installed:
./backend/tests/run.sh
This builds the Go API, creates a separate ephemeral PostgreSQL test stack, runs Go race tests and vet, then removes the test stack. Override API_TEST_PORT or API_TEST_DB_PORT if the default ports 18080/15432 are occupied. It does not use the development database.
Individual Go checks:
cd backend
go test ./...
go vet ./...
# Run concurrency, rollback and schema checks against PostgreSQL:
TEST_DATABASE_URL='postgres://user:password@localhost:5432/altitude_test?sslmode=disable' go test -race ./...
PostgreSQL Go tests create and remove isolated schemas within the specified test database. Without TEST_DATABASE_URL, database tests are skipped. Goose migrations are checked for repeatability. Tests exercise concurrent refresh replay, atomic rate limits, concurrent appends, malformed requests and deletion rollback.
Frontend checks remain npm run build and the scripts documented below. Native release builds need separate target-device verification. Desktop server-session isolation checks: node frontend/scripts/test-server-connection.mjs.
Schema history #
The current PostgreSQL baseline includes all existing features: flat lists, account onboarding, multiple workspaces, avatars, favorites, custom ordering and three task statuses. New installations receive this schema automatically through Goose. Historical MySQL migrations are not included or imported into Goose’s migration table.
Interface preferences and icons #
Altitude uses the approved six-colour lowercase “a”, in the flowing Loop shape. The canonical editable vector is frontend/branding/altitude-v2/logo.svg; the UI uses /altitude.svg. Browser favicons, PWA and Apple touch icons, Windows ICO, Linux PNG, macOS ICNS and layered assets, and Android adaptive, round, and monochrome icons are generated from the same artwork.
Run npm run icons:generate from frontend/ on macOS with Xcode, ImageMagick, and XcodeGen installed after changing the canonical logo. It regenerates exports in frontend/branding/altitude-v2/ and frontend/src-tauri/icons-altitude/, then syncs active Tauri and standalone Android resources. npm run icons:sync copies committed exports without rendering. Apple projects use Altitude.icon and CFBundleIconName=Altitude.
Existing browser preferences are copied to the altitude. namespace on startup. Existing user-created workspace and list names are preserved. The PostgreSQL conversion uses a separate database and Docker volume; the legacy MySQL volume is retained for recovery. Native bundle identifiers are now app.altitude.client (Tauri) and com.altitude.android (standalone Android), so these install as Altitude alongside any older native app.
Task completion checkboxes are 18 × 18 pixels. Drag the desktop sidebar's right edge to resize it (180–480 pixels, constrained to keep the task pane usable). The width is stored in this device/browser's localStorage under altitude.sidebarWidth; mobile uses a separate fixed drawer. Focus the divider and press Left/Right to resize by 10 pixels, Home/End for the limits, or double-click to reset to 225 pixels.
General interface icons use the official @gravity-ui/icons React components, bundled with the app. The 16 abstract list icons remain separate. See THIRD_PARTY_NOTICES.md for the MIT license notice. No runtime icon CDN is used.
Favorites and three task statuses #
Each list has a persisted is_favorite flag. Stars in the sidebar toggle it through PATCH /api/lists/{id}; favorites appear above all lists, and each section has an independently remembered collapse state. Favorites are persisted to the authenticated account.
Tasks support Backlog, In progress, and Done. The status popup displays the corresponding badges. The PostgreSQL schema includes lists.is_favorite and the current statuses. New tasks and reopened tasks use Backlog.
List names and layout #
List names are normalized to lowercase with whitespace replaced by dashes on create/edit in both the frontend and API. The importer preserves existing normalized names and IDs. The View popup includes a remembered “Show task IDs” setting for muted T-number labels in the list view. Board cards omit list names. The header sidebar button animates the sidebar open/closed, respects reduced-motion preferences, and remembers the desktop hidden state independently of its saved width.
Account onboarding #
The first screen is sign-in, with an option to create an account using name, email, password, and password confirmation. New accounts continue to workspace setup (name, optional description, a choice of ten preset colors, and a live initial avatar), followed by an animated reveal and an optional synthesized welcome chime. Workspace creation is required before creating lists or tasks. Refreshing or signing in before setup is finished resumes workspace setup.
The PostgreSQL schema includes account names and workspaces; MySQL conversion preserves existing workspace assignments. Accounts can own multiple workspaces. The workspace selector switches between them and provides edit and create options. Lists and tasks belong to the selected workspace; switching workspaces is remembered per account in this browser.
Workspace colors are saved in workspaces.color. Existing workspaces default to violet. Edit a workspace through its selector menu to change its name, description, or preset color.
The account button loads a Gravatar image using the SHA-256 hash of the signed-in email (trimmed and lowercased). Requests go to Gravatar without a referrer; missing images and network failures fall back to the user’s initial.
Lists retain their workspace IDs when imported from MySQL.
Account profile and appearance #
App settings includes editable account names, custom avatar uploads, and password changes. The PostgreSQL schema includes the nullable account avatar column. Avatar images are cropped and resized locally to 192 × 192 before saving; the API validates image type, size, and dimensions. Password changes require the current password and revoke other sessions while preserving the current session.
Appearance settings offers Light, Dark, and Dark sidebar themes with SVG previews. The selection is stored on the current device as altitude.theme and applies to both task and settings screens.
Custom ordering #
Drag tasks to reorder them in list or Kanban view; dropping a card in another column also changes its status. Reordering selects Custom sort, available from the View menu. Click a list column heading to sort by task name, status, priority, or due date; click again to reverse, and a third time to return to Custom sort. Undated tasks remain last. New tasks created on Kanban stay in their chosen column, including the next blank task after Enter.
Sidebar lists can be reordered within Favorites and Lists independently. Separate favorite_position and position values retain each order when a list is starred or unstarred. Keyboard alternatives: Alt + Up/Down moves a focused task or list; Alt + Left/Right moves a focused Kanban card between statuses.
The PostgreSQL schema includes persisted position columns; conversion preserves both IDs and order. POST /api/lists/reorder accepts { "ids": [...], "is_favorite": true } for the Favorites group, or false for the non-favorite Lists group in the active workspace. Omitting is_favorite retains the all-lists ordering API. POST /api/tasks/reorder accepts { "list_id": 1, "ids": [...] } for all tasks in that list, optionally with moved_id and status for a board move. The endpoints validate the complete owner/workspace scope before committing a transaction and return 204; stale or incomplete orders return 409. Existing installations start in creation order, and new items append at the end.
Ordering helper checks: node frontend/scripts/test-task-order.mjs.
Deleting a workspace #
Settings → Workspace details includes Delete workspace. The confirmation requires the exact saved workspace name, including case; the input receives focus, and Enter confirms only after a match. The API independently enforces the same name check.
DELETE /api/workspaces/{id} accepts { "confirmation_name": "Workspace name" }. Only the owner can delete the workspace. Its lists and tasks are removed in a transaction, and the response is a complete workspace snapshot: the active remaining workspace when available, otherwise the first remaining workspace, or an empty setup context if none remain. Optional workspace_id preserves an active workspace that was not deleted. The client updates its active workspace and stored preference from that response, without a follow-up request to the deleted workspace. Missing or incorrect confirmation returns 422; another owner’s or an already deleted workspace returns 404.
Development-server lifecycle checks: node frontend/scripts/test-dev-tauri.mjs (starts disposable local HTTP servers).
Android API forwarding checks: node frontend/scripts/test-android-api.mjs.
Desktop app icons #
Settings → Appearance offers four device-local app icons: dark/colour (the default), white/colour, dark/white, and white/black. Desktop choices are stored in the native app configuration and restored before sign-in. macOS changes the running Dock icon; Windows and Linux update app window icons. The installed Finder/launcher artwork remains the packaged dark/colour icon. Browser choices update the tab favicon and are saved locally. Mobile launcher selection is not included.
npm run icons:generate also generates the four embedded desktop PNGs and matching settings previews. The SVG master remains in frontend/branding/altitude-v2/logo.svg.