awesome-ktor
Awesome books, tutorials, courses, and resources for the Ktor framework ecosystem. ⚡
https://github.com/mjovanc/awesome-ktor
Last synced: about 12 hours ago
JSON representation
Articles
- Kotlin with Ktor - Explores how to create a standalone server application using Ktor.
- Ktor: REST API for Mobile - Using Ktor to create REST APIs for mobile. You’ll create a Ktor REST API server named TodoServer. This server will authenticate users and provide an API for users and TODOs.
- KtorEasy Medium articles: - Medium's article list explaining KtorEasy repository. Including explanation about its architecture, testing, deployment and backend monitoring with Grafana.
- An opinionated Kotlin backend service - Article list explains the scaffolding for Kotlin / Ktor based backend services
- How to Integrate Firebase Authentication with the Ktor Auth Feature
Books
- Marcin Moskała - Kotlin coroutines deep dive - Very useful book to understand coroutinesand on deeper level. Note: The book is not talking directly about Ktor, however it's talking about server side Kotlin in general.
Courses
Educational Projects
- Samples for Ktor - A collection of ready-to-use samples for Ktor.
- KtorEasy - Demonstrates a suggested Ktor architecture. It includes Backend implementation with Ktor, MariaDB database connection with Hikari, Docker command to build Backend container and Docker compose to run both database and backend instance.
- Ktor Arrow Real World Example - Real World implementation - "The mother of all demo apps". Written in Kotlin, with Ktor, Arrow, SqlDelight, KotlinX Serialization, etc.
- Starter project to create a simple RESTful web service in Kotlin - Starter RESTful service with websocket notifications using Kotlin, Ktor and Exposed with H2, HikariCP and FlyWay.
- RealWorld Kotlin Ktor Backend - Kotlin-Ktor codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.
- Kotlin Native Server - Kotlin Native Ktor server with K8s zero-downtime demo.
- Tenistas REST Ktor (Spanish) - Api REST de Tenistas con Ktor para Programación de Servicios y Procesos de 2º de DAM. Curso 2022/2023.
- NotyKT - NotyKT is the complete Kotlin-stack note taking application built to demonstrate a use of Kotlin programming language in server-side and Modern Android development tools. REST API built using Ktor.
-
Ktor + Koin + MongoDB template
- An example project how to run Ktor + Koin + MongoDB. Save your
dataclasses with ease and without blocking! - kotlin-backend-ktor - A demonstration of how we can use Kotlin as Backed with Ktor.
- HTMX Sample app - Ktor + PostgreSQL + HTMX + kotlin.html. All CRUD methods are implemented.
Ktor Projects
- Kryptokrona API - For caching and processing data from the blockchain to provide faster access for services.
- Kodein - Kodein is a very simple and yet very useful dependency retrieval container. it is very easy to use and configure.
- Ktor OpenAPI Generator - Ktor OpenAPI/Swagger 3 Generator.
- Kompendium - Intended to be a non-invasive OpenAPI spec generator for Ktor APIs. By operating entirely through Ktor's plugin architecture, it allows you to incrementally document your API without requiring you to rip out and replace the amazing code you have already written.
- ktor-health-check - Simple, opinionated ktor health and readiness checks made for Kubernetes.
- Cohort - Spring Actuator style replacement for Ktor. Provides health checks for orchestrators like Kubernetes and management of logging, databases, JVM settings, memory and threads in production.
- SuspendApp with Ktor - The module suspendapp-ktor provides a server constructor that lifts the Ktor ApplicationEngine in to a Resource, representing the Engine running an Application(i.e Netty) while supporting auto-reload.
-
kotlin-kafka
- Kafka bindings for Kotlin
suspend, and Kafka streaming operators for KotlinX Flow. Designed for usage in Ktor. - Hoplite - Kotlin library for loading configuration files into typesafe classes in a boilerplate-free way. Define your config using Kotlin data classes, and at startup Hoplite will read from one or more config files, mapping the values in those files into your config classes. Designed for usage in Ktor.
- Tribune - Multiplatform Kotlin library that builds on Arrow to provide a toolset for creating simple parsers from raw input types, to properly validated parsed types. Designed for usage in Ktor.
- Kweb - A streamlined Kotlin web framework built on Ktor that makes it easy to create sophisticated interactive websites.
- Kryptokrona Kotlin SDK - Kryptokrona SDK in Kotlin for building decentralized private communication and payment systems. Uses Ktor client library to fetch data from RPC.
- Extra Ktor Plugins - A library of extra plugins for multiplatform ktor server / client, including a plugin for Kafka, a flexible rate limiter plugin and a circuit breaker for ktor clients
- Starter Project ktor - This is a starter project for building server-side applications using Ktor, a framework for building asynchronous servers and clients in connected systems. This template integrates MongoDB for database operations, Koin for dependency injection, and Swagger for API documentation.
- Casino Engine - Production-grade open-source iGaming/casino engine built on Ktor. Game aggregator integrations (Pragmatic Play, OneGameHub, Pateplay), session orchestration, betting lifecycle (place/settle/rollback), and freespin mechanics. Exposes a gRPC API and publishes RabbitMQ events. Hexagonal architecture with DDD and CQRS. Apache 2.0.
Other Resources
Blogs
- Codersee - Codersee is a place, where you can learn programming- especially Kotlin and backend topics- through practical tutorials.
Socials
- Reddit: /r/ktor
- X - Unofficial Ktor community on X.
YouTube Channels, Videos and Playlists
- Building applications with Kotlin and Arrow.kt in style
- Graceful Resource Handling Using Structured Concurrency in Kotlin
- Ktor From the Ground Up - Creating a robust asynchronous server-side applications with Ktor as well as looking at deployment models, the features it provides out of the box, and its extensibility model.
- Building web applications with Ktor and Exposed - Learn how to bootstrap a project with Ktor, build interaction between server and client via WebSockets and add database support with the Exposed library.
Podcasts/Episodes
Episodes
- Ktor with Ryan Harter - Talks about how Ktor can be used for developing server side applications and its differences with some other existing ones.