Skip to content

A library for building p2p, decentralized, and collaborative software.

License

Notifications You must be signed in to change notification settings

karyontech/karyon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Karyon

An infrastructure for peer-to-peer, decentralized, and collaborative software

Website | Discord | irc #karyon on liberachat

In molecular biology, a Karyon is essentially "a part of the cell containing DNA and RNA and responsible for growth and reproduction"

Overview

Many developers around the world aspire to build peer-to-peer, decentralized apps that are resilient, secure, and free from central control. However, there are still not many libraries and tools available to build these kinds of apps. This forces many developers to either abandon their ideas or develop a new p2p network stack and tools from scratch. Such efforts are not only time-consuming but also prone to errors and security vulnerabilities, as each new implementation reintroduces potential weaknesses.

Karyon provides developers with the components and tools needed to create p2p and decentralized apps and simplifies the complexities associated with building them. Its primary goal is to make decentralization more accessible and efficient for developers everywhere.

Crates

  • karyon core: Essential utilities and core functionality.
  • karyon net: Provides a network interface for TCP, UDP, TLS, WebSocket, and Unix, along with common network functionality.
  • karyon p2p: A lightweight, extensible, and customizable peer-to-peer (p2p) network stack.
  • karyon jsonrpc: A fast and lightweight async JSONRPC2.0 implementation.
  • karyon crdt: A CRDT implementation for building collaborative software.
  • karyon base: A lightweight, extensible database that operates with karyon crdt.

Choosing the async runtime

All the crates support both smol(async-std) and tokio async runtimes. The default is smol, but if you want to use tokio, you need to disable the default features and then select the tokio feature.

Docs

Online documentation for the main crates:

For the internal crates:

Status

This project is a work in progress. The current focus is on shipping karyon crdt and karyon base, along with major changes to the network stack. You can check the issues for updates on ongoing tasks.

Contribution

Feel free to open a pull request or an issue.

License

All the code in this repository is licensed under the GNU General Public License, version 3 (GPL-3.0). You can find a copy of the license in the LICENSE file.