Ruby Types

Open-source Ruby projects categorized as Types

Top 6 Ruby Type Projects

  1. sorbet

    A fast, powerful type checker designed for Ruby

    Project mention: Tiny JITs for a Faster FFI | news.ycombinator.com | 2025-02-12

    If you're looking for static typing a dynamic language is going to be a poor fit. I find a place for both. I love Rust, but trying to write a tool that consumed a GraphQL API with was a brutal exercise in frustation. I'd say that goes for typing of JSON or YAML or whatever structured format in general. It's refreshing being able to just work with data in the form I already know it's in. Ruby can be an incredibly productive language to work with.

    If you're looking for static analysis in general, please note that there are mature tools available. Rubocop¹ is probably the most popular and allows for linting and code formatting. Brakeman² is a vulnerability scanner for Rails. Sorbet³ is a static type checker.

    The tooling is there if you want to try things out. But, if you want a statically typed language then that's a debate that's been going since the dawn of programming language design. I doubt it's going to get resolved in this thread.

    ¹ - https://github.com/rubocop/rubocop

    ² - https://brakemanscanner.org/

    ³ - https://sorbet.org/

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. dry-types

    Flexible type system for Ruby with coercions and constraints

  4. dry-struct

    Typed struct and value objects

  5. sorbet-typed

    A central repository for sharing type definitions for Ruby gems

  6. rspec-sorbet

    A small gem consisting of helpers for using Sorbet & RSpec together.

  7. dry-types-tuple

    The Tuple type implementation for Dry::Types

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Ruby Types discussion

Log in or Post with

Ruby Types related posts

  • A Neuromorphic Hardware-Compatible Transformer-Based Spiking Language Model

    3 projects | news.ycombinator.com | 6 Oct 2024
  • Ruby’s hidden gems: Sorbet

    3 projects | dev.to | 2 Oct 2024
  • Let's Read – Eloquent Ruby – Ch 8

    1 project | dev.to | 4 Sep 2024
  • The Design Principles of the Elixir Type System

    1 project | news.ycombinator.com | 10 Jan 2024
  • An Introduction to Metaprogramming in Ruby

    2 projects | news.ycombinator.com | 27 Jul 2023
  • A few words on Ruby's type annotations state

    4 projects | news.ycombinator.com | 5 May 2023
  • Is Ruby on Rails still in demand?I see very few companies using it.Is it used in big tech companies like Google,Amazon,Facebook,Microsoft?

    2 projects | /r/rubyonrails | 23 Apr 2023
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 26 Mar 2025
    Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →

Index

What are some of the best open-source Type projects in Ruby? This list will help you:

# Project Stars
1 sorbet 3,669
2 dry-types 869
3 dry-struct 419
4 sorbet-typed 384
5 rspec-sorbet 41
6 dry-types-tuple 7

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai