SchemaLens Bookmarklet
Diff any SQL schema you see on the web — GitHub PRs, blog posts, docs, Stack Overflow — in one click.
👇 Drag this button to your bookmarks bar
🔍 Diff in SchemaLensCan't drag?
How to Use
On mobile, use the "Copy bookmarklet code" button and save it as a bookmark manually.
GitHub PRs, migration blogs, documentation, Stack Overflow answers, etc.
If you selected SQL text, it uses that. Otherwise it auto-finds the first CREATE TABLE block on the page.
Paste your second schema and hit Compare. No copy-paste hunting required.
Perfect For
🐙 GitHub PR Reviews
Reviewing a migration PR? Click the bookmarklet on the "Files changed" tab to instantly diff the schema changes.
📚 Documentation & Blogs
Reading a tutorial with example schemas? Diff it against your own database in seconds.
💬 Stack Overflow
Someone posted a schema in their question? Open it in SchemaLens to understand the structure visually.
🔧 Migration Guides
Comparing before/after schemas in a migration guide? The bookmarklet grabs the first schema; you paste the second.
Demo
Imagine you're reading a GitHub PR with this schema change:
Click the bookmarklet → SchemaLens opens with this SQL already loaded → You paste your current schema → Instant diff + migration script.
Privacy
The bookmarklet runs entirely in your browser. It never sends data to any server — it simply opens SchemaLens with the SQL encoded in the URL. The schema data is processed client-side, just like the main app.
Chrome Extension
Want even more power? The SchemaLens Chrome Extension adds a "Diff in SchemaLens" button directly to GitHub PR pages — no bookmarklet needed.
Install Chrome Extension →