dry-struct VS sorbet-typed

Compare dry-struct vs sorbet-typed and see what are their differences.

sorbet-typed

A central repository for sharing type definitions for Ruby gems (by sorbet)
Our great sponsors
  • PopRuby - Clothing and Accessories for Ruby Developers
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
dry-struct sorbet-typed
0 2
403 379
1.5% 0.8%
5.3 4.0
3 months ago 29 days ago
Ruby Ruby
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

dry-struct

Posts with mentions or reviews of dry-struct. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning dry-struct yet.
Tracking mentions began in Dec 2020.

sorbet-typed

Posts with mentions or reviews of sorbet-typed. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-09.
  • Why We’re Sticking with Ruby on Rails at GitLab
    5 projects | /r/rails | 9 Jun 2022
    The tooling around "installing" types for third party dependencies (the equivalent of doing "npm install @types/something" is non existent. I had to manually copy over files from https://github.com/sorbet/sorbet-typed, which is so far behind pythons and typescript, where you can just "pip install"/"npm install" the types. Not only that, most third party dependencies don't provide types, so the "coverage" is super incomplete. I had to try and create some third party types myself, bit even that was a challenge because it's so hard to be sure of the entirety of what's going on in a ruby codebase because the language is dynamic.
  • Open-Sourcing the Sorbet (Ruby) VS Code Extension
    8 projects | news.ycombinator.com | 6 Jan 2022
    stdlib rbis are shipped with Sorbet. A limited selection of gem RBIs are available at https://github.com/sorbet/sorbet-typed.

What are some alternatives?

When comparing dry-struct and sorbet-typed you can also consider the following projects:

ActiveAttr - What ActiveModel left out

ContractedValue - Library for creating contracted immutable(by default) value objects

dry-validation - Validation library with type-safe schemas and rules

hash_to_struct - It enables recursive conversion of a ruby Hash to a Struct-like object and back.

dry-types - Flexible type system for Ruby with coercions and constraints

ALX - ALX is a command line tool for Linux, macOS and Windows to export and import the game data of Skies of Arcadia, Skies of Arcadia Legends, Eternal Arcadia (エターナルアルカディア), and Eternal Arcadia Legends (エターナルアルカディアレジェンド).

tapioca - The swiss army knife of RBI generation

rbs_parser - Ruby RBS parsing and translation to Sorbet RBI

typed_struct - Ruby structs but with type-checked attributes ⚡️🔐

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

portrayal - A minimal builder for struct-like classes in Ruby