Description
HyperApp is a JavaScript library for building frontend applications.
Declarative: HyperApp's design is based on the Elm Architecture. Create scalable browser-based applications using a functional paradigm. The twist is you don't have to learn a new language.
Stateless components: Build complex user interfaces from micro-components. Stateless components are framework agnostic, reusable, predictable and easier to debug.
Batteries-included: Out of the box, HyperApp has Elm-like state management, a virtual DOM engine and a router; it still weighs 1kb and has no dependencies. We're not opinionated about your stack either; use Browserify with Hyperx; Webpack or Rollup with Babel/JSX, etc.
hyperapp alternatives and similar libraries
Based on the "MVC Frameworks and Libraries" category.
Alternatively, view hyperapp alternatives based on common mentions on social networks and blogs.
-
GrapesJS
Free and Open source Web Builder Framework. Next generation tool for building templates without coding -
nativescript
⚡ Empowering JavaScript with native platform APIs. ✨ Best of all worlds (TypeScript, Swift, Objective C, Kotlin, Java, Dart). Use what you love ❤️ Angular, Capacitor, Ionic, React, Solid, Svelte, Vue with: iOS (UIKit, SwiftUI), Android (View, Jetpack Compose), Dart (Flutter) and you name it compatible. -
Adonis
AdonisJS is a TypeScript-first web framework for building web apps and API servers. It comes with support for testing, modern tooling, an ecosystem of official packages, and more. -
aurelia
The Aurelia 1 framework entry point, bringing together all the required sub-modules of Aurelia. -
Stimulus
DISCONTINUED. A modest JavaScript framework for the HTML you already have [Moved to: https://github.com/hotwired/stimulus] -
Rete.js
Rete.js is a framework for creating visual interfaces and workflows. It provides out-of-the-box solutions for visualization using various libraries and frameworks, as well as solutions for processing graphs based on dataflow and control flow approaches. -
litegraph.js
A graph node engine and editor written in Javascript similar to PD or UDK Blueprints, comes with its own editor in HTML5 Canvas2D. The engine can run client side or server side using Node. It allows to export graphs as JSONs to be included in applications independently. -
derby
MVC framework making it easy to write realtime, collaborative applications that run in both Node.js and browsers -
FoalTS
Full-featured Node.js framework, with no complexity. 🚀 Simple and easy to use, TypeScript-based and well-documented.
InfluxDB - Purpose built for real-time analytics at any scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of hyperapp or a related project?
Popular Comparisons
README
Hyperapp
The tiny framework for building hypertext applications.
- Do more with less—We have minimized the concepts you need to learn to get stuff done. Views, actions, effects, and subscriptions are all pretty easy to get to grips with and work together seamlessly.
- Write what, not how—With a declarative API that's easy to read and fun to write, Hyperapp is the best way to build purely functional, feature-rich, browser-based apps using idiomatic JavaScript.
- Smaller than a favicon—1 kB, give or take. Hyperapp is an ultra-lightweight Virtual DOM, highly-optimized diff algorithm, and state management library obsessed with minimalism.
Here's the first example to get you started. Try it here—no build step required!
<!-- prettier-ignore -->
<script type="module">
import { h, text, app } from "https://unpkg.com/hyperapp"
const AddTodo = (state) => ({
...state,
value: "",
todos: state.todos.concat(state.value),
})
const NewValue = (state, event) => ({
...state,
value: event.target.value,
})
app({
init: { todos: [], value: "" },
view: ({ todos, value }) =>
h("main", {}, [
h("h1", {}, text("To do list")),
h("input", { type: "text", oninput: NewValue, value }),
h("ul", {},
todos.map((todo) => h("li", {}, text(todo)))
),
h("button", { onclick: AddTodo }, text("New!")),
]),
node: document.getElementById("app"),
})
</script>
<main id="app"></main>
The app starts by setting the initial state and rendering the view on the page. User input flows into actions, whose function is to update the state, causing Hyperapp to re-render the view.
When describing how a page looks in Hyperapp, we don't write markup. Instead, we use h()
and text()
to create a lightweight representation of the DOM (or virtual DOM for short), and Hyperapp takes care of updating the real DOM efficiently.
Installation
npm install hyperapp
Documentation
Learn the basics in the [Tutorial](docs/tutorial.md), check out the Examples, or visit the [Reference](docs/reference.md).
Packages
Official packages provide access to Web Platform APIs in a way that makes sense for Hyperapp. For third-party packages and real-world examples, browse the Hyperawesome collection.
Package | Status | About |
---|---|---|
@hyperapp/dom |
Inspect the DOM, focus and blur. | |
@hyperapp/svg |
Draw SVG with plain functions. | |
@hyperapp/html |
Write HTML with plain functions. | |
@hyperapp/time |
Subscribe to intervals, get the time now. | |
@hyperapp/events |
Subscribe to mouse, keyboard, window, and frame events. | |
@hyperapp/http |
Talk to servers, make HTTP requests (#1027). | |
@hyperapp/random |
Declarative random numbers and values. | |
@hyperapp/navigation |
Subscribe and manage the browser URL history. |
Need to create your own effects and subscriptions? [You can do that too](docs/reference.md).
Help, I'm stuck!
If you've hit a stumbling block, hop on our Discord server to get help, and if you remain stuck, please file an issue, and we'll help you figure it out.
Contributing
Hyperapp is free and open-source software. If you want to support Hyperapp, becoming a contributor or sponsoring is the best way to give back. Thank you to everyone who already contributed to Hyperapp! <3
License
[MIT](LICENSE.md)
*Note that all licence references and agreements mentioned in the hyperapp README section above
are relevant to that project's source code only.