Official Software Development Kit for CloudBridge Global Network - Enterprise-grade P2P mesh networking platform.
CloudBridge SDK provides developers with easy-to-use libraries for integrating CloudBridge's P2P mesh networking capabilities into their applications. The SDK supports multiple programming languages and abstracts the complexity of QUIC, MASQUE, and authentication protocols.
- Go - Primary SDK for backend services
- Python - For AI/ML and data science applications
- JavaScript/TypeScript - For web and Node.js applications
- P2P mesh networking with automatic peer discovery
- Secure tunneling (TCP port forwarding)
- L3-overlay networks with WireGuard integration
- Multi-protocol support (QUIC, gRPC, WebSocket)
- OIDC/JWT authentication with Zitadel integration
- Multi-tenant isolation
- Automatic failover and reconnection
- Prometheus metrics and health checks
- NAT traversal (ICE/STUN/TURN)
package main
import "github.com/twogc/cloudbridge-sdk/go/cloudbridge"
func main() {
client, err := cloudbridge.NewClient(
cloudbridge.WithToken("your-token"),
cloudbridge.WithRegion("eu-central"),
)
if err != nil {
panic(err)
}
defer client.Close()
// Create P2P connection
conn, err := client.Connect("peer-id-123")
if err != nil {
panic(err)
}
defer conn.Close()
}from cloudbridge import Client
client = Client(token="your-token", region="eu-central")
# Create P2P connection
conn = client.connect("peer-id-123")
conn.close()import { CloudBridge } from '@twogc/cloudbridge-sdk';
const client = new CloudBridge({
token: 'your-token',
region: 'eu-central'
});
// Create P2P connection
const conn = await client.connect('peer-id-123');
await conn.close();go get github.com/twogc/cloudbridge-sdk/go/cloudbridgepip install cloudbridge-sdknpm install @twogc/cloudbridge-sdk- Go SDK Documentation
- Python SDK Documentation
- JavaScript SDK Documentation
- API Reference
- Architecture Overview
- Authentication Guide
CloudBridge SDK integrates with the CloudBridge Global Network platform:
Client Application (Your Code)
|
v
CloudBridge SDK (This Library)
|
v
CloudBridge Relay Client
|
v
CloudBridge Global Network
- DNS Network (GeoDNS + Anycast)
- Control Plane (Zitadel OIDC)
- DDoS Protection (ML-based)
- Scalable Relay (QUIC/MASQUE/WireGuard)
- Monitoring (Prometheus + Grafana)
- AI Service (Route optimization)
// Connect microservices across regions
client.ConnectServices("eu-backend", "us-frontend")# Create secure tunnel to remote service
tunnel = client.create_tunnel(
local_port=8080,
remote_peer="server-123",
remote_port=3000
)// Join mesh network
const mesh = await client.joinMesh('my-network');
await mesh.broadcast({ type: 'hello', data: 'world' });# Secure data sharing between ML models
client.share_dataset(
source="model-1",
destination="model-2",
encrypted=True
)- Go 1.25+ (for Go SDK)
- Python 3.9+ (for Python SDK)
- Node.js 18+ (for JavaScript SDK)
- CloudBridge account and API token
- Visit CloudBridge Dashboard
- Navigate to Settings > API Tokens
- Click "Generate New Token"
- Copy and use in your SDK configuration
- Documentation: https://docs.2gc.ru
- GitHub Issues: https://github.com/twogc/cloudbridge-sdk/issues
- Community: https://community.2gc.ru
We welcome contributions! Please see CONTRIBUTING.md for details.
MIT License - see LICENSE for details.
For security issues, please email security@2gc.ru instead of using the issue tracker.
Current version: 0.1.0 (Alpha)
- Go SDK: In Development
- Python SDK: Planned
- JavaScript SDK: Planned
- Go SDK Core functionality
- Authentication (JWT + OIDC)
- P2P connection management
- Basic tunneling
- Python SDK release
- JavaScript SDK release
- Advanced features (mesh networking)
- WebSocket fallback for browsers
- Mobile SDKs (iOS, Android)
- Advanced routing options
- Performance optimizations
- Enterprise features
- cloudbridge-docs - Architecture documentation
Copyright (c) 2025 2GC CloudBridge Global Network