Alpine.js
hyperscript


Alpine.js | hyperscript | |
---|---|---|
263 | 25 | |
28,987 | 2,645 | |
1.2% | 0.0% | |
8.4 | 0.0 | |
6 days ago | over 3 years ago | |
HTML | HTML | |
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.
Alpine.js
-
Creating a To-do app with HTMX and Django, part 8: inline edit, and using Iconify
As usual, there are a few possibilities here; one is to render both the with the title, and a form with for each row, and use plain Javascript (or AlpineJS) to toggle edit mode.
-
Supercharge your HTML with mizu.js!
That's why I grew fond of libraries such as Alpine.js and htmx, which require no setup and are easy to use. However, I felt these had some limitations. Since they were mostly designed for client-side usage, it wasn't really possible to use them in server-side rendering contexts (including static generation).
-
🔥I have launched a project and think it help you, maybe :)
In fact, it is really good as an alternative to modules like htmx and alpine.js, because it allows you to create dynamic interfaces with a minimum set of configurable parameters, as well as the size of the output files. This is achieved by working with the server, when we prepare the UI there, and we only transfer it to the client via API.
-
🍣 Sushi — Your Eloquent model driver for other data sources
It is created by Caleb Porzio (the guy behind Livewire and AlpineJS), Sushi simplifies your data when a full database table is unnecessary.
-
Build a Simple Auto-Play Carousel with Clickable Controls Using Alpine.js
Here's a step-by-step example of creating a simple carousel using Alpine.js. Alpine.js is a lightweight JavaScript framework that provides reactivity and can be used to build interactive components without a lot of JavaScript.
-
VidSnap: Effortless Screen Recording powered by Pinata
The web app was made using AlpineJS for interactivity, TailwindCSS for styling, Clerk for user authentication, and Vercel for deployments. This stack allowed me to quickly build and deploy an MVP within 24 hours.
-
Personal Finance Management App with Django, HTMX, Alpine, Tailwind and Plaid
Alpine.js is another lightweight JavaScript framework used to add interactivity. It plays nicely with Django’s template structure and provides quick, declarative behavior for things like modals, dropdowns, or toggles. In combination with HTMX, Alpine can give you just enough JavaScript to enhance the UX without having to deal with something like React or Vue. For instance, you can use Alpine to manage state in the frontend, like opening and closing modals or handling client-side validation.
-
React on the server is not PHP
That’s a mostly solved problem. If you’re in the Laravel ecosystem:
https://livewire.laravel.com/
https://alpinejs.dev/
AlpineJS is for your menus and simple client-side interactivity. Livewire lets you render templates server-side while handling routing, interactivity, updates, morphing, everything you need all in one.
Combine the two, you’ll be counting the lines of JavaScript you right in the dozens, on one hand.
-
Augmenting the client with Alpine.js
This post is part of a series comparing different ways to implement asynchronous requests on the client, which is colloquially known as AJAX. I dedicated the previous post to Vue.js; I'll dedicate this one to Alpine.js - not to be confused with Alpine Linux.
-
A short history of AJAX and SSR
We must recognize the benefits that client-side rendering offers, but perhaps the pendulum has swung too far. Is it possible to have the best of both worlds? In some corners of the industry, cooler heads have prevailed, and the term SSR has been coined to describe a return to what we've been doing for ages—albeit with some modern enhancements. The idea is to leverage AJAX, JavaScript, and browser improvements without the unnecessary bloat. While many tools are available, I frequently hear about Vue. js and HTMX. A recent search also led me to Alpine.js. And I've long been a proponent of Vaadin.
hyperscript
-
Show HN: Tiny JavaScript – A Lightweight JavaScript Library for Easy DOM Creatio
One of the comments the other day was "You have reinvented Hyperscript".
In case you didn't see it, they meant this [0] and also this [1].
I don't mean this as a critique or dismissal of your idea, but I think it's fair to prefer Hyperscript since it's well tested code and has a couple of additional features (like event handler support) without being much larger than your own code.
[0] https://github.com/hyperhype/hyperscript
[1] https://github.com/ohanhi/hyperscript-helpers
-
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.
[0] https://github.com/fuzetsu/microh
-
_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?
https://github.com/hyperhype/hyperscript
What are some alternatives?
knockout - Knockout makes it easier to create rich, responsive UIs with JavaScript
gomponents - HTML components in pure Go.
Svelte - web development for the rest of us
window.fetch polyfill - A window.fetch JavaScript polyfill.
React - The library for web and native user interfaces.
Alpine
GrapesJS - Free and Open source Web Builder Framework. Next generation tool for building templates without coding
reagent - A minimalistic ClojureScript interface to React.js
Mithril.js - A JavaScript Framework for Building Brilliant Applications
_hyperscript - a small scripting language for the web
htmx - </> htmx - high power tools for HTML
es-module-shims - Shims for new ES modules features on top of the basic modules support in browsers

