Repository source: docs/plans/archive/sqlite_download_with_query_webui_step1_solution_assessment.md
SQLite Download With Query Web UI Step 1 Solution Assessment
Problem Statement
Users need the SQLite database to be downloadable with a useful web UI and prefilled queries. Source: thread-20260826020416-8e843191, submitted 2026-08-26T02:04:16Z.
Option A: Add a direct SQLite download link only
Pros:
Fastest way to expose the database artifact.
Reuses existing backup/download patterns.
Minimal new UI.
Cons:
Does not satisfy the requested web UI.
Leaves users to find external tooling.
Option B: Add an in-browser read-only SQLite viewer with preset queries
Pros:
Directly supports users who cannot open
.sqlitefiles locally.Prefilled queries make common inspection tasks discoverable.
Can keep writes and private data out of scope.
Cons:
Adds browser compatibility and asset-loading concerns.
Query safety and result size need product limits.
Option C: Ship a downloadable bundle containing SQLite plus a local viewer
Pros:
Useful offline and independent of the live site.
Can include versioned query presets.
Cons:
Larger packaging and cache invalidation surface.
Less convenient than an in-site viewer.
Recommendation
Recommend Option B.
Brief justification:
A read-only in-browser viewer best matches the request while avoiding the extra packaging complexity of a local bundle.