Hi! GPKG is a format to store spatial data, you can write your own geometries with WKB, instead write them as text, you have them there as geometries. Also GPKG stores as database, has layers, which is ideal to save in one file nodes and edges as two related different layers. Thx!