pointfreeco/swift-tagged
🏷 A wrapper type for safer, expressive code. observed · 2026-08-28
Health v2 · maintenance only
46/100
- Activity 52
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3061
- days_rel: n/a
- days_push: 292
- n_releases_24m: 0
Adoption not part of the score
1629 stars · 74 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Swift library providing a Tagged wrapper type that distinguishes otherwise interchangeable raw values (like Int or String) at compile time. It leverages generics and conditional conformance to prevent runtime bugs caused by mixing semantically different values such as user IDs and subscription IDs.
Use cases
- prevent mixing user IDs and subscription IDs in Swift
- wrap raw strings into domain-specific types like email addresses
- make invalid states unrepresentable at compile time
- add type safety to primitive-typed identifiers
- differentiate seconds from milliseconds at the type level
When to choose
- you are writing Swift and want compile-time safety for primitive-based domain values
- your codebase has bugs from passing the wrong Int or String to functions
- you want a lightweight, zero-dependency newtype pattern
When to avoid
- you are not working in Swift
- you need runtime-validated types (e.g. actual email format checking) rather than nominal distinction
- your team finds generic phantom-type wrappers too complex
Facets
library · maturity stable
type-system developer-tools programming-languages developer-tools cross-platform tagged-types type-safety newtype swift-package conditional-conformance algorithms swift ios macos
4 sources
- readme: https://github.com/pointfreeco/swift-tagged · fetched 2026-08-28 · 516f8d260516
- homepage: https://www.pointfree.co/episodes/ep12-tagged · fetched 2026-08-29 · c1b4de33992d
- site_page: https://www.pointfree.co/about · fetched 2026-08-29 · c3a02fbfb680
- site_page: https://www.pointfree.co/pricing · fetched 2026-08-29 · ce5cad867927
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pointfreeco/swift-tagged | main | 46 |
For agents
markdown · JSON · MCP: product_card(name="pointfreeco/swift-tagged")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem