# Sorbet

> A fast, powerful type checker designed for Ruby

Source: https://talira.ai/catalog/sorbet-7qt3f670
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [developer tools / type checking](https://talira.ai/categories/developer-tools/type-checking), [languages / ruby](https://talira.ai/categories/languages/ruby)
- Platforms: macos, linux
- Licence: Apache-2.0
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Backed by: [Stripe](https://talira.ai/orgs/stripe.md)
- Funding: Series I, 2023[^1]

Sorbet is a static type checker for Ruby that you adopt gradually: each file opts in with a strictness sigil, and method signatures (`sig`) are written in plain Ruby, so existing tools keep working. It is multithreaded and fast enough to check large codebases in seconds, uses flow-sensitive typing so it needs fewer annotations, and reads type definitions for gems and generated code from RBI files. sorbet-runtime checks the same signatures while the program runs. Its language server gives editors autocomplete, go to definition and inline documentation, and sorbet.run is an online playground. [Stripe](https://talira.ai/catalog/stripe-7hv028ya.md) builds it.

## Links

- Website: https://sorbet.org
- GitHub: https://github.com/sorbet/sorbet
- Docs: https://sorbet.org/docs/overview

## Problems it solves

- catch nil errors and typos in my Ruby code before they reach production
- add types to a large Rails codebase one file at a time
- refactoring our Ruby monolith is scary because nothing tells me what I broke
- I want TypeScript-style checking for Ruby
- get reliable go to definition and autocomplete for Ruby in my editor
- document what each Ruby method takes and returns in a way that's checked
- fail CI when someone calls a method with the wrong argument types
- check method argument types at runtime in Ruby too, not only statically
- a type checker fast enough to run on every save in a million-line Ruby app
- let my AI coding agent find type mistakes in the Ruby it writes
- type-check Ruby code that uses gems and metaprogramming

## Features

- gradual typing with per-file strictness levels
- method signatures in Ruby syntax
- flow-sensitive typing
- multithreaded checking
- RBI type definition files
- gem awareness
- language server (autocomplete, go to definition, hover docs)
- runtime type checks via sorbet-runtime
- online playground (sorbet.run)

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.77 out of 1.
Signals: maintenance 1.00, adoption 0.72, momentum 0.48, community 1.00, backing 0.75, extensibility 0.20.

- last commit 8 days ago
- 253 commits in the last 90 days
- latest release 0.6.13681.20261113091107-4b0302e48 10 days ago
- 3.8k GitHub stars
- 478 contributors
- backed by Stripe
- funding: Series I, 2023
- used by Stripe, Shopify, Coinbase, GitHub

## Forks

- [Sorbet for Rails](https://talira.ai/catalog/sorbet-for-rails-gqfgx58c.md): A Sorbet build for Rails apps that type-checks specs, factories, and ERB views. 7 changes, 1 merged upstream.

## Alternatives

- [Steep](https://talira.ai/catalog/steep-b16cnbv6.md): Gradual typing for Ruby
- [TypeScript](https://talira.ai/catalog/typescript-w0asrgz8.md): JavaScript with static types, compiled to plain JavaScript
- [Flow](https://talira.ai/catalog/flow-ss3d2chg.md): A static type checker and typed dialect of JavaScript

## Sources

[^1]: https://stripe.com/newsroom/news/stripe-series-i-employee-liquidity (checked 20 Nov 2026)
