{"title":"Minipg: PostgreSQL As A Single Executable","html_url":"https://deallocatedobjects.com/posts/minipg-postgresql-as-a-single-executable","source_url":"https://progrium.github.io/minipg/","markdown_content":"Jeff Lindsay made Postgres feel more like SQLite:\n\n> minipg is PostgreSQL as one executable, ready to use, with no server to configure. A .pgdb directory is the database: its data, config, credentials, and Postgres version all live inside it, and minipg app.pgdb opens a psql shell on it.\n\nKinda neat how it gets there. It runs the official Docker image's Postgres binaries with his h9 runtime, straight on the hypervisor:\n\n> There's no Linux kernel to boot, no VM image, and no Docker.\n\nThe commands are what you'd hope for:\n\n```sh\nminipg app.pgdb \"select 1\"          # one statement\nminipg run app.pgdb -- npm start    # your app, with DATABASE_URL set\n```\n\nIt runs on Apple silicon (through Hypervisor.framework), on Linux, and in a 35 MB browser demo. Lindsay's own warning: \"minipg is early, and h9's Linux personality is young,\" so don't keep anything in it you can't recreate yet. It's MIT licensed.","html_content":"<p>Jeff Lindsay made Postgres feel more like SQLite:</p>\n<blockquote>\n<p>minipg is PostgreSQL as one executable, ready to use, with no server to configure. A .pgdb directory is the database: its data, config, credentials, and Postgres version all live inside it, and minipg app.pgdb opens a psql shell on it.</p>\n</blockquote>\n<p>Kinda neat how it gets there. It runs the official Docker image’s Postgres binaries with his h9 runtime, straight on the hypervisor:</p>\n<blockquote>\n<p>There’s no Linux kernel to boot, no VM image, and no Docker.</p>\n</blockquote>\n<p>The commands are what you’d hope for:</p>\n<figure class=\"code\" data-lang=\"bash\"><figcaption><span class=\"lang\">Shell</span></figcaption><pre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">minipg</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> app.pgdb</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> \"select 1\"</span><span style=\"--shiki-light:#6A737D;--shiki-dark:#6A737D\">          # one statement</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">minipg</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> run</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> app.pgdb</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> --</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> npm</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> start</span><span style=\"--shiki-light:#6A737D;--shiki-dark:#6A737D\">    # your app, with DATABASE_URL set</span></span></code></pre></figure><p>It runs on Apple silicon (through Hypervisor.framework), on Linux, and in a 35 MB browser demo. Lindsay’s own warning: “minipg is early, and h9’s Linux personality is young,” so don’t keep anything in it you can’t recreate yet. It’s MIT licensed.</p>","created_at":"2026-12-03T19:12:00.000Z","updated_at":"2026-12-03T19:12:00.000Z"}