HNHacker News
TopNewBestAskShowJobs

hoakiet98

300 karma · joined August 24, 2018

https://github.com/Kitenite
submissionscomments
hoakiet98··on Show HN: Onlook – Open-source, visual-first Cursor for designers
There are a lot of Figma plugins to do that. Anima or Builder.io (not builder.ai) is one I've used before. I'd like to add a simple plugin for us to use if we ever have the capacity.

- https://www.animaapp.com/figma

- https://www.builder.io/c/docs/builder-figma-plugin

hoakiet98··on Show HN: Onlook – Open-source, visual-first Cursor for designers
> In Preview mode, I can't scroll. Works fine in Design mode.

It's actually attempting to scroll the inner web page in Preview mode. Perhaps this is not a great/obvious form factor since we've had others be confused about this. I think showing a scroll bar in design mode or animate when overscrolled in Preview mode to show it's attempting to scroll could help.

> Is there pricing information anywhere? I did not see any.

There's no rate limit or pricing for the web beta at the moment but for the desktop app the pricing is shown in-app. We have a WIP pricing page that you can find in code but needs some work before we release it.

> I can't seem to actually see any element's code; all I have is a basic layout.tsx file

This seems wrong, I will take a look. The code should be highlighted in the editor when you click on an element. It's possible that it put all the code in layout.tsx but there should be a page.tsx in there.

hoakiet98··on Show HN: Onlook – Open-source, visual-first Cursor for designers
There's nothing hidden besides OAuth configuration that's not replicable as code such as Github App and Google OAuth but not by intent.

We still provide a guest login for dev mode in the database seed script to get around that.

hoakiet98··on Show HN: Onlook – Open-source, visual-first Cursor for designers
Just updating that this is now fixed. Thank you for the feedback :) https://github.com/onlook-dev/onlook/pull/1979
hoakiet98··on Show HN: Onlook – Open-source, visual-first Cursor for designers
It's honestly not so much being mysterious as much as the UI is not usable on mobile. I don't think we'll support mobile for a while given the extra design constraints that it imposes.

> I personally loathe this trend of making us login after giving us a prompt box.

I do too, and am very aware of how HN/other engineers feel on this topic. It's mostly a way to get around abuse and access issues. We have a pattern moving forward for guest accounts, but couldn't prioritize it in time for this launch.

I think not needing to sign in is a good way to kick the tire which helps growth as well. So point taken to prioritize this higher. Thank you :)

hoakiet98··on Show HN: Onlook – Open-source, visual-first Cursor for designers
Could you hit retry on the message or add a new message? Sorry for the issue
hoakiet98··on Show HN: Onlook – Open-source, visual-first Cursor for designers
This is a fair point and our fault for not handling that case correctly. We will handle these errors better in the future.
hoakiet98··on Show HN: Onlook – Open-source, visual-first Cursor for designers
We considered Tauri but went with Electron because we needed the "frame" (the part inside the user window) to behave consistently across OS. This is not something that Tauri guarantees, so we went with Electron for Chromium instead. I

n hindsight, it still would not have helped with the other desktop app based issue like friction of setting up so I think we made the right call.

A large percentage of the bundle comes with shipping Bun as a fallback runtime for users who didn't have node installed. This could've been done better as well but it would still be 300MB+ bundle size.

hoakiet98··on Show HN: Onlook – Open-source, visual-first Cursor for designers
fair point. we didn't really intend for the app to be used on mobile yet since it's like using Figma on mobile.
hoakiet98··on Show HN: Open-source, visual-first Cursor for Designers
Got the team to increase the limit. We're back!
hoakiet98··on Show HN: Open-source, visual-first Cursor for Designers
On the desktop app you'll be able to strip the IDs by stopping the run. There's no option for that yet on the beta web version. Let me know if that works :)
hoakiet98··on Show HN: Open-source, visual-first Cursor for Designers
Thanks for the kind words! We definitely want to restore the ability to use Cursor/Windsurf through SSH as soon as possible.

There is terminal access on the right of the bottom bar. It just has 1 CLI connection right now, along with the long runner server but you can run commands through there or through the AI.

Just merged a PR for that should be live in a few mins https://github.com/onlook-dev/onlook/pull/1963

hoakiet98··on Show HN: Onlook – Open-source, visual-first Cursor for designers
Seems we're being rate-limited by Codesandbox. Sorry for the inconvenience if you're not able to start a session.
hoakiet98··on Show HN: Onlook – Open-source, visual-first Cursor for designers
Hey esafak, Honestly, we became even more coupled to Next.js to provide a better experience. I think Svelte will keep getting deprioritized until we feel the experience is as good as it can get.

