Skip to content

OpenCode Share v1.0.0 - Initial Release

Choose a tag to compare

@heimoshuiyu heimoshuiyu released this 11 Jan 22:00
· 4 commits to master since this release
ffcebad

🚀 OpenCode Share v1.0.0 - Initial Release

This is the first stable release of OpenCode Share Service built with Rust! A high-performance, type-safe implementation for sharing AI coding agent sessions.

✨ Key Features

Core Functionality

  • High Performance: Built with Rust and Axum async framework for maximum throughput
  • Type Safety: Compile-time checked SQL queries and strongly typed data structures
  • Event Sourcing: Efficient event-driven data synchronization with JSONB storage
  • Secret-based Authentication: Secure sharing without user account management
  • Rich Share Page: Interactive UI for viewing AI coding sessions

Frontend Features

  • 🔧 Tool Call Visualization - Beautiful cards showing bash commands, file operations, grep, etc.
  • 📦 Collapsible Reasoning Blocks - Display AI "thinking" with expand/collapse functionality
  • 🔢 Step Markers - Visual indicators for reasoning steps with token usage tracking
  • 📝 Split Diff Viewer - Side-by-side file change visualization with synchronized scrolling
  • 🎨 Syntax Highlighting - Code blocks with monospace fonts and proper styling
  • 📊 Token Usage Tracking - Display message and session token consumption

Production Ready

  • Docker Support: Multi-stage builds for optimized container images
  • Structured Logging: Comprehensive request/response logging with emoji indicators
  • CORS Support: Full cross-origin support for frontend integration
  • Environment Configuration: Flexible configuration via environment variables

🛠️ Technology Stack

Component Technology Version
Language Rust 2021 edition
Web Framework Axum 0.7
Runtime Tokio 1.0 (async)
Database PostgreSQL (via SQLx)
ORM SQLx 0.7 (compile-time checked)
Serialization Serde 1.0
Frontend Vanilla ES6+ JavaScript + CSS3

🚀 Quick Start

Using Docker Compose (Recommended)

docker-compose up -d

The server will start at http://localhost:3006

Manual Build

# Build release binary
cargo build --release

# Run
./target/release/opencode-share

📡 API Endpoints

  • POST /api/share - Create a new share
  • POST /api/share/{shareID}/sync - Sync share data
  • GET /api/share/{shareID}/data - Get share data
  • DELETE /api/share/{shareID} - Remove a share
  • GET /share/{shareID} - View share page

📦 Assets

This release includes a pre-built Linux binary for easy deployment.

🔗 Links


Built with ❤️ using Rust