Skip to content

WHYBBE/opencode-session-viewer

Repository files navigation

OpenCode Session Viewer

OpenCode Session Viewer

中文说明

A local opencode session viewer built with Electron, pnpm, Vite, and React.

Built with opencode + gpt-5.4 vibe coding.

It reads the opencode SQLite database directly and visualizes the real table structure:

  • session
  • message
  • part
  • todo

Features:

  • Import a specific .db/.sqlite/.sqlite3 file
  • Search session titles, directories, message JSON, and part JSON
  • View session metadata
  • Browse the full message timeline
  • Expand each message to inspect raw message JSON and part JSON
  • View todos attached to a session
  • Delete a session and its related data
  • Switch between light, dark, and system themes
  • Switch between Chinese and English UI

Development

pnpm install
pnpm dev

Build

pnpm build

License

This project is licensed under the MIT License. See LICENSE for details.

Notes

  • The main process uses Node's built-in node:sqlite to read the database.
  • The viewer can also delete sessions and their related records from the selected database.
  • Search returns the 200 most recently updated matching sessions by default.

About

opencode session viewer

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors