Cogentcore: Open-source framework for building multi-platform apps with Go

29 kristianp 13 5/9/2025, 12:04:21 AM github.com ↗

Comments (13)

Kholin · 3h ago
That's a great idea, but I tried the official website, and it seems everything is rendered using Canvas. This means you can't select or copy text, use the browser's text translation feature, open links with a middle-click, or use the Tab key to switch focus between page elements. These behaviors feel quite out of place in a browser. However, it might be a good idea for developing game interfaces, as games don't need to worry about such browser compatibility issues.
miffy900 · 4h ago
> allowing you to Code Once, Run Everywhere

May I suggest that everyone just drop this whole 'develop/program it once, run it everywhere' slogan that just gets repeated endlessly when people try to promote their new platform/framework/library or whatever? I've never seen it work out that way in practice. Never. All individual platforms have their own features, unique quirks and distinct, platform specific bugs and trying to abstract over all the platform specific stuff means you end up with either low-quality, or low-feature implementation that comes close to being usable, but still never quite USEFUL.

Even the web browser, the only one that ever came close to fulfilling that promise, still requires fixing or accounting for browser-specific implementation bugs or quirks or non-standard feature additions/omissions. The closest you can get is just ignore Firefox, Safari and just target Chromium-based browsers, OR just use a subset of the latest web standards.

Considering how scrolling itself is entirely broken on the cogentcore website itself (I'm on desktop Chrome and my mousewheel and 3rd button scrolling doesn't work), it's not inspiring that they couldn't get something basic like scrolling to work. Is it not possible to just delegate scrolling behaviour to the browser?

jitl · 5h ago
Code once run anywhere but at massive cost to user experience. Even if I wanted to use this I couldn’t see myself adopting when the website is so bad. Feels like Flash on an underpowered ee pc.
Alifatisk · 1h ago
I read the title and thought "cool", then I checked out their example. Horrible. I've found a new respect for Flutter.
quaintdev · 4h ago
You all are talking about mobile loading issue. I am facing issue on Desktop Firefox.
tlhunter · 6h ago
Do the apps render as slow as their website? https://www.cogentcore.org
guappa · 4h ago
lol, they should fire the guy :D
anonzzzies · 5h ago
I like new / different approaches to UI but jikes this site is not usable on mobile.
hysan · 5h ago
Tried to look at their website and docs on my phone and the stuttering is painfully noticeable. I’ll read a bit more but that doesn’t inspire confidence.
kamranjon · 7h ago
Has anyone used this? I’ve always wanted to build a native UI app in go but haven’t been too thrilled with the options out there. Am scanning the go.mod to see if I can figure out how they do it (not a huge fan of the embedded browser type stuff)

Edit:

Found some docs here: https://www.cogentcore.org/core/render

super strange website, seems to be using the UI library to actually render the website itself… which made it impossible for me to copy and paste the quote I wanted to share… try long tapping on your phone to copy some text

miffy900 · 4h ago
I was able to open F12 dev tools on desktop on their website and all content is being rendered inside a <canvas> element, which explains why you can't copy and paste.
adamors · 5h ago
Scrolling is also messed up in multiple ways, on an iPhone at least.
p0w3n3d · 5h ago
I went to their website and my phone is too slow to display the page...