Skip to content
@Clorabase

Clorabase

Clorabase is a free backend (BaaS) alternative for android apps. Use Databases,Storage,Push messaging, In-App messaging and lot more engage features for free wi

Clorabase

🚀 Turn Your GitHub Repo Into a NoSQL Database

A free, serverless Backend-as-a-Service for Android & Java applications

Version Stars Issues Forks

Author Open Source Made In


💡 About Clorabase

Clorabase is a lightweight, serverless Backend-as-a-Service (BaaS) designed specifically for Android and Java applications. It leverages GitHub as both a storage and database provider, enabling developers to build apps without managing complex backend infrastructure.

Perfect for small apps, hobby projects, and non-commercial use cases where cost efficiency and simplicity matter most.


✨ Key Features

🗄️ Clorastore Database

A NoSQL-like database storing data as encrypted JSON files in a GitHub repository.

  • Nested collections support
  • Document-based CRUD operations
  • Basic querying capabilities

📦 Integrated Storage

Two modes of file management:

  • Standard uploads (< 50 MB) directly to the repository
  • Large file uploads via GitHub Release assets

💬 In-App Messaging (Android)

Remote messaging service for showing custom dialogs:

  • Coupon notifications
  • Promotional messages
  • Simple custom dialogs

🔄 In-App Updates (Android)

Version management utility for apps outside the Play Store:

  • Flexible or immediate update prompts
  • Controlled via version.json

🔐 Security

  • All records encrypted with AES before pushing to GitHub
  • Your data stays in your GitHub repository

💰 Zero Cost

  • Fully free and open-source
  • Powered by GitHub's infrastructure
  • No subscription or hidden fees

📊 Tech Stack

Language Usage
Kotlin 44.3%
Java 37.9%
HTML 17.8%

🚀 Quick Start

Installation

Add JitPack repository to your build.gradle:

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}

Add dependency in module build.gradle:

For Android:

implementation 'com.github.Clorabase.Clorabase:Clorabase4A:0.6'

For Java:

implementation 'com.github.Clorabase.Clorabase:Clorabase4j:0.6'

Initialize Clorabase

try {
    Clorabase clorabase = Clorabase.getInstance("username", "token", "project");
} catch (Exception e) {
    e.printStackTrace();
}

Basic Usage

Database Operations:

ClorastoreCollection db = clorabase.getDatabase();
Map<String, Object> data = new HashMap<>();
data.put("name", "Rahil");
data.put("role", "Admin");

db.collection("users").document("user1")
  .setData(data)
  .addOnSuccessListener(v -> Log.d("DB", "Data saved!"));

Storage Operations:

ClorabaseStorage storage = clorabase.getStorage();
ClorabaseStorage imagesDir = storage.directory("images");

imagesDir.uploadFile(inputStream, "avatar.png", new ProgressListener() {
    @Override
    public void onProgress(long bytesRead, long totalBytes) {
        // Track progress
    }
    @Override
    public void onComplete() {
        Log.d("Storage", "Upload complete!");
    }
});

📚 For detailed documentation, visit: Clorabase Wiki


🔑 Generate GitHub Token

Clorabase requires a GitHub Personal Access Token (PAT):

  1. Go to SettingsDeveloper settingsPersonal access tokensTokens (classic)
  2. Click Generate new token
  3. Select the repo scope (full control of private repositories)
  4. Copy and store the token securely

⚠️ Important: Never commit your token to public repositories. GitHub will automatically revoke exposed tokens.


📈 Clorabase vs Firebase

Feature Clorabase Firebase
Cost 💰 100% Free 💵 Tiered / Pay-as-you-go
Use Case Small apps, hobby projects Enterprise, scalable apps
Data Ownership Your GitHub repo Google Servers
Setup Very Easy Moderate to Complex
Database NoSQL NoSQL
In-App Messaging ✅ Supported ✅ Supported
In-App Updates ✅ Supported ❌ Not Available
Authentication ❌ Not Available ✅ Built-in
Scalability Small to Medium Enterprise Scale

✅ Choose Clorabase When:

  • Your priority is staying within budget (completely free)
  • Building personal or hobby projects
  • App is Android/Java only
  • You need a simple data model
  • You prefer a DIY approach

🤝 Contributing

We welcome contributions! Whether it's bug reports, feature requests, or code improvements:


📞 Support & Contact

Creator: Rahil Khan (@ErrorxCode)

For personal assistance:


⭐ Show Your Support

If Clorabase helped you build something awesome, please:

  • Star this repository
  • 👀 Watch for updates
  • 🔄 Share with your friends

Your support motivates us to keep improving Clorabase!


Made with ❤️ by the Clorabase community

Readme Quotes

Pinned Loading

  1. CloremDB CloremDB Public

    Clorem is a Fast, easy-2-use and robust No-SQL database for java applications in which data is stored directly as objects. This is the world's easiest database ever made in java and is similer to t…

    Java 5 3

  2. ClorastoreDB ClorastoreDB Public

    Clorastore is the world's 2nd easiest document-oriented NoSQL database followed by the CloremDB for android. This is similar to Cloud firestore and MongoDB and is written in java

    Java 3

  3. Clorabase Clorabase Public

    Clorabase is a free & open source backend (BaaS) alternative for android & java apps. Turn your github repo into a NoSQL database and cloud storage for your app

    Kotlin 7 1

  4. CloroPush CloroPush Public

    CloroPush is free & open-source in-app messaging protocol that works both realtime and offtime.

    Java 1

  5. Clorabase-APIs Clorabase-APIs Public

    A Collection of clorabase APIs. With clorabase apis, you can build your app to the next level by integrating many useful services

    Java

  6. ClorographDB ClorographDB Public

    Clorograph is an embedded NoSQL graph database by Clorabase for java apps. It comes with flexible data models, like graphs and tress. Build giant network using this database with it's easy syntax

    Java 1

Repositories

Showing 8 of 8 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…