hyperscript
gomponents
Our great sponsors
hyperscript | gomponents | |
---|---|---|
24 | 8 | |
2,589 | 701 | |
0.0% | 9.6% | |
0.0 | 6.0 | |
almost 3 years ago | about 1 month ago | |
HTML | Go | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
hyperscript
-
Ludic: New framework for Python with seamless Htmx support
* https://github.com/hyperhype/hyperscript
There is also a working integration with Django that enables the use of neat-html as a template backend, however it isn't up on GitHub yet.
I find the space of HTML generation libraries which can leverage the power of Python, really interesting.
-
Intro to Hyperscript: Rethinking JavaScript
Does anyone else get this confused with https://github.com/hyperhype/hyperscript ?
-
DOM to JSON and back
This works like Reactʼs createElement function. Or a library such as hyperscript. Sure, weʼd prefer JSX for its much reduced cognitive load. But our alternative here is the DOM methods such as createElement. Unless we want to load up a bulky library such as React, that is.
-
Experimenting with html in object form. How cursed is this?
Consider looking at hyperscript, which is a plain-javascript library for constructing html nodes (NOT a transpiler). Similar to what you have here, but way nicer
-
What is the state of the art for creating domain-specific languages (DSLs) with Rust?
In fairness, there's a lot of overlap between embedded DSLs and libraries — a library like Hyperscript for generating HTML in JavaScript is in many ways a DSL, but it's also just a bunch of functions that are easy to put together in a particular way. But this is often good enough!
-
Ask HN: What happened to vanilla HTML/CSS/JS development?
Hyperscript (https://github.com/hyperhype/hyperscript) is actually quite nice when you get used to it, and I actually prefer it over JSX. Pair it with something like microh[0], and it gets even better.
-
_hyperscript – a small scripting language for the web
The naming of this project clashes horribly with https://github.com/hyperhype/hyperscript. It's not like it's in a different ecosystem or something. It is a web project that is guaranteed to cause confusion.
-
My thoughts on Mithril.js
With Mithril.js, you generate HTML using a hyperscript dialect like this:
-
Show HN: A simple Wordle clone in 60 lines, using Hyperscript
I'm confused. Hyperscript is supposed to be an alternative way to writing JSX.
Hyperscript.org doesn't seem to be related to this at all?
-
Hyperscript - the hidden language of React
The reason is dead simple. It's exported as h because it's a hypescript function. So what exactly is hypescript?
gomponents
-
Templ: A language for writing HTML user interfaces in Go
I'm really happy you like it. :) And thank you for your comment, I really appreciate newcomer viewpoints especially.
Have a look at the `Classes` helper component already available: https://github.com/maragudk/gomponents/blob/main/components/...
Yeah, I'm not a total fan of the runtime panics, but it was a tradeoff where I chose in favour of API simplicity and readability. In practice, it works out well, because you catch any typos at development time.
I've had elements and attributes in separate packages before, but then you can't dot-import both packages and not have name clashes, and have to either prefix elements or attributes with the package name, which makes the code much less readable. Again, a tradeoff. :)
-
Template Engine Recommendation
Gomponents:
-
HTML Templates | Why would you use them over react?
I now always use https://github.com/maragudk/gomponents for frontend components (I'm the author of that library) together with HTMX (https://github.com/maragudk/gomponents-htmx), and it's just so much more fun and fast to work with.
-
How to render html children inside nested templates
However, there is an alternative to achieve React-ish components in Go using this package: https://github.com/maragudk/gomponents
-
Daz: Composable HTML components in golang
reminds me of https://github.com/maragudk/gomponents
-
How painful is SSR with Go, really?
I’ve also started just rendering views from the Go backend. It’s so nice and simple when you don’t need an SPA (like in your case). I didn’t like the syntax of html/template though, so I started a small view component library. Maybe it would be useful to you too, wrote about it here: https://www.maragu.dk/blog/gomponents-declarative-view-components-in-go/
-
How I build web frontends in Go
Are you speaking of something like: gomponents? I can see what it has to offer. I tried it for half an hour but did not feel that well about it.
What are some alternatives?
Alpine.js - A rugged, minimal framework for composing JavaScript behavior in your markup.
go-admin - A golang framework helps gopher to build a data visualization and admin panel in ten minutes
Alpine
vecty - Vecty lets you build responsive and dynamic web frontends in Go using WebAssembly, competing with modern web frameworks like React & VueJS.
Vue.js - This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
goview - Goview is a lightweight, minimalist and idiomatic template library based on golang html/template for building Go web application.
reagent - A minimalistic ClojureScript interface to React.js
vugu - Vugu: A modern UI library for Go+WebAssembly (experimental)
window.fetch polyfill - A window.fetch JavaScript polyfill.
templ - A language for writing HTML user interfaces in Go.
htmx - </> htmx - high power tools for HTML
html - html is a go library for generating html components such as buttons, form fields, forms, tables and more using golang.