opencode-nexus Svelte Themes

Opencode Nexus

A secure, cross-platform desktop application for running and remotely accessing your OpenCode server, powered by Tauri, Astro + Svelte, and secure tunneling.

OpenCode Nexus

A secure iOS mobile app for connecting to OpenCode servers started with opencode serve, built with Tauri v2 (Rust), Astro + Svelte (Bun), and the official @opencode-ai/sdk for seamless API integration.

πŸš€ Features

  • Native OpenCode Client - Connect to any OpenCode server with a beautiful native interface
  • Real-Time Chat Interface - Seamless AI conversation experience with instant message streaming via Server-Sent Events
  • iOS Mobile App - Native iOS experience with TestFlight distribution, built with Tauri for future cross-platform expansion
  • SDK-Powered Integration - Uses official @opencode-ai/sdk for type-safe, reliable API communication
  • Session Management - Persistent conversation history with metadata-only caching for mobile optimization
  • Accessibility First - WCAG 2.2 AA compliant with full screen reader and keyboard navigation support
  • Connection Management - Support for localhost, Cloudflare Tunnel, and reverse proxy connections

πŸ› οΈ Tech Stack

  • Backend: Tauri v2 (Rust) for native iOS app development and API communication
  • Frontend: Astro with Svelte islands for modern, responsive chat interface
  • Package Manager: Bun for frontend dependencies and runtime
  • API Integration: Official @opencode-ai/sdk with Server-Sent Events for real-time streaming
  • Security: TLS 1.3 secure connections to OpenCode servers, encrypted local storage

πŸ“‹ Prerequisites

  • OpenCode Server: Start an OpenCode server on any machine with OpenCode installed using opencode serve (or opencode --server in older versions)
  • iOS Device: iOS 14.0+ for native mobile experience
  • Memory: 4GB RAM minimum, 8GB recommended
  • Storage: 1GB available disk space
  • Network: Internet connection for server communication

πŸš€ Quick Start

Starting an OpenCode Server

First, ensure you have OpenCode installed on a server machine. Start the server:

# On the machine where you want to run the OpenCode server
opencode serve --port 3000 --hostname 0.0.0.0

This will start an OpenCode server that the client can connect to. Note the server's IP address or hostname for client configuration.

Installation

iOS (TestFlight)

  1. Request TestFlight access through the GitHub Issues
  2. Install TestFlight app from the App Store
  3. Accept invitation and install OpenCode Nexus
  4. Launch and configure your OpenCode server connection

Desktop (Development)

  1. Download the latest release for your platform from the releases page
  2. Install the application following platform-specific instructions
  3. Launch OpenCode Nexus and connect to your OpenCode server

Note: Desktop builds are available for development and testing purposes. The primary experience is optimized for iOS.

Development Setup

# Clone the repository
git clone https://github.com/opencode-nexus/opencode-nexus.git
cd opencode-nexus

# Install frontend dependencies
cd frontend
bun install

# Start frontend development server
bun run dev

# In another terminal, start Tauri development
cd ..
cargo tauri dev

Building for Production

# Build frontend
cd frontend
bun run build

# Build Tauri application
cd ..
cargo tauri build

πŸ“¦ Release Process

OpenCode Nexus uses automated releases via GitHub Actions.

For Users

Download the latest release:

  • iOS: TestFlight beta distribution (primary platform)
  • Desktop: .dmg (macOS), .msi (Windows), .AppImage (Linux) - development builds

Visit the Releases page to download.

For Maintainers

Releases are automatically built and published when a version tag is pushed:

# Create and push a version tag
git tag v0.1.0
git push origin v0.1.0

This triggers the release workflow which:

  1. Builds iOS IPA for TestFlight distribution
  2. Runs all quality gates and security scans
  3. Creates a GitHub Release with iOS assets
  4. Generates checksums for verification

See CONTRIBUTING.md for detailed release guidelines.

πŸ“š Documentation

Comprehensive documentation is available in the /docs/client/ directory:

πŸ”§ Development

Project Structure

opencode-nexus/
β”œβ”€β”€ frontend/                 # Astro + Svelte frontend (Bun)
β”œβ”€β”€ src-tauri/               # Tauri Rust backend
β”œβ”€β”€ docs/                    # Project documentation
β”œβ”€β”€ status_docs/             # Project status and tracking
β”‚   β”œβ”€β”€ TODO.md              # Task tracking
β”‚   └── CURRENT_STATUS.md    # Detailed status
β”œβ”€β”€ README.md                # This file
β”œβ”€β”€ CHANGELOG.md             # Version history
└── LICENSE                  # Project license

