Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Sync via Nostr. #129

Open
IngwiePhoenix opened this issue Jul 3, 2024 · 1 comment
Open

Data Sync via Nostr. #129

IngwiePhoenix opened this issue Jul 3, 2024 · 1 comment

Comments

@IngwiePhoenix
Copy link

Hello!

I just tried the local Docker deployment and although I couldn't find the dark mode toggle (rip my eyeballs xD) I did see you were looking for a sync solution.

Now, I have spent a good amount of time reading up and down on the Nostr specification and among the many things, application-defined storage is one of them.

Basically, you could create a keypair just to sign and encrypt the data, drop it on relays and fetch it from any client - which would include real time updates, as it is based on WebSocket.

This way, you don't even need to create your own solution - there is one, already there. I just wanted to leave that here, since this, to me, seems like a good fit.

Kind regards,
Ingwie

PS.: I did find the Query command in documents, but have no idea what tables I can query. I created one, but trying to query it led to... nothing. o.o Might've just missed a thing or two.

@mayneyao
Copy link
Owner

mayneyao commented Jul 4, 2024

Nostr looks great, thanks for sharing ❤️ the shortcut for switching the theme is ctrl/cmd + shift + L or press CMD + K then type theme.

Query is still a WIP, lacking documentation 😂. there are some example you can try:

  • SELECT (JULIANDAY('2024-07-07') - JULIANDAY(CURRENT_DATE)) * 24 * 60 * 60 / 86400 AS days;
  • SELECT date();
  • select name from eidos__tree;
  • select * from eidos__tree;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants