Kotlin DSL

Open-source Kotlin projects categorized as DSL

Top 23 Kotlin DSL Projects

  • Balloon

    :balloon: Modernized and sophisticated tooltips, fully customizable with an arrow and animations for Android.

  • Kaspresso

    Android UI test framework

    Project mention: Best Path for Integration Tests | reddit.com/r/androiddev | 2023-04-27

    https://github.com/KasperskyLab/Kaspresso if you really need to do it then this how you should do it, though I believe integration tests are inherently flawed

  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support. Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

  • kotlinx.html

    Kotlin DSL for HTML

    Project mention: Dart 3 will be on pair with Kotlin and other top languages (you can see more features in the proposal) | reddit.com/r/dartlang | 2023-01-26

    As for the strange infix syntax, you're correct - it's not important (for Dart anyway). Kotlin supports writing code that have DSL like syntax making things like typesafe HTML or Jetpack Compose possible.

  • DslTabLayout

    :hearts: Android界最万能的TabLayout(不仅仅是TabLayout), 支持任意类型的item, 支持Drawable类型的指示器,智能开启滚动,支持横竖向布局等

    Project mention: Are github images not loading for everyone or is it just me? | reddit.com/r/github | 2022-12-01
  • kotlin-csv

    Pure Kotlin CSV Reader/Writer

  • MaterialDrawerKt

    A Kotlin DSL wrapper around the mikepenz/MaterialDrawer library.

  • Only

    :bouquet: An easy way to persist and run code block only as many times as necessary on Android. (by skydoves)


    ONLYOFFICE Docs — document collaboration in your environment. Powerful document editing and collaboration in your app or environment. Ultimate security, API and 30+ ready connectors, SaaS or on-premises

  • kohttp

    Kotlin DSL http client

  • valiktor

    Valiktor is a type-safe, powerful and extensible fluent DSL to validate objects in Kotlin

  • better-parse

    A nice parser combinator library for Kotlin

    Project mention: Can I use third-party libraries for projects? | reddit.com/r/Hyperskill | 2023-01-24

    I'm currently working on the "Kotlin Basics" track, specifically, on the "Smart Calculator" project. It would be super useful to leverage a parser combinator library, e.g., better-parse. Is this possible? Can I just add it as a dependency in Gradle? If so, how would I ideally do it, is there anything to consider? Thanks!

  • github-workflows-kt

    Authoring GitHub Actions workflows in Kotlin. You won't get back to YAML!

    Project mention: Guides for Kotlin scripting use case | reddit.com/r/Kotlin | 2023-03-12

    The github-workflows-kt project uses Kotlin scripting, and it recommends doing everything using main.kts, because it's easier.

  • autodsl

    Auto-generate Kotlin DSL

  • kotlin-jpa-specification-dsl

    This library provides a fluent DSL for querying spring data JPA repositories using spring data Specifications (i.e. the JPA Criteria API), without boilerplate code or a generated metamodel.

  • kstatemachine

    KStateMachine is a Kotlin DSL library for creating state machines and hierarchical state machines (statecharts).

    Project mention: Dart 3 | news.ycombinator.com | 2023-05-10

    Kotlin has some pretty nice StateMachine DSL libraries out there, like https://github.com/nsk90/kstatemachine

  • Kakao

    Nice and simple DSL for Espresso in Kotlin

    Project mention: Best Path for Integration Tests | reddit.com/r/androiddev | 2023-04-27

    Github Link for others: https://github.com/KakaoCup/Kakao

  • injekt

    Next gen DI framework powered by a Kotlin compiler plugin [WIP] (by IVIanuu)

  • units-of-measure

    Type-safe dimensional analysis and unit conversion in Kotlin.

  • ksvg

    A Multiplatform Kotlin SVG image DSL.

  • MapNeat

    MapNeat is a JVM library written in Kotlin that provides an easy to use DSL (Domain Specific Language) for transforming JSON to JSON, XML to JSON, POJO to JSON in a declarative way.

    Project mention: Quick question: Care e faza cu a fi crab? | reddit.com/r/programare | 2023-02-17
  • KidAdapter

    kotlin dsl for kids to simplify RecyclerView.Adapter logic

  • kaadin

    Kotlin DSL for Vaadin

  • kimmer

    1. Immer. 2. SQL DSL

  • tekniq

    A framework designed around Kotlin providing Restful HTTP Client, JDBC DSL, Loading Cache, Configurations, Validations, and more

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-05-10.

Kotlin DSL related posts


What are some of the best open-source DSL projects in Kotlin? This list will help you:

Project Stars
1 Balloon 3,160
2 Kaspresso 1,578
3 kotlinx.html 1,387
4 DslTabLayout 1,163
5 kotlin-csv 518
6 MaterialDrawerKt 516
7 Only 480
8 kohttp 466
9 valiktor 395
10 better-parse 375
11 github-workflows-kt 341
12 autodsl 339
13 kotlin-jpa-specification-dsl 235
14 kstatemachine 233
15 Kakao 229
16 injekt 94
17 units-of-measure 87
18 ksvg 73
19 MapNeat 60
20 KidAdapter 56
21 kaadin 45
22 kimmer 37
23 tekniq 35
Clean code begins in your IDE with SonarLint
Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.