Claude f7955bd803
Docker image / image (push) Successful in 41m11s
Android / apk (push) Successful in 8m37s
Nix / flake (push) Successful in 54s
Windows / installer (push) Successful in 5m8s
CI: leave the Android screen test out of the build
It needs a CalDAV test server and only gives screenshots; the logic tests
still run. Run it locally as described in the README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BheyWuEk9FKzCNyMz2aLyp
2026-11-11 01:39:32 +00:00
2026-10-06 00:32:23 +00:00

TasksNG

A keyboard-friendly task manager for your Baikal server and other CalDAV servers built on sabre/dav. Runs on Windows 10 and 11, on Linux with a package for NixOS, as a native Android app, and as a self-hosted web app in Docker that pairs with your phone.

The main repository is mirrored at tig.sshah.email/Cheeba/tasksng, which publishes the same releases (APK, Windows installer, Docker image).

Build Latest release Nix flake Docker Windows | Linux | Android | Web Tauri 2

Install · Android · Docker · Features · Shortcuts · Linux notes · How it works · Development

TasksNG showing the Today list with the details of a task open

Every change you make lands in a local cache first and syncs in the background, so the window never waits for the network. TasksNG opens from that cache in milliseconds, keeps working offline, and sends queued changes once the server is reachable again.

On Windows and Linux it is a Tauri 2 app with a React and shadcn/ui interface (with a few Aceternity UI components); on Android it is a native Kotlin and Jetpack Compose app. Both use the same sync engine, written in Rust. The Windows installer is a few MB and uses the WebView2 runtime that comes with Windows; on Linux it runs on WebKitGTK. Light and dark themes follow your system.

Tasks are stored as standard iCalendar VTODOs, so Thunderbird, Apple Reminders, Tasks.org and DAVx⁵ can work on the same lists. When you edit a task, TasksNG keeps the properties other apps wrote, and it uses ETags so it never silently overwrites a change made on another device.

The Upcoming view in the dark theme, grouped by day

Install

Windows

Download the installer from the latest release:

File What it is
TasksNG_x.y.z_x64-setup.exe Per-user installer. Needs no admin rights and is the one most people want.
TasksNG_x.y.z_x64_en-GB.msi Per-machine installer for managed deployments, in British English.
TasksNG-portable.exe A single executable with no installation. It needs WebView2, which Windows 11 and up-to-date Windows 10 include, and it doesn't update itself.

Builds of every commit are on the Actions tab as the TasksNG-windows-x64 artifact.

Android

Download TasksNG_x.y.z_android.apk from the latest release (or the Gitea release) and open it on your phone. It needs Android 8 or later. The first time, Android asks you to allow installing apps from your browser or file manager. To update, install the APK of a newer release over the old one; your tasks and sign-in stay. (Coming from 0.8 or earlier: uninstall that one first, because 1.0 is signed with a new key.)

It is a native app built with Android's own components (Jetpack Compose, Material 3). The lists are in the drawer (☰), tapping a task opens its details, long-pressing it opens its menu, swiping it right completes it and swiping left snoozes it. Pull down to sync. Light and dark follow your phone or the choice in Settings, and on Android 12 and later the colours can follow your wallpaper.

Reminders are handed to Android's alarm service, so they appear on time with Snooze 10 min and Done buttons even when TasksNG isn't running, and come back after a restart. Android 13 and later ask once whether TasksNG may show notifications. TasksNG also syncs in the background (every 30 minutes by default), so a reminder added on another device is scheduled without opening the app.

Long-press the home screen and add the Today widget to see today's tasks at a glance: tap one to open it, + to add a task. Long-press the TasksNG icon for shortcuts (new task, Today, Plan), add the New task tile to Quick Settings, or share text from any app to TasksNG to make it a task.

On Android 17 TasksNG asks to use Nearby devices when it starts; it needs that to reach a Baikal server on your home network.

Your password is encrypted with a key in the Android Keystore. TasksNG trusts the certificate authorities that come with Android, not ones you installed yourself, so for a self-signed certificate turn on Accept invalid TLS certificates under Advanced when signing in.

