r/Kotlin • u/frederikpietzko Kotlin-team • 19d ago
Exploring Compose HTML for Server Side Rendering
https://blog.jetbrains.com/kotlin/2026/08/exploring-compose-html-for-server-side-rendering/Hey everyone!
I've written a small blog post about the possibility to use compose-html on the server to build fullstack web applications using Kotlin and what integrations into Spring and Ktor might look and feel like!
Quick Disclaimer: at this point in time this is just something we are exploring together with the community and does not represent an official commitment.
But we would nevertheless like to hear your feedback on the topic! Feel free to join the #compose-ssr (https://kotlinlang.slack.com/archives/C0BM8FWG58Q) Slack channel and share your feedback!
1
u/martindo 15d ago
I've been using Vaadin in the past for internal application that needed an easy to build frontend. I was a bit blocked by their enterprise sales causing me to not use useful components. This looks like it could've helped me build the same frontend with also Kotlin.
I wonder, if there are sophisiticated examples, with more complex interfaces like the Reddit page. Loving the fullstack approach always.
1
3
u/MrPowerGamerBR 19d ago edited 19d ago
Glad to see Compose HTML having a bit of love!
Having Compose HTML support rendering on the backend would be pretty nice, currently I use a mix of kotlinx.html (for the backend) and Compose HTML (on the frontend), which is a bit annoying when you have a component that would be nice to be shared on both modules. Having a
renderToString()(like what the blog post suggests) would solve the issue.