Skip to content

Getting started ​

Setup ​

You need Rust (rustup picks the version from rust-toolchain.toml), Node.js 24 or newer with npm, and just (cargo install --locked just). The Android apps also need the Android SDK and a JDK. just doctor shows what your machine can build.

bash
npm install
just            # every recipe, with a line each
just dev        # hc-server on :3001 + Vite on :5173
just seed       # a demo week for the dev account

just dev signs you in as a seeded dev admin (AUTH_DEV_AUTOLOGIN, which the server refuses in production). Run just wasm again after changing the client core in crates/.

Repository ​

PathWhat
crates/Rust: the server (hc-server), the apps, the client core, sync
clients/web/The PWA: React, TypeScript, Vite, Tailwind
clients/android/The Android apps: Kotlin on the Rust core through JNI
clients/desktop/The Linux apps, GTK 4 in Rust: suspended (#800), not built
clients/chrome-extension/The Chrome extension
contract/API types, generated from crates/core/hc-contract
plugins/The plugin SDK and example plugins
docs/This site; docs/internal/ has design notes that are not published

See Architecture for how it fits together. The web UI follows the design system (Material Design 3, shared by every web app).

Before a merge request ​

bash
just ci-local

This runs the pipeline's jobs on your machine with CI's commands (scripts/ci/local.mjs): the npm checks and tests, cargo clippy and cargo nextest, hc-server with --features all. Add --browser after touching gestures, the calendar grid or anything the server stores (the Playwright suites), --android for the Android apps, --fuzz for the parsers the fuzz targets cover, or --all. just ci-local --list shows the steps and --only <step> runs some of them.

  • New behaviour comes with tests. A bug fix comes with a test that fails without it.
  • TypeScript is strict. No any without a comment saying why.
  • Keep changes focused, without unrelated reformatting.
  • Contributions are licensed under the AGPL-3.0-only, like the project.

Rules a change is likely to break ​

  • Events are stored once, as UTC instants plus an IANA time zone. Per-day segments are derived at local midnight and never stored. No raw Date math for day or week boundaries.
  • Every gesture works with mouse and touch.
  • Client logic lives in hc-client, written once for web, Android and desktop. UIs draw, they do not decide. The web reaches the API only through the core, never with fetch.
  • Apps reach the server only through hc-app-api, and never another app's tables.
  • Auth is app-owned and every query is scoped to the signed-in account.

The old name ​

The project was called hyper-calendar. Prose says HyperCloud, but some names are wire format or identifiers that installed apps, stored data or other programs depend on, and keep hypercalendar. Renaming one breaks updates, sign-ins or existing data, so don't, and don't take a remaining hypercalendar for a leftover to clean up:

  • App and D-Bus ids: the Android applicationIds and account type (dev.hypercalendar.calendar, dev.hypercalendar.account, ...), the Flatpak ids (dev.hypercalendar.Calendar, ...), the D-Bus names, paths and interfaces (dev.hypercalendar.Accounts1, dev.hypercalendar.Desktop), and the hypercalendar:// intent URIs. The Kotlin and Java packages follow the application ids.
  • The session cookie: hypercalendar_session (__Host-hypercalendar_session over HTTPS). A new name signs everyone out.
  • Backups: the .hypercalendar archive format, its hypercalendar version field and the /api/export.hypercalendar and /api/import.hypercalendar routes. Old backups have to restore.
  • Key derivation: the HKDF labels hypercalendar-enc-v1 and hypercalendar-search-v1 (hc-crypto, the web's keys.ts). Another label derives other keys, and encrypted data no longer opens.
  • Browser storage keys: hypercalendar.settings and the other localStorage keys of the web app. A new key forgets the user's settings.
  • Deployments: the compose service hyper-calendar, its volume hyper-calendar-data, the default database hyper-calendar.db, and the GitLab package names (hyper-calendar-android, ...) the releases link to.

Reporting bugs ​

Open an issue with the Bug or Feature template and say which deployment mode and version you are on. Security issues go through the security policy.