[go: up one dir, main page]

Skip to content

πŸ™ OctoBase is the open-source database behind AFFiNE, local-first, yet collaborative. A light-weight, scalable, data engine written in Rust.

License

Notifications You must be signed in to change notification settings

fundon/OctoBase

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

OctoBase

Issues Closed Join Telegram Follow Twitter stars

OctoBase is an offline-available, scalable, self-contained collaborative database, which was originally designed for AFFiNE. AFFiNE is a local-first open source knowledge base that provides full functionality in any network environment.

Based on OctoBase, you can not only implement a rich text editor for offline writing, but also implement richer offline collaboration functions based on OctoBase's data abstraction, such as: multidimensional tables, drawing boards, etc.

As an offline collaborative data database, OctoBase has the following characteristics:

  • πŸ“š Multi-platform available offline collaboration, Schemaless, structured/unstructured/rich text data storage .

  • πŸ—ƒοΈ Binary storage that supports data deduplication and rich media editing.

  • πŸ” High-performance real-time full-text indexing with high-quality multilingual word segmentation support.

  • 🌐 Point-to-point / central server synchronization with rich multi-platform native support.

  • πŸ”’ Fine-grained permission control with advanced permission management.

By providing native offline collaboration, full-text indexing, and binary storage, OctoBase enables you to easily build secure, high-performance local-first collaborative applications using the same set of data abstractions on multiple platforms.

OctoBase can be used either as a stand-alone server database, or directly included in your application as an embedded database and remain fully functional.

Project status

The OctoBase project is currently under heavy development, most components are not yet production ready. Major changes may occur at any time before the version reaches 1.0.

Contributions

A very good place to ask questions and discuss development work is our Telegram Group.

We gladly accept contributions via GitHub pull requests, you can go to contributing to see more information.

Before you start contributing, please make sure you have read and accepted our Contributor License Agreement. To indicate your agreement, simply edit this file and submit a pull request.

Goals

OctoBase aims to make it easy for developers to build local-first applications on all common platforms. In order to achieve this goal, we will strive to do these things:

  • Make it easy to build on all supported platforms.
  • Implement basic data types that support collaboration.
  • Support peer-to-peer synchronization.
  • Self-contained library distribution.
  • Minimize external dependencies.

Building

# install rust toolchain
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# clone the repo
git clone https://github.com/toeverything/octobase/
# start sync server
cargo run --bin keck

Now you can access http://localhost:3000/api/docs/ through the browser.

This is a simple http interface binding, which allows you to modify the data in octobase with the http interface; you can also statically link octobase to your program, modify the data through native api, and synchronize with other clients.

Project Overview

β”œβ”€β”€ apps
β”‚   β”œβ”€β”€ android ##  Android scaffolding project
β”‚   β”œβ”€β”€ homepage ## OctoBase homepage & docs
β”‚   β”œβ”€β”€ cloud ## affine-cloud backend
β”‚   └── keck ## collaboration backend
β”‚   └── swift ## iOS scaffolding project
└── libs ##
    β”œβ”€β”€ jwst  ## OctoBase core library
    β”œβ”€β”€ jwst-binding ## Multilingual FFI bindings for OctoBase
    β”œβ”€β”€ jwst-logger ## logger plugins for OctoBase
    β”œβ”€β”€ jwst-rpc ## sync plugins for OctoBase
    β”œβ”€β”€ jwst-storage ## storage plugins for OctoBase

In the process of project development, there are many software development concepts that have influenced us. Thank you very much for these excellent software:

  • Fossil -- Source code management tool made with CRDTs which inspired our design on block data structure.
  • SQLite -- "Small. Fast. Reliable. Choose any three." We like this idea very much.

Hiring

Some amazing companies including OctoBase are looking for developers! Are you interested in helping build with OctoBase and/or its partners? Check out some of the latest jobs available.

License

Currently, this repository is under active development and most components are not yet production ready, so all code is under AGPL-3.0. We will switch to MPL 2.0 or a more looser license release after the corresponding components are ready for production.

About

πŸ™ OctoBase is the open-source database behind AFFiNE, local-first, yet collaborative. A light-weight, scalable, data engine written in Rust.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 66.1%
  • TypeScript 13.4%
  • Swift 7.2%
  • C 6.4%
  • Java 2.6%
  • Kotlin 1.7%
  • Other 2.6%