cpbotha / nvpy

Simplenote syncing note-taking application, inspired by Notational Velocity and ResophNotes, but uglier and cross-platformerer.
Other
849 stars 114 forks source link

nostr support? #239

Closed stokebreakup closed 2 months ago

stokebreakup commented 2 months ago

Hi, team

I thought of a way to sync my nvpy settings on Nostr, that way I would have a backup of everything. So I want and am willing to help in this regard. And would be happy for any answers or advice on how to create custom sync plugins for nvpy.

This would be a good alternative to simplenote[or standard note], but in a decentralized way.

Regards,

yuuki0xff commented 2 months ago

Synchronization logic implemented at NotesDB.sync_*() methods. The NotesDB class also has several functions, such as local storage access and data filtering.

In many places, the note is represented by dict type. The contents of the dict are based on the Simplenote specification. It will be easier to understand if you look at the data stored in ~/.nvpy/*.json. I would like to migrate from dict to the Note class, but I don't have the time to do it :-(

If you want to implement it quickly,

  1. Create the NostrNotesDB class inherits NotesDB class.
  2. Implement a plugin mechanism that allows us to select the NotesDB class to be used.