Builds of every commit are on the Actions tab as the TasksNG-android artifact. They are signed with a throwaway key, so uninstall one before installing a release.

Pairing with the web app

If you also run the web app, pair the two: in the web app open Settings → Phones → Pair a phone, and on the phone choose Pair with the TasksNG web app (on the sign-in screen, or in Settings) and scan the code. The phone signs in with the web app's account, no typing needed. From then on changes made on one appear on the other within seconds, and the phone can sign in other browsers: on the web app's sign-in page choose Sign in with your phone and scan the code it shows from Settings → Pair another, or sign in a browser. Codes are good for one use and five minutes. Without HTTPS the phone warns before it sends anything.

NixOS and Nix

The repository is a flake. It has the package for x86_64-linux and aarch64-linux, a NixOS module, an overlay and a development shell. CI builds the package for both systems and uploads it to the tasksng.cachix.org binary cache, so Nix can download it ready-built. To try TasksNG without installing it:

nix run github:sshahs/tasksng

Nix asks whether to use the cache the flake suggests. Answer yes, or it compiles TasksNG from source, which takes 10 to 20 minutes. Only users that Nix trusts can add a cache this way. On NixOS, add the cache to your configuration once instead:

nix.settings = {
  extra-substituters = [ "https://tasksng.cachix.org" ];
  extra-trusted-public-keys = [ "tasksng.cachix.org-1:FMPrtDc5KohOuU/tBd1bKryTqsz2igCxhkdO/gNn8Zg=" ];
};

Run nixos-rebuild switch with that setting before you add TasksNG, so the rebuild that installs TasksNG already uses the cache.

With the NixOS module

Add TasksNG to your system flake:

# flake.nix
{
  inputs.tasksng.url = "github:sshahs/tasksng";
  # Leave out `inputs.tasksng.inputs.nixpkgs.follows`: the cache only has builds made
  # with the nixpkgs in TasksNG's own flake.lock.

  outputs = { nixpkgs, tasksng, ... }: {
    nixosConfigurations.my-pc = nixpkgs.lib.nixosSystem {
      modules = [
        tasksng.nixosModules.default
        {
          programs.tasksng.enable = true;
          # programs.tasksng.autostart = true; # start in the background at login, for everyone
          # programs.tasksng.keyring = true;   # GNOME Keyring for window managers (Sway, Hyprland, i3 …)
        }
      ];
    };
  };
}

You can also add tasksng.packages.${pkgs.system}.default to environment.systemPackages or Home Manager's home.packages yourself, which uses the cached build as well. tasksng.overlays.default gives you pkgs.tasksng built with your own nixpkgs, which means compiling it. Without flakes, import nix/module.nix from a checkout, or call nix/package.nix with callPackage.

To update, run nix flake update tasksng and then nixos-rebuild switch (or home-manager switch).

With nix profile

To install TasksNG for your user only, without changing your system configuration (apart from the cache setting above):

nix profile install github:sshahs/tasksng   # also called `nix profile add` in newer Nix

TasksNG then appears in your app launcher, and tasksng is on your PATH, which Start TasksNG when you log in in Settings relies on.

nix profile upgrade tasksng   # update to the latest version
nix profile remove tasksng    # uninstall

The module's programs.tasksng.keyring option isn't available this way. GNOME and KDE Plasma already run a keyring; on Sway, Hyprland or i3, set services.gnome.gnome-keyring.enable = true; in your system configuration, or TasksNG keeps your password in a file only you can read.

However you installed it, a new version starts the next time you start TasksNG, so quit the running copy from the tray menu or with Ctrl+Q after updating. See Running on Linux for keyrings, trays, notifications and Wayland.

Self-hosting with Docker

The web version runs the same interface in a browser. A small server, tasksng-server, does the syncing with Baikal: you sign in with your Baikal username and password, and the server keeps a cache, settings and reminder state for each account separately. It suits a home server next to Baikal, so you can reach your tasks from any browser without installing anything.

