# kylef/PathKit

Effortless path operations in Swift

Repository: https://github.com/kylef/PathKit
Canonical: https://ross.abutalabs.com/products/pathkit
Language: Swift
License: BSD-2-Clause
License Family: permissive
Last push: 2024-05-16T18:30:21+00:00

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

## Adoption (not part of the score)
Stars 1548, forks 177 (observed 2026-08-28T04:05:01.820249+00:00)

## What it is
PathKit is a Swift library providing an ergonomic Path type for common filesystem path operations like joining, normalizing, globbing, and reading/writing files. It wraps Foundation's FileManager with a fluent, expressive API.

## Use cases
- manipulate file paths in swift
- join and normalize paths
- glob for files matching a pattern
- read and write files with a path object
- check if a path exists or is a directory
- move or delete files and directories

## When to choose
- you are writing Swift tooling that needs clean path handling
- you want a lightweight alternative to raw Foundation path strings
- you need glob support in a Swift CLI or generator

## When to avoid
- you need async or high-performance filesystem APIs
- you are not using Swift
- you need advanced features like file watching or permissions management

## Facets
- artifact type: library
- maturity: maintenance
- function: file-system
- domain: developer-tools, cross-platform
- platform: -
- tags: path-manipulation, filesystem-paths, swift-package, swift, macos, linux

## Member repositories
- kylef/PathKit (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:01.820249+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:30:25.888487+00:00, confidence not recorded.
  - readme: https://github.com/kylef/PathKit (fetched 2026-08-28T04:05:01.820249+00:00, sha 00a762748258)
- Data as of 2026-08-30T08:39:29.467469+00:00.
