Opencode Vibe

screenshot of Opencode Vibe
nextjs

Next.js 16 web UI for OpenCode - real-time chat with streaming, SSE sync, and React Server Components

Overview

The opencode-vibe project is an exciting rebuild of the OpenCode web application utilizing Next.js 16, focusing on creating a robust and engaging real-time chat UI. With its innovative streaming message display and seamless Server-Sent Events (SSE) synchronization, this application boasts a modern, intuitive user experience. The Catppuccin-themed interface adds a touch of aesthetic appeal, making it visually pleasing for users. Designed for developers eager to embrace cutting-edge technology, it operates on a monorepo structure that combines various essential components.

The application is tailored to simplify the interactions between running OpenCode processes, allowing for auto-discovery and streamlined communication. Developers can expect a few rough edges, as the project utilizes a canary version of Next.js 16, providing a glimpse into the future of web applications.

Features

  • World Stream Architecture: Utilizes the createWorldStream() function to ensure push-based reactive state management, enhancing user interaction.
  • Multi-Server Discovery: Automatically finds all running OpenCode processes through lsof, eliminating the need for manual configuration.
  • Cross-Process Messaging: Enables sending messages from the web UI that appear in the terminal user interface, allowing for versatile communication.
  • Real-Time Streaming: Messages are streamed in as the AI generates them, providing dynamic and immediate updates to users.
  • SSE Sync: All application updates are pushed via Server-Sent Events, ensuring that users receive real-time information.
  • Slash Commands: Offers convenient actions such as /fix, /test, and /refactor via simple command inputs for quick functionality.
  • File References: Users can fuzzy-search and attach files as context by typing @, simplifying document management within the application.
  • Catppuccin Theme: Features both Latte (light) and Mocha (dark) themes with proper syntax highlighting, enhancing readability and user engagement.
nextjs
Next.js

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.

zod
Zod

Zod is a TypeScript-first schema declaration and validation library. It allows you to define schemas that can validate data at runtime while providing excellent TypeScript inference, making it perfect for API validation, form validation, and type-safe data handling.