CodeBhejo is an open-source code sharing and collaboration tool for developers. Instantly create and share code snippets with your team through a web editor, or transfer files peer-to-peer directly from the terminal.

Features

  • Monaco Editor — The same editor that powers VS Code, with syntax highlighting across all major languages
  • Passwordless auth — Email-based magic link login via AWS SES, no password required
  • P2P file transfer — A Go CLI tool (codebhejo) that transfers files directly between machines over WebRTC; the backend acts only as a signaling server via Socket.IO, so file data never touches the server
  • S3-backed storage — File content stored on S3 (or any S3-compatible provider like Hetzner), metadata in MySQL

Tech Stack

LayerTechnology
FrontendVue 3, Vite, Pinia, Monaco Editor
BackendNode.js, Express, Knex.js
DatabaseMySQL
StorageAWS S3 / Hetzner Object Storage
EmailAWS SES (passwordless login)
CLIGo (Cobra, WebRTC)
P2P SignalingSocket.IO + WebRTC

CLI Usage

Install the CLI and send files peer-to-peer:

# Send a file
codebhejo send ./myfile.zip

# Receive a file
codebhejo receive <code>

The CLI uses WebRTC for the actual transfer — the backend acts only as a signaling server, so file data never touches the server.