I know it's a bad answer, but I don't want to keep promising a feature that doesn't seem likely at this point. Will update the issue to be a won't fix for the time being.

hoakiet98··on Show HN: Open-source, visual-first Cursor for Designers
Yes, import is on the roadmap. We're already supporting importing on the desktop app so will need to have a way to get the code into the sandbox. My plan is to have 1. Import from GitHub - We clone and do a best effort setup 2. Run an npx upload script on the local repository 3. Drop a bundle directly through an upload UI
hoakiet98··on Show HN: Open-source, visual-first Cursor for Designers
Thanks for the super early feedback and support, homebodify :)
hoakiet98··on Void: Open-source Cursor alternative
Been following this project from very earlier on. It's awesome to see how much ground you covered in just a few months!
hoakiet98··on Show HN: An open-source, local-first Webflow for your own app
This is valid and helpful feedback. We've been focusing on the engine until now, but we need to address onboarding on the roadmap. I've created an issue for this here [1]. Thanks for giving it a try :)

[1] https://github.com/onlook-dev/onlook/issues/247

hoakiet98··on Show HN: An open-source, local-first Webflow for your own app
Thanks for trying it out edrenova!
hoakiet98··on Show HN: An open-source, local-first Webflow for your own app
Webstudio is very good! I didn't know it produces React.

Onlook has less abstraction between code and the visual editor. It works with your existing React codebase with no migration. Everything is written into code in real-time so you wouldn't import or export the code from Onlook. You can use it anytime and stop anytime like an IDE.

Does this make sense? I'd love to hear Oleg's thoughts on this as well :)

hoakiet98··on Show HN: An open-source, local-first Webflow for your own app
Without a framework? Unfortunately, no since there's a necessary compile step to instrument the code.

Thought theoretically, you could write a parser to add the necessary information to the HTML tags at "build time"

hoakiet98··on Show HN: An open-source, local-first Webflow for your own app
The POC for this was actually done in Svelte so it can be done again in the future [1].

We had to focus on React for various reasons [2] but I'd really like to support Svelte again

[1] https://github.com/onlook-dev/chrome-extension/tree/main/plu...

[2] https://news.ycombinator.com/item?id=40904862

hoakiet98··on Show HN: An open-source, local-first Webflow for your own app
Reader mode could help if you're on iPhone
hoakiet98··on Show HN: An open-source, local-first Webflow for your own app
I think DevLink is great and it's a step in the right direction.

However, you're still locking into a WebFlow project. You can export a DevLink component out and then migrate it back in. You also have to instrument the weblink component.

With Onlook, there's no new environment. Your code is just running in localhost in your project. No import export and no extra code just to develop a new component.

hoakiet98··on Show HN: An open-source, local-first Webflow for your own app
Hey mkreis, I answered this here: https://news.ycombinator.com/item?id=41390449#41390695
hoakiet98··on Show HN: An open-source, local-first Webflow for your own app
np!
hoakiet98··on Show HN: An open-source, local-first Webflow for your own app
> I don't want to step on your toes by linking my own project

Not at all, it's in good spirit! Happy to talk through any technical details from my side :)

> though if you try to listen for those changes with a mutation observer, it won't fire

It doesn't have to fire an immediate mutation imo. When you click on an element to edit, you could inject a data-attribute into it (not sure if the Chrome Devtool let you do this but an extension might). At write-time, you can query the elements that were marked, get the delta and write it to code.

You might've thought of this longer than I have so I think that might be a naive solution.

> can then be transpiled into any framework the user wants

You might be interested in Mitosis https://github.com/BuilderIO/mitosis

hoakiet98··on Show HN: An open-source, local-first Webflow for your own app
> you'll save a ton of space in that b64, and arguably some user privacy, by trying to use workspace relative paths

That was a pattern we initially went with but it adds some complexity:

The React compiler gives absolute paths, which we can adjust to relative paths by passing in the current process' running location into our plugin. This makes the plugin API more complex. We'd also have to track the project's relative path at runtime and concat it back.

We decided the extra characters were worth it to eliminate the extra complexity. I do realize that the character number scales with the path + complexity of the project.

> JS had access to gzip (or zlib)

I haven't looked at this but will give it a try. We're doing some compression here but there's also a performance hit for compressing too much at build time.

I do think we can save space by using a different format than JSON. Even just a raw string. Something like: 'path/to/file:startTag:start:line:col:...'

hoakiet98··on Show HN: An open-source, local-first Webflow for your own app
Thanks for the continued support and the contributions so far, kartik-raj7!
hoakiet98··on Show HN: An open-source, local-first Webflow for your own app
Thanks tmolovinsky, we're already actively working on component creation so hoping to introduce that soon :)
← PreviousPage 2 of 4Next →