Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

Repository files navigation

CARE Anywhere

Warning

This is an experiment, nothing more. It is not an official CARE release, not supported, and not ready for any use. Do not use it with real patient data or in clinical settings. It may change completely or be abandoned. For CARE itself, see ohcnetwork/care.

The experiment asks one question: can CARE be packaged as a lightweight, download-and-run desktop app for Windows, Linux and macOS, without Docker?

So far, yes: each OS gets one download containing a desktop launcher, Python, Postgres and CARE's backend and frontend. The launcher starts everything, shows each service's status, and opens CARE in your browser. CI builds and tests all three on every push.

The CARE Anywhere launcher on macOS

The launcher window on Windows The launcher window on Linux
The launcher on Windows The launcher on Linux (CI's virtual display has no window frame)
CARE's sign-in page served by CARE Anywhere on Windows
CARE itself, served by the bundle on Windows

Screenshots are taken by CI on GitHub's Linux, macOS and Windows runners (build workflow).

Download

Builds of main are published as the nightly pre-release:

OS File Requirements
Windows 10/11, x64 care-anywhere-windows-x64.zip WebView2 runtime (built into Windows 11 and most Windows 10)
macOS 12+, Apple silicon care-anywhere-macos-arm64.dmg —
Linux, x64 care-anywhere-linux-x64.tar.gz glibc; WebKitGTK 4.1 for the window (libwebkit2gtk-4.1-0)

Each is about 190–210 MB to download.

Run

  1. Extract the download anywhere (on macOS, open the .dmg and drag CARE Anywhere to Applications).
  2. Start the launcher:
    • Windows: run care-anywhere.exe. The build is unsigned, so SmartScreen may warn: choose More info → Run anyway.

    • macOS: the app is signed ad hoc but not notarized by Apple, so macOS blocks it the first time. Either open it, then go to System Settings → Privacy & Security and choose Open Anyway, or remove the download quarantine and open it:

      xattr -dr com.apple.quarantine "/Applications/CARE Anywhere.app"
      open "/Applications/CARE Anywhere.app"

      Builds before this change weren't signed as a whole app, which macOS reports as "damaged"; the xattr command above opens those too.

    • Linux: run ./care-anywhere. Without a desktop, run ./care-anywhere -headless and open the dashboard at http://127.0.0.1:27099.

  3. The first start takes 2–3 minutes while the database is created. When the window says CARE is ready, choose Open CARE and sign in as admin with the password shown.
  4. Optional, in the window's Settings:
    • Network name: enter a name such as clinic so phones, tablets and other computers on the same network can open CARE at http://clinic.local (announced over mDNS). On Linux, which keeps port 80 for root, the address is http://clinic.local:27100.
    • Daily backup: choose a folder, for example on a USB drive. Once a day CARE's database, uploaded files and keys are saved there as one encrypted file; the newest 14 are kept. Backups open only with the backup key shown under the folder: keep a copy of it away from this computer (printed, or in a password manager). HOW-TO-RESTORE.txt in the backup folder explains how to open one.
    • Restore from a backup: choose a backup (and its key, if it came from another computer). CARE backs up the current data first, so a restore can be undone by restoring that backup.
  5. You can minimize the window; CARE keeps running. Closing it, or Stop CARE, stops everything.

CARE Anywhere uses ports 27099–27104. Without a network name everything listens on 127.0.0.1 only; with one, only the web app and file storage are reachable from the network, and file storage accepts only signed upload and download links from other devices. Data is kept per user, outside the app folder:

Linux macOS Windows
~/.local/share/care-anywhere ~/Library/Application Support/CARE Anywhere %LOCALAPPDATA%\CARE Anywhere

The macOS quarantine step and the SmartScreen prompt haven't been tried on a real download yet; CI runs the builds without them.

How it works

The launcher (launcher/, Go) runs Postgres, the CARE API (Django on Waitress), and the Celery worker and scheduler as child processes. It runs the cache and task queue (Redis-compatible), file storage (S3-compatible) and the web app inside itself, so only Postgres and Python ship as separate programs. Its window shows the same dashboard page using the OS's built-in web view.

See docs/stack.md for the full stack, configuration, network name, backups, per-OS differences and known problems, such as the in-memory task queue and PDF fonts on macOS and Windows.

PDF without native libraries

Core renders PDFs with WeasyPrint, which needs Pango/GTK libraries that are hard to bundle on Windows and macOS. CARE Anywhere uses the care_fullbleed_pdf plugin (Rust engine, pip wheels only) instead.

Core still imports WeasyPrint at startup, so a temporary core patch makes that import optional: patches/core/0001-optional-weasyprint.patch. It is applied to an exported copy of core, never to a core checkout. The matching upstream issue is drafted, not filed: docs/issue-optional-weasyprint.md.

Build

Builds run on GitHub Actions (.github/workflows/build.yml), one runner per OS. To build the bundle for the OS you're on, you need git, uv, go, Node 24 and checkouts of care and care_fe next to this repo (or CARE_CORE_REPO / CARE_FE_REPO pointing at them):

scripts/build-frontend.sh
scripts/build-bundle.sh
scripts/smoke-test.sh "$(ls -d dist/care-anywhere-*/ | head -1)"

On Linux, building the launcher needs libwebkit2gtk-4.1-dev and libgtk-3-dev.

Path Purpose
launcher/ Go launcher: services, desktop window, dashboard (launcher/ui/)
patches/core/REVISION, frontend/REVISION Core and frontend commits the build uses
patches/core/*.patch Temporary core changes, applied in order
scripts/prepare-core.sh Exports core, applies the patches, writes build/requirements.txt
scripts/build-frontend.sh Builds care_fe into build/care_fe/build
scripts/build-bundle.sh Assembles the bundle for this OS in dist/
scripts/smoke-test.sh Starts a bundle, checks sign-in and background tasks, takes screenshots, stops it
scripts/window-screenshot.sh Captures the launcher window (CI)
scripts/check-pdf-without-weasyprint.py Checks PDF rendering without WeasyPrint (check workflow)
assets/icon.png App icon (CARE logo mark)
docs/ Stack notes, issue draft, screenshots

License

MIT. The core patch modifies CARE, which is also MIT-licensed. The launcher's dashboard uses CARE's logo from care_fe (MIT) and the Figtree font (SIL Open Font License 1.1).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages