# square/Valet

Valet lets you securely store data in the iOS, tvOS, watchOS, or macOS Keychain without knowing a thing about how the Keychain works. It’s easy. We promise.

Repository: https://github.com/square/Valet
Canonical: https://ross.abutalabs.com/products/valet
Language: Swift
License: Apache-2.0
License Family: permissive
Topics: keychain, touch-id, face-id, security, ios, tvos, watchos, macos, crypto
Last push: 2026-07-12T18:50:59+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 92, release rhythm 39, longevity 100
- inputs: {"age_days": 4111, "days_push": 52, "days_rel": 194, "gap_med": 240.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4175, forks 227 (observed 2026-08-28T04:08:38.176689+00:00)

## What it is
Valet is a Swift library that simplifies securely storing data in the iOS, tvOS, watchOS, and macOS Keychain. It wraps the Keychain's complex APIs behind an easy-to-use interface with support for biometric access controls.

## Use cases
- store sensitive data securely on iOS without learning Keychain APIs
- persist secrets in the macOS Keychain
- require Touch ID or Face ID to access stored data
- share keychain data between apps on Apple platforms
- store user tokens and passwords safely in a tvOS app

## When to choose
- you need secure local storage on iOS, macOS, tvOS, or watchOS
- you want Keychain access with biometric protection without dealing with raw Keychain APIs
- you want a battle-tested library maintained by Square

## When to avoid
- you need secure storage on non-Apple platforms
- you need a database or general-purpose storage rather than small secure key-value data

## Facets
- artifact type: library
- maturity: stable
- function: security, cryptography, sdk
- domain: security, mobile-development, developer-tools
- platform: cross-platform
- tags: keychain, touch-id, face-id, swift, apple-platforms, secure-storage, ios, macos

## Member repositories
- square/Valet (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:38.176689+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-29T18:22:42.621487+00:00, confidence not recorded.
  - readme: https://github.com/square/Valet (fetched 2026-08-28T04:08:38.176689+00:00, sha 4d954da06a1d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
