News for hackers. Stuff that matters.
Re:Ask HN: What's is your go to toolset for simple front end... by graboid on Thursday July 07, 2022 @06:51AM (#32012358)
Preact [0] + htm [1]

Why? Preact is small, fast, and reasonably easy to use. But the main selling point for me was that, together with htm, I don't need any build system a la webpack. No node_modules folder. I just have to load one script (preact + htm bundled), define my components in plain javascript files and import them. Bliss for me.

[0] https://preactjs.com/

[1] https://github.com/developit/htm

Edit: Just read that you want drag & drop style UI building, so this might not be for you.

Re:Ask HN: What's is your go to toolset for simple front end... by azangru on Thursday July 07, 2022 @08:30AM (#32013157)
I used Lit for web components, with no build steps. I loaded it from unpkg [0]; but there are probably more production-ready CDNs in existence. It worked pretty well, especially since CSS styles can also be encapsulated inside of the shadow DOM of the components.

But for proper frontend projects, I would use typescript, and therefore a build pipeline.

https://www.unpkg.com/browse/[email protected]/index.js

Re:Ask HN: What's is your go to toolset for simple front end... by ihateolives on Thursday July 07, 2022 @09:22AM (#32013752)
I'm thinking of trying ts + deno at some point since deno has built-in ts support.
Re:Ask HN: What's is your go to toolset for simple front end... by azangru on Thursday July 07, 2022 @09:29AM (#32013829)
It won't help with the browser-side part of the story though :-)
Re:Ask HN: What's is your go to toolset for simple front end... by czottmann on Thursday July 07, 2022 @03:20PM (#32018163)
There's Deno Fresh now (https://fresh.deno.dev/) which looks like a pretty interesting new web framework so far.
Re:Ask HN: What's is your go to toolset for simple front end... by sethlivingston on Friday July 15, 2022 @06:33PM (#32113486)
Glad to see this. I used Preact and htm to build a small, events-flying-everywhere app that helped me get my current job, which I love. https://github.com/spaceaardvark/react-control-chaos

Highly recommend.

Re:Ask HN: What's is your go to toolset for simple front end... by wcarss on Thursday July 07, 2022 @09:19AM (#32013706)
Came here to say preact is pretty nice and the no build pipeline thing is wonderful.

I needed to make a little thing "with a few screens" once, and using a react-like model of rendering specific components based on state just felt right. But I really didn't want to get all the CLI and front end packages involved because it was such a small thing -- and preact was exactly the ticket!

Re:Ask HN: What's is your go to toolset for simple front end... by moochee on Friday July 08, 2022 @03:40AM (#32023994)
+1. We use preact + htm and no build approach to build Moochee (https://app.moochee.us/tryout). Super simple to use yet very powerful!
Re:Ask HN: What's is your go to toolset for simple front end... by mattlondon on Thursday July 07, 2022 @08:01AM (#32012894)
Ah no NPM! Vanilla JS with no build step. This is very interesting. Thanks.
Re:Ask HN: What's is your go to toolset for simple front end... by moochee on Friday July 08, 2022 @08:22PM (#32029906)
Re:Ask HN: What's is your go to toolset for simple front end... by anakaine on Thursday July 07, 2022 @07:22AM (#32012577)
The drag and drop is more a rapid build tool than anything else. I'm, frankly, not likely to put all the love an effort in to the front end that I will the back end for small projects.

No build pipeline is very helpful, actually.

Re:Ask HN: What's is your go to toolset for simple front end... by rk06 on Thursday July 07, 2022 @12:51PM (#32016364)
if you really don't want a build pipeline, then in js land your options are limited to alpine and vue. there may be more, but these two are more popular ones
Re:Ask HN: What's is your go to toolset for simple front end... by moochee on Friday July 08, 2022 @08:23PM (#32029915)