API reference

Apps

Rules of the kanban, tasks and file manager.

Everything in utils/ is a pure function: it takes data and returns data, with no Vue and no global state. Pass the current date as now so results are deterministic. Each file has its unit tests in tests/unit/.

moveKanbanCard()

Moves a card to a column and position, keeping orders consistent.

utils/kanban.ts
moveKanbanCard(cards: KanbanCard[], cardId: string, columnId: string, index?: number): KanbanCard[]

isColumnFull()

Whether a column reached its WIP limit.

utils/kanban.ts
isColumnFull(column: KanbanColumn, count: number): boolean

kanbanDueState()

overdue, soon, later or done for a due date.

utils/kanban.ts
kanbanDueState(due: string, today: string, isDone: boolean, soonDays: number): KanbanDueState

matchesKanbanFilters()

Whether a card passes the search, people, labels and due filters.

utils/kanban.ts
matchesKanbanFilters(card: KanbanCard, filters: KanbanFilters, dueState: KanbanDueState): boolean

checklistProgress()

Done and total checklist items.

utils/kanban.ts
checklistProgress(items: KanbanChecklistItem[]): { done: number; total: number; }
Returnsdonetotal

parseTodoQuickAdd()

Parses “tomorrow 10:00 !high #design” into date, time, priority and tag.

utils/todo.ts
parseTodoQuickAdd(text: string, today: string, vocabulary: TodoQuickAddVocabulary): TodoQuickAdd

todoDateGroup()

The date group of a task: overdue, today, tomorrow, this week, later.

utils/todo.ts
todoDateGroup(task: TodoTask, today: string, weekEnd: string): TodoDateGroup

matchesTodoFilter()

Whether a task belongs to a list (today, important, assigned to me…).

utils/todo.ts
matchesTodoFilter(task: TodoTask, filter: TodoFilter, context: { today: string; weekEnd: string; me: string }): boolean

subtaskProgress()

Done and total subtasks.

utils/todo.ts
subtaskProgress(task: TodoTask): { done: number; total: number; }
Returnsdonetotal

shiftIsoDate()

Adds days to a YYYY-MM-DD date.

utils/todo.ts
shiftIsoDate(iso: string, days: number): string

TODO_PRIORITY_ORDER

The sort order of priorities.

utils/todo.ts
const TODO_PRIORITY_ORDER: Record<TodoPriority, number>

fileKind()

The kind of a file from its extension.

utils/files.ts
fileKind(name: string, kinds: FileKindConfig[]): FileKind

matchesFileFilters()

Whether a file passes section, folder, search and kind filters.

utils/files.ts
matchesFileFilters(file: FileEntry, filters: FileFilters, kinds: FileKindConfig[], now: number, recentDays: number): boolean

sortFiles()

Sorts files by name, date or size.

utils/files.ts
sortFiles(files: FileEntry[], sort: FileSort): FileEntry[]

folderPath()

The breadcrumb of a folder.

utils/files.ts
folderPath(folders: FileFolder[], folderId: string | null): FileFolder[]

folderDescendants()

All the folders inside a folder.

utils/files.ts
folderDescendants(folders: FileFolder[], folderId: string): string[]

storageBreakdown()

Used storage by kind against the quota.

utils/files.ts
storageBreakdown(files: FileEntry[], quota: number, kinds: FileKindConfig[]): { used: number; quota: number; percent: number; kinds: { kind: FileKind; color: string; size: number; percent: number; }[]; }
Returnsusedquotapercentkinds
© 2026 melsami UI.
Developer documentation for melsami UI.