Cinny desktop is made with Tauri and built using npm and cargo packages. Cinny itself has node dependencies managed with npm as well.
To transform their package locks into flatpak sources, flatpak-builder-tools is used:
# generate cinny-desktop sources for use with cargo
<path-to flatpak-builder-tools>/cargo/flatpak-cargo-generator.py -o cargo-sources.json <path-to cinny-desktop>/src-tauri/Cargo.lock
# generate cinny and cinny-desktop sources for use with npm
flatpak-node-generator --no-requests-cache --no-xdg-layout -o npm-cinny-desktop-sources.json npm <path-to cinny-desktop>/package-lock.json
flatpak-node-generator --no-requests-cache --no-xdg-layout -o npm-cinny-sources.json npm <path-to cinny-desktop>/cinny/package-lock.json