frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Velo – Git-like branching for PostgreSQL databases using ZFS snapshots

https://github.com/elitan/velo
3•elitan•3h ago

Comments

elitan•3h ago
Hey HN! I built Velo to solve a problem I kept running into: testing database migrations and debugging production issues without copying around massive database dumps or waiting for slow clones.

The core idea: use ZFS copy-on-write snapshots to branch PostgreSQL databases the way you branch Git repos. A 100GB database branches in ~2 seconds and takes ~100KB of space initially. Each branch is a complete, isolated PostgreSQL instance running in Docker.

How it works:

- Runs CHECKPOINT to flush PostgreSQL buffers (ensures consistency)

- Creates a ZFS snapshot (filesystem-level, instant)

- Clones the snapshot to a new dataset (CoW means no data copying)

- Spins up a new PostgreSQL container pointing at the clone

The mental model is: Project = Git repo, Branch = Git branch. Commands like `velo branch create api/test-migration` or `velo branch reset api/dev`.

I also added point-in-time recovery using WAL archiving, so you can create branches from specific timestamps (e.g., "5 minutes before the incident").

Requirements: Linux + ZFS + Docker.

Built using Bun and TypeScript.

Let me know what you think :)

cassettelabs•3h ago
Being able to branch from my db and merge after testing was a killer feature for me in PlanetScale. Great to see this functionality as an open source project.
elitan•16m ago
It's a killer feature indeed. Glad you liked it! :)

Pilates started in a WWI internment camp

https://www.popsci.com/health/how-pilates-started/
1•bookofjoe•1m ago•0 comments

Do AI Website Builders Follow UX Best Practices? We Put Them to the Test

https://www.crazyegg.com/blog/ai-website-builders-ux-test/
1•mooreds•1m ago•0 comments

I Sail and Sleep Alone at Night Far Offshore [video]

https://www.youtube.com/shorts/lpqa-1KwhrQ
1•keepamovin•2m ago•0 comments

Riot That 'Killed' Disco

https://www.bbc.com/culture/article/20230922-the-night-angry-rock-fans-destroyed-disco-music
1•lando2319•3m ago•0 comments

Opinion: Why I'm handing in my Pentagon press pass

https://www.npr.org/2025/10/14/g-s1-93297/pentagon-reporter-opinion-press-policy
7•nobody9999•4m ago•0 comments

Are Foundation Models Ready for Industrial Defect Recognition? A Reality Check

https://arxiv.org/abs/2509.20479
1•PaulHoule•9m ago•0 comments

Madagascar's military takes power, fleeing president impeached

https://www.reuters.com/world/asia-pacific/madagascars-president-dissolves-national-assembly-esca...
1•JumpCrisscross•11m ago•0 comments

I built a free AI tool that scans and sorts financial news for traders

https://www.fxradar.live/
2•LuckyAleh•12m ago•1 comments

Amazon says Color e-Paper is not good for reading

https://goodereader.com/blog/electronic-readers/amazon-says-color-e-paper-is-not-good-for-reading
2•giuliomagnifico•12m ago•0 comments

Technical experts have zero customers

https://www.ivan.codes/thoughts/technical-experts-have-zero-customers
2•andout_•13m ago•0 comments

Why Stepping Away from Trading Might Make You a Better Trader

1•kvallans•13m ago•0 comments

I need help with my SaaS apps

1•hiphophack•15m ago•0 comments

Dimon's 'Cockroach' Fear Revives Threat of Growing Credit Cracks

https://www.bloomberg.com/news/articles/2025-10-14/dimon-s-cockroach-fear-revives-threat-of-growi...
2•zerosizedweasle•17m ago•0 comments

Show HN: Civora Nexus – AI SaaS for Smart Cities and Governance

https://civoranexus.com/
1•Shubham412•17m ago•0 comments

Pin keypad filmed: 1.5M Euro fine for IKEA in Vienna

https://www.heise.de/en/news/PIN-keypad-filmed-1-5-million-Euro-fine-for-Viennese-Ikea-10751158.html
2•tosh•17m ago•0 comments

OpenAI Just Launched Agent Builder – Which Startups Will Die?

https://mrkelly.medium.com/openai-just-launched-agent-builder-which-startups-will-die-db95fa0d53f3
2•chepy•20m ago•0 comments

YC's Newest Visiting Partners

https://www.ycombinator.com/blog/ycs-newest-visiting-partners/
2•todsacerdoti•20m ago•0 comments

iPhone 17's Hidden Revolution: How Apple Solved Audio's 144-Year Problem [video]

https://www.youtube.com/watch?v=EO2Gc__c8CM
1•zeristor•21m ago•1 comments

Shrike-lite – $4 FPGA board

https://store.vicharak.in/?product=shrike&post_type=product&name=shrike&v=644d99afb936
1•piyushsthr•22m ago•0 comments

Walmart says customers will soon be able to use ChatGPT to shop

https://www.nbcnews.com/business/consumer/walmart-chatgpt-shopping-partnership-rcna237513
1•nairteashop•22m ago•1 comments

AI economics are brutal – Demand is the variable to watch

https://www.wsj.com/articles/ai-economics-are-brutal-demand-is-the-variable-to-watch-3c12c165
1•souravbh•23m ago•0 comments

Altman teases ChatGPT porn, personality

https://twitter.com/sama/status/1978129344598827128
5•delichon•24m ago•2 comments

Microsoft seeding Washington schools with free AI to get kids, teachers hooked

https://www.theregister.com/2025/10/14/microsoft_ai_schools/
1•rntn•25m ago•1 comments

Thermobaric Bombs: The Sience of Vacuum Warfare [video]

https://www.youtube.com/watch?v=HjddPnomsMY
1•ahmetcadirci25•25m ago•1 comments

How bad can a $2.97 ADC be?

https://excamera.substack.com/p/how-bad-can-a-297-adc-be
9•jamesbowman•26m ago•1 comments

Mapping the Social Graph of R/Indonesia's Daily Chat Thread

https://rtnf.substack.com/p/mapping-the-social-graph-of-rindonesias
1•altilunium•30m ago•0 comments

Ask HN: Open framework for generating thumbnails on untrusted files?

1•dafelst•31m ago•0 comments

Myanmar scam cities booming despite crackdown–using Musk's Starlink

https://techxplore.com/news/2025-10-myanmar-scam-cities-booming-crackdown.html
1•EA-3167•31m ago•0 comments

King vs. Rich: The Founder's Dilemma

https://thevcedge.substack.com/p/king-vs-rich-the-founders-dilemma
1•herbertl•32m ago•0 comments

Show HN: Replicas – Workspace VMs for your coding agents

https://www.replicas.dev/
1•connortbot•36m ago•0 comments