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

[ ⚠️ Proof of concept / Work in progress] RSS server #39

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mprimi
Copy link
Contributor

@mprimi mprimi commented Feb 28, 2022

This creates a 'server mode' SH84 that does two things:

  • Work as headless peer to serve IPFS content
  • Serves an RSS feed of latest articles (i.e. roots) or comments (i.e. all articles)

I intend to deploy this on my own server and add the feed URL to my newsreader, so I can keep an eye on posts without firing up SH84.

It's not actually serving RSS right now, but you can try it with:

$ curl localhost:8080/rss/articles
$ curl localhost:8080/rss/comments

@mrusme
Copy link
Owner

mrusme commented Feb 28, 2022

This is pretty cool! However, I think it might be better if you create a dedicated repository for it and make in a standalone tool, wdyt? It doesn't seem to actually integrate into Superhighway84 anyway, with most of the startup code being copypasta.

I think a more generic approach that would be possible to integrate into Superhighway84 would consist of an additional go routine that could handle incoming API calls in order to provide an external interface on top of which something like an RSS integration (e.g. with journalist) could be made. The API interface could be made configurable (off by default).

I support the idea, but I think I would pick either of the two paths instead: Make it a dedicated tool or integrate it as an actual extension that can be configured and is maybe a bit more generic (so that it could be extended with new API calls later on).

Wdyt?

@mprimi
Copy link
Contributor Author

mprimi commented Mar 4, 2022

@mrusme re: move to a standalone repo.

Sounds good.
At this point I was just messing around with Go's HTTP and OrbitDB (never used either before).
All the thing you suggest make sense.
I would never propose merging in the current state.

Here's the usage I would do for myself:

  • Start the RSS server only if launched with --rss.
  • Add a --headless option (no TUI).

On my server I'd run with sh84 --rss :8081 --headless ("seed" node, always up, and RSS server).
On my workstation I'd fire up when I want to read, with: sh84 (TUI, no RSS).

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

Successfully merging this pull request may close these issues.

None yet

2 participants