TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: SQLite disk page explorer

288 pointsby QuadrupleA3 months ago

15 comments

simonw3 months ago
This is really neat. I posted an animated GIF screenshot here <a href="https:&#x2F;&#x2F;simonwillison.net&#x2F;2025&#x2F;Feb&#x2F;6&#x2F;sqlite-page-explorer&#x2F;" rel="nofollow">https:&#x2F;&#x2F;simonwillison.net&#x2F;2025&#x2F;Feb&#x2F;6&#x2F;sqlite-page-explorer&#x2F;</a>
评论 #42967252 未加载
Retr0id3 months ago
Neat! It&#x27;s surprisingly easy to sit down with a copy of the sqlite file format docs and start writing code to parse sqlite files (like this project does), and I&#x27;d strongly recommend it for all the same reasons listed in the &quot;Why?&quot; section of the readme here.<p><a href="https:&#x2F;&#x2F;www.sqlite.org&#x2F;fileformat.html" rel="nofollow">https:&#x2F;&#x2F;www.sqlite.org&#x2F;fileformat.html</a>
评论 #42973875 未加载
评论 #43006181 未加载
artps3 months ago
That&#x27;s really impressive! As someone who&#x27;s worked with SQLite internals in the past, I know this kind of work and tinkering is no small feat. On a related note, I recently came across sqlite-repr [1] (built with Dioxus), which offers an interesting take on SQLite visualizations as well.<p>[1] <a href="https:&#x2F;&#x2F;torymur.github.io&#x2F;sqlite-repr&#x2F;" rel="nofollow">https:&#x2F;&#x2F;torymur.github.io&#x2F;sqlite-repr&#x2F;</a>
hoc3 months ago
Did that for a security tool about more than ten years ago. Makes you love that tightly designed engine a bit more.<p>I always thought an explorer or just an base lib would be fun. Great to see yours, especially with a MIT license. Tbanks for sharing.
ks20483 months ago
This looks cool, nice job.<p>Maybe add a color-legend to the front page? I didn&#x27;t know what the colors represented at first.<p>It&#x27;s kind of choking on a larger db (3.6GB, 942719 pages) - maybe you can paginate the pages.
评论 #42969575 未加载
rousbound_3 months ago
Nice project, unfortunately when I run the executable it throws the error: &quot;failed to run lua code: &#x2F;index.lua:3: module &#x27;utils&#x27; not found:&quot;.
shlomo_z3 months ago
Thank you!<p>As someone who isn&#x27;t disciplined enough to sit through a course or class, this was a really good way to visualize what&#x27;s going on under the hood, and how to structure my data more efficiently.
jaseemabid3 months ago
I recently wrote an explainer for the sqlite file format with some helpful diagrams. This might help.<p><a href="https:&#x2F;&#x2F;blog.jabid.in&#x2F;2024&#x2F;11&#x2F;24&#x2F;sqlite.html" rel="nofollow">https:&#x2F;&#x2F;blog.jabid.in&#x2F;2024&#x2F;11&#x2F;24&#x2F;sqlite.html</a>
评论 #42967501 未加载
wwader3 months ago
The sqlite source includes a CLI tool called showdb that is quite nice for poking around in database files
ShaggyHotDog3 months ago
Neat. Being learning about databases and this is very helpful!
aappleby3 months ago
Tool works well.
jas393 months ago
A true masterpiece:)
electroly3 months ago
It was revelatory to write an SQLite virtual filesystem module for a storage layer with extremely high latency (S3). Every seek matters. This would have helped; I looked at the reads executed by SQLite and tried to intuit what was going on inside the file.<p>Protip: Use WITHOUT ROWID with monotonic IDs if you don&#x27;t want your rows sprayed randomly around the file! That one change was the difference between SQLite-on-S3 being unusably slow and being fast enough. WITHOUT ROWID tables let you manage the physical clustering.
评论 #42965903 未加载
评论 #42966712 未加载
评论 #42965735 未加载
评论 #42967503 未加载
grimgrin3 months ago
redbean!! redbean is so good<p><a href="https:&#x2F;&#x2F;redbean.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;redbean.dev&#x2F;</a><p>likely a bit outdated but:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;shmup&#x2F;awesome-cosmopolitan?tab=readme-ov-file#redbean">https:&#x2F;&#x2F;github.com&#x2F;shmup&#x2F;awesome-cosmopolitan?tab=readme-ov-...</a>
评论 #42966819 未加载
评论 #42966208 未加载
评论 #42967505 未加载
luizfelberti3 months ago
Upvoted for using Redbean. I&#x27;ve been using it recently and it has been absolutely amazing, the built-in functionality that it has exposed through the Lua interface makes it an extensively programmable proxy that you can sandbox the crap out of if you&#x27;re familiar with the unixy bits of it
评论 #42965630 未加载