https://github.com/purescript-halogen/purescript-halogen-vdom
An extensible virtual-dom library for PureScript.
https://github.com/purescript-halogen/purescript-halogen-vdom
purescript purescript-halogen
Last synced: 18 days ago
JSON representation
An extensible virtual-dom library for PureScript.
- Host: GitHub
- URL: https://github.com/purescript-halogen/purescript-halogen-vdom
- Owner: purescript-halogen
- License: apache-2.0
- Created: 2016-09-06T20:04:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-06-16T11:27:38.000Z (over 1 year ago)
- Last Synced: 2026-01-14T23:25:01.749Z (about 2 months ago)
- Topics: purescript, purescript-halogen
- Language: PureScript
- Homepage:
- Size: 95.7 KB
- Stars: 58
- Watchers: 9
- Forks: 27
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# purescript-halogen-vdom
[](https://github.com/purescript-halogen/purescript-halogen-vdom/releases)
[](https://github.com/purescript-halogen/purescript-halogen-vdom/actions?query=workflow%3ACI+branch%3Amaster)
[](https://pursuit.purescript.org/packages/purescript-halogen-vdom)
An extensible virtual-dom library for PureScript.
## Installation
Install with Spago:
```
spago install halogen-vdom
```
## Quick Start
You can get started with `halogen-vdom` with these resources:
- Read the [guide](./GUIDE.md).
- See the [test example](./test/Main.purs).
## Overview
`Halogen.VDom` is a bare-bones virtual-dom library for PureScript with inspiration drawn from:
- https://github.com/Matt-Esch/virtual-dom
- https://github.com/paldepind/snabbdom
- https://github.com/elm-lang/virtual-dom
Its goals include:
1. Use as little FFI as possible.
2. Be as fast as possible given (1).
3. Be extensible.
Notably, `Halogen.VDom` is largely useless out of the box. You'll need to bring your own attributes, properties, and event listeners (though there is a working implementation included). It is intended to be extended (and likely `newtype`d) by other frameworks to suit their needs.