For todos you could just use an iCalendar file full of VTODOs [1]. It's a shame that the iCalendar standard is poorly and incompletely implemented even in calendar programs and almost always missing from organizer programs that are basically todo lists.
[1] https://icalendar.org/iCalendar-RFC-5545/3-6-2-to-do-compone...