# Dapr4s: POC for using Safe Scala to build cloud apps

**URL:** <https://users.scala-lang.org/t/dapr4s-poc-for-using-safe-scala-to-build-cloud-apps/12405>\
**Category:** Announce\
**Created:** [October 11, 2026, 11:56pm UTC](https://users.scala-lang.org/t/dapr4s-poc-for-using-safe-scala-to-build-cloud-apps/12405 "2026-10-11T23:56:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sideeffffect](https://users.scala-lang.org/user_avatar/users.scala-lang.org/sideeffffect/32/1198_2.png) [@sideeffffect](https://users.scala-lang.org/u/sideeffffect)\
**Post date:** [October 11, 2026, 11:56pm UTC](https://users.scala-lang.org/t/dapr4s-poc-for-using-safe-scala-to-build-cloud-apps/12405/1 "2026-10-11T23:56:48Z")

</div>

Hello everybody,  
I’d like to let you know about a recent experiment/POC I’ve been working on recently:

[Safe Scala](https://nightly.scala-lang.org/docs/reference/experimental/capture-checking/safe.html) is a recent experimental feature. In short, it is a subset of Scala which doesn’t allow for any sideffects. Any sideeffecting tools, especially Java standard library are just not aceesible – a program using those won’t compile. Thus the only way to peform side effects is via explicitly passed in _Capabilities_. That may sound like a pure academic excercise.

But there is a project called [Dapr](https://dapr.io/) which is aiming to abstract cloud applications from the hassle of I/O (queues, sync messaging, distributed locks, state, durable workflows, etc.). Thus allowing apps to focus on business logic and use dapr as a framework (running out of the app process). What if we could represent these capabilities of Dapr as Scala Capabilities?

That’s exactly what dapr4s does. It uses Dapr’s Java SDK behing the scenes but exposes a pure Capability-style Scala facade. It is still just an experimental project, nothing ready for production (at least just yet). But it’s a POC – a proof that Safe Scala can be practical to build (maybe even line of business boring) cloud apps.

Here’s the link to the project:

> **[GitHub - sideeffffect/dapr4s: Scala 3 library exposing Dapr building blocks as...](https://github.com/sideeffffect/dapr4s)**
>
> Scala 3 library exposing Dapr building blocks as capture-checked capabilities

Repository with examples and a slides with more info:

- [GitHub - sideeffffect/dapr4s-examples: Runnable examples for dapr4s (Safe Scala + Dapr) · GitHub](https://github.com/sideeffffect/dapr4s-examples)
- [dapr4s-examples/SLIDES.md at master · sideeffffect/dapr4s-examples · GitHub](https://github.com/sideeffffect/dapr4s-examples/blob/master/SLIDES.md)

I hope you’ll find this project inspiring and would be happy to discuss details at Scala Days 2026 in Berlin.

(Disclosure: the project has been developed with the help of LLMs.)
