Ross ROSS = Recommend OSS · open-source software intelligence for agents

pointfreeco/swift-tagged

🏷 A wrapper type for safer, expressive code. observed · 2026-08-28

github.com/pointfreeco/swift-tagged · homepage · Swift · MIT (permissive) 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

Full methodology

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

Member repositories

RepositoryRoleHealth v2
pointfreeco/swift-taggedmain46

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