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

EmbassyOS Support #221

Open
cryptoquick opened this issue Jan 3, 2024 · 9 comments
Open

EmbassyOS Support #221

cryptoquick opened this issue Jan 3, 2024 · 9 comments

Comments

@cryptoquick
Copy link

cryptoquick commented Jan 3, 2024

It'd be really cool if Clams could be used on EmbassyOS/StartOS... I think this requires some packaging.

Now that Spark Wallet no longer works on StartOS, Clams could be a viable replacement, and it could have a bit of a moment.

@aaronbarnardsound
Copy link
Member

Yeah great suggestion. We'll look in to what is involved to package it up for the node projects and post an update here.

@k0gen
Copy link

k0gen commented Jan 8, 2024

@cryptoquick, thank you for opening this issue/suggestion. I’ve recently discovered Clams and I really like it!

@aaronbarnardsound, check out the Developer Docs which contain all the necessary information for packaging a service for StartOS. In a nutshell, the steps are:

  • Set up your StartOS testing dev box. This can be a physical machine or a VM. If you’re using a Mac, here’s a quick guide I wrote specifically for that.
  • Use hello-world-startos as your service template.
  • Build it to get familiar with the process.

Don’t hesitate to reach out if you need any help or assistance.
Let’s make this fantastic software accessible to all sovereign node runners using StartOS!

@farscapian
Copy link
Contributor

I will work on this issue. Standing up a start9 VM today.

@aaronbarnardsound
Copy link
Member

aaronbarnardsound commented Jan 9, 2024

@k0gen thanks for the links and helpful steps on how to get started.
@farscapian you are an absolute legend. Thanks for taking this on. Let me know if you need any assistance as well.

@k0gen
Copy link

k0gen commented Jan 19, 2024

@farscapian , I hope you're doing well. Just checking in to see how the progress is going with the Clams packaging for StartOS?

As a reference, you might find it useful to visit the commit history of the Primal project. It's a great example of going from a hello-world template to a working service for StartOS.

Also, remember that you can always reach out in our matrix room #community-dev for any assistance or discussions.

@farscapian
Copy link
Contributor

Hey sorry about that. Unfortunately this project is competing with my other projects, so I may be a tad slow on implementing this.

My embassy is all synced and I've started going through the documents and creating the required repos. I should have an update in a week hopefully. I already have a working dockerfile, just gotta get everything wired up correctly I think.

@farscapian
Copy link
Contributor

@aaronbarnardsound question: This project can be approached in one of two ways IMO. You can 1) compile Clams Remote and put all the static output in nginx, or 2) enable a long-running server-side process that is capable of handling the connection URLs AND enable nginx caching. What is your preferred model for Embassy OS? Do you want users to be able to use the connection URL functionality?

@aaronbarnardsound
Copy link
Member

@farscapian I think whatever is simplest to start off with would be my preference, so probably serving static output from nginx. We can see how that goes and take feedback from there I reckon.

@farscapian
Copy link
Contributor

farscapian commented Apr 11, 2024

Just posting an update on this one. I have a pull request on Start9 to update CLN to enable the websocket interface as a torv3 onion endpoint. This would enable any Clams Remote PWA running in Tor Browser to directly connect to their CLN node via native (i.e., not CLNRest) websocket, assuming they have the service onion endpoint.

This clams-startos repo works in conjunction with the above pull request. clams-startos is a simple (nginx) web server that serves Clams Remote static build output. The node-based server process performance was not sufficient for Tor Browser, so i went with static build output instead which has significantly better performance in Tor Browser. This means that we don't get URL handling, but I'm hoping we can get that functionality back by implementing query parameter reflection.

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

4 participants