Development Commands

# Frontend development
cd frontend
bun run dev          # Start development server
bun run build        # Build for production
bun run test         # Run tests
bun run test:e2e     # Run end-to-end tests
bun run lint         # Lint code
bun run type-check   # TypeScript type checking

# Backend development
cargo tauri dev      # Start Tauri development
cargo tauri build    # Build Tauri application
cargo test           # Run Rust tests
cargo clippy         # Run linter

Testing

This project follows Test-Driven Development (TDD) as required by our development standards:

  • Unit Tests: Frontend (Vitest) and backend (Rust test framework)
  • Integration Tests: Component and API integration testing
  • End-to-End Tests: Playwright for full user journey validation
  • Accessibility Tests: WCAG 2.2 AA compliance validation
  • Security Tests: Automated vulnerability scanning and security testing

πŸ”’ Security

OpenCode Nexus connects securely to OpenCode servers:

  • Server Authentication: Authentication handled by the OpenCode server (Argon2, account protection)
  • Secure Connections: TLS 1.3 encryption for all client-server communications
  • Local Storage: Encrypted session metadata storage with mobile-optimized caching
  • Data Privacy: No data sharing without user consent, local-first architecture
  • Server Security: Relies on OpenCode server's security model and audit logging

Reporting Security Vulnerabilities

We take security seriously. If you discover a security vulnerability, please report it responsibly:

  1. Do NOT open a public GitHub issue
  2. Report via GitHub Security Advisories
  3. Or email: security@opencode-nexus.example.com

For detailed information, see our Security Policy.

Response Timeline:

  • Initial response: Within 48 hours
  • Status update: Within 7 days
  • Fix timeline: Based on severity (critical: 7 days, high: 30 days, medium: 90 days)

🀝 Contributing

We welcome contributions from the community! Please see our Contributing Guidelines for details.

CI/CD Pipeline

This project uses automated workflows to ensure code quality and security:

  • Quality Gate: Runs on all PRs - linting, testing, coverage checks, builds
  • Security Scan: Automated vulnerability scanning (Trivy, CodeQL, audit tools)
  • License Check: Ensures all dependencies comply with approved licenses
  • Release Build: Automated cross-platform builds on version tags

All checks must pass before code can be merged. See CONTRIBUTING.md for details.

Development Standards

This project follows strict development standards:

  • Test-Driven Development (TDD) - Write tests before implementing features
  • Security First - All code must pass security reviews
  • Accessibility - WCAG 2.2 AA compliance required
  • Code Quality - Comprehensive testing and linting
  • Documentation - Maintain comprehensive documentation

Getting Started

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Write tests first (TDD requirement)
  4. Implement your feature
  5. Test thoroughly
  6. Commit your changes (git commit -m 'Add amazing feature')
  7. Push to the branch (git push origin feature/amazing-feature)
  8. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ†˜ Support

Getting Help

  • Documentation: Check the /docs/ directory
  • Issues: Report bugs and request features on GitHub Issues
  • Discussions: Join community discussions on GitHub Discussions
  • Wiki: Check the GitHub Wiki for additional resources

Community

πŸ—ΊοΈ Roadmap

  • v0.1.0 - iOS mobile app with TestFlight distribution βœ…
  • v0.2.0 - Enhanced iOS features and user experience
  • v0.3.0 - Android client (future expansion)
  • v1.0.0 - Production-ready iOS app with enterprise features

πŸ™ Acknowledgments

  • OpenCode Team - For the amazing OpenCode AI coding assistant
  • Tauri Team - For the excellent framework enabling native iOS app development
  • Astro Team - For the modern web framework
  • Svelte Team - For the reactive component framework
  • Bun Team - For the fast JavaScript runtime

OpenCode Nexus - Democratizing access to AI-powered coding assistance through a beautiful, secure iOS mobile app.

Made with ❀️ by the OpenCode Nexus community.

Codeflow Workflow - Multi-Platform

This project supports both Claude Code and MCP integration.

Claude Code Users

Use native slash commands:

  • /research, /plan, /execute, /test, /document, /commit, /review

Commands are in .claude/commands/.

Other AI Platforms (OpenCode, Claude Desktop, etc.)

Use MCP tools:

  • research, plan, execute, test, document, commit, review

Setup MCP Server:

bun run /path/to/codeflow/mcp/codeflow-server.mjs

Commands are in .opencode/command/.

Universal Workflow

  1. Research β†’ 2. Plan β†’ 3. Execute β†’ 4. Test β†’ 5. Document β†’ 6. Commit β†’ 7. Review

Top categories

Loading Svelte Themes