kotlinx.serialization VS kotlinx.html

Compare kotlinx.serialization vs kotlinx.html and see what are their differences.

kotlinx.serialization

Kotlin multiplatform / multi-format serialization (by Kotlin)

kotlinx.html

Kotlin DSL for HTML (by Kotlin)
Our great sponsors
  • Scout APM - A developer's best friend. Try free for 14-days
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
  • SaaSHub - Software Alternatives and Reviews
kotlinx.serialization kotlinx.html
29 4
3,507 1,218
2.3% 0.4%
8.7 2.7
1 day ago 5 months ago
Kotlin Kotlin
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

kotlinx.serialization

Posts with mentions or reviews of kotlinx.serialization. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-11-29.

kotlinx.html

Posts with mentions or reviews of kotlinx.html. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-08-25.
  • Is there an equivalent for Compose Web for server side Kotlin apps?
    3 projects | reddit.com/r/Kotlin | 25 Aug 2021
  • Show HN: Imba – I have spent 7 years creating a programming language for the web
    14 projects | news.ycombinator.com | 17 Aug 2021
    Thanks for sharing, I really like projects like this. And the website is really informative.

    I find it less of a new language and more of a JS preprocessor, removing lots of the cruft and integrating XML-tags and CSS in a very neat way.

    What I miss:

    1) I feel the web is shifting to more type checking. TS, Elm, Kotlin.js... I personally also prefer more typesafety, especially if the project grows in LOC/team size.

    2) Compared to JSX, Imba does a much better job in integrating adjacent technologies. Though I much prefer these to be integrated in an eDSL fashion. For example how Elm does HTML templating (in Elm) or Kotlinx.html[1].

    Just taste i guess. Good luck with yr project!

    [1]: https://github.com/Kotlin/kotlinx.html

  • Kotlin Team AMA #3: Ask Us Anything
    52 projects | reddit.com/r/Kotlin | 27 May 2021
    I do use kotlinx.html and while there is a lack of the documentation about the tags, most of them are already implemented (as far as I know they are automatically generated) and the ones that aren't automatically generated can be implemented manually in your own project.
    52 projects | reddit.com/r/Kotlin | 27 May 2021
    Recently I wanted to try doing Kotlin Fullstack with https://htmx.org/ , I looked at several HTML Template Engines and came across kotlinx.html. I really wanted to use it to make my whole stack type safe, but the few wiki pages that you call "documentation" really had me struggling to use it. https://github.com/Kotlin/kotlinx.html/wiki Like I didn't even find a whole list of all tags you have. I really expected different from a offical Jetbrains Kotlin library, not to mention there is a complete lack of tutorials for this library, I switched to mustache because they have way better documentation.

What are some alternatives?

When comparing kotlinx.serialization and kotlinx.html you can also consider the following projects:

Moshi - A modern JSON library for Kotlin and Java.

klaxon - A JSON parser for Kotlin

jackson-module-kotlin - Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes.

kotlin-json - A JavaScript Object Notation library for Kotlin JVM.

http4k - The Functional toolkit for Kotlin HTTP applications. http4k provides a simple and uniform way to serve, consume, and test HTTP services.

spring-native - Spring Native provides beta support for compiling Spring applications to native executables using GraalVM native-image compiler.

vertx-lang-kotlin - Vert.x for Kotlin

javalin - A simple and modern Java and Kotlin web framework

ktor - Framework for quickly creating connected applications in Kotlin with minimal effort

koin - Koin - a pragmatic lightweight dependency injection framework for Kotlin

apollo-android - :robot:  A strongly-typed, caching GraphQL client for the JVM, Android, and Kotlin multiplatform.

ext4klaxon - Type Extensions for Klaxon (Kotlin JSON library)