# sorbet/sorbet

A fast, powerful type checker designed for Ruby

Repository: https://github.com/sorbet/sorbet
Canonical: https://ross.abutalabs.com/products/sorbet
Homepage: https://sorbet.org
Language: C++
License: Apache-2.0
License Family: permissive
Topics: ruby, types, sorbet
Last push: 2026-08-26T18:58:57+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 2990, "days_push": 7, "days_rel": 7, "gap_med": 0, "n_releases_24m": 1710}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3797, forks 625 (observed 2026-08-28T04:08:19.999598+00:00)

## What it is
Sorbet is a fast, gradual static type checker for Ruby, built in C++ at Stripe. It ships as a CLI (srb tc) plus a runtime gem for type annotations, and provides LSP-based IDE features like autocomplete and jump to definition.

## Use cases
- type check a ruby codebase
- add gradual typing to an existing ruby project
- catch type errors in ruby before runtime
- get IDE autocomplete and go to definition for ruby
- generate type definition files for ruby gems
- enforce method signatures in ruby

## When to choose
- you maintain a large or growing Ruby codebase and want incremental, file-by-file typing
- you want fast, multithreaded type checking in CI or an editor
- you need runtime type contracts alongside static checks

## When to avoid
- you work in a language other than Ruby
- you need a fully sound static type system with no escape hatches
- your project cannot add gem dependencies or RBI tooling

## Facets
- artifact type: cli-tool
- maturity: active
- function: type-system, linter, developer-tools, cli
- domain: programming-languages, developer-tools, testing
- platform: cli
- tags: ruby, static-type-checking, gradual-typing, lsp, ide-integration, rbi-files, macos, linux

## Member repositories
- sorbet/sorbet (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:19.999598+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:26:55.844450+00:00, confidence not recorded.
  - readme: https://github.com/sorbet/sorbet (fetched 2026-08-28T04:08:19.999598+00:00, sha 1c847a2449fe)
  - homepage: https://sorbet.org (fetched 2026-08-29T09:21:53.864265+00:00, sha c1ba411b912d)
  - site_page: https://sorbet.org/docs/adopting (fetched 2026-08-29T09:21:53.873357+00:00, sha 39df565915a7)
  - site_page: https://sorbet.org/docs/overview (fetched 2026-08-29T09:21:53.875146+00:00, sha 9021be083035)
  - site_page: https://sorbet.org/docs/gradual (fetched 2026-08-29T09:21:53.876676+00:00, sha b7d9444c3dea)
  - site_page: https://sorbet.org/docs/rbi (fetched 2026-08-29T09:21:53.878602+00:00, sha 489ba8ee3762)
  - site_page: https://sorbet.org/docs/talks/strange-loop-2018 (fetched 2026-08-29T09:21:53.880638+00:00, sha f9828b492248)
  - site_page: https://sorbet.org/docs/static (fetched 2026-08-29T09:21:53.882070+00:00, sha 0d50f07a6d3d)
  - site_page: https://sorbet.org/docs/flow-sensitive (fetched 2026-08-29T09:21:53.883810+00:00, sha 8649ce8262ec)
- Data as of 2026-08-30T08:39:29.467469+00:00.
