# lysine-dev/okio

A modern I/O library for Android, Java, and Kotlin Multiplatform.

Repository: https://github.com/lysine-dev/okio
Canonical: https://ross.abutalabs.com/products/okio
Homepage: https://lysine.dev/okio/
Language: Kotlin
License: Apache-2.0
License Family: permissive
Topics: kotlin-multiplatform, kotlin
Last push: 2026-08-21T17:17:13+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 35, longevity 100
- inputs: {"age_days": 4553, "days_push": 12, "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 9036, forks 1234 (observed 2026-08-28T04:10:28.045370+00:00)

## What it is
Okio is a modern I/O library for Kotlin Multiplatform, Java, and Android that complements java.io and java.nio with ByteString, Buffer, Source, and Sink abstractions. It offers efficient, timeout-aware, copy-free byte handling and cross-platform filesystem access.

## Use cases
- read and write files in Kotlin Multiplatform code
- efficiently buffer and move byte data between threads without copying
- encode and decode binary data as hex, base64, or UTF-8
- add timeouts to stream reads and writes
- access the filesystem uniformly across Android, JVM, Native, and WASI
- implement custom stream transformations like compression or encryption

## When to choose
- you need a modern, multiplatform I/O layer beyond java.io/java.nio
- you are building on OkHttp or Android and want battle-tested byte handling
- you want ergonomic immutable byte strings and resizable buffers
- you need cross-platform filesystem APIs including Kotlin/Native and WASI

## When to avoid
- you work outside the JVM/Kotlin ecosystem
- you only need simple one-off file reads already covered by your platform's standard library
- you need async non-blocking I/O rather than synchronous streams

## Facets
- artifact type: library
- maturity: stable
- function: file-system, serialization, compression, developer-tools
- domain: cross-platform, mobile-development, developer-tools, files
- platform: jvm, cross-platform, wasm, windows
- tags: kotlin-multiplatform, io, bytestring, buffer, streams, okhttp, android, linux, macos, ios

## Member repositories
- lysine-dev/okio (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:28.045370+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-29T17:24:05.056433+00:00, confidence not recorded.
  - readme: https://github.com/lysine-dev/okio (fetched 2026-08-28T04:10:28.045370+00:00, sha 67ea1943b371)
  - homepage: https://lysine.dev/okio/ (fetched 2026-08-29T08:24:05.986259+00:00, sha 7ac7f14bcb08)
  - site_page: https://lysine.dev/okio/changelog (fetched 2026-08-29T08:24:05.989011+00:00, sha 92a827ab6ee9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
