$ show ransome1/sleek
Sleek is a cross-platform desktop application (Electron + React + TypeScript) that serves as a feature-rich todo.txt manager. It reads and writes todo.txt files, providing advanced filtering, sorting, grouping, and archiving capabilities. The application features a custom filter grammar (PEG.js) for complex queries, file watching for real-time updates, due-date notifications with badge support, and a Pomodoro timer integration. The user interface is built with Material-UI components, offering a clean, customizable experience with dark/light themes and color customization. Sleek supports 16+ languages and includes optional Matomo analytics, respecting user privacy by never collecting todo content.
The LLM identified 3 files worth highlighting for reuse:
Implements atomic file writes by writing to a temporary file, then renaming to the target path, with a backup fallback. This pattern prevents data corruption from partial writes and is fully decoupled from the rest of the application, making it easy to reuse in any project that requires safe file I/O.
A standalone PEG.js grammar defining a custom filter language for todo.txt attributes. Supports boolean operators, parentheses, and attribute-specific queries (e.g., due:>today, pri:A, +project). The grammar file can be extracted and reused in any other todo.txt or text-based task management application to provide advanced search capabilities.
Performs two-pass attribute counting: first pass counts all todo attributes, second pass counts only attributes from filtered (visible) todos. This enables the sidebar to show attribute bucket counts that update dynamically with filtering. The algorithm is self-contained and can be reused in any application that needs to aggregate and filter metadata from a set of objects.