How vmatheus3/bug-frame works
Bugframe is a browser-based issue-reporting widget with a server API and CLI for managing reports. A tester enables the widget, captures and describes a page region, and sends screenshots plus browser context; the server authorizes and stores the report. Owners or agents can review reports, export a page-grouped worklist, close or reopen reports, or import ZIPs created in download mode. Edges reflect excerpts, SOURCE INDEX references, or README-documented behavior; unsampled implementation details are not inferred.
Main entry points: handler.mjs Report API · index.ts Widget workflow · bin.mjs CLI commands · commands.mjs Report operations
Components 16
Browser reporting
- Widget workflow
src/widget/index.ts - Screenshot capture
src/widget/capture.ts - Page context
src/widget/context.ts - Widget API
src/widget/api.ts - ZIP download
src/widget/zip.ts
Report server
- Report API
src/server/handler.mjs - Session authorization
src/server/handler.mjs - Validation and context
src/server/util.mjs - Report storage
src/server/storage-fs.mjs - HTTP adapters
src/server/node.mjs
Report management
- CLI commands
src/cli/bin.mjs - Report operations
src/cli/commands.mjs - Worklist export
src/cli/worklist.mjs - ZIP import
src/cli/zip-read.mjs
Other components
- Tester
- Owner or agent
Connections 21
- Tester → Widget workflow: uses
README.md - Widget workflow → Screenshot capture: captures
src/widget/index.ts - Widget workflow → Page context: builds context
src/widget/index.ts - Widget workflow → Widget API: sends reports
src/widget/index.ts - Widget workflow → ZIP download: creates ZIP
src/widget/index.ts - Widget API → Report API: requests API
README.md - Widget workflow → Report API: shows report status
README.md - Report API → Session authorization: checks access
README.md - Report API → Validation and context: validates data
src/server/handler.mjs - Report API → Report storage: stores reports
src/server/handler.mjs - HTTP adapters → Report API: dispatches requests
src/server/node.mjs - Owner or agent → CLI commands: manages reports
README.md - CLI commands → Report operations: dispatches commands
src/cli/bin.mjs - CLI commands → Report API: starts server
src/cli/bin.mjs - CLI commands → HTTP adapters: serves HTTP
src/cli/bin.mjs - Report operations → Report storage: reads and updates
src/cli/commands.mjs - Report operations → Worklist export: builds export
src/cli/commands.mjs - Report operations → ZIP import: reads ZIP entries
src/cli/commands.mjs - Owner or agent → Worklist export: uses exported worklist
README.md - Tester → ZIP download: receives report ZIP
README.md - CLI commands → Report operations: imports ZIP
src/cli/bin.mjs