oxbin

oxbin is a decentralized pastebin and file sharing application/cli

oxbin

Created At

ETHGlobal New Delhi

Project Description

OxBin is a decentralized pastebin and file sharing application that combines a beautiful terminal interface with a web-based frontend. Users can upload any file (up to 10MB) to the Walrus decentralized storage network and retrieve it later using a unique Blob ID. The application preserves file metadata including original filename, size, content type, and upload timestamp, making it perfect for sharing code snippets, documents, images, and other files in a decentralized manner.

How it's Made

OxBin is built with Go using a clean architecture pattern with separate service, model, and UI layers. The core uses the Walrus Go SDK to interact with the Walrus Protocol on Sui blockchain for decentralized file storage. Files are wrapped in a JSON metadata structure before storage, preserving original filename, size, and content type while base64-encoding the content. The application features dual interfaces: a responsive terminal UI built with Bubble Tea that adapts to screen size, and a modern web interface using Go's native HTTP server with Templ templates and DaisyUI styling. The terminal interface includes advanced features like file path autocompletion, clipboard integration, and responsive layouts. Notable technical implementations include automatic binary file detection with hex preview, syntax highlighting for 25+ programming languages, smart content type detection, and a metadata preservation system that maintains backward compatibility with raw Walrus blobs while adding rich file information for OxBin uploads.

background image mobile

Join the mailing list

Get the latest news and updates