# ishkawa/APIKit

Type-safe networking abstraction layer that associates request type with response type.

Repository: https://github.com/ishkawa/APIKit
Canonical: https://ross.abutalabs.com/products/ishkawa-apikit
Language: Swift
License: MIT
License Family: permissive
Last push: 2024-06-30T04:14:07+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4214, "days_push": 794, "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 1993, forks 206 (observed 2026-08-28T04:06:03.268473+00:00)

## What it is
APIKit is a Swift library providing a type-safe networking abstraction layer that associates each request type with its response type. It lets developers define Request protocols and send them via Session, with responses inferred at compile time.

## Use cases
- make type-safe HTTP requests in Swift
- associate request types with response types in iOS apps
- build a networking layer for a REST API in Swift
- avoid manual JSON response casting in Swift networking
- abstract URLSession behind a protocol-oriented API
- share networking code across iOS, macOS, watchOS, and tvOS

## When to choose
- you are building an iOS, macOS, watchOS, or tvOS app in Swift and want compile-time-safe API calls
- you prefer defining request/response types declaratively instead of ad-hoc URLSession calls
- you want a lightweight networking layer without heavy dependencies

## When to avoid
- your project uses async/await-first modern networking stacks like URLSession's native async APIs or Alamofire with concurrency
- you need a cross-platform solution beyond Apple platforms
- the project appears to be in maintenance mode with limited ongoing development

## Facets
- artifact type: library
- maturity: maintenance
- function: http-client, middleware, serialization
- domain: web-development, developer-tools, apis
- platform: cross-platform
- tags: type-safe-networking, swift, networking-abstraction, request-response, cocoapods, carthage, spm, ios, macos

## Member repositories
- ishkawa/APIKit (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:03.268473+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:02:35.229492+00:00, confidence not recorded.
  - readme: https://github.com/ishkawa/APIKit (fetched 2026-08-28T04:06:03.268473+00:00, sha 585a5c9be0e2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
