top | item 40905611

(no title)

patrickaljord | 1 year ago

Looks great. Any plan to make it work in a browser instead of having to install an Electron app?

discuss

order

hoakiet98|1 year ago

No plans for now, this seems to be the best form to support the features we need.

It was initially a Chrome extension [1] but there were limitations with local file access and UX from jumping around to multiple pages. Very early on I developed this as a web app but it was also difficult to inject styles into iframe, especially for ones that we didn't own directly.

Electron ships Chromium by default so it was easy to leverage into an editable browser plus allowing us to do an infinite canvas style editor. If you know of ways around these limitations please let me know. I'm always trying to figure out a way to turn this into a web app instead.

[1] https://chromewebstore.google.com/detail/onlook/icbcddooibfg...

meiraleal|1 year ago

I'm curious about the chrome extension issues as I'm wondering about creating a project using it, with all the problems it brings with marketing.

What does `UX from jumping around to multiple pages` mean?

freedomben|1 year ago

Having it edit local files might be a difficulty of having it work in a browser instead of electron app. That said though, Electron apps I've worked with in the past usually have a "dev" mode already that just serves locally and you hit it with your browser (i.e npm run dev), and that browser allows using the APIs normally not allowed so long as it's being served from localhost. Might be a good solution.

hoakiet98|1 year ago

> that just serves locally and you hit it with your browser

This is an interesting take. My interpretation: You can host this on a server, then expose a port remotely which will have all the access of the electron app, making it a pseudo SAAS?

I will need to test this out but this has some cool implications. The other worry is multiple client support but you can just provision a personal instance.

yakito|1 year ago

I agree that this would be a great addition.