localStorage is in a file, on your computer ;) For Firefox/Linux, it's in webappsstore.sqlite (guessing the same file exists for Windows/macOS too but can't verify, and Chrome probably have something similar).
Less fun: many "offline-capable" web apps that leverages PWA APIs/localStorage usually often allow you to download/upload a JSON representation of your data. I think I remember a graph drawing tool that allow you to do just that, but can't find a link to it right now.
It wouldn't have been draw.io / https://app.diagrams.net/, would it? I use that tool frequently, and loved that feature at a company where data couldn't be stored on external servers
in the case of Kinopio, you can also export your data to a JSON file. But I think the OP may be referring to something like obsidian where each document corresponds is an individual markdown file which is always up to date
It's a hidden, opaque file. As far as I can tell, my browser doesn't tell me what its path is on my file system. That path and the file format could change with a browser update. Again, localStorage is nice, but this whole setup isn't comparable to a .pdf or whatever that I can have on my desktop.