# pathikrit/better-files

Simple, safe and intuitive Scala I/O

Repository: https://github.com/pathikrit/better-files
Canonical: https://ross.abutalabs.com/products/better-files
Homepage: https://pathikrit.github.io/better-files/
Language: Scala
License: MIT
License Family: permissive
Topics: scala, java-interoperability, scanner
Last push: 2024-08-13T00:56:52+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4008, "days_push": 751, "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 1472, forks 135 (observed 2026-08-28T04:04:49.504533+00:00)

## What it is
A dependency-free, pragmatic thin Scala wrapper around Java NIO for simple, safe, and intuitive file I/O. It provides fluent APIs for reading, writing, streaming, gzip compression, and file watching with correct resource management.

## Use cases
- read and write files in scala
- process large files without loading into memory
- list and filter files in a directory
- gzip files in scala
- watch directories for file changes
- split large csv files into smaller parts

## When to choose
- you write Scala and want ergonomic file I/O without boilerplate
- you need safe resource management for streams and writers
- you want a dependency-free alternative to Java NIO's verbose API

## When to avoid
- you are not on the JVM or not using Scala
- you need async or non-blocking I/O primitives
- you only need basic java.nio.file usage and don't mind verbosity

## Facets
- artifact type: library
- maturity: maintenance
- function: file-system, serialization, compression
- domain: developer-tools, files, cross-platform
- platform: jvm
- tags: scala, java-nio, file-io, file-watcher, scanner

## Member repositories
- pathikrit/better-files (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:49.504533+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-30T04:34:42.806339+00:00, confidence not recorded.
  - readme: https://github.com/pathikrit/better-files (fetched 2026-08-28T04:04:49.504533+00:00, sha 57bff6c6a984)
  - homepage: https://pathikrit.github.io/better-files/ (fetched 2026-08-29T11:42:23.477850+00:00, sha 29882ad5a042)
- Data as of 2026-08-30T08:39:29.467469+00:00.
