sourcebot/packages/web/src/app/[domain]/browse
2025-06-02 11:22:52 -07:00
..
[...path] fix: Fix "Mark decorations may not be empty" issue (#325) 2025-06-02 11:22:52 -07:00
components V4 docs refactor (#322) 2025-06-01 18:51:12 -07:00
hooks V4 (#311) 2025-05-28 16:08:42 -07:00
browseStateProvider.tsx V4 (#311) 2025-05-28 16:08:42 -07:00
layout.tsx V4 (#311) 2025-05-28 16:08:42 -07:00
README.md V4 (#311) 2025-05-28 16:08:42 -07:00

File browser

This directory contains Sourcebot's file browser implementation. URL paths are used to determine what file the user wants to view. The following template is used:

/browse/<repo-name>[@<optional-revision-name>]/-/(blob|tree)/<path_to_file>

For example, to view packages/backend/src/env.ts in Sourcebot, we would use the following path:

/browse/github.com/sourcebot-dev/sourcebot@HEAD/-/blob/packages/backend/src/env.ts