Outwatch
The Functional and Reactive Web-Frontend Library for Scala.js
Install / Use
/learn @outwatch/OutwatchREADME
Outwatch
The Functional and Reactive Web-Frontend Library for Scala.js
import outwatch._
import outwatch.dsl._
import colibri._
import cats.effect.{IO, IOApp}
object Main extends IOApp.Simple {
override def run = {
val counter = Subject.behavior(0)
val myComponent = div(
button("+", onClick(counter.map(_ + 1)) --> counter),
counter,
)
Outwatch.renderReplace[IO]("#app", myComponent)
}
}
In Outwatch, you can describe your whole web application without doing any side effect - you only run your application when rendering it.
- Write UI-components using pure functions
- Manage state in a referentially transparent way using cats-effect
- Built-in lightweight
ObservableandSubjecttypes from colibri - Seamlessly works with existing reactive programming libraries: ZIO, fs2, Airstream, scala.rx
- Low-boilerplate, many convenient helper functions
- Built on top of snabbdom, a virtual dom library
You will find interactive examples and explanations in our documentation.
Documentation
Bugs and Feedback
For bugs, questions and discussions please use GitHub Issues.
Community
We adopted the Scala Code of Conduct. People are expected to follow it when discussing Outwatch on the Github page, Gitter channel, or other venues.
LICENSE
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
