0%

Kotlin web frameworks of Kweb-core

Kotlin web frameworks:

We will introduce Kweb-core in this article.

Introduction

Motivation

Kweb’s goal is to eliminate this server/browser separation so that your webapp’s architecture is determined by the problem you’re solving, rather than the limitations of today’s tools.

Getting Started

A common concern about this approach is that the user interface might feel sluggish if it is server driven. Kweb solves this problem by preloading instructions to the browser to be executed immediately on browser events without a server round-trip.

Kweb is built on the excellent Ktor framework, which handles HTTP, HTTPS, and WebSocket transport. You don’t need to know Ktor to use Kweb, but if you’ve already got a Ktor app you can embed Kweb as a Feature.

Features

  • Allows the problem to determine your architecture, not the server/browser divide
  • End-to-end Kotlin
  • Keep the web page in sync with your back-end data in realtime, Kweb does all the plumbing for you
  • Server-side HTML rendering with rehydration
  • Efficient instruction preloading to avoid unnecessary server communication
  • Very lightweight, Kweb is less than 5,000 lines of code

Getting Started