docker run -d --name tasksng -p 8080:8080 \
  -e TASKSNG_CALDAV_URL=https://dav.example.com \
  -v tasksng-data:/data \
  ghcr.io/sshahs/tasksng:latest

Then open http://localhost:8080. The image is built for linux/amd64 and linux/arm64 (a Raspberry Pi 4 or 5 works). docker-compose.yml has the same setup for Docker Compose.

Variable Default What it does
TASKSNG_CALDAV_URL none The Baikal (or other CalDAV) server everyone signs in to. The sign-in screen then only asks for a username and password.
TASKSNG_ALLOW_ANY_SERVER false Lets people type any server address instead. Leave it off on anything reachable from the internet: the server connects to whatever address it is given.
TASKSNG_SECURE_COOKIE automatic Marks the session cookie Secure. By default that happens when the request came over HTTPS, as reported by a reverse proxy in X-Forwarded-Proto.
TASKSNG_LISTEN 0.0.0.0:8080 Address and port inside the container.
TASKSNG_DATA_DIR /data Where accounts are stored.
RUST_LOG info Log detail, such as debug.

Use HTTPS for anything beyond your own computer, because the browser sends your Baikal password to the server when you sign in. Put TasksNG behind a reverse proxy that terminates TLS and sets X-Forwarded-Proto, on its own host name (it doesn't support living under a sub path). With Caddy, that is one line:

tasks.example.com {
	reverse_proxy tasksng:8080
}

The /data volume holds each account's task cache and its Baikal password, readable only by the container's user (uid 10001; with a bind mount instead of a volume, run chown 10001 on the folder first). Back it up like any other secret, or don't back it up at all: the tasks live in Baikal, and signing in again rebuilds the cache. Sessions last 90 days. Signing out ends the account's sessions in every browser and deletes its stored password.

Paired phones (see Pairing with the web app) are kept in /data/devices.json, as hashes of their tokens; Settings → Phones lists and removes them.

The same image is published to the Gitea registry as tig.sshah.email/cheeba/tasksng.

If Baikal uses a certificate from a private certificate authority, mount the CA certificate (PEM, ending in .crt) into /certs, for example -v ./my-ca.crt:/certs/my-ca.crt:ro.

Reminders appear in the open tab, and as browser notifications when the tab is in the background and you've allowed them (Settings → Send a test notification asks for permission). They need a TasksNG tab to be open somewhere; reminders missed in the meantime show up when you open one, if they're less than a day old. The tray icon, start at login and the global quick add shortcut are desktop features and don't exist in the browser.

To update, pull the new image and recreate the container (docker compose pull and then docker compose up -d). latest follows the main branch, and releases from now on also get their version as a tag (X.Y.Z and X.Y). To build the image yourself, run docker build -t tasksng . in the repository.

Connecting to Baikal

On first start, enter your Baikal address (for example https://dav.example.com), your username and your password. TasksNG finds your task lists through /.well-known/caldav or /dav.php. If Baikal lives in a sub folder, enter the full URL ending in dav.php, such as https://example.com/baikal/html/dav.php.

TasksNG doesn't show calendars that only allow events. Baikal sets a calendar's components in the admin panel under Users and resources → Calendars. Lists you create from TasksNG are task-only calendars.

Features

Lists and views

The sidebar has five smart lists. Today includes overdue tasks and tasks that start today, Plan is the day planner, Upcoming groups tasks by day, and there are Important and All tasks. Below them are your Baikal calendars that hold tasks, which you can create, rename, recolour and delete from TasksNG. Tags and saved searches appear underneath (see Search filters).

Each list can be sorted by due date, priority, title or creation date, or by hand. Drag a task to reorder it, drop it on another task to make it a subtask, on a list to move it there, or on Today, Important or a tag to set that.

Quick add

Type a task the way you'd say it and TasksNG picks out the details as you type:

Typing 'Pay rent tomorrow 9am !1 #home every month' shows chips for the due date, high priority, monthly repeat and the home tag

You type It sets
today, tomorrow, fri, next week, in 3 days, 2026-12-01 Due date
9am, 17:30 Due time
from fri, starting next week Start date
!1 !2 !3, or !!!, !high Priority
#tag Tag
@name List
daily, weekdays, every 2 weeks, every tue and thu, every 15th, every last friday, every 3 days after completion Repeat rule

Quick add also works from anywhere. Win+Alt+N (you can change it) opens a small box on top of whatever you're doing. On Wayland you bind the shortcut in your desktop's settings instead; see Running on Linux.

Tasks

A task can have a due date and a start date. Tasks that start later stay out of Today until their start date. Tasks also have a priority, a status (to do, in progress, done or cancelled), tags, notes and subtasks.

Repeating tasks can repeat every few days, weeks, months or years, on chosen weekdays, on a day of the month or on "the last Friday". A series can stop after a number of times or on a date, and the next date can count from when you completed the task. Completing a repeating task moves it to the next date, and cancelling it skips one.

Notes support Markdown: bold, italics, lists, links you can click and - [ ] checklists you can tick. You can also move tasks between lists, duplicate them, and delete them with undo.

Day planner

Plan shows a day as a timeline with the events from your Baikal calendars next to your tasks. Today's tasks wait in a tray on the left (on another day, the ones due then). Drag a task onto the timeline to plan when you'll do it, drag the block to move it, drag its bottom edge to change how long, or drag it back to the tray to unplan it. Times snap to quarter hours. On a phone, press and hold a task to pick it up. The header adds up what is planned and how much time is free until 18:00. ← and → change the day, T goes back to today.

You can also plan a task from its details (Plan a time) without dragging. Plans sync like everything else: they're stored in the task as X-TASKSNG-PLANNED and X-TASKSNG-PLANNED-DURATION, so a planned time doesn't change the task's due or start date and other apps leave it alone. Repeating events are expanded by Baikal; events are read only and kept for offline use.

Snooze

Snooze puts a task out of the way until later: Later today, This evening, Tomorrow, This weekend, Next week, or a day and time you pick. It's in the task's right-click menu and in the … menu of its details; Z snoozes the selected task until tomorrow morning and Shift+Z asks when. A snoozed task leaves Today, the planner's tray, the counts and the Android widget, and waits in a Snoozed section at the bottom of its list. When the time comes it's back where it was, with a notification. Bring back now ends a snooze early.

The snooze syncs as X-TASKSNG-SNOOZED-UNTIL, so other devices running TasksNG hide the task too while other apps leave the due date alone.

History

TasksNG keeps the last 25 versions of each task: how it was created, what you changed here and what arrived from other devices. History… in the task's menu (or H) shows them newest first, with what each one changed. Pick an older version to see what restoring it would change, then Restore this version, which you can undo. Quick edits within a few minutes count as one version, and changes nobody would notice, like the order in a list, are left out.

History starts when TasksNG first sees a change, stays on this device in the task cache, and goes away with the task once its deletion has reached the server.

Reminders and the tray

Reminders show up as system notifications with Snooze and Done buttons. They are standard iCalendar alarms (VALARM), so a reminder set in Thunderbird, on an iPhone or in Tasks.org works here and the other way round. Add one from the task's details: pick a suggestion, or under Custom set your own, such as 90 minutes before the due time, 2 days before an all-day date at 07:30, or a day and time of its own. Tasks with a due time and no reminder of their own get an automatic one at the due time. You can change that offset or turn it off in Settings. It stays on this computer and isn't written to the server.

On the desktop, TasksNG has to run for reminders to appear (on Android it doesn't), so closing the window keeps it in the notification area by default. Right-click the icon to quit. Settings can make closing quit the app instead, and can start TasksNG when you sign in. It then starts quietly in the background.

Reminders missed while TasksNG wasn't running appear when it starts, as long as they are less than a day old. Which reminders were shown, and any snoozes, are remembered on this computer only. If notifications don't appear on Windows, check Settings → System → Notifications and Focus. Settings → Send a test notification in TasksNG shows a sample.

Sync

TasksNG syncs in the background on a schedule you choose, when the window gets focus and when the network comes back. It supports Basic and Digest authentication (Digest is Baikal's default). Your password goes into Windows Credential Manager or, on Linux, into your desktop's keyring. TasksNG trusts the certificates your system trusts, and has an option to accept self-signed ones.

When the same task was changed on this device and another one before they synced, TasksNG keeps both versions and asks. A banner above the list and a mark on the task lead to a side by side comparison of what differs, starting from the version changed last. Pick one side, or some fields from each. A task deleted on one device and changed on the other works the same way: keep it or delete it, restore yours or let it go.

Keyboard shortcuts

Everything works from the keyboard, and the command palette (Ctrl+K) jumps to any task, list, tag or saved search.

Keys Action
Win+Alt+N Quick add from anywhere (configurable; Super on Linux)
N or Ctrl+N New task
Ctrl+K Command palette
Ctrl+F or / Search
↑ ↓ or J K Move the selection
Space Complete or reopen
I Mark as in progress
Alt+↑ ↓ Move the task up or down (manual order)
Alt+→ ← Make it a subtask of the task above, or move it back out
Enter or F2 Edit the title
1 2 3 0 High, medium, low or no priority
T or M Due today or tomorrow
Z Snooze until tomorrow morning (Shift+Z picks a time)
H History of the task
Del Delete (with undo)
Ctrl+Z Undo the delete
Ctrl+H Show or hide completed tasks
Ctrl+1…9 Switch list
Ctrl+B Toggle the sidebar
F5 Sync now
Ctrl+Q Quit TasksNG

Search filters

The search box and saved searches understand filters. Put - in front of a filter to exclude what it matches.

Filter Finds
milk Tasks with "milk" in the title, notes or tags
#home Tasks tagged home
!1 !2 !3 High, medium or low priority
list:Work, list:"Big project" Tasks in a list
due:today due:tomorrow due:overdue due:week due:none due:2026-12-01 Tasks by due date
is:open is:done is:progress is:cancelled is:repeating is:reminder is:subtask is:later Tasks by state

For example, #work !1 -is:progress due:week finds high-priority work tasks due this week that aren't in progress yet. Click the bookmark next to the search box to keep a search in the sidebar.

Running on Linux

TasksNG stores your password in your desktop's keyring through the Secret Service API, which GNOME Keyring, KWallet and KeePassXC provide. On a bare window manager with no keyring, it keeps the password in a file only you can read (~/.local/share/app.tasksng.desktop/credentials.json) and moves it into the keyring once one is running. With the NixOS module, programs.tasksng.keyring = true turns on GNOME Keyring.

Reminders work with any freedesktop notification server, including GNOME, KDE, dunst, mako and swaync. The Snooze and Done buttons appear where the server supports buttons.

The tray icon shows up wherever StatusNotifierItem or AppIndicator icons do, which covers KDE, Waybar and most panels. GNOME needs the AppIndicator and KStatusNotifierItem Support extension. Without a tray, closing the window still keeps TasksNG running for reminders. Open it again from your app launcher, and quit with Ctrl+Q or Quit TasksNG in the command palette. You can also turn off Keep running in the background in Settings.

The global quick add shortcut works on X11. Wayland doesn't let apps grab keys, so bind a shortcut in your desktop's keyboard settings to tasksng --quick-add:

# Sway
bindsym $mod+Alt+n exec tasksng --quick-add
# Hyprland
bind = SUPER ALT, N, exec, tasksng --quick-add

Tiling window managers should float the quick add box:

# Sway, i3
for_window [title="^Quick add · TasksNG$"] floating enable
# Hyprland
windowrulev2 = float, title:^(Quick add · TasksNG)$

Start TasksNG when you log in (Settings) writes ~/.config/autostart/TasksNG.desktop. It runs tasksng --hidden from your profile rather than a Nix store path, so it keeps working after updates and garbage collection.

For a self-signed server certificate, add your CA with security.pki.certificateFiles instead of turning on Accept invalid TLS certificates.

TasksNG also has a small command line. While it runs, these flags act on the running copy:

tasksng --quick-add   open the quick add box
tasksng --show        show the main window
tasksng --sync        sync now
tasksng --quit        quit TasksNG
tasksng --hidden      start in the background (used at login)
tasksng --version     print the version

Updates

Installed Windows copies update themselves. They download new releases in the background, check them against the app's signing key and install them after a restart. Settings → Updates shows the state and lets you check by hand. The portable exe doesn't update, so download a new copy to upgrade it. Nix installs update through Nix, as described in NixOS and Nix, and the web version updates when you pull a new image (Self-hosting with Docker).

How it works

┌──────────── WebView2 / WebKitGTK ────────────┐      ┌──────────── Rust ─────────────┐
│ React + shadcn/ui                            │ IPC  │ tauri commands, tray, toasts  │
│ zustand store (optimistic updates)           │◄────►│ tasks-core                    │
└──────────────────────────────────────────────┘      │  ├ store.rs  local cache (JSON)│
                                                      │  ├ sync.rs   push → pull       │
                                                      │  ├ dav/      CalDAV client     │
                                                      │  ├ ical.rs   lossless iCal     │
                                                      │  ├ model.rs  VTODO ⇄ Task      │
                                                      │  ├ recur.rs  repeat rules      │
                                                      │  └ alarms.rs reminders due     │
                                                      └───────────────┬───────────────┘
                                                                      │ HTTPS (WebDAV)
                                                                 Baikal server

A local edit updates the cache immediately and is marked as pending. About 300 ms later TasksNG pushes it to the server with PUT (using If-Match or If-None-Match) or DELETE (using If-Match).

A sync first pushes pending changes and then checks each list's getctag. Only lists whose ctag changed are listed (calendar-query for ETags), and only changed tasks are downloaded (calendar-multiget). If a pushed task changed on another device in the meantime, the server refuses the write (412) and TasksNG keeps both versions for you to choose from.

Manual order is stored in X-APPLE-SORT-ORDER, as Apple Reminders and Tasks.org do. iCalendar has no field for "repeat after completion", so TasksNG uses X-TASKSNG-REPEAT-FROM. Day plans and snoozes are TasksNG-only too (X-TASKSNG-PLANNED, X-TASKSNG-PLANNED-DURATION, X-TASKSNG-SNOOZED-UNTIL), and other clients keep them untouched.

Development

You need Node 22 or later and stable Rust. Windows builds also need the Tauri prerequisites (the MSVC build tools and WebView2). On NixOS, nix develop provides everything; see Nix below.

npm install
npm run app:dev      # run the desktop app with hot reload
npm run app:build    # build installers (target/release/bundle)

npm run dev serves the UI in a normal browser with an in-memory demo backend, which is handy when you only work on the UI. Add ?setup to the URL to see the sign-in screen; the demo password is demo. The screenshots in this README come from that demo.

Below 768 pixels wide the UI switches to the phone layout of the Android app, so npm run dev in a narrow window (or the browser's device toolbar) shows that as well.

Add ?many=500 to the URL to try the UI with that many extra tasks. Animations are best judged in a production build, which VITE_BACKEND=demo npm run build && npx vite preview gives you with the demo backend. They follow the system's "reduce motion" setting.

To work on the web version, run the server and point the dev UI at it:

TASKSNG_LISTEN=127.0.0.1:8080 TASKSNG_DATA_DIR=./.web-data TASKSNG_STATIC_DIR=./dist \
  TASKSNG_CALDAV_URL=http://127.0.0.1:8800 cargo run -p tasks-server
VITE_BACKEND=server npm run dev   # proxies /api to port 8080

Android

The Android app is in android/, a Gradle project (Kotlin, Jetpack Compose). The sync engine is crates/tasks-android, tasks-core behind a small JNI interface: the app sends commands with JSON arguments (the same ones the web server takes) and reads background events from a queue. You need JDK 17 or later, the Android SDK and NDK, the Rust targets and cargo-ndk:

rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android
cargo install cargo-ndk
export ANDROID_HOME=~/Android/Sdk ANDROID_NDK_HOME=~/Android/Sdk/ndk/<version>
cd android
./gradlew :app:installDebug        # builds the engine (cargoNdk task) and installs on a phone
./gradlew :app:assembleRelease     # APK in app/build/outputs/apk/release/

./gradlew :app:testDebugUnitTest runs the logic tests (views, quick add, search, repeat rules, reminders, planner, conflicts, Markdown). With the engine built for the computer (cargo build -p tasks-android) and a Baikal test server, it also runs the whole app on the JVM (Robolectric), signed in to that server, and saves screenshots of every screen to app/build/screenshots:

TASKSNG_TEST_URL=http://127.0.0.1:8800 ./gradlew :app:testDebugUnitTest -Ptasksng.skipRust

If Maven Central rate-limits you, set TASKSNG_MAVEN_MIRROR to a mirror such as https://maven-central.storage-download.googleapis.com/maven2/.

Tests

npm test                     # UI logic (quick add, views, search, sorting, drag and drop, Markdown, repeat rules)
cargo test -p tasks-core     # iCalendar, recurrence, reminders, store, auth unit tests
cargo test -p tasksng        # notification payloads, command line, password file (needs the Tauri build dependencies)
cargo test -p tasks-server   # web server: sessions, cookies, security headers

# End-to-end against a real sabre/dav server configured exactly like Baikal:
cd tools/baikal-dev-server && composer install
php -S 127.0.0.1:8800 router.php &                    # Digest auth (Baikal default)
BAIKAL_AUTH=Basic php -S 127.0.0.1:8801 router.php &  # Basic auth
cd ../..
TASKSNG_TEST_URL=http://127.0.0.1:8800 cargo test -p tasks-core --test baikal -- --test-threads=1
TASKSNG_TEST_URL=http://127.0.0.1:8801 cargo test -p tasks-core --test baikal -- --test-threads=1
TASKSNG_TEST_URL=http://127.0.0.1:8800 cargo test -p tasks-server   # the web API, signed in to the test server

CI (.github/workflows/build.yml) runs all of these on every push. It also runs clippy on the Linux app, the Android app and the server, builds the Windows installers on windows-latest and the Android APK, builds the Nix package and checks the NixOS module, and builds the Docker image for amd64 and arm64, starts it and publishes it to ghcr.io/sshahs/tasksng (from main and for releases).

Nix

nix develop opens a shell with Rust, Node, the GTK and WebKit libraries, cargo tauri, and PHP for the Baikal test server. npm install && npm run app:dev then runs the app. nix build builds the package into ./result/bin/tasksng, nix flake check also checks the NixOS module, and nix fmt formats the Nix files.

The package reads its version from src-tauri/tauri.conf.json. It needs no hashes, because it takes the Rust crates and npm packages straight from Cargo.lock and package-lock.json, so dependency updates need no change to the Nix files.

Releases

Before the first release, add the updater signing key as a repository secret named TAURI_SIGNING_PRIVATE_KEY (Settings → Secrets and variables → Actions). If the key has a password, add TAURI_SIGNING_PRIVATE_KEY_PASSWORD as well. Keep a backup of the key, because installed copies only accept updates signed with it.

Android releases are signed with a key of their own. Android only installs an update that is signed with the same key as the installed copy, so create it once and keep a backup:

keytool -genkeypair -keystore tasksng-android.jks -keyalg RSA -keysize 4096 -validity 10000 -alias tasksng
base64 -w0 tasksng-android.jks

Add the base64 text as the secret ANDROID_KEYSTORE, the password as ANDROID_KEYSTORE_PASSWORD and the alias (tasksng) as ANDROID_KEY_ALIAS (and ANDROID_KEY_PASSWORD if the key has a password of its own).

On Gitea

The Gitea repository (tig.sshah.email/Cheeba/tasksng) runs .gitea/workflows/ and publishes the same release there: android.yml (the APK, checked against the signing certificate's fingerprint), windows.yml (the NSIS installer, the portable exe and latest.json, cross-compiled on Linux with cargo-xwin), docker.yml (the image, pushed to Gitea's container registry and linked to the repository) and nix.yml (the flake). Its secrets are named KEYSTORE_BASE64, KEYSTORE_PASSWORD, KEY_ALIAS, KEY_PASSWORD, TAURI_SIGNING_PRIVATE_KEY, TAURI_SIGNING_PRIVATE_KEY_PASSWORD, and REGISTRY_TOKEN (an access token with package write access, which Gitea's automatic Actions token lacks, for pushing the image); use the same keys as on GitHub, or APKs and updates from one forge won't install over the other's.

While Gitea pulls the repository from GitHub, tags come from GitHub: push a tag there and Gitea's workflows release it once the mirror has synced (every 10 minutes, or Synchronize now). When the Gitea repository becomes the primary one, convert the mirror to a normal repository; the workflows then also release a version given to Run workflow, creating the tag. The in-app updater checks Gitea first and GitHub second, so either keeps installed copies up to date.

For each release, first set the new version in src-tauri/tauri.conf.json, package.json (npm version X.Y.Z --no-git-tag-version) and the workspace Cargo.toml, and commit it. Write the release notes in docs/release-notes/X.Y.Z.md in the same commit; the release uses them, and GitHub adds the list of changes below. To change the notes of a published release, edit the file and run the Release notes workflow with the version. The Nix package reads its version from the repository, while CI stamps it into the Windows builds.

Then run the Build workflow from the Actions tab (Run workflow, with a version such as 0.3.0), or push a tag:

git tag v0.3.0
git push origin v0.3.0

CI builds the installers and the Android APK with that version, signs them, generates latest.json with scripts/updater-manifest.mjs, and publishes everything as a GitHub release. Installed copies pick it up on their next check. Versions must be plain X.Y.Z, because the MSI format doesn't allow pre-release suffixes.

To switch to a different signing key, run npx tauri signer generate -w tasksng.key, put the contents of tasksng.key.pub into plugins.updater.pubkey, and store tasksng.key in the secret. Copies installed before the switch only accept updates signed with the old key, so they need one update by hand.

Project layout

crates/tasks-core/      platform independent sync engine (Rust)
src-tauri/              app shell: commands, background sync, credential storage, tray, notifications
crates/tasks-server/    web version: HTTP API, sessions, live updates (Server-Sent Events), phone pairing
crates/tasks-android/   the engine for the Android app (JNI)
android/                native Android app (Kotlin, Jetpack Compose): UI, reminders, widget, sync worker
src/                    React UI
  components/ui/        shadcn/ui components
  components/aceternity/ Aceternity UI components (sign-in, pairing, Overview)
  components/           app components (sidebar, task list, details, dialogs)
  lib/                  store, API bindings, date & quick-add parsing, view logic
nix/                    Nix package and NixOS module (flake.nix at the root)
docker/                 container entrypoint (Dockerfile and docker-compose.yml at the root)
tools/baikal-dev-server Baikal-equivalent CalDAV server for development and tests
.gitea/                 Gitea Actions workflows and release helper
scripts/                release helpers used by CI (version stamping, updater manifest)
docs/screenshots/       images used in this README

Where data lives

Windows Linux Android Docker
Tasks and pending changes (tasks-cache.json), settings.json, reminders.json %APPDATA%\app.tasksng.desktop\ ~/.local/share/app.tasksng.desktop/ files/engine/ in the private storage of app.tasksng.android /data/users/<account>/
Logs %LOCALAPPDATA%\app.tasksng.desktop\logs\ ~/.local/share/app.tasksng.desktop/logs/ adb logcat docker logs

Saved searches, sort orders and view preferences live in the app's web storage.

S
Description
A fast task manager for Baikal and other CalDAV servers: native Android app and a self-hosted web app (mirror of github.com/sshahs/tasksng)
Readme
2 MiB
0 Stars 1 Watchers 0 Forks
TasksNG 1.0.0
Latest
2026-11-10 20:37:13 +00:00
Languages
TypeScript 39.1%
Rust 30.3%
Kotlin 28.2%
Nix 0.7%
JavaScript 0.6%
Other 1%