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

[Feature] - Add a federated way to comment over / publish comments (matrix , xmpp , preferably fediverse (lemmy etc.)) #127

Open
SerJaimeLannister opened this issue Jan 2, 2025 · 4 comments

Comments

@SerJaimeLannister
Copy link

What feature would you like to see?

Adding a federated way of creating / distributing snippets can be really cool.

What i was thinking of , is that the user themselves can tell from which place they want their snippets from , (by default we could use github) (but still its still available somehow to other infrastructure)

For example : a company can create their own internal matrix server that they use for chats within company and they can create internal snippets which they can use with quicksnip.

We can also use fediverse instances like lemmy where discussion can be much more liberal as compared to github because personally github isn't federated and though github is nice , I think that such infrastructure can preferably be over lemmy / fediverse )

@dostonnabotov
Copy link
Owner

Hey, there! Thanks for the suggestions. I understood some of your points, like allowing companies to create their own internal snippets. This could be a potential idea we might go towards. Many also requested adding personal accounts for private snippets, which is similar to the one for companies. But, I assume it will be at a large scale for companies. Yet, both sounds plausible for the future of QuickSnip.

Regarding your other suggestions, I'm not familiar with some of the fancy words, like federated, lemmy and etc. So, I would appreciate if you could write it in a simpler human language. 😄

@SerJaimeLannister
Copy link
Author

SerJaimeLannister commented Jan 3, 2025

Hey I am sorry if I had included complex terms. I totally understand that if someone doesn't know these terms , then this can be a bit of an overhead.

So here comes my explanation to these things

Fediverse: I think wikipedia has done an awesome job explaining it , I would personally recommend if you take time and read the first 2 paragraphs atleast.

https://en.wikipedia.org/wiki/Fediverse

TLDR: It's basically a collection of servers talking to each other by using the protocol called activitypub which is a w3c standard (I think)* , people can use this talking b/w servers to sort of create social networks (like there is a twitter alternative called mastodon) (lemmy which is reddit alternative)

Lemmy : Its a reddit / forum alternative written for fediverse (check out lemmy.world)

It's also not the only protocol for forum-like on fediverse , in fact anybody could create their own.

There is also kbin and some new piefed which I found I think just a week ago https://piefed.social/

This sort of technology can also allow for example a limited interop b/w different social network paradigms (TLDR: IIRC mastodon users can talk / comment on lemmy , which is crazy imagine twitter users can directly talk on reddit using twitter)

(this is for public servers , there is no encryption / privacy here , maybe a very limited privacy)

This is for creating a public space instead of github.

However , if we want private snippets , I personally wouldn't recommend fediverse but rather matrix protocol which is also decentralized , it has a focus on privacy and encryption

So maybe implementing both these implementations could be an idea in the future.

In the meanwhile , you mention private snippets etc. so for that we should probably add matrix support first. we could use this https://github.com/matrix-org/matrix-js-sdk

But fediverse is also a really cool thing and I would suggest that we could please implement both of these in the future

@SerJaimeLannister
Copy link
Author

SerJaimeLannister commented Jan 3, 2025

Here I have created a simple way from lemmy (see https://discuss.online/post/14922241)
(this isn't production code , i was just fiddling around with the api and asked claude to create me a sveltekit repo because I know sveltekit much better (I am more of a golang programmer so I hope you excuse me :) )
image
https://gist.github.com/SerJaimeLannister/171fbb52653b83c1cff1d0e265115a28

@SerJaimeLannister
Copy link
Author

Here I have also added comment support which was what I was looking for in the first place.
image

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