# twitter/util

Wonderful reusable code from Twitter

Repository: https://github.com/twitter/util
Canonical: https://ross.abutalabs.com/products/twitter-util
Homepage: https://twitter.github.io/util
Language: Scala
License: Apache-2.0
License Family: permissive
Topics: finagle, scala, utility
Last push: 2025-12-08T14:10:27+00:00

## Health v2 (maintenance only)
Score: 48/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 56, release rhythm 8, longevity 100
- inputs: {"age_days": 5640, "days_push": 268, "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 2719, forks 571 (observed 2026-08-28T04:07:12.229517+00:00)

## What it is
Twitter Util is a collection of small, idiomatic, general-purpose JVM libraries written in Scala, including concurrency primitives (a non-actor Future implementation), caching, I/O, stats, and time/duration conversions. It is used in production at Twitter and underpins Finagle.

## Use cases
- use composable futures in Scala without actors
- convert time durations and storage units idiomatically in Scala
- add caching and stats utilities to a JVM service
- build reliable async JVM applications with Twitter's production-tested primitives
- support Finagle-based RPC services with core utilities

## When to choose
- you are building Scala/JVM services, especially with Finagle
- you want battle-tested, production-proven concurrency and utility libraries
- you need fine-grained control over futures, timers, and I/O on the JVM

## When to avoid
- you want a lightweight standard-library-only approach without extra dependencies
- your project uses newer Scala ecosystem stacks like ZIO or Cats Effect with no Finagle ties
- you need cross-language (non-JVM) utilities

## Facets
- artifact type: library
- maturity: stable
- function: concurrency, caching, developer-tools, serialization, logging
- domain: developer-tools, backend, microservices
- platform: jvm
- tags: scala, futures, finagle, jvm-utilities, time-units

## Member repositories
- twitter/util (main) score 48

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:12.229517+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-30T02:15:18.255973+00:00, confidence not recorded.
  - readme: https://github.com/twitter/util (fetched 2026-08-28T04:07:12.229517+00:00, sha 8bee872c5e1f)
  - homepage: https://twitter.github.io/util (fetched 2026-08-29T09:58:11.056343+00:00, sha 7951e89a5f00)
- Data as of 2026-08-30T08:39:29.467469+00:00.
