News for hackers. Stuff that matters.
Re:OpenChakra is an open-source visual editor for React by Dirak on Thursday February 13, 2020 @01:57AM (#22315878)
As an engineer who works on design systems for a living, I have to say I'm thoroughly impressed with Chakra UI. Its implementation is refreshingly simple and support for generally overlooked things like color theming and responsiveness is generally really well done. Props to the devs for building this -- the care and attention to detail definitely shows.
Re:OpenChakra is an open-source visual editor for React by nexuist on Thursday February 13, 2020 @09:30AM (#22317959)
The devs may have props, but how do they handle state?
Re:OpenChakra is an open-source visual editor for React by adatavizguy on Thursday February 13, 2020 @02:43PM (#22320759)
Looks like they use Rematch.[0]

[0] https://rematch.github.io/rematch/#/

Re:OpenChakra is an open-source visual editor for React by btown on Thursday February 13, 2020 @09:54AM (#22318137)
useReducer? I hardly even know ‘er!
Re:OpenChakra is an open-source visual editor for React by api on Thursday February 13, 2020 @11:58AM (#22319252)
Isn't that beyond the scope of a layout component library? It's React so you manage state.
Re:OpenChakra is an open-source visual editor for React by DecoPerson on Thursday February 13, 2020 @01:34PM (#22320113)
His comment was in jest. It was a play on the use of the word "props" in "Props to the devs for building this."
Re:OpenChakra is an open-source visual editor for React by shinework on Thursday February 13, 2020 @05:53AM (#22316743)
Thanks for your feedback! We try to keep the app simple and clean but with strong details and ux
Re:OpenChakra is an open-source visual editor for React by invalidusernam3 on Thursday February 13, 2020 @08:01AM (#22317361)
Very cool. One suggestion: turn off the autocomplete on the inputs in Chrome. For example if I place an image, in the properties panel I get a lot of weird suggestions as I focus on various fields
Re:OpenChakra is an open-source visual editor for React by mattwoodnyc on Friday February 14, 2020 @12:50PM (#22328495)
I noticed space values (minW, etc) require a “px” to work, but theme-ui doesn’t require it, and defaults “px”
Re:OpenChakra is an open-source visual editor for React by scoot on Thursday February 13, 2020 @10:57AM (#22318698)
> I have to say I'm thoroughly impressed with Chakra UI. [...] Props to the devs for building this -- the care and attention to detail definitely shows.

I find this quite amusing, since the components were almost all copied from other React component libraries, restyled based on an open source CSS library, and styled-system added for good measure.

The developer has done a decent job of pulling it all together, but credit where credit is due.

Re:OpenChakra is an open-source visual editor for React by thinkingkong on Thursday February 13, 2020 @11:22AM (#22318913)
Sooo software?
Re:OpenChakra is an open-source visual editor for React by SirSavary on Thursday February 13, 2020 @12:08PM (#22319340)
I think you just described 80% of all React-based projects.

Also the project README states clearly that this is an editor for Chakra UI, unless you were commenting on that library in particular (and not the editor).

Re:OpenChakra is an open-source visual editor for React by scoot on Thursday February 13, 2020 @12:54PM (#22319760)
Please ready my comment in context (which I have added as a quote for easy reference).
Re:OpenChakra is an open-source visual editor for React by bfrit on Thursday February 13, 2020 @10:34PM (#22323777)
Still comes across as diminishing the helpful work.
Re:OpenChakra is an open-source visual editor for React by dana321 on Thursday February 13, 2020 @10:58AM (#22318714)
I have some feedback.

When you add a component, instead of text values being "Lorem Ipsum" how about something that describes what it is, something like:

"Enter Accordion Header Text" "Enter Alert Title" "Enter Alert Description"

I know you probably rushed it out eager to show, and it is great but a few tweaks like this and a bit of shaded block colour on the elements would go a long way.

Re:OpenChakra is an open-source visual editor for React by statictype on Thursday February 13, 2020 @03:34AM (#22316221)
Is there any toolkit available that lets you build a UI editor like this?

We would like to ship a UI editor with our product that lets you define simple UIs that serialize to json/xml but are hesitant because of the effort required and resources at hand.

Re:OpenChakra is an open-source visual editor for React by mmonihan on Thursday February 13, 2020 @06:30AM (#22316888)
https://ResponseVault.com is built for that. Drag and drop React form components that can embed in any app. All responses and the form definition are saved in json-schema and can be exported to be used with any package that interprets json-schema.

Bring your own components too.

Re:OpenChakra is an open-source visual editor for React by pxtail on Thursday February 13, 2020 @04:52AM (#22316513)
Also take a look at: https://grapesjs.com/
Re:OpenChakra is an open-source visual editor for React by ggurgone on Thursday February 13, 2020 @04:05AM (#22316332)
Re:OpenChakra is an open-source visual editor for React by dkrvt on Thursday February 13, 2020 @09:37AM (#22318017)
You could try WordPress' block editor, Gutenberg [1]. Although not a toolkit it's an extremely customizable UI editor. From within the editor you can create "Reusable Blocks" that are instances of blocks ready to be reused.

[1] https://wordpress.org/gutenberg/

Re:OpenChakra is an open-source visual editor for React by inyono on Thursday February 13, 2020 @05:07AM (#22316569)
Also WIP: https://github.com/edtr-io/edtr-io/. Focuses on defining an easy-to-use editor with constraints for content
Re:OpenChakra is an open-source visual editor for React by dharma1 on Thursday February 13, 2020 @06:02AM (#22316779)
I think https://www.webiny.com/ lets you add your own react UI components
Re:OpenChakra is an open-source visual editor for React by javajosh on Thursday February 13, 2020 @04:28AM (#22316430)
I wondery why people don't use SVG to describe their UIs. Then you don't have to invent a new language, worry about serializing, etc. SVG support in browsers is old and relatively stable.
Re:OpenChakra is an open-source visual editor for React by ath92 on Thursday February 13, 2020 @05:05AM (#22316560)
Because using SVG for user interfaces is bad for accessibility (e.g. for users who rely on screen readers)
Re:OpenChakra is an open-source visual editor for React by true_religion on Thursday February 13, 2020 @04:59PM (#22321861)
How do screen readers handle native applications? Can’t they just do the same thing here?
Re:OpenChakra is an open-source visual editor for React by collyw on Thursday February 13, 2020 @05:29AM (#22316649)
Valid point, but how many people actually pay attention to this in the alternative solutions.
Re:OpenChakra is an open-source visual editor for React by jupp0r on Thursday February 13, 2020 @05:56AM (#22316753)
Well, Chakra does.
Re:OpenChakra is an open-source visual editor for React by ausjke on Thursday February 13, 2020 @12:18PM (#22319436)
many UI builder for bootstrap, which includes react-bootstrap.
Re:OpenChakra is an open-source visual editor for React by warpech on Thursday February 13, 2020 @01:55AM (#22315865)
Great execution! Anyone knows a similar solution for HTML/Web Components? The closest I have seen is https://hadron.app/
Re:OpenChakra is an open-source visual editor for React by mjvesa on Thursday February 13, 2020 @02:27AM (#22315980)
To shamelessly plug my own (free) stuff, I've been working on Unide [1] as a side project. Currently features only Vaadin components and isn't nowhere near the quality of Hadron or OpenChakra. But you can get a LitElement or plain JavaScript project exported from it, and support for other component sets should be coming in the next version.

[1] https://mjvesa.github.io/unide/

Re:OpenChakra is an open-source visual editor for React by _JC_Denton on Thursday February 13, 2020 @10:11AM (#22318276)
I have been using chakra ui in production with my company’s latest app. One of the driving factors for the decision was the library’s strong focus on a11y. It’s also just a really well designed component kit with apis and component composition that struck me as very intuitive.

I hope to see it gain more traction moving forward!

Re:OpenChakra is an open-source visual editor for React by biermic on Thursday February 13, 2020 @07:15AM (#22317120)
I'm having trouble understanding for whom this is is built. Obviously not for me, but what's the problem that editor is solving?
Re:OpenChakra is an open-source visual editor for React by seek3r00 on Thursday February 13, 2020 @07:22AM (#22317153)
well, it could provide designers a tool for designing their mockups and share the resulting React components with the developers—thus removing the need for the latter to manually translate mockups into code.
Re:OpenChakra is an open-source visual editor for React by sixQuarks on Thursday February 13, 2020 @09:42AM (#22318053)
I too don't get who the target market is. To really take advantage of this editor, the user has to already be familiar with React. Why not just go the extra step and learn React?

And if the user is not familiar with React, I feel like this tool will be frustrating to use.

Re:OpenChakra is an open-source visual editor for React by moksly on Thursday February 13, 2020 @08:02AM (#22317363)
I work in the public sector where hordes of MBA types have gotten into digitisation in recent years. I throughly believe we’ll see more and more tools that don’t require an actual developer, because there is just a huge market for it.
Re:OpenChakra is an open-source visual editor for React by vongomben on Thursday February 13, 2020 @09:10AM (#22317809)
Yes. To what level then? I guess node-red is actually fulfilling that gap.
Re:OpenChakra is an open-source visual editor for React by type0 on Thursday February 13, 2020 @03:42PM (#22321240)
Is this something they can not yet get with Sharepoint?
Re:OpenChakra is an open-source visual editor for React by pedalpete on Thursday February 13, 2020 @05:53PM (#22322223)
I had never heard of Chakra before, so this is basically a gui for composing their components.

https://chakra-ui.com/

Would be good for them to have a page that described that.

Re:OpenChakra is an open-source visual editor for React by Barrin92 on Thursday February 13, 2020 @01:56PM (#22320305)
I can tell you why I like it. I'm not a web developer at all and I was recently looking into building a web app, and for me just building something in the gui editor and then looking at the generated code helps me significantly, it is much faster than having to scavenge the docs or google for every single thing I want to do.
Re:OpenChakra is an open-source visual editor for React by pjmlp on Thursday February 13, 2020 @06:42AM (#22316945)
It looks quite good. Finally we are increasingly getting VB/Delphi on the Web.
Re:OpenChakra is an open-source visual editor for React by carlbarrdahl on Thursday February 13, 2020 @03:44AM (#22316254)
With this link you'll get a predefined PH template https://openchakra.app/?ref=producthunt
Re:OpenChakra is an open-source visual editor for React by pookeh on Thursday February 13, 2020 @08:54AM (#22317712)
I wish there was something like this for AntD...

EDIT: Found something similar for AntD but it's only to create landing pages: https://landing.ant.design/edit/

EDIT 2: Found this also: https://www.xiaopiu.com/editor?type=project&id=5b977bf29c2a3...

Re:OpenChakra is an open-source visual editor for React by nirvdrum on Thursday February 13, 2020 @09:08AM (#22317799)
While not quite the same thing, and a commercial tool, i've been using Ant for Figma [1] with a designer to prototype UIs before building them out. There are still some rough edges, but it works pretty well.

[1] -- https://www.antforfigma.com/

Re:OpenChakra is an open-source visual editor for React by pookeh on Thursday February 13, 2020 @10:09AM (#22318263)
I use that too (well not antforfigma.com, but the sketch files by the AntD team that you can import into Figma).

It's not the same tho. I would love for the designers to just give me code.

Re:OpenChakra is an open-source visual editor for React by Jestar342 on Thursday February 13, 2020 @05:32AM (#22316658)
Can this be self-hosted, and can I "drop-in" my own components?
Re:OpenChakra is an open-source visual editor for React by danielheath on Thursday February 13, 2020 @07:20AM (#22317146)
Following the github link, it appears this is 100% client-side.

Looks pretty easy to fork and add stuff to.

Re:OpenChakra is an open-source visual editor for React by Layvier on Thursday February 13, 2020 @06:18AM (#22316849)
I've been using Chakra UI for 3 months now, I can confidently recommend it ! It's simple, highly flexible, well designed and the maintainers are responsive and open to ideas. There's of course of few issues, e.g. the color mode with Next.js or some components missing but no real blockers AFAIK
Re:OpenChakra is an open-source visual editor for React by grizzles on Thursday February 13, 2020 @05:01AM (#22316549)
Blown away, donation link pls.
Re:OpenChakra is an open-source visual editor for React by shinework on Monday February 17, 2020 @12:13PM (#22349039)
Thanks, we have just setup the sponsorship button ️
Re:OpenChakra is an open-source visual editor for React by moondev on Thursday February 13, 2020 @09:58AM (#22318174)
Same here! This really inspires me to create something.
Re:OpenChakra is an open-source visual editor for React by randomsearch on Thursday February 13, 2020 @03:13AM (#22316136)
OpenChakra is to React what X is to Vue.

Does X exist?

Re:OpenChakra is an open-source visual editor for React by cypressious on Thursday February 13, 2020 @05:42AM (#22316704)
There's https://github.com/open-source-labs/PreVue but I haven't used it yet, so I can't say if it's any good.
Re:OpenChakra is an open-source visual editor for React by makkesk8 on Thursday February 13, 2020 @06:31AM (#22316895)
Re:OpenChakra is an open-source visual editor for React by manojlds on Thursday February 13, 2020 @05:50AM (#22316734)
Would love something like this for Vuetify.
Re:OpenChakra is an open-source visual editor for React by marvel_boy on Thursday February 13, 2020 @03:33AM (#22316219)
No
Re:OpenChakra is an open-source visual editor for React by speg on Thursday February 13, 2020 @02:40PM (#22320726)
Am I daft? How do you drag/reorder components? Tried Safari and Edge :(
Re:OpenChakra is an open-source visual editor for React by roryokane on Friday February 14, 2020 @08:19AM (#22326225)
In Firefox 73, drag-and-drop works for me to move components inside a new parent. I can also reorder components that share the same parent by selecting one, looking at the Children section of the Inspector, and dragging-and-dropping the drag handle next to a child.
Re:OpenChakra is an open-source visual editor for React by dvh on Thursday February 13, 2020 @04:52PM (#22321804)
I don't understand. I drag component to workspace and nothing happen. I tried many components. No error in console, nothing. It doesn't work, it won't tell me what's wrong.
Re:OpenChakra is an open-source visual editor for React by shinework on Monday February 17, 2020 @12:13PM (#22349046)
which browser?
Re:OpenChakra is an open-source visual editor for React by snisarenko on Thursday February 13, 2020 @03:51PM (#22321310)
This is pretty great! This tool lies in the sweet spot between no-code and low-code. Gonna be trying it out for my next project.
Re:OpenChakra is an open-source visual editor for React by crazypython on Thursday February 13, 2020 @08:32AM (#22317553)
Hmm, how is OpenChakra different from Framer X?
Re:OpenChakra is an open-source visual editor for React by noonespecial on Thursday February 13, 2020 @08:35AM (#22317582)
Re:OpenChakra is an open-source visual editor for React by vijaybritto on Thursday February 13, 2020 @08:34AM (#22317578)
Is framer x free? And does it only use chakra ui components to build on?
Re:OpenChakra is an open-source visual editor for React by markoehler360 on Thursday February 13, 2020 @04:21AM (#22316397)
thank you for sharing!
Re:OpenChakra is an open-source visual editor for React by malkia on Thursday February 13, 2020 @02:14AM (#22315935)
Re:OpenChakra is an open-source visual editor for React by kumarm on Thursday February 13, 2020 @02:16AM (#22315942)
Chakra is common Sanskrit word meaning Wheel.
Re:OpenChakra is an open-source visual editor for React by kabes on Thursday February 13, 2020 @04:35AM (#22316463)
So they're reinventing the wheel?
Re:OpenChakra is an open-source visual editor for React by dana321 on Thursday February 13, 2020 @10:47AM (#22318608)
The wheel is always being reinvented.

https://www.youtube.com/watch?v=_M9muYyYxhI

Re:OpenChakra is an open-source visual editor for React by skrebbel on Thursday February 13, 2020 @02:17AM (#22315943)
You clearly didn't dive very deep before writing this comment, or you'd have noticed that this is a UI editor for your second link.

The deprecated, maintenance-mode JS engine is unrelated though. Terrible.

Re:OpenChakra is an open-source visual editor for React by malkia on Thursday February 13, 2020 @09:20AM (#22317885)
Oh, you are right! I knew about ChakraCore for a long time, and out of curiousity searched for other projects like it. Sorry about it!
Re:OpenChakra is an open-source visual editor for React by soylentgraham on Thursday February 13, 2020 @02:36AM (#22316009)
Chakra is still bundled with windows, and is still updated with windows updates (although haven't checked yesterday's update)... what makes you think it's deprecated (edge's move to v8? Will that replace the underlying stuff in windows), or in maintainence mode?

I cant see any official mentions of either, and still seems to be getting updates...

Re:OpenChakra is an open-source visual editor for React by skrebbel on Thursday February 13, 2020 @02:40AM (#22316015)
Sure, it's not official, but it's pretty obvious I think: Edge is moving to Chromium. I'm sure Chakra will continue to be bundled with Windows somehow, eg in IE and whatnot, but if you look at Chakra's recent release history in GitHub, it's all security patches.

And it makes sense, why would MS invest in a JS engine it's not planning to use?

Re:OpenChakra is an open-source visual editor for React by warpech on Thursday February 13, 2020 @02:54AM (#22316076)
Relevant discussion about ChakraCore https://github.com/Microsoft/ChakraCore/issues/5865

TLDR ChakraCore is entangled in Microsoft's platforms like UWP, so it must be maintained, but forward development beyond maintenance is uncertain.

Re:OpenChakra is an open-source visual editor for React by aruggirello on Thursday February 13, 2020 @02:57AM (#22316086)
You possibly forgot to mention the biggest Chakra out there:

https://www.chakralinux.org/

Re:OpenChakra is an open-source visual editor for React by chrisweekly on Thursday February 13, 2020 @11:48AM (#22319159)
FTR, OP's OpenChakra is all about chakra-ui (your 2nd link).