{"id":21824381,"url":"https://github.com/shopify/rbi","last_synced_at":"2025-05-16T19:08:33.821Z","repository":{"id":40992488,"uuid":"327788587","full_name":"Shopify/rbi","owner":"Shopify","description":"RBI generation framework","archived":false,"fork":false,"pushed_at":"2025-05-13T13:27:12.000Z","size":3273,"stargazers_count":32,"open_issues_count":5,"forks_count":10,"subscribers_count":272,"default_branch":"main","last_synced_at":"2025-05-15T19:49:51.465Z","etag":null,"topics":["rbi","ruby","sorbet","tapioca","type-checking"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shopify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-01-08T03:27:55.000Z","updated_at":"2025-05-13T13:27:14.000Z","dependencies_parsed_at":"2023-11-21T23:27:38.634Z","dependency_job_id":"3567f565-8116-4d18-8e83-efa162fd4c1b","html_url":"https://github.com/Shopify/rbi","commit_stats":{"total_commits":145,"total_committers":14,"mean_commits":"10.357142857142858","dds":0.1586206896551724,"last_synced_commit":"671efc85ba65599d4edc11419dc21553903f7d12"},"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Frbi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Frbi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Frbi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Frbi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shopify","download_url":"https://codeload.github.com/Shopify/rbi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254592393,"owners_count":22097013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rbi","ruby","sorbet","tapioca","type-checking"],"created_at":"2024-11-27T17:57:45.461Z","updated_at":"2025-05-16T19:08:33.797Z","avatar_url":"https://github.com/Shopify.png","language":"Ruby","readme":"# RBI generation framework\n\n`RBI` provides a Ruby API to compose Ruby interface files consumed by Sorbet.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rbi'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install rbi\n\n## Usage\n\n```rb\nrequire \"rbi\"\n\nrbi = RBI::File.new(strictness: \"true\") do |file|\n  file \u003c\u003c RBI::Module.new(\"Foo\") do |mod|\n    mod \u003c\u003c RBI::Method.new(\"foo\")\n  end\nend\n\nputs rbi.string\n```\n\nwill produce:\n\n```rb\n# typed: true\n\nmodule Foo\n  def foo; end\nend\n```\n\n## Features\n\n* RBI generation API\n* RBI parsing with Whitequark\n* RBI formatting\n* RBI validation\n* RBI merging\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\nThis repo uses itself (`rbi`) to retrieve and generate gem RBIs. You can run `dev rbi` to update local gem RBIs with RBIs from the central repo.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/Shopify/rbi. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/Shopify/rbi/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Rbi project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/rbi/blob/master/CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshopify%2Frbi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshopify%2Frbi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshopify%2Frbi/lists"}