datastar-hs: Haskell bindings for Datastar
Server-side SDK for building real-time hypermedia applications with Datastar. Stream HTML fragments, reactive signal updates, and scripts to the browser over server-sent events (SSE). Built on WAI so it works with Warp, Scotty, Servant, Yesod, and any other WAI-compatible framework.
[Skip to Readme]
Modules
[Index] [Quick Jump]
- Hypermedia
- Hypermedia.Datastar
- Hypermedia.Datastar.Attributes
- Compression
- Hypermedia.Datastar.Compression.Brotli
- Hypermedia.Datastar.Compression.Zlib
- Hypermedia.Datastar.Compression.Zstd
- Hypermedia.Datastar.ExecuteScript
- Hypermedia.Datastar.Logger
- Hypermedia.Datastar.PatchElements
- Hypermedia.Datastar.PatchSignals
- Hypermedia.Datastar.Types
- Hypermedia.Datastar.WAI
- Hypermedia.Datastar
Flags
Manual Flags
| Name | Description | Default |
|---|---|---|
| zstd | zstd Content-Encoding compressor (needs unreleased hs-zstd) | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- datastar-hs-1.0.2.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.0.2, 1.0.0.0, 1.0.1.0, 1.0.1.1, 1.0.2.0, 1.0.2.1 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | aeson (>=2.0 && <3), base (>=4.14 && <5), brotli (>=0.0.0.3 && <1), bytestring (>=0.10.12 && <1), containers (>=0.6 && <1), datastar-hs, ghc-heap (>=9.0 && <10), http-media (>=0.8 && <1), http-types (>=0.12 && <1), lucid2, servant-server (>=0.19 && <1), stm (>=2.4 && <3), streaming-commons (>=0.2.3.1 && <1), text (>=1.2 && <3), time (>=1.9 && <2), uuid (>=1.3 && <2), wai (>=3.2 && <4), warp (>=3.2 && <4) [details] |
| License | MIT |
| Author | Carlo Hamalainen |
| Maintainer | carlo@carlo-hamalainen.net |
| Uploaded | by CarloHamalainen at 2026-06-24T07:27:05Z |
| Category | Web, Hypermedia |
| Home page | https://github.com/starfederation/datastar-haskell |
| Bug tracker | https://github.com/starfederation/datastar-haskell/issues |
| Source repo | head: git clone https://github.com/starfederation/datastar-haskell.git |
| Distributions | |
| Executables | heap-view, activity-feed, hello-world-channel, hello-world-servant, hello-world-warp, e2e-server, compression-bench |
| Downloads | 62 total (17 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs available [build log] Last success reported on 2026-06-24 [all 1 reports] |
