6 releases

0.1.6 Jul 15, 2024
0.1.5 Jun 30, 2024
0.1.1 May 31, 2024

#20 in #collaborative

Download history 18/week @ 2024-07-22 8/week @ 2024-07-29 26/week @ 2024-08-12 55/week @ 2024-08-19 34/week @ 2024-08-26 69/week @ 2024-09-02 43/week @ 2024-09-09 57/week @ 2024-09-16 211/week @ 2024-09-23 52/week @ 2024-09-30 38/week @ 2024-10-07 46/week @ 2024-10-14 45/week @ 2024-10-21 24/week @ 2024-10-28 6/week @ 2024-11-04

122 downloads per month
Used in 3 crates (2 directly)

GPL-3.0 license

65KB
1.5K SLoC

Karyon

Build License

  • karyon_jsonrpc crates.io
  • karyon_jsonrpc docs.rs

A library for building p2p, 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

Building peer-to-peer (p2p), decentralized applications that are resilient, secure, and free from central control is a challenge for developers. There are not many libraries and tools available to build these applications. As a result, many developers either abandon their ideas or have to develop a new p2p network stack and tools from scratch. Instead of sharing common components and tools for building p2p systems, every p2p project seems to reinvent the wheel, which increases the effort required and the potential for vulnerabilities.

Karyon addresses this issue by providing developers with the components and tools needed to create p2p and decentralized apps, simplifying 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.

Dependencies

~6–18MB
~253K SLoC