Skip to content
@crolang-p2p

Crolang P2P

CrolangP2P

Easy cross-language framework for P2P communication.

Table of Contents

The CrolangP2P Project

CrolangP2P is a simple, robust framework for cross-language peer-to-peer (P2P) connections. Clients (“Crolang Nodes”) libraries can be easily integrated into your project and connect using only the ID of the target node, exchanging messages directly via P2P or via WebSocket using the Crolang Broker as relay. The framework manages the connection an you can focus on what matters most: your project's logic.

  • Simplicity: Minimal setup—just import the Node library, specify the peer ID, and connect.
  • Cross-language: Multiple Node implementations allow seamless P2P between different languages.
  • No packet size limits: Large data exchange is supported.
  • Extensible: The Broker supports modular extensions for authentication, authorization, message handling, and more.

Nodes connect through the Crolang Broker, which acts as a rendezvous point: it helps nodes discover each other and establish direct WebRTC connections.

Available CrolangP2P Node implementations

There is only one multiplatform repository for the CrolangP2P Node: crolang-p2p-node.
Said project has multiple targets, which are the frameworks supported by CrolangP2P:

More implementations will be available in the future.

Usage Examples

Broker

Running the Broker without any additional configuration is easy as running a Docker image as described in the Broker's documentation; the examples-crolang-p2p-broker repository contains advanced usage examples, where the Broker's behaviour is customized through the use of webhooks and environment variables.

CrolangP2P Nodes

Pinned Loading

  1. crolang-p2p-broker crolang-p2p-broker Public

    Rendezvous point for connecting Nodes in the CrolangP2P project.

    TypeScript 1

  2. crolang-p2p-node crolang-p2p-node Public

    The official Kotlin Multiplatform Crolang Node implementation for the CrolangP2P project.

    Kotlin

Repositories

Showing 8 of 8 repositories

Top languages

Loading…

Most used topics

Loading…