# ktorio/ktor-samples

Sample projects for Ktor

Repository: https://github.com/ktorio/ktor-samples
Canonical: https://ross.abutalabs.com/products/ktor-samples
Language: Kotlin
License: Apache-2.0
License Family: permissive
Last push: 2026-08-16T00:02:23+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 35, longevity 100
- inputs: {"age_days": 3144, "days_push": 18, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1617, forks 363 (observed 2026-08-28T04:05:11.972983+00:00)

## What it is
An official JetBrains collection of ready-to-use sample projects for the Ktor web framework, written in Kotlin. It demonstrates server, client, deployment, and testing patterns through small runnable applications like chat, reverse proxy, and database-backed CRUD apps.

## Use cases
- learn how to build a Ktor server application
- example of websockets chat in Kotlin
- how to use Ktor with Postgres or MongoDB
- sample Ktor reverse proxy implementation
- how to write tests for a Ktor application
- Ktor client usage examples
- deploy a Ktor app with Docker

## When to choose
- you are learning Ktor and want runnable reference code
- you need a starting template for a specific Ktor feature like SSE, sessions, or OpenAPI
- you want official, maintained examples from JetBrains

## When to avoid
- you need a production-ready application rather than illustrative samples
- you are not using Kotlin or the JVM
- you need comprehensive documentation instead of code examples

## Facets
- artifact type: learning-resource
- maturity: active
- function: web-framework, http-server, http-client, websocket, templating, testing
- domain: web-development, backend, developer-tools, tutorials
- platform: jvm, cross-platform
- tags: ktor, kotlin, sample-projects, jetbrains, examples

## Member repositories
- ktorio/ktor-samples (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:11.972983+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:49:54.622891+00:00, confidence not recorded.
  - readme: https://github.com/ktorio/ktor-samples (fetched 2026-08-28T04:05:11.972983+00:00, sha d178c19ff073)
- Data as of 2026-08-30T08:39:29.467469+00:00.
