DEV Community

Cover image for Kagelin v1.52.0: Building Universal Migration & Zero-Knowledge Data Portability
Achyuth S
Achyuth S

Posted on Edited on AI-assisted

Kagelin v1.52.0: Building Universal Migration & Zero-Knowledge Data Portability

Moving between productivity apps usually hurts. Proprietary formats, lost hierarchies, missing checklists, and vendor lock-in keep users tethered to legacy tools.
With Kagelin v1.52.0, our goal was simple: true data portability without compromising client-side privacy.
Here is an architectural walkthrough of how we built universal importers for Microsoft To Do, Google Tasks, and TickTick, introduced bitmask notification controls, and decoupled task schedules from deadlines.


1. Zero-Knowledge Client-Side Migration

Most migration workflows route your raw data or credentials through a backend parser. Because Kagelin operates under a local-first, privacy-first model, migrations run entirely in the browser.

External Backup → Client-side Sanitization → Data Normalization → Deduplication → Local Storage (IndexedDB + TanStack Query)

Supported Ingress Rails:

  • Microsoft To Do: Ingests lists, steps (subtasks), and completion states.
  • Google Tasks: Handles multi-level parent/child task hierarchies, note formatting, and completed timestamps.
  • TickTick: Ingests multi-column CSV exports, extracting checklist items and mapping them into native Kagelin steps.
  • Loop Habit Tracker: Promoted from beta to Stable, parsing raw SQLite .db archives via WebAssembly (sql.js) in-memory.

TickTick Preview Drill-down

Before writing any records to storage, users get an interactive drill-down preview detailing total items, top-level tasks, step counts, detected projects, and duplicate warnings.


2. Granular Notification Days Using 7-Bit Masks

A common user request was the ability to silence task push alerts on specific days (e.g., mute work task notifications on weekends) without altering the task's schedule or due date. Instead of adding relational schedule tables, I implemented an efficient 7-bit day mask stored as an integer (0 to 127):

// Bit index corresponds to Date.getDay() (Sunday = 0, Saturday = 6)
export const REMINDER_ALL_DAYS = 127; // 0b1111111
export const REMINDER_WEEKDAYS = 62;  // 0b0111110 (Mon - Fri)
export const REMINDER_WEEKENDS = 65;  // 0b1000001 (Sun + Sat)
export const REMINDER_MUTED    = 0;   // 0b0000000

export function isReminderAllowed(reminderDays: number, date: Date): boolean {
const dayBit = 1 << date.getDay();
return (reminderDays & dayBit) !== 0;
}
Enter fullscreen mode Exit fullscreen mode

Task Notification Days
This keeps the schema lightweight, queryable, and easily evaluated in our background service workers.


3. Standard RFC 5545 Calendar Export

Data portability is a two-way street. In v1.52.0, users can export their entire event timetable into standard .ics format.
Migration Export Tab
The exporter serializes recurring rules, UTC timestamps, and event metadata directly into an RFC 5545 string without pulling in bulky external dependencies.


4. Disambiguating Lapsed Schedules from Overdue Deadlines

In earlier releases, an unfinished task scheduled for yesterday shared visual styling with a task whose hard deadline had passed.
In v1.52.0, we introduced orthogonal date classification:

  • Overdue Deadline (due_date < today): High urgency, rendered with alert/destructive badge styling.
  • Lapsed Schedule (do_date < today): Denotes a missed intended work session ("Needs rescheduling") rendered with a neutral dashed border chip. Task Board View

Try Kagelin v1.52.0

Kagelin is open source and free to try in guest mode with zero sign-up required:

Top comments (0)