JNGitHub ↗

Rafael

2026In Development · Private
Rafael preview

Overview

Rafael is a dashboard for OpenCode sessions. Prompts typed in the browser are posted to the OpenCode server, and the active session is polled for its messages, the tools it runs, and the notes it touches.

A small Node backend serves the interface on the local network, so several devices can view the same session.

Architecture

React owns the interface, Vite builds it, and Tailwind provides styling.

TanStack Query handles polling and caching, with keys led by server identity and queries disabled until a server is selected.

A Node server serves the built frontend and proxies OpenCode and vault requests on the same origin.

Vault requests resolve every path through a root check before reading, so a path cannot escape the knowledge vault.

Features

  • Typed prompt submission to a running OpenCode session.
  • Live conversation, tool-call and activity rendering.
  • Permission cards and a pending-work panel.
  • A knowledge vault graph view.
  • Multiple saved servers with discovery.
  • Package install and removal from the dashboard.

Tech Stack

ReactViteTypeScript

Technical Decisions

  • The frontend moved from vanilla TypeScript to React and Vite to give the project a single component model, while the Node backend and OpenCode integration stayed.
  • Polling intervals were kept at 700 ms while working and 3 s when idle instead of introducing a websocket transport.
  • The vault endpoints stay read-only and unauthenticated, so the server is intended for loopback or a trusted network.
© 2026 JN · Full-Stack AI Engineer