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
| Layer | Technology |
|---|---|
| Frontend | Vue 3, Vite, Pinia, Monaco Editor |
| Backend | Node.js, Express, Knex.js |
| Database | MySQL |
| Storage | AWS S3 / Hetzner Object Storage |
| AWS SES (passwordless login) | |
| CLI | Go (Cobra, WebRTC) |
| P2P Signaling | Socket.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.