Skip to content

A functional reactive framework for managing state and side effects based on RxJava.

License

Notifications You must be signed in to change notification settings

instacart/formula

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fff2136 · Mar 19, 2025
Apr 16, 2024
Aug 15, 2024
Sep 4, 2024
Jan 17, 2025
Sep 25, 2024
Mar 19, 2025
Sep 10, 2024
Sep 10, 2024
Mar 18, 2024
Sep 13, 2024
Feb 21, 2025
Sep 20, 2024
Sep 25, 2024
Sep 25, 2024
Jun 23, 2022
Sep 25, 2024
Oct 3, 2019
May 5, 2021
Feb 14, 2024
Apr 9, 2019
May 19, 2022
Jun 29, 2022
Nov 18, 2020
Jan 4, 2024
Feb 26, 2019
Jun 29, 2022
Dec 12, 2023
Jun 3, 2021
Sep 18, 2024
Jan 26, 2024
Dec 9, 2022
Sep 18, 2024
Oct 3, 2019

Repository files navigation

Formula

A Kotlin framework for managing state and side effects. It is inspired by MVU(model, view, update) architecture and best of functional, declarative and reactive patterns. It enables building deterministic, composable, testable applications.

MVU graph

Check documentation

Check samples

Android Module

The Android module provides declarative API to connect reactive state management to Android Fragments. This module has been designed for gradual adoption. You can use as much or as little of it as you like.

To learn more, see our Integration Guide.

Download

Add the library to your list of dependencies:

dependencies {
    implementation 'com.instacart.formula:formula-rxjava3:0.7.1'
    implementation 'com.instacart.formula:formula-android:0.7.1'
}

License

The Clear BSD License

Copyright (c) 2022 Maplebear Inc. dba Instacart
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted 
(subject to the limitations in the disclaimer below) provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of Maplebear Inc. dba Instacart nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY 
THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 
COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
OF THE POSSIBILITY OF SUCH DAMAGE.