How to use IPNS in a local-first setting?

Magik6k has a response to a question I asked here and has a pretty good summary of what TTL is used for.