RIBs logo


Build cross-platform apps that have similar architecture, enabling iOS and Android teams to cross-review business logic code (by Uber)
+ 1

What is RIBs?

RIBs is the cross-platform architecture framework behind many mobile apps at Uber. The name RIBs is short for Router, Interactor and Builder, which are core components of this architecture. This framework is designed for mobile apps with a large number of engineers and nested states.
RIBs is a tool in the Cross-Platform Mobile Development category of a tech stack.
RIBs is an open source tool with 5.3K GitHub stars and 582 GitHub forks. Here鈥檚 a link to RIBs's open source repository on GitHub

Who uses RIBs?


22 developers on StackShare have stated that they use RIBs.

RIBs Integrations

IntelliJ IDEA, Android SDK, Android Studio, Xcode, and Cocoa Touch (iOS) are some of the popular tools that integrate with RIBs. Here's a list of all 5 tools that integrate with RIBs.

Why developers like RIBs?

Here鈥檚 a list of reasons why companies and developers use RIBs
Top Reasons
Be the first to leave a pro
RIBs Reviews

Here are some stack decisions, common use cases and reviews by companies and developers who chose RIBs in their tech stack.

Conor Myhrvold
Conor Myhrvold
Tech Brand Mgr, Office of CTO at Uber | 11 upvotes 581K views
atUber TechnologiesUber Technologies

Excerpts from how we developed (and subsequently open sourced) Uber's cross-platform mobile architecture framework, RIBs , going from Objective-C to Swift in the process for iOS: https://github.com/uber/RIBs

Uber鈥檚 new application architecture (RIBs) extensively uses protocols to keep its various components decoupled and testable. We used this architecture for the first time in our new rider application and moved our primary language from Objective-C to Swift. Since Swift is a very static language, unit testing became problematic. Dynamic languages have good frameworks to build test mocks, stubs, or stand-ins by dynamically creating or modifying existing concrete classes.

Needless to say, we were not very excited about the additional complexity of manually writing and maintaining mock implementations for each of our thousands of protocols.

The information required to generate mock classes already exists in the Swift protocol. For Uber鈥檚 use case, we set out to create tooling that would let engineers automatically generate test mocks for any protocol they wanted by simply annotating them.

The iOS codebase for our rider application alone incorporates around 1,500 of these generated mocks. Without our code generation tool, all of these would have to be written and maintained by hand, which would have made testing much more time-intensive. Auto-generated mocks have contributed a lot to the unit test coverage that we have today.

We built these code generation tools ourselves for a number of reasons, including that there weren鈥檛 many open source tools available at the time we started our effort. Today, there are some great open source tools to generate resource accessors, like SwiftGen. And Sourcery can help you with generic code generation needs:

https://eng.uber.com/code-generation/ https://eng.uber.com/driver-app-ribs-architecture/

(GitHub : https://github.com/uber/RIBs )

See more

RIBs Alternatives & Comparisons

What are some alternatives to RIBs?
React Native
React Native enables you to build world-class application experiences on native platforms using a consistent developer experience based on JavaScript and React. The focus of React Native is on developer efficiency across all the platforms you care about - learn once, write anywhere. Facebook uses React Native in multiple production apps and will continue investing in React Native.
Free and open source, Ionic offers a library of mobile and desktop-optimized HTML, CSS and JS components for building highly interactive apps. Use with Angular, React, Vue, or plain JavaScript.
Flutter is a mobile app SDK to help developers and designers build modern mobile apps for iOS and Android.
Xamarin鈥檚 Mono-based products enable .NET developers to use their existing code, libraries and tools (including Visual Studio*), as well as skills in .NET and the C# programming language, to create mobile applications for the industry鈥檚 most widely-used mobile devices, including Android-based smartphones and tablets, iPhone, iPad and iPod Touch.
Apache Cordova
Apache Cordova is a set of device APIs that allow a mobile app developer to access native device function such as the camera or accelerometer from JavaScript. Combined with a UI framework such as jQuery Mobile or Dojo Mobile or Sencha Touch, this allows a smartphone app to be developed with just HTML, CSS, and JavaScript.
See all alternatives

RIBs's Followers
51 developers follow RIBs to keep up with related blogs and decisions.
Lam Le
Nelson Reis
Robert Adams
Yogesh Manjhi
Rekar Botany
Jyoti  Duwal
Himansu Sekhar
Phong DO