<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dudko Development</title>
    <description>The latest articles on DEV Community by Dudko Development (@dudko-dev).</description>
    <link>https://dev.to/dudko-dev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4241648%2F34f1aa26-93fe-44c2-8146-c560e626a902.png</url>
      <title>DEV Community: Dudko Development</title>
      <link>https://dev.to/dudko-dev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dudko-dev"/>
    <language>en</language>
    <item>
      <title>Using Postman offline without an account: what still works, and what an import keeps</title>
      <dc:creator>Dudko Development</dc:creator>
      <pubDate>Mon, 30 Nov 2026 16:39:21 +0000</pubDate>
      <link>https://dev.to/dudko-dev/using-postman-offline-without-an-account-what-still-works-and-what-an-import-keeps-3g76</link>
      <guid>https://dev.to/dudko-dev/using-postman-offline-without-an-account-what-still-works-and-what-an-import-keeps-3g76</guid>
      <description>&lt;p&gt;"I have no Internet connection. How can I use Postman with my API running locally on my offline machine?" That's the opening of a &lt;a href="https://community.postman.com/t/using-postman-offline/74576" rel="noopener noreferrer"&gt;Postman community thread&lt;/a&gt; from January 2025, now past 12,500 views. A later reply in it sums up the mood: "you need to be signed in to import an api, makes the client useless in an offline environment."&lt;/p&gt;

&lt;p&gt;It isn't a one-off. The Stack Overflow question &lt;a href="https://stackoverflow.com/questions/77175558/postman-removed-offline-mode-scratch-pad-in-new-versions-is-there-a-way-to-en" rel="noopener noreferrer"&gt;Postman removed offline mode (Scratch Pad) in new versions&lt;/a&gt; has close to 47,000 views. And in February 2026 someone asked on the forum whether there's &lt;a href="https://community.postman.com/t/non-cloud-stored-collections/88699" rel="noopener noreferrer"&gt;any plan where collections stay off Postman's servers&lt;/a&gt;, because their security policy doesn't allow company data on outside servers.&lt;/p&gt;

&lt;p&gt;We make Baton, an API client that keeps collections as YAML files in your own repository, so we have a stake in this. Baton isn't account-free either, and on one of the tests below it loses clearly to Bruno. Both are in here.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short answer
&lt;/h2&gt;

&lt;p&gt;Signed out, the Postman desktop app drops you into the &lt;a href="https://learning.postman.com/docs/getting-started/using-api-client" rel="noopener noreferrer"&gt;lightweight API Client&lt;/a&gt;. It's more capable than people expect. You can build and send HTTP, GraphQL, gRPC, WebSocket, Socket.IO and MQTT requests, run post-response scripts, and keep a request history. Postman says that work "is stored locally and isn't synced online".&lt;/p&gt;

&lt;p&gt;What you can't have signed out is collections. Postman's own &lt;a href="https://learning.postman.com/docs/getting-started/installation/account/sign-up-for-postman/" rel="noopener noreferrer"&gt;sign-up page&lt;/a&gt; says it in one line: if you want to "organize requests into collections, or use other features, sign up for a free account and sign in". Environments and variables live in workspaces too, and switching to a workspace needs an account.&lt;/p&gt;

&lt;p&gt;Postman 12 does have an offline story, but it starts with an account. During sign-up you can connect a local folder, and Postman says you can then "work with them offline in Local View". That's &lt;a href="https://learning.postman.com/docs/use/native-git/overview" rel="noopener noreferrer"&gt;Native Git&lt;/a&gt;: collections as files next to your code, pushed to Postman Cloud when you choose. If a free account is acceptable and only the cloud copy worried you, look at that first.&lt;/p&gt;

&lt;p&gt;If the problem is the account itself, here's where each tool stands:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Sign-up needed&lt;/th&gt;
&lt;th&gt;Collections without a connection&lt;/th&gt;
&lt;th&gt;Where they live&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Postman, signed out&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;no, single requests and history&lt;/td&gt;
&lt;td&gt;your machine&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Postman 12, Local View&lt;/td&gt;
&lt;td&gt;a Postman account&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;a folder you connect, pushed to the cloud when you choose&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Insomnia Scratch Pad&lt;/td&gt;
&lt;td&gt;none (&lt;a href="https://developer.konghq.com/insomnia/storage/" rel="noopener noreferrer"&gt;before you log in&lt;/a&gt;)&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;your machine&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bruno&lt;/td&gt;
&lt;td&gt;none (&lt;a href="https://docs.usebruno.com/introduction/what-is-bruno" rel="noopener noreferrer"&gt;its docs&lt;/a&gt;)&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;files in a folder you pick&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Baton, desktop&lt;/td&gt;
&lt;td&gt;no account; a free key, emailed to you, to send requests&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;YAML files in your git repository&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Baton's row needs its fine print. There's no account, but the desktop and browser builds won't send a request until you paste in a free key, which &lt;a href="https://baton.dudko.dev/#get-a-key" rel="noopener noreferrer"&gt;the site&lt;/a&gt; emails to the address you register with. Editing, importing and git sync work without the key. The App Store and Google Play builds need no key at all. The key is checked offline against a public key built into the app, so once it's in, nothing calls home. If "no sign-up of any kind" is the rule you're working under, Bruno or the signed-out Postman client fits it and Baton doesn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you're stuck offline today
&lt;/h2&gt;

&lt;p&gt;Three things that work without installing a new client or creating an account.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Paste a curl command.&lt;/strong&gt; Postman's staff suggested this in the thread: paste a curl command into the address bar of the lightweight client and it builds the request. It covers one request at a time, nothing more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Run the exported collection with Newman.&lt;/strong&gt; If you can still get a v2.1 export of the collection, the open-source Newman runner takes it with no account. We ran the public &lt;a href="https://github.com/DannyDainton/All-Things-Postman/tree/master/Collections" rel="noopener noreferrer"&gt;Restful Booker collection&lt;/a&gt; with its environment file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx newman@6.2.3 run Restful_Booker_Collection.postman_collection.json \
  -e Restful_Booker_Environment.postman_environment.json \
  --folder &lt;span class="s2"&gt;"Health Check"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;❏ Health Check
↳ Ping the API
  GET https://restful-booker.herokuapp.com/ping [201 Created, 751B, 533ms]
  ✓  Status code is 201
  ✓  Content-Type header is correct
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's a runner, not an editor. You still need something else to change the requests.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Postman CLI on a local file.&lt;/strong&gt; Postman's &lt;a href="https://learning.postman.com/docs/postman-cli/postman-cli-authenticate-and-configure/" rel="noopener noreferrer"&gt;CLI docs&lt;/a&gt; say a command given a local path "reads or writes the element on disk. No authentication is required." Same limitation as Newman: it runs collections, you don't edit them there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Moving the collection out: what an import keeps
&lt;/h2&gt;

&lt;p&gt;The longer fix is a client that keeps collections as local files. One user in the Postman thread did exactly that: exported to v2.1 JSON and loaded it into Insomnia's Scratch Pad. The catch is that an import is a translation, and translations lose things. So we took two public Postman v2.1 collections and imported each into Baton's &lt;a href="https://baton.dudko.dev/demo" rel="noopener noreferrer"&gt;browser demo&lt;/a&gt; and into Bruno with its CLI, &lt;code&gt;@usebruno/cli&lt;/code&gt; 4.4.0, on 30 November 2026.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/DannyDainton/All-Things-Postman/tree/master/Collections" rel="noopener noreferrer"&gt;Restful Booker&lt;/a&gt;: 15 requests in 4 folders, a separate environment file, and Postman test scripts on every request.&lt;/li&gt;
&lt;li&gt;DocuSign's &lt;a href="https://github.com/docusign/postman-collections/blob/master/assets/connected-fields-collection.json" rel="noopener noreferrer"&gt;Connected Fields collection&lt;/a&gt; (MIT): 9 requests in 5 folders, OAuth 2.0 set on the whole collection, 11 collection variables, and heavy pre-request scripting for the auth setup.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In Baton it's the plus button, then &lt;em&gt;Import OpenAPI / Postman…&lt;/em&gt;, then paste or pick the file. In Bruno:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @usebruno/cli@4.4.0 import postman \
  -s Restful_Booker_Collection.postman_collection.json -o ./restful-booker
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Baton&lt;/th&gt;
&lt;th&gt;Bruno CLI 4.4.0&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Requests and folders&lt;/td&gt;
&lt;td&gt;all of them&lt;/td&gt;
&lt;td&gt;all of them&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Method, URL, headers, body&lt;/td&gt;
&lt;td&gt;kept&lt;/td&gt;
&lt;td&gt;kept&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Collection variables&lt;/td&gt;
&lt;td&gt;kept&lt;/td&gt;
&lt;td&gt;kept&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Postman environment file&lt;/td&gt;
&lt;td&gt;imported as an environment&lt;/td&gt;
&lt;td&gt;not tested&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Basic auth on a request&lt;/td&gt;
&lt;td&gt;kept&lt;/td&gt;
&lt;td&gt;kept&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OAuth 2.0 set on the collection&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;not carried over&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;kept&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;pm.*&lt;/code&gt; test and pre-request scripts&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;dropped, with a count&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;translated to Bruno's &lt;code&gt;bru.*&lt;/code&gt; API&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;URL stored as parts, with no &lt;code&gt;raw&lt;/code&gt; string&lt;/td&gt;
&lt;td&gt;host dropped&lt;/td&gt;
&lt;td&gt;host kept, wrong scheme added&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Body with Windows line endings&lt;/td&gt;
&lt;td&gt;one escaped line&lt;/td&gt;
&lt;td&gt;one escaped line&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The scripts row is the biggest gap. Baton's import ended with this message, for Restful Booker:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Imported "Restful_Booker_Collection" — 15 request(s). 15 request script(s) skipped — Postman pm.* scripts are not portable to the baton.* API.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Baton's &lt;a href="https://baton.dudko.dev/manual/desktop/collections" rel="noopener noreferrer"&gt;manual&lt;/a&gt; says this is deliberate: scripts written for another client's API "are counted and left out". Deliberate or not, the effect is the same. Restful Booker's "Dynamically create a new booking" request fills seven body variables from a pre-request script. In Baton those seven stay unresolved until you rewrite the script, which is what the cover picture shows. Bruno rewrote the same script for you, and turned Postman's ping test into this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Status code is 201"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getStatus&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;equal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;201&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If your collection leans on scripts, Bruno's import saves you real work and Baton's doesn't. Rewriting for Baton means mapping &lt;code&gt;pm.test&lt;/code&gt; to &lt;code&gt;baton.test&lt;/code&gt;, &lt;code&gt;pm.response&lt;/code&gt; to &lt;code&gt;baton.response&lt;/code&gt;, and &lt;code&gt;pm.environment.set&lt;/code&gt; to &lt;code&gt;baton.env.set&lt;/code&gt;. That's mechanical, but you do it by hand.&lt;/p&gt;

&lt;p&gt;The collection-level OAuth 2.0 is the second loss. Bruno put the whole flow (authorization URL, token URL, client id and secret as variables) on the collection. Baton's collection file came out with the variables and no auth block, so you set it up again in the collection settings.&lt;/p&gt;

&lt;p&gt;Two failures hit both tools. DocuSign's file stores URLs as host and path parts with no &lt;code&gt;raw&lt;/code&gt; string. Baton kept the path and dropped &lt;code&gt;{{authServer}}&lt;/code&gt;, leaving &lt;code&gt;url: oauth/token&lt;/code&gt;. Bruno kept the host but wrote &lt;code&gt;http://{{authServer}}/oauth/token&lt;/code&gt;, and that variable already starts with &lt;code&gt;https://&lt;/code&gt;. Check your URLs after importing a generated collection.&lt;/p&gt;

&lt;p&gt;And a fix you can apply before importing. Restful Booker's bodies use Windows line endings, and both tools wrote them as a single escaped string full of &lt;code&gt;\r\n&lt;/code&gt;. That's unreadable in a diff. Normalise the file first:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sed -i &lt;span class="s1"&gt;'s/\\r\\n/\\n/g'&lt;/span&gt; Restful_Booker_Collection.postman_collection.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Re-imported after that, Baton wrote the same bodies as ordinary multi-line YAML blocks. One cosmetic thing: Baton's sidebar listed the four folders alphabetically rather than in Postman's order.&lt;/p&gt;

&lt;h2&gt;
  
  
  What lands on your disk
&lt;/h2&gt;

&lt;p&gt;This is what Baton wrote for the ping request and the environment:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# collections/restful-booker-collection/health-check/ping-the-api.req.yaml
&lt;/span&gt;&lt;span class="na"&gt;format&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;0000PMK96B6Z96MQ60B0GA57AB&lt;/span&gt;
&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Ping the API&lt;/span&gt;
&lt;span class="na"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;GET&lt;/span&gt;
&lt;span class="na"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"{{baseURL}}/ping"&lt;/span&gt;
&lt;span class="na"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;text&lt;/span&gt;
  &lt;span class="na"&gt;text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# environments/restful-booker-environment.env.yaml
&lt;/span&gt;&lt;span class="na"&gt;format&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;restful-booker-environment&lt;/span&gt;
&lt;span class="na"&gt;variables&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;baseURL&lt;/span&gt;
    &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;https://restful-booker.herokuapp.com&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On the desktop builds that's a folder on your machine, and the app works with no connection. Committing works offline too, since the desktop builds use git directly. Push and pull need a route to your git host, whenever you have one. The browser build needs baton.dudko.dev to load, so it isn't an offline option.&lt;/p&gt;

&lt;p&gt;Once the files are in git, the questions change. We've covered &lt;a href="https://baton.dudko.dev/blog/postman-collection-git-diff" rel="noopener noreferrer"&gt;what a one-line change looks like in a diff&lt;/a&gt;, Postman export against Baton, and &lt;a href="https://baton.dudko.dev/blog/api-collection-secrets-in-git" rel="noopener noreferrer"&gt;where API keys go&lt;/a&gt; when the collection is in a repository. When you import a Postman environment, values Postman marked as secret don't go into the file: Baton writes the name and keeps the value in the device's secure store, &lt;a href="https://baton.dudko.dev/manual/desktop/collections" rel="noopener noreferrer"&gt;per its manual&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Baton is the wrong pick
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You want no sign-up at all.&lt;/strong&gt; Sending a request in Baton's desktop or browser build needs the emailed key. Bruno needs nothing. Neither does Postman's lightweight client, if single requests are enough.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your collection runs on scripts.&lt;/strong&gt; Bruno translates &lt;code&gt;pm.*&lt;/code&gt; scripts on import. Baton drops them and tells you how many.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You use gRPC, MQTT or Socket.IO.&lt;/strong&gt; Baton does REST, GraphQL and WebSocket. Postman's lightweight client covers all six of its types signed out, and Bruno supports gRPC.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It's for work.&lt;/strong&gt; Baton's free licence covers personal, non-commercial use only. Inside a company you write to the author for a licence. Bruno's &lt;a href="https://www.usebruno.com/pricing" rel="noopener noreferrer"&gt;open-source edition&lt;/a&gt; is $0, and the paid tiers start at $6 per user per month, billed annually.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You need Postman's platform.&lt;/strong&gt; Monitors, mocks in the cloud, workspaces shared across a large organisation. A free Postman account with Local View keeps the files local and still gives you those. We compared the wider field in &lt;a href="https://baton.dudko.dev/blog/baton-vs-bruno-vs-postman" rel="noopener noreferrer"&gt;Baton vs Bruno vs Yaak vs Postman&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Pick by the situation
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;No account of any kind, just fire requests: Postman signed out, or curl.&lt;/li&gt;
&lt;li&gt;No account, collections as files, scripts carried over: Bruno.&lt;/li&gt;
&lt;li&gt;An account is fine, the cloud copy was the worry: Postman 12 with Local View.&lt;/li&gt;
&lt;li&gt;Collections as YAML in your own repo, offline on the desktop, on a phone too, and you'll rewrite the scripts: Baton. The &lt;a href="https://baton.dudko.dev/demo" rel="noopener noreferrer"&gt;demo&lt;/a&gt; runs in the browser with nothing to install, so you can import your own export into it and read the result before you decide.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://baton.dudko.dev/blog/postman-offline-without-account" rel="noopener noreferrer"&gt;https://baton.dudko.dev/blog/postman-offline-without-account&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>postman</category>
      <category>api</category>
      <category>offline</category>
      <category>testing</category>
    </item>
    <item>
      <title>A PDF table that spans pages comes out as one Markdown table per page. Merging it back</title>
      <dc:creator>Dudko Development</dc:creator>
      <pubDate>Mon, 30 Nov 2026 16:25:51 +0000</pubDate>
      <link>https://dev.to/dudko-dev/a-pdf-table-that-spans-pages-comes-out-as-one-markdown-table-per-page-merging-it-back-e0d</link>
      <guid>https://dev.to/dudko-dev/a-pdf-table-that-spans-pages-comes-out-as-one-markdown-table-per-page-merging-it-back-e0d</guid>
      <description>&lt;p&gt;A 90-row table printed to PDF lands on three pages. Convert it to Markdown and you get three tables, each with its own header row, or worse, with row 34 sitting in the header slot because page 2 didn't repeat the header. Chunk that for retrieval and each chunk holds a third of the table, two of them with column names that aren't column names.&lt;/p&gt;

&lt;p&gt;People keep asking for the fix. On docling, &lt;a href="https://github.com/docling-project/docling/issues/2976" rel="noopener noreferrer"&gt;"Continued table across pages is split into multiple tables"&lt;/a&gt; is open with 11 comments and a &lt;code&gt;priority:medium&lt;/code&gt; label; the expected result in it is "The full table (including rows from both pages) should be merged into a single structured table." An older docling issue proposes &lt;a href="https://github.com/docling-project/docling/issues/2060" rel="noopener noreferrer"&gt;merging with an LLM&lt;/a&gt;, because "tables that are visually contiguous get split during conversion". Both were active as of Nov 16, 2026. On pymupdf4llm the maintainer answered the same request by saying the library &lt;a href="https://github.com/pymupdf/pymupdf4llm/issues/250" rel="noopener noreferrer"&gt;can't recognise a continuation&lt;/a&gt; and that merging is post-processing (April 2025). Marker has the opposite complaint: it &lt;a href="https://github.com/datalab-to/marker/issues/608" rel="noopener noreferrer"&gt;merges tables on consecutive slides&lt;/a&gt; that should stay apart. And the Stack Overflow question &lt;a href="https://stackoverflow.com/questions/52234696/extracting-tables-spanning-to-multiple-pages" rel="noopener noreferrer"&gt;"Extracting tables spanning to multiple pages"&lt;/a&gt; has 18,000 views.&lt;/p&gt;

&lt;p&gt;So I ran three converters on tables that cross pages: pdf2md (the one we make), markitdown and pymupdf4llm. None of them merges. pdf2md has a worse problem on one kind of table, and on the real document below it lost to markitdown completely.&lt;/p&gt;

&lt;h2&gt;
  
  
  The test
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Fixtures.&lt;/strong&gt; Nine generated PDFs, each with a numbered &lt;code&gt;Row&lt;/code&gt; column so every row can be counted:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;six from reportlab: a 4-column parts list, 70 rows over 3 pages, ruled or plain, header repeated on each page or not, plus one file with two genuinely separate tables on two pages, which must stay two;&lt;/li&gt;
&lt;li&gt;three printed by Chromium with Playwright's &lt;code&gt;page.pdf()&lt;/code&gt; from an HTML table, 90 rows over 3 pages: header in &lt;code&gt;&amp;lt;thead&amp;gt;&lt;/code&gt; (Chromium repeats it on every page), header as an ordinary first row (printed once), and a packed, left-aligned version.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;A real document.&lt;/strong&gt; &lt;a href="https://www.irs.gov/pub/irs-pdf/p15t.pdf" rel="noopener noreferrer"&gt;IRS Publication 15-T (2026)&lt;/a&gt;, pages 14 to 27: the wage-bracket tables for manual payroll. That's five tables (weekly, biweekly, semimonthly, monthly, daily), each two or three pages long, eight amounts per row, header repeated on every page. 799 rows in all. A row counts as intact only when all eight amounts sit in one Markdown table row, which is the only shape a reader or an LLM can use: "$785 to $795, married filing jointly, standard withholding: $17".&lt;/p&gt;

&lt;p&gt;Tools: &lt;code&gt;@dudko.dev/pdf-to-md-cli&lt;/code&gt; 0.3.6 with default options, markitdown 0.1.9 (&lt;code&gt;pip install 'markitdown[pdf]'&lt;/code&gt;), pymupdf4llm 2.2.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;p&gt;The page breaks first. On every fixture where a tool kept the columns, it produced one table per page:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;pdf2md 0.3.6&lt;/th&gt;
&lt;th&gt;markitdown 0.1.9&lt;/th&gt;
&lt;th&gt;pymupdf4llm 2.2&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;3-page table → Markdown tables&lt;/td&gt;
&lt;td&gt;3 (2 on two files)&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;header repeated in the PDF&lt;/td&gt;
&lt;td&gt;repeated in the Markdown&lt;/td&gt;
&lt;td&gt;repeated&lt;/td&gt;
&lt;td&gt;repeated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;no header on page 2&lt;/td&gt;
&lt;td&gt;first data row becomes the header&lt;/td&gt;
&lt;td&gt;same&lt;/td&gt;
&lt;td&gt;same&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;two separate tables stay two&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Nobody merges, and nobody has an option to. On the reportlab file with no repeated header, all three put &lt;code&gt;R027 | Part 027 bracket | …&lt;/code&gt; in the header row of the second table. pdf2md did join pages 2 and 3 of the packed left-aligned tables (both generators) and dropped the repeated header, but not pages 1 and 2. That's inconsistent, not a feature to rely on.&lt;/p&gt;

&lt;p&gt;Then the columns, which is where the tools really differ:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;rows with all 4 cells in one table row&lt;/th&gt;
&lt;th&gt;pdf2md&lt;/th&gt;
&lt;th&gt;markitdown&lt;/th&gt;
&lt;th&gt;pymupdf4llm&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;reportlab, numbers right-aligned, wide gap (4 files)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0 of 70&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;70 of 70&lt;/td&gt;
&lt;td&gt;70 of 70&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;reportlab, packed, left-aligned&lt;/td&gt;
&lt;td&gt;70 of 70&lt;/td&gt;
&lt;td&gt;0 of 70&lt;/td&gt;
&lt;td&gt;70 of 70&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Chromium, &lt;code&gt;&amp;lt;thead&amp;gt;&lt;/code&gt;, right-aligned&lt;/td&gt;
&lt;td&gt;90 of 90&lt;/td&gt;
&lt;td&gt;90 of 90&lt;/td&gt;
&lt;td&gt;90 of 90&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Chromium, header printed once&lt;/td&gt;
&lt;td&gt;90 of 90&lt;/td&gt;
&lt;td&gt;90 of 90&lt;/td&gt;
&lt;td&gt;90 of 90&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Chromium, packed, left-aligned&lt;/td&gt;
&lt;td&gt;90 of 90&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;no table&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;90 of 90&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;pdf2md cuts some tables into column strips.&lt;/strong&gt; On the four reportlab files with right-aligned numbers and a wide gap before them, every page came out as two 2-column tables, &lt;code&gt;Row | Item&lt;/code&gt; and then &lt;code&gt;Qty | Unit price&lt;/code&gt;: six tables for three pages, and no row with its quantity and price next to it. A one-page probe narrows it down a little. With 8 rows the table stays whole; at 12, 16, 20 and 25 rows it splits, whether the numbers are right-aligned, the gap is wide, or both. Only the packed, left-aligned layout stayed whole at every height. &lt;code&gt;--profile compact&lt;/code&gt; changes nothing. The Chromium-printed table with right-aligned numbers did &lt;em&gt;not&lt;/em&gt; split, so alignment alone isn't the trigger, and I can't tell you exactly what is.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;markitdown has its own failures on packed tables.&lt;/strong&gt; On the reportlab one it glued quantity and price into one cell (&lt;code&gt;4 36.70&lt;/code&gt;). On the Chromium one it found no table at all and wrote each column as a run of separate paragraphs.&lt;/p&gt;

&lt;h3&gt;
  
  
  The IRS tables
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;pdf2md&lt;/th&gt;
&lt;th&gt;markitdown&lt;/th&gt;
&lt;th&gt;pymupdf4llm&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;intact rows (all 8 amounts in one row)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0 of 799&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;799 of 799&lt;/td&gt;
&lt;td&gt;62 of 799&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Markdown tables for 14 pages (5 real tables)&lt;/td&gt;
&lt;td&gt;27&lt;/td&gt;
&lt;td&gt;42&lt;/td&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;table lines with &lt;code&gt;&amp;lt;br&amp;gt;&lt;/code&gt; (rows glued together)&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;609&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;dollar amounts in the output (PDF has 6,392)&lt;/td&gt;
&lt;td&gt;6,392&lt;/td&gt;
&lt;td&gt;6,392&lt;/td&gt;
&lt;td&gt;6,386&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;pdf2md read each page as two tables: a 3-column strip with the bracket and the first withholding column, and a 5-column strip with the other five amounts and no bracket at all. That's the picture at the top of this page. Every number is in the output, in the wrong shape: the second strip is five columns of dollar amounts with nothing to say which wage they belong to. For this document pdf2md's Markdown is unusable, and markitdown's is the one to take.&lt;/p&gt;

&lt;p&gt;markitdown kept every row whole. It also wrote the page furniture as tables (the IRS proof line "Page 14 of 71 … 15:14 - 3-Dec-2025", the column-group headings), which is why there are 42 tables. pymupdf4llm kept most of the numbers but packed several brackets into one cell with &lt;code&gt;&amp;lt;br&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;One more thing about pdf2md, and it matters for any script that works page by page: with &lt;code&gt;--page-markers&lt;/code&gt; a 3-page table got &lt;strong&gt;one&lt;/strong&gt; &lt;code&gt;&amp;lt;!-- Page N --&amp;gt;&lt;/code&gt; marker, for page 1. The two-page file with two separate tables got two. If you count markers to find page boundaries, a long table hides them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Merging the per-page tables
&lt;/h2&gt;

&lt;p&gt;When the converter kept the columns, the fix is mechanical. Walk the tables in order and append table B to table A when:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;they have the same number of columns;&lt;/li&gt;
&lt;li&gt;nothing stands between them, or only the same lines that stood above A (a running page head, compared with digits masked so "Page 2" equals "Page 3");&lt;/li&gt;
&lt;li&gt;B's header row is A's header again, which gets dropped, or B's "header" is a data row the converter promoted, which goes back into the body. To tell a promoted row from a different table's header, its cells must have the same kinds (number, text, text with digits) as A's last row.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The third check is what stops the script from gluing pdf2md's strips back together in the wrong order: &lt;code&gt;Qty | Unit price&lt;/code&gt; is words, and &lt;code&gt;R023 | Part 023 bracket&lt;/code&gt; isn't, so they stay apart. Condition 2 is what keeps marker's slide case apart: a heading between two tables blocks the merge.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;#!/usr/bin/env python3&lt;/span&gt;
&lt;span class="s2"&gt;"""Join Markdown tables that a PDF converter split at page breaks.
Usage: python merge_tables.py in.md &amp;gt; out.md   (what it merged goes to stderr)"""&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;cells&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"|"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"|"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;is_sep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kt"&gt;bool&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fullmatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"\|?\s*:?-{3,}:?\s*(\|\s*:?-{3,}:?\s*)*\|?"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;norm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="c1"&gt;# compare text, not padding, bold or page numbers&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;" "&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sub&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"\d+"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"#"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"*"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;cells&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;shape&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="c1"&gt;# per cell: empty, number, text with digits, or words only&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;one&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"*"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fullmatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"[-+$€£(]*[\d.,]+%?\)?"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"n"&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"a9"&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"\d"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="s2"&gt;"a"&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nf"&gt;one&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;cells&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;blocks&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;md&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;table&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;md&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;splitlines&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;lstrip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startswith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"|"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;table&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;table&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"kind"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"table"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"lines"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;table&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;table&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"lines"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;rstrip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="n"&gt;table&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fullmatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"\s*&amp;lt;!--.*--&amp;gt;\s*"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;  &lt;span class="c1"&gt;# blank lines and page markers separate nothing&lt;/span&gt;
        &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"kind"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"lines"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;rstrip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;key&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;block&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;" / "&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;norm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;l&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;block&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"kind"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"table"&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sub&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"\d+"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"#"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;l&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                      &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;l&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;block&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"lines"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;merge&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;md&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;log&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;bl&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;blocks&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;md&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;   &lt;span class="c1"&gt;# blocks after merging&lt;/span&gt;
    &lt;span class="n"&gt;head&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;     &lt;span class="c1"&gt;# id(table in result) -&amp;gt; index in bl where its chain began&lt;/span&gt;
    &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
    &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bl&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;bl&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"kind"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="s2"&gt;"table"&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"lines"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="nf"&gt;is_sep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"lines"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="c1"&gt;# the last table already in result, and what lies between it and b&lt;/span&gt;
        &lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
        &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"kind"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="s2"&gt;"table"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="o"&gt;-=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
        &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;
        &lt;span class="n"&gt;gap&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;cells&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"lines"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;cells&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"lines"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;head&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;id&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;above&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;bl&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;gap&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;gap&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nf"&gt;key&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;g&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;gap&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nf"&gt;key&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;g&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;above&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"lines"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
                &lt;span class="n"&gt;same_header&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;norm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"lines"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="nf"&gt;norm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"lines"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="c1"&gt;# not the same header: join only if B's first row looks like A's rows&lt;/span&gt;
                &lt;span class="n"&gt;promoted&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;same_header&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"lines"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; \
                    &lt;span class="nf"&gt;shape&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"lines"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="nf"&gt;shape&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"lines"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;same_header&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;promoted&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;promoted&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                        &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"lines"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt;
                    &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"lines"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;extend&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                    &lt;span class="k"&gt;del&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;  &lt;span class="c1"&gt;# the repeated page head goes too&lt;/span&gt;
                    &lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"joined {len(rows)} rows onto the table above"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                    &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
                    &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;head&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nb"&gt;id&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;
        &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"\n\n"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"\n"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"lines"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;"\n"&lt;/span&gt;


&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"__main__"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;encoding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"utf-8"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stdout&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;merge&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;log&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stderr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @dudko.dev/pdf-to-md-cli parts.pdf &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; parts.md     &lt;span class="c"&gt;# or: markitdown parts.pdf &amp;gt; parts.md&lt;/span&gt;
python merge_tables.py parts.md &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; parts.merged.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It rewrites the whole file with one blank line between blocks, so run it on converter output, not on hand-edited Markdown you care about the spacing of.&lt;/p&gt;

&lt;p&gt;What it did, measured on the same outputs:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;after &lt;code&gt;merge_tables.py&lt;/code&gt;
&lt;/th&gt;
&lt;th&gt;pdf2md&lt;/th&gt;
&lt;th&gt;markitdown&lt;/th&gt;
&lt;th&gt;pymupdf4llm&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;fixtures where the columns survived&lt;/td&gt;
&lt;td&gt;1 table each, every row in order&lt;/td&gt;
&lt;td&gt;1 table each&lt;/td&gt;
&lt;td&gt;1 table each&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;two separate tables&lt;/td&gt;
&lt;td&gt;still 2&lt;/td&gt;
&lt;td&gt;still 2&lt;/td&gt;
&lt;td&gt;still 2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;pdf2md's column strips&lt;/td&gt;
&lt;td&gt;left alone (6 stay 6)&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;IRS pages, 5 real tables&lt;/td&gt;
&lt;td&gt;27 (no joins)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;42 (no joins)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;13 (one join)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On the fixtures it does the job, for every tool, including the pages where the first data row had been promoted to header. On the IRS output it does almost nothing, and the reason is worth knowing. markitdown's table for page 14 has 9 columns and the one for page 15 has 12, with empty spacer columns in different places, and the page footer ("14 … Publication 15-T (2026)") is a row inside the table. The column count check refuses, correctly: a Markdown-level merge can only join tables that came out the same shape. Real documents often don't.&lt;/p&gt;

&lt;h2&gt;
  
  
  When the table is the point: read it from the PDF
&lt;/h2&gt;

&lt;p&gt;For a table like the IRS one, where every row has a known shape, I'd skip Markdown conversion for those pages and read the rows from the PDF directly. pdfplumber's text extraction keeps each bracket on one line. Loop over the pages, collect the lines that match the row shape, start a new table when the section heading changes, and check that nothing fell out at a page break. Here the brackets are contiguous, so each row's "at least" has to equal the previous row's "but less than":&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;#!/usr/bin/env python3&lt;/span&gt;
&lt;span class="s2"&gt;"""The wage-bracket tables of IRS Publication 15-T as Markdown, one table per
payroll period, however many pages each one runs over.
Usage: python wage_tables.py p15t.pdf [first_page last_page] &amp;gt; tables.md"""&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;pdfplumber&lt;/span&gt;

&lt;span class="no"&gt;AMT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"\$[\d,]+(?:\.\d\d)?"&lt;/span&gt;
&lt;span class="no"&gt;ROW&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rf&lt;/span&gt;&lt;span class="s2"&gt;"(?:{AMT} ){{7}}{AMT}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;          &lt;span class="c1"&gt;# a bracket: 8 amounts&lt;/span&gt;
&lt;span class="no"&gt;PERIOD&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"^(\w+) Payroll Period$"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;M&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="no"&gt;HEAD&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"At least"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"But less than"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"MFJ standard"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"MFJ Step 2 checkbox"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"HoH standard"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"HoH Step 2 checkbox"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"Single/MFS standard"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Single/MFS Step 2 checkbox"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pdf_file&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;first&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;last&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;tables&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;  &lt;span class="c1"&gt;# period name -&amp;gt; rows, in document order&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;pdfplumber&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pdf_file&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;enumerate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;first&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;last&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;first&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;extract_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;
            &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;PERIOD&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;continue&lt;/span&gt;
            &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tables&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setdefault&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;group&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;splitlines&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="no"&gt;ROW&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fullmatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                    &lt;span class="k"&gt;continue&lt;/span&gt;
                &lt;span class="n"&gt;cells&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="c1"&gt;# brackets are contiguous: this row starts where the last one ended&lt;/span&gt;
                &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="n"&gt;cells&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"page {n}: gap between {rows[-1][1]} and {cells[0]}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stderr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cells&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;tables&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;markdown&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tables&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;period&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;tables&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;items&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"## {period.capitalize()} payroll period\n"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"| "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;" | "&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;HEAD&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;" |"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"|"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;"---|"&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;HEAD&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"| "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;" | "&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;" |"&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"\n"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"__main__"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;pages&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;tables&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;period&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;tables&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;items&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{period}: {len(rows)} rows"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stderr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stdout&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;markdown&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tables&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install pdfplumber
curl -sSLO https://www.irs.gov/pub/irs-pdf/p15t.pdf
python wage_tables.py p15t.pdf 14 27 &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; wage-tables.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Result: five tables (178, 178, 184, 185 and 74 rows), 799 of 799 rows intact, one header each, and no gap reported at any page break. It's specific to this document, and that's the point: when you know the row shape, a 40-line script beats any general converter, ours included. The same loop works for bank statements and price lists with a different &lt;code&gt;ROW&lt;/code&gt; pattern and a different continuity check (a running balance, a sorted SKU).&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Multi-page tables in mostly-prose documents&lt;/strong&gt; (reports, contracts with schedules): convert with whatever handles the prose well, then run &lt;code&gt;merge_tables.py&lt;/code&gt;. It's cheap, it leaves separate tables alone, and it tells you on stderr what it joined.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Wide numeric tables over many pages&lt;/strong&gt; (tax tables, statements, rate cards): don't use pdf2md for those pages today. On the IRS document markitdown kept every row and pdf2md kept none. Better still, read the rows with pdfplumber as above, and convert the prose around them with whichever tool you like.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check before you trust it.&lt;/strong&gt; A cheap test on any converter's output: count the tables per page and their columns. If a page has two tables whose column counts add up to the header you expected, the table was cut into strips, and no merge after the fact will put it back.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;pdf2md has no table-merging option, and these measurements are of its npm CLI. The same parser runs in the browser at &lt;a href="https://pdf2md.dudko.dev/app/" rel="noopener noreferrer"&gt;pdf2md.dudko.dev/app&lt;/a&gt;, where nothing is uploaded, and over an &lt;a href="https://pdf2md.dudko.dev/api" rel="noopener noreferrer"&gt;HTTP API&lt;/a&gt;; I didn't run these files through the API. pdf2md does no OCR, so a scanned table needs OCR first (&lt;a href="https://pdf2md.dudko.dev/blog/which-pdf-pages-need-ocr" rel="noopener noreferrer"&gt;which pages need it&lt;/a&gt;). The packages are free for noncommercial use under PolyForm Noncommercial 1.0.0, with a 32-day trial for evaluating at work.&lt;/p&gt;

&lt;h2&gt;
  
  
  The HTML fixture
&lt;/h2&gt;

&lt;p&gt;The Chromium-printed tables come from this script. &lt;code&gt;npm i playwright &amp;amp;&amp;amp; npx playwright install chromium&lt;/code&gt;, then &lt;code&gt;node make_html_fixture.mjs out&lt;/code&gt; writes the three PDFs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// make_html_fixture.mjs: a 90-row table printed to PDF by Chromium, three ways&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;chromium&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'playwright'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;mkdirSync&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'node:fs'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nf"&gt;mkdirSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;recursive&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Array&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;90&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sb"&gt;`R${String(i).padStart(3, '0')}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sb"&gt;`Part ${String(i).padStart(3, '0')} bracket`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mf"&gt;3.17&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;90&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toFixed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;head&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'Row'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Item'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Qty'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Unit price'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;tr&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tag&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'td'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="sb"&gt;`&amp;lt;tr&amp;gt;${r.map((c, j) =&amp;gt; `&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;${tag}${j &amp;gt;= 2 ? ' class="n"' : ''}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nv"&gt;${c}&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nv"&gt;${tag}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="sb"&gt;`).join('')}&amp;lt;/tr&amp;gt;`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;css&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;align&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="sb"&gt;`body{font:11pt Helvetica,Arial,sans-serif;margin:0}
table{border-collapse:collapse;width:${width}} td,th{border:1px solid #444;padding:4px 8px;text-align:left}
th{font-weight:bold} .n{text-align:${align}}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;variants&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;html_thead_right&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;thead&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;align&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'right'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'100%'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;        &lt;span class="c1"&gt;// header repeats on every page&lt;/span&gt;
  &lt;span class="n"&gt;html_nothead_right&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;thead&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;align&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'right'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'100%'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;     &lt;span class="c1"&gt;// header printed once&lt;/span&gt;
  &lt;span class="n"&gt;html_thead_left_packed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;thead&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;align&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'left'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'auto'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;browser&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;chromium&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;launch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;browser&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;newPage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nb"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;entries&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;variants&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;thead&lt;/span&gt;
    &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="sb"&gt;`&amp;lt;thead&amp;gt;${tr(head, 'th')}&amp;lt;/thead&amp;gt;&amp;lt;tbody&amp;gt;${rows.map((r) =&amp;gt; tr(r)).join('')}&amp;lt;/tbody&amp;gt;`&lt;/span&gt;
    &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`&amp;lt;tbody&amp;gt;${tr(head, 'th')}${rows.map((r) =&amp;gt; tr(r)).join('')}&amp;lt;/tbody&amp;gt;`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setContent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`&amp;lt;!doctype html&amp;gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;meta charset="utf-8"&amp;gt;&amp;lt;style&amp;gt;${css(v.align, v.width)}&amp;lt;/style&amp;gt;&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;&amp;lt;h1&amp;gt;Parts list&amp;lt;/h1&amp;gt;&amp;lt;table&amp;gt;${body}&amp;lt;/table&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`${out}/${name}.pdf`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Letter'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;top&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'0.75in'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bottom&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'0.75in'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;left&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'0.75in'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;right&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'0.75in'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;browser&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://pdf2md.dudko.dev/blog/pdf-table-across-pages-markdown" rel="noopener noreferrer"&gt;https://pdf2md.dudko.dev/blog/pdf-table-across-pages-markdown&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>pdf</category>
      <category>markdown</category>
      <category>tables</category>
      <category>rag</category>
    </item>
    <item>
      <title>Pixel art to SVG: keep the squares</title>
      <dc:creator>Dudko Development</dc:creator>
      <pubDate>Mon, 30 Nov 2026 16:23:18 +0000</pubDate>
      <link>https://dev.to/dudko-dev/pixel-art-to-svg-keep-the-squares-3c4j</link>
      <guid>https://dev.to/dudko-dev/pixel-art-to-svg-keep-the-squares-3c4j</guid>
      <description>&lt;p&gt;You drew a sprite at 16 by 16, one pixel at a time. Now you need it as a vector: an icon that&lt;br&gt;
scales in a browser, a sticker file, a cut file. You run it through Image Trace or any tracer on&lt;br&gt;
default settings, and the squares come back as rounded blobs.&lt;/p&gt;

&lt;p&gt;People have been asking about this on Graphic Design Stack Exchange since at least 2015. One asker&lt;br&gt;
(&lt;a href="https://graphicdesign.stackexchange.com/questions/79207/is-there-a-way-to-convert-pixel-art-into-vector" rel="noopener noreferrer"&gt;17,043 views&lt;/a&gt;)&lt;br&gt;
had tried Illustrator's trace and found it "seems to do a rough job". Another&lt;br&gt;
(&lt;a href="https://graphicdesign.stackexchange.com/questions/57986/convert-png-pixel-arts-to-svg-without-tracing" rel="noopener noreferrer"&gt;15,127 views&lt;/a&gt;)&lt;br&gt;
listed exactly what they wanted: "Pixel by pixel conversion, no tracing", semi-transparent pixels&lt;br&gt;
kept, and a command line for batches if possible.&lt;/p&gt;

&lt;p&gt;Pixel art is a special case. A tracer is built to guess the smooth shape behind jagged pixels, but&lt;br&gt;
in pixel art the jagged pixels &lt;em&gt;are&lt;/em&gt; the shape. Below are three ways to get a vector out of it,&lt;br&gt;
including ours, tested on the same file, and where each one breaks.&lt;/p&gt;
&lt;h2&gt;
  
  
  The test file
&lt;/h2&gt;

&lt;p&gt;Everything here was measured on 30 November 2026 on one file, a 16×16 sprite drawn pixel by pixel:&lt;br&gt;
148 opaque pixels in four colours (outline &lt;code&gt;#1a1c2c&lt;/code&gt;, red&lt;br&gt;
&lt;code&gt;#b13e53&lt;/code&gt;, shadow &lt;code&gt;#5d275d&lt;/code&gt;, highlight &lt;code&gt;#f4f4f4&lt;/code&gt;) on a transparent background. Then the versions&lt;br&gt;
people actually get sent: the same sprite on white, the same sprite scaled up 8× with&lt;br&gt;
nearest-neighbour (128×128, which is how pixel art is usually posted), and that 8× file saved as a&lt;br&gt;
JPEG at quality 85.&lt;/p&gt;

&lt;p&gt;Every SVG was rendered back and compared with the source colour by colour, not judged by eye.&lt;/p&gt;
&lt;h2&gt;
  
  
  What a general tracer does to 16 pixels
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://potrace.sourceforge.net/" rel="noopener noreferrer"&gt;potrace&lt;/a&gt; is the classic open-source tracer and a good stand-in&lt;br&gt;
for "a tracer on default settings". It traces a single colour per run, so we gave it the sprite's&lt;br&gt;
silhouette: all 148 pixels in black.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa52eaq71a1243033d8ee.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa52eaq71a1243033d8ee.webp" alt="Three potrace results side by side: a rounded blob, an octagon, and a correct pixel staircase" width="800" height="301"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Defaults, 16 px source:&lt;/strong&gt; one closed curve of four Bézier segments. A rounded square. Rendered
at 128 px, 948 of 16,384 pixels came out wrong.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;-a 0&lt;/code&gt; (corners never smoothed), 16 px source:&lt;/strong&gt; straight lines, but an octagon (784 pixels wrong). potrace still
fits the best polygon through the staircase, and at this size the best polygon cuts every corner.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Defaults, on the 8× upscale:&lt;/strong&gt; the staircase came back exactly, 0 pixels wrong.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The third result is the trick one answer on the 2016 question suggests for Illustrator: scale the art&lt;br&gt;
up a lot first so the tracer sees big squares. It worked here. What it doesn't do is colour: potrace&lt;br&gt;
works in black and white, so a four-colour sprite means splitting it into four masks, tracing each, and&lt;br&gt;
stacking the results yourself.&lt;/p&gt;
&lt;h2&gt;
  
  
  A plain pixel-to-rectangle script
&lt;/h2&gt;

&lt;p&gt;The other route from those threads is no tracing at all: write one &lt;code&gt;&amp;lt;rect&amp;gt;&lt;/code&gt; per pixel. It's about&lt;br&gt;
twenty lines of Python with Pillow (below), and the most upvoted answer on the 2015 question does a version&lt;br&gt;
of it by modifying pixel2svg. Ours wrote 148 rectangles in 8,471 bytes. Every pixel is a rectangle&lt;br&gt;
in its exact colour, nothing merged or guessed, and it keeps alpha: a shadow row at 50% opacity&lt;br&gt;
came out as &lt;code&gt;fill-opacity="0.498"&lt;/code&gt; and rendered identical to the source on white. That last part&lt;br&gt;
is something the next section's tool doesn't do.&lt;/p&gt;

&lt;p&gt;It has one problem you can see in the cover picture. At sizes that aren't a whole multiple of the&lt;br&gt;
pixel grid (we tried 117 px and 200 px wide in Chromium), each edge two rectangles share is&lt;br&gt;
anti-aliased once per rectangle and a little background shows through. At 117 px, 1,157 pixels in&lt;br&gt;
the middle of flat colour areas came out lighter than they should. That's the faint grid on the&lt;br&gt;
left of the cover. A third question,&lt;br&gt;
&lt;a href="https://graphicdesign.stackexchange.com/questions/91819/illustrator-removing-white-borders-from-boxes-after-create-object-map" rel="noopener noreferrer"&gt;white borders between boxes&lt;/a&gt;&lt;br&gt;
(1,362 views), shows the same thing: the asker's exported rectangles sat edge to edge at fractional&lt;br&gt;
coordinates (&lt;code&gt;x="671.94" width="10.03"&lt;/code&gt;, the next one at &lt;code&gt;681.97&lt;/code&gt;), and the export still had white&lt;br&gt;
lines around every pixel.&lt;/p&gt;

&lt;p&gt;There is a fix for browsers: &lt;code&gt;shape-rendering="crispEdges"&lt;/code&gt; on the &lt;code&gt;&amp;lt;svg&amp;gt;&lt;/code&gt; element. With it, the&lt;br&gt;
same file at 117 px had no stray pixels inside flat areas. It's a rendering hint, though, so it&lt;br&gt;
helps where the file is displayed by something that honours it, and does nothing for a cutter or&lt;br&gt;
an editor that opens the paths.&lt;/p&gt;
&lt;h2&gt;
  
  
  Our pixel preset: merged squares, exact colours
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://vectorize.dudko.dev/" rel="noopener noreferrer"&gt;Vectorize&lt;/a&gt; has a preset for this case, &lt;code&gt;pixel&lt;/code&gt; on the command line&lt;br&gt;
and &lt;em&gt;Pixel art&lt;/em&gt; in the web app. It keeps the squares, but it merges same-coloured pixels that share&lt;br&gt;
an edge into one shape.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;16×16 source, measured 2026-11-30&lt;/th&gt;
&lt;th&gt;preset&lt;/th&gt;
&lt;th&gt;what the SVG holds&lt;/th&gt;
&lt;th&gt;pixels that differ&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;transparent PNG&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pixel&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;22 straight-edged paths, whole-number coordinates, the 4 exact colours, 1,422 bytes&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0 of 256&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;same sprite on white&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pixel&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;23 paths (the white ground is one more)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0 of 256&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;same sprite on white&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pixel --transparent&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;22 paths, no ground&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0 of 256&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;transparent PNG&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;logo&lt;/code&gt; (the default)&lt;/td&gt;
&lt;td&gt;12 paths, 14 curve segments, 9 gradient fills&lt;/td&gt;
&lt;td&gt;not pixel art any more&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The 97 red pixels are 4 shapes, not 97 rectangles, so there are no edges inside the red area to anti-alias.&lt;br&gt;
Rendered at 117 px and 200 px in Chromium, nothing inside a flat area was off. Where different colours&lt;br&gt;
meet, the browser still blends the boundary, as it does with any vector art.&lt;/p&gt;

&lt;p&gt;One thing to know if you cut the result: pixels that touch only at a corner stay separate shapes.&lt;br&gt;
In the file we measured, the 36 outline pixels came out as 16 separate outline paths, joined only at corner points.&lt;/p&gt;

&lt;p&gt;And don't leave it on the default preset. &lt;code&gt;logo&lt;/code&gt; treats a 16-pixel sprite like a blurry logo: it&lt;br&gt;
enlarges the image, smooths edges into curves and fills areas with gradients. Right for a logo&lt;br&gt;
grabbed from a web page, wrong here.&lt;/p&gt;
&lt;h2&gt;
  
  
  Scaled up 8×: still exact
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;128×128 nearest-neighbour PNG on white, measured 2026-11-30&lt;/th&gt;
&lt;th&gt;preset&lt;/th&gt;
&lt;th&gt;result&lt;/th&gt;
&lt;th&gt;pixels that differ&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pixel&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;23 paths, every coordinate a multiple of 8&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0 of 16,384&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;logo&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;8 paths, coordinates on half pixels&lt;/td&gt;
&lt;td&gt;5 of 16,384&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The 8× upscale gave the same 23 shapes as the native file, 8 units per cell. &lt;code&gt;logo&lt;/code&gt; gets close on a&lt;br&gt;
clean upscale but lands edges half a pixel off the grid.&lt;/p&gt;
&lt;h2&gt;
  
  
  The JPEG is where it goes wrong
&lt;/h2&gt;

&lt;p&gt;The 8× sprite saved as a JPEG measured 419 distinct colours in it, against 5 in the PNG. The &lt;code&gt;pixel&lt;/code&gt;&lt;br&gt;
preset keeps that colour noise faithfully:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;JPEG q85, 128×128, measured 2026-11-30&lt;/th&gt;
&lt;th&gt;result&lt;/th&gt;
&lt;th&gt;ink colours exact?&lt;/th&gt;
&lt;th&gt;pixels off, by shape*&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;-p pixel&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;611 paths, 32 colours, 42,351 bytes&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;-p pixel --colors 5&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;44 paths, 5 colours&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;none&lt;/strong&gt;: the outline came back &lt;code&gt;#2f1321&lt;/code&gt;, not &lt;code&gt;#1a1c2c&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;260&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;-p pixel --palette&lt;/code&gt; (4 inks + white)&lt;/td&gt;
&lt;td&gt;25 paths, the 5 exact colours&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;-p pixel --palette&lt;/code&gt; (4 inks, no white)&lt;/td&gt;
&lt;td&gt;25 paths, 4 colours&lt;/td&gt;
&lt;td&gt;the white ground was painted &lt;code&gt;#f4f4f4&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;6,917 (the ground)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;*after mapping each traced colour to the nearest source colour, so this column counts wrong shapes,&lt;br&gt;
not slightly wrong shades. The &lt;code&gt;--palette&lt;/code&gt; rows are compared as they are.&lt;/p&gt;

&lt;p&gt;So the shapes survive the JPEG and the colours don't. In the run we measured, capping the count with &lt;code&gt;--colors 5&lt;/code&gt; gave five&lt;br&gt;
colours, and every one of the 9,472 ink pixels had the wrong hex. Naming the colours with &lt;code&gt;--palette&lt;/code&gt;&lt;br&gt;
fixed it, as long as the background was in the list. Leave the white out and the ground gets painted&lt;br&gt;
in the nearest colour you did list.&lt;/p&gt;

&lt;p&gt;The cleanest result came from undoing the upscale first. Shrinking the JPEG back to one pixel per&lt;br&gt;
cell (&lt;code&gt;convert in.jpg -filter box -resize 16x16! cell.png&lt;/code&gt;) averages each 8×8 block. Traced with the&lt;br&gt;
same five-colour palette, that measured 23 paths and &lt;strong&gt;0 of 256 pixels different&lt;/strong&gt;, the same file as the&lt;br&gt;
original PNG. You need to know the cell size, and the grid has to start at the image's corner. A&lt;br&gt;
screenshot with a stray border won't line up.&lt;/p&gt;

&lt;p&gt;If you can get the original PNG, ask for it. It saves all of the above.&lt;/p&gt;
&lt;h2&gt;
  
  
  Where ours loses: semi-transparent pixels
&lt;/h2&gt;

&lt;p&gt;The 2015 asker's caveat was alpha. We added a shadow row at 50% opacity, then at 60%:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;shadow row&lt;/th&gt;
&lt;th&gt;
&lt;code&gt;pixel&lt;/code&gt; preset&lt;/th&gt;
&lt;th&gt;per-pixel script&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;50% opaque&lt;/td&gt;
&lt;td&gt;dropped (8 pixels missing)&lt;/td&gt;
&lt;td&gt;kept, &lt;code&gt;fill-opacity="0.498"&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;60% opaque&lt;/td&gt;
&lt;td&gt;drawn fully opaque&lt;/td&gt;
&lt;td&gt;kept, &lt;code&gt;fill-opacity="0.6"&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Our output has no opacity attribute at either level. Each pixel is drawn solid or left out. If your&lt;br&gt;
art depends on partial transparency (soft shadows, anti-aliased edges you want kept as they are),&lt;br&gt;
use the per-pixel script and add &lt;code&gt;crispEdges&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  Which one to use
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hard-edged sprite, a few flat colours, you want a clean file:&lt;/strong&gt; the &lt;code&gt;pixel&lt;/code&gt; preset. Exact colours,
few shapes, no seams inside flat areas.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Partial transparency matters:&lt;/strong&gt; one rectangle per pixel with &lt;code&gt;fill-opacity&lt;/code&gt;, plus
&lt;code&gt;shape-rendering="crispEdges"&lt;/code&gt; for display.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Single-colour art and you already use potrace:&lt;/strong&gt; upscale it 8× or more with nearest-neighbour
first. On the 16 px original it gives you the blob.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You want the sprite smoothed, not kept square:&lt;/strong&gt; Inkscape's Trace Bitmap has a &lt;em&gt;Pixel art&lt;/em&gt; tab
built on libdepixelize (the Kopf–Lischinski algorithm). It turns pixel art into smooth curves, or
with its Voronoi output reshapes cells so diagonal neighbours can share an edge, per
&lt;a href="https://inkscape.org/doc/tutorials/tracing-pixelart/tutorial-tracing-pixelart.html" rel="noopener noreferrer"&gt;Inkscape's tutorial&lt;/a&gt;.
Different goal from ours, and the tutorial notes the algorithm ignores the alpha channel.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Reproduce it
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm i -g @dudko.dev/vectorize-cli
vectorize sprite16.png -p pixel -f svg -o sprite.svg
vectorize sprite-on-white.png -p pixel --transparent -f svg -o sprite.svg
vectorize sprite-8x.jpg -p pixel --palette &lt;span class="s1"&gt;'#1a1c2c,#b13e53,#f4f4f4,#5d275d,#ffffff'&lt;/span&gt; -f svg -o sprite.svg
grep -c &lt;span class="s1"&gt;'&amp;lt;path'&lt;/span&gt; sprite.svg
grep -oE &lt;span class="s1"&gt;'fill="[^"]*"'&lt;/span&gt; sprite.svg &lt;span class="o"&gt;|&lt;/span&gt; sort &lt;span class="o"&gt;|&lt;/span&gt; uniq -c

&lt;span class="c"&gt;# potrace, black and white: silhouette at native size, then on an 8x upscale&lt;/span&gt;
convert sprite16.png -alpha extract -negate sil16.pbm
potrace -s sil16.pbm -o blob.svg
convert sil16.pbm -filter point -resize 800% sil128.pbm
potrace -s sil128.pbm -o squares.svg
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;And the per-pixel script, if partial alpha is what you need:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# rects.py in.png out.svg  (pip install pillow)&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="no"&gt;PIL&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Image&lt;/span&gt;

&lt;span class="n"&gt;img&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Image&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;convert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"RGBA"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;img&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;size&lt;/span&gt;
&lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s1"&gt;'&amp;lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 {w} {h}" '&lt;/span&gt;
       &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s1"&gt;'width="{w}" height="{h}" shape-rendering="crispEdges"&amp;gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;img&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getpixel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="n"&gt;op&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;255&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s1"&gt;' fill-opacity="{round(a / 255, 3)}"'&lt;/span&gt;
        &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s1"&gt;'&amp;lt;rect x="{x}" y="{y}" width="1" height="1" fill="#{r:02x}{g:02x}{b:02x}"{op}/&amp;gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;/svg&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"w"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"\n"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;"\n"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The web app is at &lt;a href="https://vectorize.dudko.dev/app/" rel="noopener noreferrer"&gt;https://vectorize.dudko.dev/app/&lt;/a&gt;, where the preset is called &lt;em&gt;Pixel art&lt;/em&gt;. These&lt;br&gt;
numbers are tuned outputs and may move in later releases.&lt;/p&gt;

&lt;p&gt;The command-line tool is free for non-commercial use under PolyForm Noncommercial 1.0.0. Using it in&lt;br&gt;
a business needs a licence: &lt;a href="https://vectorize.dudko.dev/licence/" rel="noopener noreferrer"&gt;https://vectorize.dudko.dev/licence/&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://vectorize.dudko.dev/blog/pixel-art-to-svg-without-blobs" rel="noopener noreferrer"&gt;https://vectorize.dudko.dev/blog/pixel-art-to-svg-without-blobs&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>svg</category>
      <category>pixelart</category>
      <category>potrace</category>
      <category>python</category>
    </item>
    <item>
      <title>"no pg_hba.conf entry for host ..., no encryption": what each sslmode actually does</title>
      <dc:creator>Dudko Development</dc:creator>
      <pubDate>Mon, 30 Nov 2026 16:22:24 +0000</pubDate>
      <link>https://dev.to/dudko-dev/no-pghbaconf-entry-for-host-no-encryption-what-each-sslmode-actually-does-4pc6</link>
      <guid>https://dev.to/dudko-dev/no-pghbaconf-entry-for-host-no-encryption-what-each-sslmode-actually-does-4pc6</guid>
      <description>&lt;p&gt;The error looks like a firewall problem, or a permissions one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;FATAL:  no pg_hba.conf entry for host "203.0.113.7", user "app", database "app", no encryption
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Usually it's neither. Read the last two words. The server is telling you the connection arrived without TLS, and that it has no rule letting a plain-text connection in. Servers up to PostgreSQL 13 print &lt;code&gt;SSL off&lt;/code&gt; in the same place; from 14 on it says &lt;code&gt;no encryption&lt;/code&gt; (we started a 12, a 13, a 14 and a 16 to check).&lt;/p&gt;

&lt;p&gt;Hosted Postgres made this common. AWS's documentation says &lt;a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/PostgreSQL.Concepts.General.SSL.html" rel="noopener noreferrer"&gt;&lt;code&gt;rds.force_ssl&lt;/code&gt; defaults to on for RDS for PostgreSQL 15 and later&lt;/a&gt;, and the rejection it shows for a non-TLS connection is this same message, in its &lt;code&gt;SSL off&lt;/code&gt; form. The &lt;a href="https://stackoverflow.com/questions/1406025/no-pg-hba-conf-entry-for-host" rel="noopener noreferrer"&gt;original Stack Overflow question&lt;/a&gt; is past 600,000 views. On GitHub, 43 issues opened since August 1, 2026 quote the error together with "no encryption" (GitHub search, November 30, 2026).&lt;/p&gt;

&lt;p&gt;So the fix is "connect with TLS". Which setting does that depends on the client, though, and the same &lt;code&gt;sslmode=require&lt;/code&gt; means different things in psql and in Node.js. That difference is behind the &lt;em&gt;second&lt;/em&gt; error people hit, the one right after they fix the first.&lt;/p&gt;

&lt;p&gt;We built a PostgreSQL server that accepts TLS connections only, the way a managed service does, and tried every sslmode against it from psql (libpq) and from node-postgres. Then we switched TLS off on the server and ran the psql cases again.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Server: PostgreSQL 16.15, &lt;code&gt;ssl = on&lt;/code&gt;, and a &lt;code&gt;pg_hba.conf&lt;/code&gt; with &lt;code&gt;hostssl&lt;/code&gt; lines for the user &lt;code&gt;postgres&lt;/code&gt; and nothing else. There is no rule at all for a non-TLS TCP connection.&lt;/li&gt;
&lt;li&gt;Certificate: signed by a private CA we created, valid for the names &lt;code&gt;localhost&lt;/code&gt; and &lt;code&gt;db.example.com&lt;/code&gt;. No IP address in it.&lt;/li&gt;
&lt;li&gt;A second, unrelated CA plays "the wrong root certificate", which is what a client has when someone handed it the wrong file.&lt;/li&gt;
&lt;li&gt;Each case records the exact error, or, if it connected, the TLS version from &lt;code&gt;pg_stat_ssl&lt;/code&gt; for its own session.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Clients: psql 16.15 (libpq), and node-postgres (&lt;code&gt;pg&lt;/code&gt; 8.23.1, &lt;code&gt;pg-connection-string&lt;/code&gt; 2.14.1) on Node 22.23.5. We ran it twice on November 30, 2026 with identical results. The psql cases also ran against PostgreSQL 18.7 and 19.0 with their own psql, and every row came out the same. The script is &lt;a href="https://tabellum.dudko.dev/blog/media/postgres-no-encryption-sslmode/measure.sh" rel="noopener noreferrer"&gt;&lt;code&gt;measure.sh&lt;/code&gt;&lt;/a&gt;; it needs a PostgreSQL install and openssl, or just Docker.&lt;/p&gt;

&lt;h2&gt;
  
  
  psql and libpq
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;sslmode (and anything else set)&lt;/th&gt;
&lt;th&gt;against a TLS-only server&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;disable&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;no pg_hba.conf entry ... no encryption&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;allow&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;connected, TLS 1.3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;prefer&lt;/code&gt; (the default)&lt;/td&gt;
&lt;td&gt;connected, TLS 1.3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;require&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;connected, TLS 1.3, certificate &lt;strong&gt;not&lt;/strong&gt; checked&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;require&lt;/code&gt; + &lt;code&gt;sslrootcert=&lt;/code&gt; the right CA&lt;/td&gt;
&lt;td&gt;connected&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;require&lt;/code&gt; + &lt;code&gt;sslrootcert=&lt;/code&gt; the wrong CA&lt;/td&gt;
&lt;td&gt;&lt;code&gt;SSL error: certificate verify failed&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;verify-ca&lt;/code&gt;, no root certificate file&lt;/td&gt;
&lt;td&gt;&lt;code&gt;root certificate file "..." does not exist&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;verify-ca&lt;/code&gt;, right CA&lt;/td&gt;
&lt;td&gt;connected&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;verify-ca&lt;/code&gt;, wrong CA&lt;/td&gt;
&lt;td&gt;&lt;code&gt;SSL error: certificate verify failed&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;verify-full&lt;/code&gt;, right CA, &lt;code&gt;host=localhost&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;connected&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;verify-full&lt;/code&gt;, right CA, &lt;code&gt;host=127.0.0.1&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;server certificate for "localhost" (and 2 other names) does not match host name "127.0.0.1"&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;verify-full&lt;/code&gt;, &lt;code&gt;host=db.example.com hostaddr=127.0.0.1&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;connected&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;verify-full&lt;/code&gt;, &lt;code&gt;sslrootcert=system&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;SSL error: certificate verify failed&lt;/code&gt; (expected: our CA is private)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;require&lt;/code&gt;, as a user no &lt;code&gt;hostssl&lt;/code&gt; line names&lt;/td&gt;
&lt;td&gt;&lt;code&gt;no pg_hba.conf entry ... SSL encryption&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;What this tells you:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;With libpq, "no encryption" means something asked for it.&lt;/strong&gt; The default, &lt;code&gt;prefer&lt;/code&gt;, tries TLS first, and even &lt;code&gt;allow&lt;/code&gt; ends up on TLS once the server turns plain text away. If psql or another libpq-based tool shows this error, go looking for &lt;code&gt;sslmode=disable&lt;/code&gt;: in the connection string, in the &lt;code&gt;PGSSLMODE&lt;/code&gt; environment variable, or in a saved connection.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;require&lt;/code&gt; encrypts, but it doesn't check who's on the other end.&lt;/strong&gt; And if a root certificate file happens to be there, it quietly behaves like &lt;code&gt;verify-ca&lt;/code&gt;. The &lt;a href="https://www.postgresql.org/docs/16/libpq-ssl.html" rel="noopener noreferrer"&gt;libpq docs&lt;/a&gt; say that's kept "for backwards compatibility" and advise against relying on it. In practice it means the same &lt;code&gt;require&lt;/code&gt; connects on your laptop and fails on a colleague's machine that has a stale &lt;code&gt;~/.postgresql/root.crt&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;verify-full&lt;/code&gt; checks the host name you typed.&lt;/strong&gt; Connect by IP and the name check fails, even with the right CA. Through an SSH tunnel, &lt;code&gt;host&lt;/code&gt; is usually &lt;code&gt;localhost&lt;/code&gt;, which fails for the same reason. libpq has a way out that few people know about: set &lt;code&gt;host&lt;/code&gt; to the name on the certificate and &lt;code&gt;hostaddr&lt;/code&gt; to the address you actually connect to. The name is checked against &lt;code&gt;host&lt;/code&gt;; the packets go to &lt;code&gt;hostaddr&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;sslrootcert=system&lt;/code&gt;&lt;/strong&gt; (new in PostgreSQL 16) uses the operating system's trusted roots. That works when a provider's certificate chains to a public CA. It fails for a private one, as in our test. RDS signs with its own CAs, so there you download AWS's bundle and point &lt;code&gt;sslrootcert&lt;/code&gt; at the file.&lt;/p&gt;

&lt;p&gt;With TLS switched off on the server (&lt;code&gt;ssl = off&lt;/code&gt;, &lt;code&gt;host&lt;/code&gt; lines), &lt;code&gt;disable&lt;/code&gt;, &lt;code&gt;allow&lt;/code&gt; and &lt;code&gt;prefer&lt;/code&gt; connected without TLS, and every other mode failed with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;server does not support SSL, but SSL was required
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's the opposite problem, and it's fixed on the server. No client setting adds TLS to a server that doesn't offer it.&lt;/p&gt;

&lt;h2&gt;
  
  
  node-postgres
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;connection setup&lt;/th&gt;
&lt;th&gt;against the same server&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;no &lt;code&gt;sslmode&lt;/code&gt;, no &lt;code&gt;ssl&lt;/code&gt; option (the default)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;no pg_hba.conf entry ... no encryption&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;?sslmode=disable&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;no encryption&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;?sslmode=prefer&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;UNABLE_TO_VERIFY_LEAF_SIGNATURE&lt;/code&gt;, plus a SECURITY WARNING&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;?sslmode=require&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;UNABLE_TO_VERIFY_LEAF_SIGNATURE&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;?sslmode=verify-ca&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;UNABLE_TO_VERIFY_LEAF_SIGNATURE&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;?sslmode=no-verify&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;connected, TLS 1.3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;?sslmode=require&amp;amp;uselibpqcompat=true&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;connected, TLS 1.3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;ssl: { rejectUnauthorized: false }&lt;/code&gt;, no sslmode in the URL&lt;/td&gt;
&lt;td&gt;connected, TLS 1.3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;?sslmode=require&lt;/code&gt; &lt;strong&gt;and&lt;/strong&gt; &lt;code&gt;ssl: { rejectUnauthorized: false }&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;UNABLE_TO_VERIFY_LEAF_SIGNATURE&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;ssl: { ca }&lt;/code&gt;, host &lt;code&gt;localhost&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;connected&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;ssl: { ca }&lt;/code&gt;, host &lt;code&gt;127.0.0.1&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;ERR_TLS_CERT_ALTNAME_INVALID&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;?sslmode=verify-full&amp;amp;sslrootcert=&amp;lt;file&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;connected&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Three ways it differs from libpq.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The default is no TLS at all.&lt;/strong&gt; Where libpq's default would have connected, node-postgres's default gets the &lt;code&gt;no encryption&lt;/code&gt; rejection. Which is why the &lt;a href="https://stackoverflow.com/questions/25000183/node-js-postgresql-error-no-pg-hba-conf-entry-for-host" rel="noopener noreferrer"&gt;Node.js version of the question&lt;/a&gt; has its own 157,000 views.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;prefer&lt;/code&gt;, &lt;code&gt;require&lt;/code&gt; and &lt;code&gt;verify-ca&lt;/code&gt; in the URL all mean &lt;code&gt;verify-full&lt;/code&gt;.&lt;/strong&gt; pg 8.23.1 says so itself, in a warning printed on the first such connection: &lt;em&gt;"The SSL modes 'prefer', 'require', and 'verify-ca' are treated as aliases for 'verify-full'"&lt;/em&gt;, and it adds that pg 9 will switch to libpq's meaning. Until then, a &lt;code&gt;DATABASE_URL&lt;/code&gt; copied from a provider's dashboard with &lt;code&gt;sslmode=require&lt;/code&gt; on the end really does verify the certificate, and if Node doesn't trust the provider's CA, it fails. We got &lt;code&gt;unable to verify the first certificate&lt;/code&gt; because our server sends only its own certificate. A server that sends its CA along gives you &lt;code&gt;self-signed certificate in certificate chain&lt;/code&gt; instead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The URL wins over the code.&lt;/strong&gt; With &lt;code&gt;sslmode=require&lt;/code&gt; in the connection string, the &lt;code&gt;ssl: { rejectUnauthorized: false }&lt;/code&gt; passed right next to it was ignored, and the connection still failed. A Postgres MCP server &lt;a href="https://github.com/AINative-Studio/ainative-postgres-mcp/issues/4" rel="noopener noreferrer"&gt;ran into exactly this&lt;/a&gt; on November 16, 2026.&lt;/p&gt;

&lt;p&gt;What we'd do in Node: give the client the provider's CA, either as &lt;code&gt;ssl: { ca }&lt;/code&gt; or as &lt;code&gt;sslmode=verify-full&amp;amp;sslrootcert=&amp;lt;file&amp;gt;&lt;/code&gt;, and connect by the host name on the certificate. &lt;code&gt;sslmode=no-verify&lt;/code&gt;, or &lt;code&gt;rejectUnauthorized: false&lt;/code&gt; with no sslmode in the URL, gets you encryption without verification. That's what libpq's &lt;code&gt;require&lt;/code&gt; gives you. Fine as a decision. Not great as something you ended up with by accident while chasing an error.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reading the error
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;no pg_hba.conf entry ..., no encryption&lt;/code&gt; (or &lt;code&gt;SSL off&lt;/code&gt; on 13 and older): the client didn't use TLS. Turn it on in the client. A new password or a firewall rule won't change anything.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;no pg_hba.conf entry ..., SSL encryption&lt;/code&gt;: TLS worked, and there really is no rule for that user, database or address. Only whoever runs the server can add one. Our server printed exactly this for a user its &lt;code&gt;hostssl&lt;/code&gt; lines didn't name.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;server does not support SSL, but SSL was required&lt;/code&gt;: TLS is off on the server. Fix it there.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;certificate verify failed&lt;/code&gt;, &lt;code&gt;unable to verify the first certificate&lt;/code&gt;, &lt;code&gt;self-signed certificate in certificate chain&lt;/code&gt;: TLS works, but the client doesn't trust the CA. Give it the provider's CA file.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;does not match host name&lt;/code&gt;, &lt;code&gt;ERR_TLS_CERT_ALTNAME_INVALID&lt;/code&gt;: the CA is fine, but you connected by a name or IP that isn't on the certificate. Use the certificate's name, or &lt;code&gt;hostaddr&lt;/code&gt; with libpq.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  In Tabellum
&lt;/h2&gt;

&lt;p&gt;Tabellum, the database client this blog belongs to, has a TLS mode on its connection form. For a hosted database you pick the provider under &lt;strong&gt;Cloud preset&lt;/strong&gt;, which "fills in the port, TLS mode and driver settings the provider needs" (&lt;a href="https://tabellum.dudko.dev/manual/desktop/connections" rel="noopener noreferrer"&gt;user guide, §2.2&lt;/a&gt;). The same chapter uses the mode names &lt;code&gt;prefer&lt;/code&gt;, &lt;code&gt;require&lt;/code&gt; and &lt;code&gt;verify-full&lt;/code&gt;. A connection that can't connect "shows one line saying what failed and what to check — a refused port, a timeout, a wrong password or a TLS problem", and &lt;strong&gt;Copy details&lt;/strong&gt; copies the full message (§2.7). When it quotes the server, the last two words are the ones to read. SSH and WireGuard tunnels are built in (§2.9). Pasting a &lt;code&gt;postgres://&lt;/code&gt; connection string fills in the form and lists what it set and what it couldn't (§2.3).&lt;/p&gt;

&lt;p&gt;We didn't run Tabellum against this server, and the guide doesn't say how its &lt;code&gt;require&lt;/code&gt; treats certificates, so we won't either. Check it against the guide and your provider before relying on it.&lt;/p&gt;

&lt;p&gt;None of this helps with a &lt;code&gt;pg_hba.conf&lt;/code&gt; you don't control, a server with TLS switched off, or the TLS settings inside your own application's driver. Those get fixed on the server and in your code, with the tables above.&lt;/p&gt;

&lt;p&gt;If an AI agent is going to use these connections too, &lt;a href="https://tabellum.dudko.dev/blog/ai-agent-read-only-postgres-only-the-grant-holds" rel="noopener noreferrer"&gt;Read-only Postgres for an AI agent: only the GRANT holds&lt;/a&gt; covers the next thing to get right on the same database. And if you landed here from a backup script against a managed server, &lt;a href="https://tabellum.dudko.dev/blog/pg-dump-version-mismatch-both-directions" rel="noopener noreferrer"&gt;pg_dump version mismatch, both ways&lt;/a&gt; covers the other error those scripts hit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reproduce it
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://tabellum.dudko.dev/blog/media/postgres-no-encryption-sslmode/measure.sh" rel="noopener noreferrer"&gt;&lt;code&gt;measure.sh&lt;/code&gt;&lt;/a&gt; creates the two CAs and the certificate, starts a throwaway PostgreSQL cluster on port 55432 that accepts TLS only, and runs the psql cases. Point &lt;code&gt;NODE_PG_DIR&lt;/code&gt; at a folder where you ran &lt;code&gt;npm install pg&lt;/code&gt; and it also runs &lt;a href="https://tabellum.dudko.dev/blog/media/postgres-no-encryption-sslmode/node-pg.mjs" rel="noopener noreferrer"&gt;&lt;code&gt;node-pg.mjs&lt;/code&gt;&lt;/a&gt; against the same server. Then it switches TLS off and runs the psql cases again. With only Docker, from the folder you saved &lt;code&gt;measure.sh&lt;/code&gt; in:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run --rm -v &lt;span class="s2"&gt;"$PWD"&lt;/span&gt;:/m:ro -e &lt;span class="nv"&gt;PGBIN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/usr/lib/postgresql/18/bin postgres:18 bash /m/measure.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Our output: &lt;a href="https://tabellum.dudko.dev/blog/media/postgres-no-encryption-sslmode/results.txt" rel="noopener noreferrer"&gt;PostgreSQL 16.15 with node-postgres&lt;/a&gt;, &lt;a href="https://tabellum.dudko.dev/blog/media/postgres-no-encryption-sslmode/results-pg18.txt" rel="noopener noreferrer"&gt;18.7&lt;/a&gt;, &lt;a href="https://tabellum.dudko.dev/blog/media/postgres-no-encryption-sslmode/results-pg19.txt" rel="noopener noreferrer"&gt;19.0&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;One local server and a private CA is the whole scope. We didn't connect to RDS or any other real provider, and poolers such as PgBouncer and client certificates weren't part of it.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://tabellum.dudko.dev/blog/postgres-no-encryption-sslmode" rel="noopener noreferrer"&gt;https://tabellum.dudko.dev/blog/postgres-no-encryption-sslmode&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>postgres</category>
      <category>ssl</category>
      <category>nodepostgres</category>
      <category>psql</category>
    </item>
    <item>
      <title>Teams Interpreter and Meet speech translation on a Mac: who actually gets them</title>
      <dc:creator>Dudko Development</dc:creator>
      <pubDate>Mon, 30 Nov 2026 16:20:06 +0000</pubDate>
      <link>https://dev.to/dudko-dev/teams-interpreter-and-meet-speech-translation-on-a-mac-who-actually-gets-them-ngl</link>
      <guid>https://dev.to/dudko-dev/teams-interpreter-and-meet-speech-translation-on-a-mac-who-actually-gets-them-ngl</guid>
      <description>&lt;p&gt;Both Microsoft Teams and Google Meet now translate speech live, voice to voice. If&lt;br&gt;
your organisation pays for the right plan, your languages are on the list and you&lt;br&gt;
can see the button, use the built-in one. It needs nothing installed, nobody has to&lt;br&gt;
manage an API key, and it works on Windows and phones as well as on a Mac.&lt;/p&gt;

&lt;p&gt;This article is for the people who can't see the button. They tend to be on a Mac,&lt;br&gt;
on a personal or small-business account, and the threads they leave behind look&lt;br&gt;
alike:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;On Microsoft's Tech Community, a Mac user on a fresh install of the Teams desktop
client &lt;a href="https://techcommunity.microsoft.com/discussions/microsoftteamspublicpreview/want-to-enable-and-use-interpreter-agent/4417043" rel="noopener noreferrer"&gt;asked how to turn on Interpreter&lt;/a&gt;
for a scheduled meeting. The only reply is from someone who spent about a month
with support and "never got the option to appear".&lt;/li&gt;
&lt;li&gt;On Microsoft Q&amp;amp;A, someone with Microsoft 365 Family on a Mac
&lt;a href="https://learn.microsoft.com/en-us/answers/questions/5650907/how-to-use-teams-interpreter-on-mac-microsoft-365" rel="noopener noreferrer"&gt;reports no Interpreter option&lt;/a&gt;
in Teams meetings at all. No human has answered it.&lt;/li&gt;
&lt;li&gt;On the Google Meet community, a Google AI Pro subscriber on a MacBook Pro
&lt;a href="https://support.google.com/meet/thread/474691257/google-meet-speech-translation-works-portuguese-to-english-but-not-english-to-portuguese?hl=en" rel="noopener noreferrer"&gt;says translation works one way only&lt;/a&gt;
(they hear Portuguese in English, she doesn't hear their English in Portuguese)
and that a support case escalated on October 16 hasn't fixed it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The Mac itself is rarely the reason. Both features run on a Mac. What decides it is&lt;br&gt;
your licence, and quite often the licence of whoever scheduled the meeting.&lt;/p&gt;

&lt;h2&gt;
  
  
  Teams Interpreter: what it needs
&lt;/h2&gt;

&lt;p&gt;Microsoft's &lt;a href="https://learn.microsoft.com/en-us/microsoftteams/interpreter-agent-teams" rel="noopener noreferrer"&gt;admin page for Interpreter&lt;/a&gt;&lt;br&gt;
(last updated November 18, 2026) and the&lt;br&gt;
&lt;a href="https://support.microsoft.com/en-us/topic/c7efe2bb-535d-42ab-a5c4-d2d91619b46d" rel="noopener noreferrer"&gt;user guide&lt;/a&gt;&lt;br&gt;
describe two modes, and they're licensed differently.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Simultaneous interpretation&lt;/strong&gt; is the one most people mean. You hear the meeting in&lt;br&gt;
your language while people are still talking. To get it, &lt;em&gt;you&lt;/em&gt; need all of these:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;an eligible Microsoft 365 base licence,&lt;/li&gt;
&lt;li&gt;an eligible Teams licence,&lt;/li&gt;
&lt;li&gt;a Microsoft Copilot licence, which includes 20 hours of interpretation per user
per month. Beyond that, access is "subject to available capacity".&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It works in scheduled meetings, channel meetings and 1:1 Teams-to-Teams VoIP calls,&lt;br&gt;
on Teams desktop for Windows &lt;strong&gt;and Mac&lt;/strong&gt;, mobile, and the web. It doesn't work in&lt;br&gt;
phone (PSTN) calls, Teams events or Microsoft Teams Free. The user guide adds&lt;br&gt;
ad-hoc meetings, town halls and webinars to the list, and says guests and anonymous&lt;br&gt;
attendees can't use it, because their licences can't be verified. People from&lt;br&gt;
another company can, if they join with their own verified Microsoft 365 account&lt;br&gt;
and their own Copilot licence.&lt;/p&gt;

&lt;p&gt;The licence belongs to the listener. That surprises people. On Microsoft Q&amp;amp;A, a&lt;br&gt;
user testing English and Spanish with a customer&lt;br&gt;
&lt;a href="https://learn.microsoft.com/en-us/answers/questions/5533800/how-to-use-properly-the-ai-interpreter-agent" rel="noopener noreferrer"&gt;found his English reached the customer untranslated&lt;/a&gt;.&lt;br&gt;
The accepted answer explains that each person who wants translated audio turns&lt;br&gt;
Interpreter on for themselves and needs a Copilot licence to do it: "If your&lt;br&gt;
customer doesn't have Copilot, they won't get translated audio." His follow-up is&lt;br&gt;
the bit worth quoting. The providers he'd looked at "are very expensive and seem to&lt;br&gt;
be targeting companies with much larger needs".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Consecutive interpretation&lt;/strong&gt; fixes the customer problem, at a price. The meeting&lt;br&gt;
organiser turns it on from Teams desktop, which needs Microsoft Copilot (Premium)&lt;br&gt;
plus usage billing in Copilot Credits. After that, every participant hears the&lt;br&gt;
interpretation, licensed or not. It's for meetings only (no calls), two languages,&lt;br&gt;
up to 50 people, and the speakers take turns: it translates after each speaker&lt;br&gt;
finishes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Languages.&lt;/strong&gt; The admin page lists nine: Chinese (Mandarin), English, French,&lt;br&gt;
German, Italian, Japanese, Korean, Portuguese and Spanish. The user guide lists the&lt;br&gt;
same nine plus Taiwanese. The two Microsoft pages disagree, so if Taiwanese is the&lt;br&gt;
one you need, test it before you rely on it.&lt;/p&gt;

&lt;p&gt;So, the two Mac threads. A Microsoft 365 Family plan on Teams Free doesn't meet the&lt;br&gt;
requirements on Microsoft's own page, and Teams Free is on the unsupported list.&lt;br&gt;
That's the whole answer to the second thread. The first one (a paid Copilot licence,&lt;br&gt;
no button, a month of support) dates from the public preview in 2025, and I can't&lt;br&gt;
tell you from the outside what went wrong. If you're in that position today, check&lt;br&gt;
with your admin that &lt;code&gt;-AIInterpreter&lt;/code&gt; hasn't been switched off in the meeting or&lt;br&gt;
calling policy. It's on by default.&lt;/p&gt;

&lt;h2&gt;
  
  
  Google Meet speech translation: what it needs
&lt;/h2&gt;

&lt;p&gt;Google's &lt;a href="https://support.google.com/meet/answer/16221730?hl=en" rel="noopener noreferrer"&gt;help page&lt;/a&gt; and its&lt;br&gt;
&lt;a href="https://workspaceupdates.googleblog.com/2026/10/real-time-speech-translation-in-google-Meet-expands-to-63-languages-with-automatic-language-detection.html" rel="noopener noreferrer"&gt;October 22 announcement&lt;/a&gt;&lt;br&gt;
put it this way:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;63 languages&lt;/strong&gt;, any combination in the same meeting, with the spoken language
detected automatically.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Who needs the plan.&lt;/strong&gt; In a scheduled meeting, the &lt;em&gt;host&lt;/em&gt;. In a direct call, at
least one of the two people. The plans and the per-meeting limits: Google AI Pro,
Workspace Business Standard and Plus, Enterprise Standard and Plus, Frontline Plus
and AI Pro for Education get 90 minutes; Google AI Ultra and AI Expanded Access
get 8 hours.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Guests.&lt;/strong&gt; When an eligible user organises the meeting, guests from other domains
can use it too.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consent.&lt;/strong&gt; Each participant turns translation on for themselves, and you only
hear someone translated if they've agreed to be ("Allow Translation", or
"Translate me" in the settings).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Where it doesn't work.&lt;/strong&gt; Live streams, recordings, dial-in and third-party
interop calls, client-side encrypted meetings, and anyone using Adaptive Audio.
Regional and age limits apply. Someone in a Meet hardware room can hear
translations but won't be translated.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Meet's design is more generous than Teams' in one big way: the host pays, and&lt;br&gt;
everyone in the meeting can use it, including people from outside. If you host a&lt;br&gt;
weekly call with a client and you have Google AI Pro, that might be all you need.&lt;/p&gt;

&lt;p&gt;It also translates &lt;em&gt;you&lt;/em&gt; for the others, in a voice like yours, which is exactly&lt;br&gt;
the direction that broke for the person in the community thread above. Google's&lt;br&gt;
volunteer expert pointed to the October rollout, which was gradual (up to 15 days&lt;br&gt;
for Scheduled Release domains), and suggested a fresh meeting with both people&lt;br&gt;
turning translation on through the new controls. That's worth trying first.&lt;/p&gt;

&lt;p&gt;When it isn't there at all, Google's own troubleshooting list starts with the host:&lt;br&gt;
not on an eligible plan, or an admin who turned it off. If you're the guest on&lt;br&gt;
somebody else's free account, there is nothing you can switch on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Side by side
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Teams Interpreter (simultaneous)&lt;/th&gt;
&lt;th&gt;Meet speech translation&lt;/th&gt;
&lt;th&gt;AI Translator&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Who needs a plan&lt;/td&gt;
&lt;td&gt;Each listener: M365 + Teams + Copilot&lt;/td&gt;
&lt;td&gt;The host (in a direct call, either person)&lt;/td&gt;
&lt;td&gt;Nobody else. You install it on your Mac&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Usage limit&lt;/td&gt;
&lt;td&gt;20 hours per user per month included&lt;/td&gt;
&lt;td&gt;90 min or 8 hours per meeting, by plan&lt;/td&gt;
&lt;td&gt;None from the app; cloud engines bill your own key&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Languages&lt;/td&gt;
&lt;td&gt;9 (10 on the user page)&lt;/td&gt;
&lt;td&gt;63&lt;/td&gt;
&lt;td&gt;One pair per session: 13 targets with OpenAI, 29 with Gemini, 29 on-device&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Guests and other companies&lt;/td&gt;
&lt;td&gt;Only with their own verified M365 and Copilot&lt;/td&gt;
&lt;td&gt;Yes, if the host is eligible&lt;/td&gt;
&lt;td&gt;They need nothing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Others hear you translated&lt;/td&gt;
&lt;td&gt;Only if they've turned it on, with their own licence&lt;/td&gt;
&lt;td&gt;Once they turn it on&lt;/td&gt;
&lt;td&gt;Yes, through your microphone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Call apps&lt;/td&gt;
&lt;td&gt;Teams&lt;/td&gt;
&lt;td&gt;Meet&lt;/td&gt;
&lt;td&gt;Any Mac app with a mic and speaker setting&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Platforms&lt;/td&gt;
&lt;td&gt;Windows, Mac, web, iOS, Android, Rooms&lt;/td&gt;
&lt;td&gt;Web, Android, iOS; listening on Meet hardware&lt;/td&gt;
&lt;td&gt;macOS 14+ on Apple Silicon&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Many languages in one meeting&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No, two&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Admin control&lt;/td&gt;
&lt;td&gt;Org policy, on by default&lt;/td&gt;
&lt;td&gt;Admin console, on by default&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Install, keys&lt;/td&gt;
&lt;td&gt;Nothing&lt;/td&gt;
&lt;td&gt;Nothing&lt;/td&gt;
&lt;td&gt;The app, plus an OpenAI or Gemini key, or none on-device (macOS 26)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The other way: translate on your side of the call
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://ai-translator.dudko.dev" rel="noopener noreferrer"&gt;AI Translator&lt;/a&gt; doesn't plug into Teams or Meet.&lt;br&gt;
It's a menu-bar app that installs two audio devices, AI Translator Speaker and AI&lt;br&gt;
Translator Microphone, and the call app uses them like any other speaker and mic.&lt;br&gt;
The other person's voice goes through it to your headphones in your language. Your&lt;br&gt;
voice goes through it and comes out of the "microphone" in theirs. Both directions&lt;br&gt;
run as two separate sessions. The&lt;br&gt;
&lt;a href="https://ai-translator.dudko.dev/blog/translate-a-call-on-macos-audio-routing" rel="noopener noreferrer"&gt;audio routing article&lt;/a&gt; explains why&lt;br&gt;
it takes two devices and how to set them up without feedback.&lt;/p&gt;

&lt;p&gt;The practical upshot for this article is narrow and it's the reason to consider it:&lt;br&gt;
&lt;strong&gt;nobody else is involved.&lt;/strong&gt; Not the host's plan, not your admin, not the&lt;br&gt;
customer's licence. Teams and Meet see an ordinary microphone, so a personal&lt;br&gt;
Teams login and a free Google account work the same as a corporate one. The person&lt;br&gt;
on the other end hears you in their language without turning anything on, which&lt;br&gt;
is what the English and Spanish tester on Microsoft Q&amp;amp;A was trying to get.&lt;/p&gt;

&lt;p&gt;You choose the engine. OpenAI Realtime translates into 13 languages and speaks in&lt;br&gt;
the speaker's own voice. Gemini Live covers 29 with a generated voice. Both run on&lt;br&gt;
your own API key, billed by OpenAI or Google, and both speak while the other side&lt;br&gt;
is still talking. The on-device engine also covers 29, costs nothing, sends nothing&lt;br&gt;
over the network and needs macOS 26; it speaks after each phrase ends. The site&lt;br&gt;
gives counts, not lists, so check your exact pair in the app. The app and its&lt;br&gt;
licence key are free (six months, renewed free with the same email), and live&lt;br&gt;
captions stay in memory and are never written to disk.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the built-in one is the better choice
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Your company already pays for Copilot or a qualifying Workspace plan.&lt;/strong&gt; Then the&lt;br&gt;
feature is already bought, IT controls it, and there's nothing to install or key to&lt;br&gt;
look after. Use it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The meeting has more than two languages.&lt;/strong&gt; Teams and Meet let every listener pick&lt;br&gt;
their own. AI Translator translates one pair, yours and theirs. In a group call,&lt;br&gt;
everyone hears your translated voice in that one language.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You're not on a Mac.&lt;/strong&gt; Both built-in features run on Windows, the web and phones.&lt;br&gt;
AI Translator is macOS only, and only on Apple Silicon (M1 or later).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You host on Meet with Google AI Pro.&lt;/strong&gt; The plan covers the whole meeting,&lt;br&gt;
guests included, for up to 90 minutes. That's hard to beat for a regular call&lt;br&gt;
with the same people.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A large meeting.&lt;/strong&gt; Microsoft's &lt;a href="https://support.microsoft.com/en-us/topic/c7efe2bb-535d-42ab-a5c4-d2d91619b46d" rel="noopener noreferrer"&gt;user guide&lt;/a&gt;&lt;br&gt;
describes simultaneous interpretation for meetings of up to 1,000 people. A translator on one Mac is built for a conversation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the Mac app fits better
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;You're the guest.&lt;/strong&gt; The meeting is on the client's tenant or a friend's free&lt;br&gt;
account, and their plan is out of your hands.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The other side has no licence and won't get one.&lt;/strong&gt; A customer, a candidate,&lt;br&gt;
family. With Teams, they'd each need Copilot to hear you translated.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your language isn't in Teams' nine.&lt;/strong&gt; Gemini and the on-device engine cover 29.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your calls aren't all on one app.&lt;/strong&gt; The same setup works on Zoom (we compared&lt;br&gt;
&lt;a href="https://ai-translator.dudko.dev/blog/zoom-voice-translator-vs-system-level-call-translation" rel="noopener noreferrer"&gt;Zoom's own translator&lt;/a&gt;&lt;br&gt;
too), FaceTime and &lt;a href="https://ai-translator.dudko.dev/blog/translate-a-whatsapp-call-on-a-mac" rel="noopener noreferrer"&gt;WhatsApp&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before you pick it
&lt;/h2&gt;

&lt;p&gt;A few limits, stated plainly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Mac only, Apple Silicon only.&lt;/strong&gt; Intel Macs aren't supported.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A key, or macOS 26.&lt;/strong&gt; The cloud engines need your own OpenAI or Gemini key;
the free on-device engine needs macOS 26.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your audio goes to the provider you pick.&lt;/strong&gt; With OpenAI or Gemini, call audio
goes straight to that provider's API under your key. It doesn't pass through a
server of ours. With the on-device engine it doesn't leave the Mac.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Wired headphones.&lt;/strong&gt; The site says Bluetooth adds 100 to 300 ms.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The licence is personal and non-commercial.&lt;/strong&gt; It's built for one person's
calls. If you're thinking of putting it on a team's laptops, write to the
address in the site's FAQ first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tell people.&lt;/strong&gt; Meet asks each participant before translating them. Nothing in
AI Translator asks the other side, so say at the start that you're using a
translator. It's polite, and it explains the pauses while the translation catches up.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Neither Microsoft nor Google publishes a latency figure, and neither do we, so the&lt;br&gt;
honest test is five minutes with a friend before the call that matters.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://ai-translator.dudko.dev/blog/teams-interpreter-or-meet-speech-translation-on-a-mac" rel="noopener noreferrer"&gt;https://ai-translator.dudko.dev/blog/teams-interpreter-or-meet-speech-translation-on-a-mac&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>microsoftteams</category>
      <category>googlemeet</category>
      <category>translation</category>
      <category>macos</category>
    </item>
    <item>
      <title>QuickBooks Self-Employed isn't taking new users. What to use instead, depending on why you wanted it</title>
      <dc:creator>Dudko Development</dc:creator>
      <pubDate>Mon, 30 Nov 2026 15:21:25 +0000</pubDate>
      <link>https://dev.to/dudko-dev/quickbooks-self-employed-isnt-taking-new-users-what-to-use-instead-depending-on-why-you-wanted-it-44hj</link>
      <guid>https://dev.to/dudko-dev/quickbooks-self-employed-isnt-taking-new-users-what-to-use-instead-depending-on-why-you-wanted-it-44hj</guid>
      <description>&lt;p&gt;If you tried to sign up for QuickBooks Self-Employed recently and got a "not accepting&lt;br&gt;
new sign ups" message, it isn't a glitch. In March 2025 the QuickBooks Team said in&lt;br&gt;
Intuit's own community forum that QuickBooks Self-Employed (QBSE) "is being&lt;br&gt;
discontinued for new users" and "no longer offers new subscriptions for new users"&lt;br&gt;
(&lt;a href="https://quickbooks.intuit.com/learn-support/en-us/account-management/is-self-employed-being-discontinued/00/1533380" rel="noopener noreferrer"&gt;thread&lt;/a&gt;).&lt;br&gt;
In February 2026 an Intuit moderator added that the mobile app "is no longer accessible&lt;br&gt;
to download for new users", that existing users "still have access to it for a limited&lt;br&gt;
time", and that "the web version of QuickBooks Self-Employed remains available for now"&lt;br&gt;
(&lt;a href="https://quickbooks.intuit.com/learn-support/en-us/account-management/is-quickbooks-self-employed-being-replaced-and-if-so-with-what/00/1600995" rel="noopener noreferrer"&gt;thread&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;So it's not shut down. It's closed to newcomers, and existing users have been told to&lt;br&gt;
move. Intuit's recommended destination is QuickBooks Solopreneur.&lt;/p&gt;

&lt;p&gt;Plenty of 2026 guides for new freelancers still recommend QBSE as if you could sign up&lt;br&gt;
today. If one of them sent you here, this page is for you. It's also for anyone already&lt;br&gt;
on QBSE wondering whether to follow Intuit's advice or leave. Those two readers need&lt;br&gt;
different answers, so let's take them one at a time.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you already use QuickBooks Self-Employed
&lt;/h2&gt;

&lt;p&gt;Use Intuit's own switch to Solopreneur. That's the honest first answer, and it's not&lt;br&gt;
close.&lt;/p&gt;

&lt;p&gt;The reason is your data. Intuit's help article&lt;br&gt;
&lt;a href="https://quickbooks.intuit.com/learn-support/en-us/help-article/migrate-services/switch-quickbooks-self-employed-quickbooks/L3pEGh1f5_US_en_US" rel="noopener noreferrer"&gt;Switch from QuickBooks Self-Employed to QuickBooks Solopreneur&lt;/a&gt;&lt;br&gt;
(updated August 5, 2026) says this moves over automatically:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Customers&lt;/li&gt;
&lt;li&gt;Invoices ("Only for accounts with new invoice experience")&lt;/li&gt;
&lt;li&gt;Trips&lt;/li&gt;
&lt;li&gt;Products and services&lt;/li&gt;
&lt;li&gt;Bank connections&lt;/li&gt;
&lt;li&gt;Transactions (up to 3 years)&lt;/li&gt;
&lt;li&gt;Receipts&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Years of categorized transactions, mileage logs and receipt photos are exactly the&lt;br&gt;
things that are painful to rebuild by hand. No other app is going to carry them across&lt;br&gt;
for you, ours included.&lt;/p&gt;

&lt;p&gt;Read the rest of the article before you click, though, because a few things don't come&lt;br&gt;
with you. Intuit lists these as things that "can't be switched over":&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Third-party app integrations such as Etsy, Uber and Amazon&lt;/li&gt;
&lt;li&gt;Tags&lt;/li&gt;
&lt;li&gt;Vendors&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And two more aren't supported yet. Intuit says quarterly tax estimates and rules "will&lt;br&gt;
be supported for migration in the future", and that if you need them, "you may wait&lt;br&gt;
until we update the migration experience before you switch products." One more line&lt;br&gt;
worth knowing: you "won't be able to access your old account after the upgrade process&lt;br&gt;
is complete."&lt;/p&gt;

&lt;p&gt;So before switching:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;If you rely on tags, write down how you used them. They won't exist on the other side.&lt;/li&gt;
&lt;li&gt;Export or note your vendor list.&lt;/li&gt;
&lt;li&gt;If you depend on QBSE's quarterly estimates or your categorization rules, Intuit's own
advice is to wait. There's no announced end date for existing users, so waiting a
little is an option they've given you.&lt;/li&gt;
&lt;li&gt;Download anything you'd want to keep from the old account, since you can't go back in
afterwards.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That's the whole answer for most existing users. If what you actually used QBSE for was&lt;br&gt;
sending invoices, read on, because the second half of this page may still apply to you.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you're new and can't sign up
&lt;/h2&gt;

&lt;p&gt;Now the question is different. You don't have data to carry, so the switch doesn't help&lt;br&gt;
you. What you need to know is what you were going to use QBSE &lt;em&gt;for&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;QBSE was built around US self-employment tax: Schedule C categories, mileage, bank&lt;br&gt;
transactions, quarterly estimates. If that's what you need, the answer is Intuit's&lt;br&gt;
replacement or a dedicated tax tool, not a general invoicing app.&lt;/p&gt;

&lt;p&gt;But a lot of people were sent to QBSE by "best app for freelancers" lists when what they&lt;br&gt;
mostly needed was to send invoices and keep track of expenses. For them, the deciding&lt;br&gt;
detail is on Intuit's own pricing page.&lt;/p&gt;

&lt;h3&gt;
  
  
  What Intuit's free tier actually allows
&lt;/h3&gt;

&lt;p&gt;The &lt;a href="https://quickbooks.intuit.com/solopreneur/" rel="noopener noreferrer"&gt;QuickBooks Solopreneur page&lt;/a&gt; shows a&lt;br&gt;
Free plan at $0 a month, no credit card required. It's a real free tier, and anyone&lt;br&gt;
telling you the replacement is paid-only is wrong. Its caps, as Intuit lists them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Send invoices (limit 2 per month)"&lt;/li&gt;
&lt;li&gt;"Track mileage (5 trips per month)"&lt;/li&gt;
&lt;li&gt;"Upload receipts (2 per month)"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There's a catch to the invoice cap that's easy to miss, and it works in your favor.&lt;br&gt;
The small print under that line says you can send "unlimited invoices if you qualify&lt;br&gt;
for and enable QuickBooks Payments", Intuit's own payment service. So the&lt;br&gt;
two-invoice limit really applies to people who don't take payments through Intuit.&lt;/p&gt;

&lt;p&gt;On the page the plans are just called Free, Lite and Simple Start, and Intuit's own&lt;br&gt;
menu lists the first two as QuickBooks Free and QuickBooks Lite. The paid Lite plan&lt;br&gt;
lifts the caps to "Unlimited invoices" and "Unlimited receipts and mileage". Its regular&lt;br&gt;
price is $20 a month, and Simple Start, the next tier up, is $38. On November 30, 2026&lt;br&gt;
both were on a 70%-off-for-three-months sale, so the number you see may be lower for a&lt;br&gt;
while and then go back up. Prices change, so check the page on the day you decide.&lt;/p&gt;

&lt;p&gt;So the line is fairly simple. If you send two invoices a month or fewer, or you're happy&lt;br&gt;
to have clients pay through QuickBooks Payments, Intuit's free tier may be all you need,&lt;br&gt;
and it comes with a bank connection and mileage that a pure invoicing app won't have. If&lt;br&gt;
you send more than two and want clients to pay you some other way, you're looking at the&lt;br&gt;
paid tier or at something else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Mini Accountant fits
&lt;/h2&gt;

&lt;p&gt;This is ours, so weigh it accordingly.&lt;br&gt;
&lt;a href="https://ad.miniaccountant.app" rel="noopener noreferrer"&gt;Mini Accountant&lt;/a&gt; is an invoicing and expense app for&lt;br&gt;
freelancers and small businesses. Every feature is free on iPhone, iPad, Android and the&lt;br&gt;
web, with 100 MB for your files. The optional Pro subscription removes the "Powered by&lt;br&gt;
Mini Accountant" line from your invoices and reports, raises file storage to 1 GB and&lt;br&gt;
gives the AI assistant higher limits.&lt;/p&gt;

&lt;p&gt;What it does well, for the person who mostly invoiced:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PDF invoices, with tax or VAT worked out for you.&lt;/strong&gt; No invoice feature sits behind
Pro. When you issue an invoice its PDF is kept as you sent it, and the app tells you if
the invoice changes afterwards.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Clients in other currencies.&lt;/strong&gt; Each customer has their own currency and their
invoices use it. Every payment and expense keeps its exchange rate into your own
currency, fetched for its date or typed from your bank statement, so totals add up in
one currency.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Partial payments.&lt;/strong&gt; Add each payment as it arrives; the invoice shows Partial until
it's paid in full.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Expenses&lt;/strong&gt; in any currency, with photos, scans or PDFs of the receipt attached (up
to 20 MB each).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Seven PDF reports&lt;/strong&gt; for any period: revenue with VAT and tax by month, payments
received, invoices issued, expenses, and VAT on payments. A period's invoices and
attached files also download as one ZIP.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tax as a calculation from your settings.&lt;/strong&gt; You set the tax base, cash or accrual
basis, a single rate or a progressive table, and whether you're VAT-registered. The
dashboard and reports follow those settings month by month.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Runs from chat, too.&lt;/strong&gt; An MCP server, so you can ask Claude or Cursor to draft an
invoice or log an expense, and a Telegram bot that can add an expense from a photo of
the receipt.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can start without an account and register later to keep your data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it doesn't fit
&lt;/h2&gt;

&lt;p&gt;This list matters more than the one above. Mini Accountant does &lt;strong&gt;not&lt;/strong&gt; do:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bank feeds.&lt;/strong&gt; Payments and expenses are entered by you, or by an AI assistant
through MCP. Nothing is pulled from your bank.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Expense categories.&lt;/strong&gt; An expense is a name, a description, an amount, a VAT rate
and a currency, with nothing to sort it into.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Schedule C, 1099s or quarterly estimated tax.&lt;/strong&gt; None of these US-specific pieces
are there, and it doesn't file anything with anyone.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If any of those were the reason you wanted QBSE, Mini Accountant is the wrong tool and&lt;br&gt;
you'll be better served by Solopreneur or a tax-focused app. That's not modesty. Those&lt;br&gt;
are the jobs QBSE was built for.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Already on QBSE:&lt;/strong&gt; use Intuit's switch to Solopreneur. It carries your customers,
transactions, trips and receipts. Check the "can't be switched over" list first, and
wait if you depend on quarterly estimates or rules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;New, and you need US tax prep, mileage or bank sync:&lt;/strong&gt; Solopreneur. Start on the free
tier if you send two invoices a month or fewer, or take payments through QuickBooks
Payments.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;New, and you mostly send invoices, often to clients in other currencies who pay you
however they pay you, and want expenses and reports without a subscription:&lt;/strong&gt; that's
where Mini Accountant fits.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://ad.miniaccountant.app/blog/quickbooks-self-employed-alternative-free" rel="noopener noreferrer"&gt;https://ad.miniaccountant.app/blog/quickbooks-self-employed-alternative-free&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>invoicing</category>
      <category>alternatives</category>
    </item>
    <item>
      <title>Which documents did your agent read? Reading the access log</title>
      <dc:creator>Dudko Development</dc:creator>
      <pubDate>Mon, 30 Nov 2026 14:56:34 +0000</pubDate>
      <link>https://dev.to/dudko-dev/which-documents-did-your-agent-read-reading-the-access-log-1mi6</link>
      <guid>https://dev.to/dudko-dev/which-documents-did-your-agent-read-reading-the-access-log-1mi6</guid>
      <description>&lt;p&gt;On a &lt;a href="https://news.ycombinator.com/item?id=50455811" rel="noopener noreferrer"&gt;Launch HN thread&lt;/a&gt; earlier this month, someone put the security-review question plainly: &lt;em&gt;"On Salesforce projects, security teams approve an integration user with narrow permissions and an audit log much sooner than any kind of browser automation. Can the generated MCP run under a dedicated service account and log every call? Then I could bring it to a client's security review."&lt;/em&gt; (&lt;a href="https://news.ycombinator.com/item?id=50510026" rel="noopener noreferrer"&gt;comment&lt;/a&gt;, 15 November.)&lt;/p&gt;

&lt;p&gt;That's the right instinct. A security reviewer doesn't ask what the agent is for. They ask who it is, what it can reach, and what you'll be able to show them afterwards. For a retrieval agent the last one comes down to a single question, and our &lt;a href="https://github.com/nacre-work/nacre/blob/main/docs/audit.md" rel="noopener noreferrer"&gt;audit spec&lt;/a&gt; opens with it: &lt;em&gt;"Show me which documents your agent read last quarter."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;So I set it up the way the commenter describes. One service account for a bot, read access to one layer, a few things for it to try, and then the log. Everything below ran today on a clean install from the &lt;a href="https://github.com/nacre-work/nacre/blob/main/docs/quickstart.md" rel="noopener noreferrer"&gt;quickstart&lt;/a&gt;, version 0.41.4.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;The quickstart's demo company has three layers: &lt;code&gt;handbook&lt;/code&gt;, &lt;code&gt;engineering&lt;/code&gt; and &lt;code&gt;contracts&lt;/code&gt;. The bot gets its own service account and a single grant, &lt;code&gt;read&lt;/code&gt; on &lt;code&gt;handbook&lt;/code&gt;. It isn't a delegation acting for some person (that's the other kind of connection, covered in &lt;a href="https://nacre.work/blog/can-your-agent-read-less-than-you" rel="noopener noreferrer"&gt;an earlier piece&lt;/a&gt;). It's an identity of its own, which is what a client's security team usually wants to see for an unattended integration.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class="c"&gt;# A support bot with one layer, the things it tries, and what the access log says about each.&lt;/span&gt;
&lt;span class="c"&gt;# Against a local quickstart: demo-seed prints the admin's email and password.&lt;/span&gt;
&lt;span class="c"&gt;# ADMIN_EMAIL=... ADMIN_PASSWORD=... ./audit-demo.sh&lt;/span&gt;
&lt;span class="nb"&gt;set&lt;/span&gt; -euo pipefail
&lt;span class="nv"&gt;API&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;${API:-http://localhost:8082}&lt;/span&gt;
&lt;span class="nv"&gt;Q&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'what is the contract number for Northwind'&lt;/span&gt;

&lt;span class="c"&gt;# 1. Sign in as the org admin, the role that can read the full log.&lt;/span&gt;
&lt;span class="nv"&gt;ADMIN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;curl -s &lt;span class="s2"&gt;"$API/v1/auth/login"&lt;/span&gt; -H &lt;span class="s1"&gt;'content-type: application/json'&lt;/span&gt; \
  -d &lt;span class="s2"&gt;"{\"email\":\"$ADMIN_EMAIL\",\"password\":\"$ADMIN_PASSWORD\"}"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; jq -r .access_token&lt;span class="o"&gt;)&lt;/span&gt;
&lt;span class="nv"&gt;HANDBOOK&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;curl -s &lt;span class="s2"&gt;"$API/v1/layers"&lt;/span&gt; -H &lt;span class="s2"&gt;"authorization: Bearer $ADMIN"&lt;/span&gt; \
  &lt;span class="o"&gt;|&lt;/span&gt; jq -r &lt;span class="s1"&gt;'.items[]|select(.slug=="handbook").id'&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;

&lt;span class="c"&gt;# 2. A service account for the bot, with read on the handbook and nothing else.&lt;/span&gt;
&lt;span class="nv"&gt;SA&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;curl -s &lt;span class="s2"&gt;"$API/v1/service-accounts"&lt;/span&gt; -H &lt;span class="s2"&gt;"authorization: Bearer $ADMIN"&lt;/span&gt; \
  -H &lt;span class="s1"&gt;'content-type: application/json'&lt;/span&gt; -d &lt;span class="s1"&gt;'{"name":"svc-support-bot"}'&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
&lt;span class="nv"&gt;SA_ID&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;jq -r .id &lt;span class="o"&gt;&amp;lt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="s2"&gt;"$SA"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="nv"&gt;KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;jq -r .key &lt;span class="o"&gt;&amp;lt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="s2"&gt;"$SA"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
curl -s -o /dev/null &lt;span class="s2"&gt;"$API/v1/grants"&lt;/span&gt; -H &lt;span class="s2"&gt;"authorization: Bearer $ADMIN"&lt;/span&gt; -H &lt;span class="s1"&gt;'content-type: application/json'&lt;/span&gt; \
  -d &lt;span class="s2"&gt;"{\"principal_type\":\"service_account\",\"principal_id\":\"$SA_ID\",\"scope_type\":\"layer\",\"scope_id\":\"$HANDBOOK\",\"permission\":\"read\"}"&lt;/span&gt;

&lt;span class="c"&gt;# 3. The bot asks the question twice, the way a retry would.&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; i &lt;span class="k"&gt;in&lt;/span&gt; 1 2&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  curl -s &lt;span class="s2"&gt;"$API/v1/search"&lt;/span&gt; -H &lt;span class="s2"&gt;"authorization: Bearer $KEY"&lt;/span&gt; -H &lt;span class="s1"&gt;'content-type: application/json'&lt;/span&gt; \
    -d &lt;span class="s2"&gt;"{\"query\":\"$Q\",\"top_k\":10}"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; jq -c &lt;span class="s1"&gt;'{returned: [.items[].doc_id]}'&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt;

&lt;span class="c"&gt;# 4. It tries to open the Northwind contract by id. (The admin looks it up, to give it something real to try.)&lt;/span&gt;
&lt;span class="nv"&gt;DOC&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;curl -s &lt;span class="s2"&gt;"$API/v1/search"&lt;/span&gt; -H &lt;span class="s2"&gt;"authorization: Bearer $ADMIN"&lt;/span&gt; -H &lt;span class="s1"&gt;'content-type: application/json'&lt;/span&gt; \
  -d &lt;span class="s2"&gt;"{\"query\":\"$Q\",\"top_k\":10}"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; jq -r &lt;span class="s1"&gt;'[.items[]|select(.layer=="contracts")][0].doc_id'&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"bot GET /v1/documents/$DOC -&amp;gt; $(curl -s -o /dev/null -w '%{http_code}' "&lt;/span&gt;&lt;span class="nv"&gt;$API&lt;/span&gt;/v1/documents/&lt;span class="nv"&gt;$DOC&lt;/span&gt;&lt;span class="s2"&gt;" -H "&lt;/span&gt;authorization: Bearer &lt;span class="nv"&gt;$KEY&lt;/span&gt;&lt;span class="s2"&gt;")"&lt;/span&gt;

&lt;span class="c"&gt;# 5. Revoke the bot, and let it try once more.&lt;/span&gt;
curl -s -o /dev/null -X DELETE &lt;span class="s2"&gt;"$API/v1/service-accounts/$SA_ID"&lt;/span&gt; -H &lt;span class="s2"&gt;"authorization: Bearer $ADMIN"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"after revoke, search -&amp;gt; $(curl -s -o /dev/null -w '%{http_code}' "&lt;/span&gt;&lt;span class="nv"&gt;$API&lt;/span&gt;/v1/search&lt;span class="s2"&gt;" -H "&lt;/span&gt;authorization: Bearer &lt;span class="nv"&gt;$KEY&lt;/span&gt;&lt;span class="s2"&gt;" \
  -H 'content-type: application/json' -d "&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;\&lt;span class="s2"&gt;"query\":\"$Q\"}"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"

# 6. What the log says the bot did, oldest first.
curl -s "&lt;/span&gt;&lt;span class="nv"&gt;$API&lt;/span&gt;/v1/audit?actor_id=&lt;span class="nv"&gt;$SA_ID&lt;/span&gt;&lt;span class="s2"&gt;" -H "&lt;/span&gt;authorization: Bearer &lt;span class="nv"&gt;$ADMIN&lt;/span&gt;&lt;span class="s2"&gt;" -H 'accept: application/x-ndjson' | tac
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What the bot saw
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{"returned":["9892de13-…","4845b3eb-…","51d8eee9-…"]}
{"returned":["9892de13-…","4845b3eb-…","51d8eee9-…"]}
bot GET /v1/documents/7f109178-… -&amp;gt; 404
after revoke, search -&amp;gt; 401
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three handbook documents, twice. The question was about a contract, and the contract isn't in its reach, so the search simply returns what the bot is allowed to have. Asked for the contract by id, it gets &lt;code&gt;404&lt;/code&gt;, the same answer as a document that doesn't exist. Once the account is revoked, the key stops working on the next request. The &lt;a href="https://github.com/nacre-work/nacre/blob/main/docs/openapi.yaml" rel="noopener noreferrer"&gt;API spec&lt;/a&gt; says there's &lt;em&gt;"no TTL and no propagation window"&lt;/em&gt; for a revoked key, and that's what happened.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the log says
&lt;/h2&gt;

&lt;p&gt;Three lines for the bot, trimmed only for width:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"53"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"actor"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"service_account"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"b4d0de7d-…"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"surface"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"api"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"action"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"search"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
 &lt;span class="nl"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"layers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"handbook"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"returned_docs"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"9892de13-…"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s2"&gt;"4845b3eb-…"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s2"&gt;"51d8eee9-…"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"top_k"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
 &lt;span class="nl"&gt;"result"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"allow"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"detail"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"returned"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"latency_ms"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;38&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"query_hash"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"sha256:5c6038…a9a9"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"54"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="err"&gt;…&lt;/span&gt; &lt;span class="n"&gt;same&lt;/span&gt; &lt;span class="n"&gt;search&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;same&lt;/span&gt; &lt;span class="n"&gt;three&lt;/span&gt; &lt;span class="n"&gt;returned_docs&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"query_hash"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"sha256:5c6038…a9a9"&lt;/span&gt; &lt;span class="err"&gt;…&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"56"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"actor"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"service_account"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"b4d0de7d-…"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"surface"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"api"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"action"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"get_document"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
 &lt;span class="nl"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"document_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"7f109178-…"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"result"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"deny"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What made me trust it:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Every search names the documents it returned.&lt;/strong&gt; Not "the bot searched", but which three documents left the index, from which layer. That's the line a reviewer actually asks for, since one query can hand an agent ten documents and each of them is an access.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The query itself isn't stored, but you can still match it.&lt;/strong&gt; By default the log keeps a SHA-256 of the query rather than its text, so the journal doesn't turn into a second copy of everything people asked. Both searches carry the same hash, so "did the bot run this query, and how often" is still answerable: hash the question you're investigating and compare. Turn on &lt;code&gt;NACRE_AUDIT_QUERY_TEXT&lt;/code&gt; if your reviewer wants the text.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The refusal is a line of its own.&lt;/strong&gt; Line 56 is the attempt on the contract, &lt;code&gt;result: "deny"&lt;/code&gt;, with the document id it asked for. On the wire that was a &lt;code&gt;404&lt;/code&gt; that says nothing, but in the log it's the most useful entry. The spec is blunt about it: &lt;em&gt;"&lt;code&gt;result: "deny"&lt;/code&gt; is the most useful line in the file and the easiest to forget to write, because the code path that produces it is an early return."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The administrator is in it too.&lt;/strong&gt; Reading the whole log without the filter also shows the other side: &lt;code&gt;create_service_account&lt;/code&gt; with the bot's name, &lt;code&gt;issue_grant&lt;/code&gt; naming the layer and &lt;code&gt;read&lt;/code&gt;, &lt;code&gt;revoke_service_account&lt;/code&gt;, and an &lt;code&gt;audit.read&lt;/code&gt; for each time I read the log. A reviewer can see who gave the bot its access, as well as what the bot did with it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Over MCP, the same thing
&lt;/h2&gt;

&lt;p&gt;The commenter asked about MCP specifically, so I checked that too. A second service account, the same grant, the same question, this time through the MCP server's &lt;code&gt;search&lt;/code&gt; tool over Streamable HTTP with the key as the bearer token. Same three handbook documents, and the log line is the same shape with one field different: &lt;code&gt;"surface":"mcp"&lt;/code&gt;. The MCP server and the REST API share one audit sink, so you don't get a second, thinner log for agents.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can someone quietly edit it?
&lt;/h2&gt;

&lt;p&gt;Not from the application. Append-only is enforced in the database, not by the code being polite. I took the deny row above and tried, as the application's own Postgres role:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="n"&gt;nacre&lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;delete&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;audit_events&lt;/span&gt; &lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;56&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="no"&gt;ERROR&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="n"&gt;permission&lt;/span&gt; &lt;span class="n"&gt;denied&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="n"&gt;audit_events&lt;/span&gt;
&lt;span class="n"&gt;nacre&lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;update&lt;/span&gt; &lt;span class="n"&gt;audit_events&lt;/span&gt; &lt;span class="k"&gt;set&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'allow'&lt;/span&gt; &lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;56&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="no"&gt;ERROR&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="n"&gt;permission&lt;/span&gt; &lt;span class="n"&gt;denied&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="n"&gt;audit_events&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A database superuser can still do anything. That's true of every log that lives in a database, and it's why the SIEM forwarding exists, for when the copy has to live somewhere your own admins can't reach.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it didn't show
&lt;/h2&gt;

&lt;p&gt;Two things I'd want to know before a review, rather than during one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The revoked key's attempt left no line.&lt;/strong&gt; The search that got &lt;code&gt;401&lt;/code&gt; after revocation isn't in the log, filtered by the bot or unfiltered. Refusals of a principal that signed in are recorded, but a request that never authenticates has no principal to attach a line to. If your reviewer asks about failed authentication against a revoked credential, that answer comes from your gateway or reverse-proxy logs, not from this one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The actor label is the id, not the name.&lt;/strong&gt; The spec's example shows a readable label for a service account, while today's lines carried &lt;code&gt;service_account:&amp;lt;id&amp;gt;&lt;/code&gt;. The name is one lookup away, in the &lt;code&gt;create_service_account&lt;/code&gt; event or &lt;code&gt;GET /v1/service-accounts&lt;/code&gt;, but a CSV export handed to a reviewer is easier to read if you join it first.&lt;/p&gt;

&lt;p&gt;And the boundary that matters most: the log records what retrieval handed to the agent. What the agent then did with those three documents, what it wrote, who it sent it to, happens in your runtime, and only your runtime can log it.&lt;/p&gt;

&lt;h2&gt;
  
  
  For the security review
&lt;/h2&gt;

&lt;p&gt;The short version of what you can show:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The agent is its own principal, with a key that's stored hashed and shown once.&lt;/li&gt;
&lt;li&gt;Its reach is a list of grants you can read back, and every change to that list is in the log with who made it.&lt;/li&gt;
&lt;li&gt;Every search records the documents it returned. Every refusal is a &lt;code&gt;deny&lt;/code&gt; line, even when the wire said &lt;code&gt;404&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The log is append-only for the application, kept 400 days by default (&lt;code&gt;NACRE_AUDIT_RETENTION_DAYS&lt;/code&gt;), and exports as JSONL or CSV from &lt;code&gt;GET /v1/audit&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The audit log, its export and the retention are in the &lt;a href="https://github.com/nacre-work/nacre" rel="noopener noreferrer"&gt;Apache-2.0 core&lt;/a&gt;. Forwarding to a SIEM is in the commercial build. To try it yourself, the script above runs against the &lt;a href="https://github.com/nacre-work/nacre/blob/main/docs/quickstart.md" rel="noopener noreferrer"&gt;quickstart&lt;/a&gt; on any machine with Docker, and &lt;a href="https://github.com/nacre-work/nacre/blob/main/docs/audit.md" rel="noopener noreferrer"&gt;docs/audit.md&lt;/a&gt; is the page to hand your reviewer.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://nacre.work/blog/which-documents-did-the-agent-read" rel="noopener noreferrer"&gt;https://nacre.work/blog/which-documents-did-the-agent-read&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>audit</category>
      <category>permissions</category>
      <category>agents</category>
    </item>
    <item>
      <title>API keys in an API collection in git: where they go, and the doors they still get through</title>
      <dc:creator>Dudko Development</dc:creator>
      <pubDate>Thu, 26 Nov 2026 16:33:00 +0000</pubDate>
      <link>https://dev.to/dudko-dev/api-keys-in-an-api-collection-in-git-where-they-go-and-the-doors-they-still-get-through-2kco</link>
      <guid>https://dev.to/dudko-dev/api-keys-in-an-api-collection-in-git-where-they-go-and-the-doors-they-still-get-through-2kco</guid>
      <description>&lt;p&gt;Moving an API collection into git changes the question. Before, it was "can I read the diff".&lt;br&gt;
After, it's "what did I just put into a history I can never fully take back".&lt;/p&gt;

&lt;p&gt;People are visibly working around it. An engineer &lt;a href="https://dev.classmethod.jp/en/articles/setup-bruno-api-client-with-vscode/" rel="noopener noreferrer"&gt;setting up Bruno in VS Code&lt;/a&gt; (June 2026) adds the collection file itself to &lt;code&gt;.gitignore&lt;/code&gt;, because it "may contain sensitive information such as API tokens". Bruno's own &lt;a href="https://blog.usebruno.com/managing-secrets" rel="noopener noreferrer"&gt;post on managing secrets&lt;/a&gt; lists the ways they leak, starting with "Committing .bru environment files with secrets to Git" and "Sharing exported collection files without scrubbing secrets". On the Postman side, the maintainers of the Kingfisher scanner &lt;a href="https://mongodb.github.io/kingfisher/blog/2026/04/29/scanning-postman-for-leaked-secrets--including-the-ones-the-ui-hides/" rel="noopener noreferrer"&gt;put it bluntly&lt;/a&gt; (April 2026): "The secret flag is a UI-masking hint only". The API returns the value in plain text. Back in April 2024 Truffle Security &lt;a href="https://trufflesecurity.com/blog/postman-carries-lots-of-secrets" rel="noopener noreferrer"&gt;scanned about 40,000 public Postman workspaces&lt;/a&gt;, found 1,689 live credentials, and reported that 32% of the environment variables holding a live credential were marked as secret.&lt;/p&gt;

&lt;p&gt;We make Baton, an API client that stores requests and environments as YAML in your repository, so this is our problem as much as anyone's. Below is what a Baton environment file actually holds, what its parser refuses, and the part that matters more: three ways a key still ends up in git, which the format doesn't stop.&lt;/p&gt;
&lt;h2&gt;
  
  
  Three places a value can live
&lt;/h2&gt;

&lt;p&gt;A secret value can sit in the file, in the app's local store, or in the environment of whatever runs the requests on a schedule. Only the first goes into git, and once it's there, it stays in the history.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Postman.&lt;/strong&gt; The &lt;a href="https://learning.postman.com/docs/use/native-git/setup" rel="noopener noreferrer"&gt;Native Git setup guide&lt;/a&gt; says to "Keep local environment values in the Postman app, and commit only &lt;strong&gt;Shared&lt;/strong&gt; values to Git", and to use Postman Vault for managed secrets. Its collection export also &lt;a href="https://learning.postman.com/docs/getting-started/importing-and-exporting/exporting-data" rel="noopener noreferrer"&gt;scans for secrets&lt;/a&gt; and offers to move them to the vault before you download the file, though "Export anyway" keeps them in plain text. Environment exports are a different matter: in a &lt;a href="https://blog.postman.com/introducing-secret-variable-type-in-postman" rel="noopener noreferrer"&gt;2022 comment&lt;/a&gt; under Postman's own announcement of the secret type, a user wrote that exporting an environment showed secret values "as plaintext in .postman_environment.json". We haven't been able to check how current versions behave, so treat that as one user's report.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bruno.&lt;/strong&gt; Mark a variable as secret and, per &lt;a href="https://docs.usebruno.com/secrets-management/secret-variables" rel="noopener noreferrer"&gt;its docs&lt;/a&gt;, "Only the secret name is written" to the environment file. The value stays in a local encrypted store and isn't included when you export a collection. That's the same model as Baton's.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Baton.&lt;/strong&gt; "Environments name them; the values live in your OS keychain," as &lt;a href="https://baton.dudko.dev/" rel="noopener noreferrer"&gt;the site&lt;/a&gt; puts it. Scheduled runs happen on a worker you host, which reads values from environment variables (below).&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  What a Baton environment file holds
&lt;/h2&gt;

&lt;p&gt;This is a staging environment with one ordinary variable and two secrets, written by &lt;a href="https://www.npmjs.com/package/@dudko.dev/baton-format" rel="noopener noreferrer"&gt;&lt;code&gt;@dudko.dev/baton-format&lt;/code&gt;&lt;/a&gt;, the format's published package:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;format&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;staging&lt;/span&gt;
&lt;span class="na"&gt;variables&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;baseUrl&lt;/span&gt;
    &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;https://staging.example.com&lt;/span&gt;
&lt;span class="na"&gt;secrets&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;apiKey&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;clientSecret&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;secrets&lt;/code&gt; is a list of names, nothing more. Parse that file and write it back, and you get the same bytes.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the parser refuses
&lt;/h2&gt;

&lt;p&gt;Somebody hand-edits the file and tries to keep the value next to its name. Two obvious shapes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;secrets&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;apiKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;sk_live_abc123&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;FormatError invalid-field  secrets: must be a list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;secrets&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;apiKey&lt;/span&gt;
    &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;sk_live_abc123&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;FormatError unknown-field  secrets[0].value: unknown field
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both are rejected outright. There's simply no field in the format where a secret's value could go.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it doesn't refuse
&lt;/h2&gt;

&lt;p&gt;This is where the format stops helping. It separates names from values. It doesn't look for secrets. Three things go through without complaint:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A value glued onto the name.&lt;/strong&gt; A secret's name is any string, so this parses fine and the "name" is now &lt;code&gt;apiKey=sk_live_abc123&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;secrets&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;apiKey=sk_live_abc123&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;A token stored as an ordinary variable.&lt;/strong&gt; Nothing stops anyone putting a key under &lt;code&gt;variables&lt;/code&gt;, and it's written in plain text like any other value:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;format&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;staging&lt;/span&gt;
&lt;span class="na"&gt;variables&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;apiKey&lt;/span&gt;
    &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;sk_live_abc123&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;A literal token in a request file.&lt;/strong&gt; Type the token straight into the request's auth instead of &lt;code&gt;{{apiKey}}&lt;/code&gt;, and the request file carries it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"{{baseUrl}}/me"&lt;/span&gt;
&lt;span class="na"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;bearer&lt;/span&gt;
  &lt;span class="na"&gt;bearer&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;token&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;sk_live_abc123&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;None of these is exotic. The second one is what happens when someone adds a variable in a hurry and forgets to make it a secret. Bruno's blog warns about the same thing in its own best practices: "Avoid hardcoding secrets in environment or request files". Postman at least runs a secret scan when you export a collection. Baton's format has nothing equivalent. That's a gap, and it's why the setup at the end has a scanner in it.&lt;/p&gt;

&lt;h2&gt;
  
  
  When an AI agent edits the collection
&lt;/h2&gt;

&lt;p&gt;Baton ships an MCP server, &lt;a href="https://www.npmjs.com/package/@dudko.dev/baton-mcp" rel="noopener noreferrer"&gt;&lt;code&gt;@dudko.dev/baton-mcp&lt;/code&gt;&lt;/a&gt;, so an AI coding agent can edit requests through structured tools rather than raw files. Its README says "A tool call carrying a literal credential is rejected with a message telling the agent to use a &lt;code&gt;{{secret:name}}&lt;/code&gt; reference instead."&lt;/p&gt;

&lt;p&gt;That holds for some fields, not all of them. In version 0.2.0 we sent a request with a literal value in each place a credential can go:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;where the literal value goes&lt;/th&gt;
&lt;th&gt;what happens&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;bearer token, basic-auth password, API-key value&lt;/td&gt;
&lt;td&gt;refused (even &lt;code&gt;hunter2&lt;/code&gt;, so it checks the field, not the shape of the value); a &lt;code&gt;{{secret:name}}&lt;/code&gt; reference is written&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;digest password, AWS SigV4 secret key and session token, OAuth 2 client secret&lt;/td&gt;
&lt;td&gt;written to the file&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;the URL's query string, a query parameter, an &lt;code&gt;Authorization&lt;/code&gt; header, a JSON body&lt;/td&gt;
&lt;td&gt;written to the file&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;So the README overstates it. If an agent puts a key in an OAuth 2 client secret or an &lt;code&gt;Authorization&lt;/code&gt; header, it goes into the file, and from there into your next commit. Think of the guard as a seatbelt for the three most common fields, not as a scanner.&lt;/p&gt;

&lt;h2&gt;
  
  
  Scheduled runs
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://www.npmjs.com/package/@dudko.dev/baton-worker" rel="noopener noreferrer"&gt;&lt;code&gt;@dudko.dev/baton-worker&lt;/code&gt;&lt;/a&gt; README lists &lt;code&gt;BATON_SECRET_&amp;lt;NAME&amp;gt;&lt;/code&gt; as the variable that holds "Values for the secret references a request uses". Its example starts the container with &lt;code&gt;-e BATON_SECRET_APITOKEN=&amp;lt;value&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The values stay out of the repo, then, but they now live wherever that container's environment lives: a compose file, an orchestrator's secret store, a CI variable. Protect that like any other deployment secret, because that's what it is.&lt;/p&gt;

&lt;h2&gt;
  
  
  A setup that holds, with any of these tools
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Names in the repo, values outside it.&lt;/strong&gt; Baton and Bruno both do this for anything you mark as secret. In Postman, follow its own advice and commit only shared values.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A secret scanner before the commit.&lt;/strong&gt; The format can't tell &lt;code&gt;sk_live_...&lt;/code&gt; from a base URL, but a scanner can. &lt;a href="https://github.com/gitleaks/gitleaks" rel="noopener noreferrer"&gt;Gitleaks&lt;/a&gt; runs as a pre-commit hook and in CI; &lt;a href="https://github.com/mongodb/kingfisher" rel="noopener noreferrer"&gt;Kingfisher&lt;/a&gt; and TruffleHog are alternatives. This covers the three doors above and the agent fields the guard misses.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read the first pull request that adds an environment.&lt;/strong&gt; That's when a token most often goes in as a plain variable, and in a diff it's easy to spot.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Treat the scheduler's environment as production config.&lt;/strong&gt; Wherever &lt;code&gt;BATON_SECRET_*&lt;/code&gt; or its equivalent is set, rotation and access control apply.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If a key has already been committed, rotate it. Rewriting history helps keep it out of future clones, but anyone who pulled before you rewrote still has it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reproduce it
&lt;/h2&gt;

&lt;p&gt;Node 24, &lt;code&gt;npm i @dudko.dev/baton-format&lt;/code&gt;, then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// env-file.mjs: what an environment file holds, and what the parser does&lt;/span&gt;
&lt;span class="c1"&gt;// when a value is put where only a name belongs.&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;parseEnvironmentFile&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;serializeEnvironmentFile&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;parseRequestFile&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;serializeRequestFile&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@dudko.dev/baton-format"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;show&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fn&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;fn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`--- ${label}: ACCEPTED`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`--- ${label}: REFUSED  ${e.code ?? ""} ${e.path ?? ""} :: ${e.message}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// variables with values, secrets by name only&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;env&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"staging"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;variables&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"baseUrl"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://staging.example.com"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;secrets&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"apiKey"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"clientSecret"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;serializeEnvironmentFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;show&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"environment file"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;show&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"round trip identical"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
  &lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;serializeEnvironmentFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;parseEnvironmentFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// a value next to the secret's name&lt;/span&gt;
&lt;span class="nf"&gt;show&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"secrets as a map"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;parseEnvironmentFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="s2"&gt;"format: 1\nname: staging\nvariables: []\nsecrets:\n  apiKey: sk_live_abc123\n"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;show&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"secret with a value field"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;parseEnvironmentFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="s2"&gt;"format: 1\nname: staging\nvariables: []\nsecrets:\n  - name: apiKey\n    value: sk_live_abc123\n"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;show&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"value glued to the name"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;parseEnvironmentFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="s2"&gt;"format: 1\nname: staging\nvariables: []\nsecrets:\n  - apiKey=sk_live_abc123\n"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;secrets&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// a token as an ordinary variable&lt;/span&gt;
&lt;span class="nf"&gt;show&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"token as a variable"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;serializeEnvironmentFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;parseEnvironmentFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="s2"&gt;"format: 1\nname: staging\nvariables:\n  - name: apiKey\n    value: sk_live_abc123\nsecrets: []\n"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// a token typed into a request's auth&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;req&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"01JD0000000000000000000001"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Me"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"GET"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"{{baseUrl}}/me"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"bearer"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bearer&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"sk_live_abc123"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"none"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;scripts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;presets&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;meta&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;tags&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;show&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"literal bearer token"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
  &lt;span class="nf"&gt;serializeRequestFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;parseRequestFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;serializeRequestFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;node env-file.mjs&lt;/code&gt; prints each case with ACCEPTED or REFUSED. If a later version starts refusing the last three, good, and this article needs an update.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://baton.dudko.dev/demo" rel="noopener noreferrer"&gt;Baton demo&lt;/a&gt; runs in the browser with nothing to install, if you want to see how environments and secrets look from the app side.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://baton.dudko.dev/blog/api-collection-secrets-in-git" rel="noopener noreferrer"&gt;https://baton.dudko.dev/blog/api-collection-secrets-in-git&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>git</category>
      <category>security</category>
      <category>api</category>
      <category>devops</category>
    </item>
    <item>
      <title>WhatsApp doesn't translate calls. Here's what does, and where your audio goes</title>
      <dc:creator>Dudko Development</dc:creator>
      <pubDate>Thu, 26 Nov 2026 16:28:41 +0000</pubDate>
      <link>https://dev.to/dudko-dev/whatsapp-doesnt-translate-calls-heres-what-does-and-where-your-audio-goes-120d</link>
      <guid>https://dev.to/dudko-dev/whatsapp-doesnt-translate-calls-heres-what-does-and-where-your-audio-goes-120d</guid>
      <description>&lt;p&gt;If you're trying to talk to a partner's parents, or your own, on WhatsApp and you&lt;br&gt;
don't share a language, the short answer is that WhatsApp won't help with the call&lt;br&gt;
itself. It translates messages. Calls happen in whatever language people speak.&lt;/p&gt;

&lt;p&gt;There are ways around that, and they differ more than the vendor pages make it look.&lt;br&gt;
The thing that differs most is what the person on the other end has to do, and the&lt;br&gt;
thing almost nobody mentions is where the call audio ends up.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does WhatsApp translate calls?
&lt;/h2&gt;

&lt;p&gt;No. WhatsApp's own &lt;a href="https://blog.whatsapp.com/introducing-message-translations" rel="noopener noreferrer"&gt;announcement from September 23, 2025&lt;/a&gt;&lt;br&gt;
covers messages: long-press, tap Translate, and it works "for 1:1 chats, groups, and&lt;br&gt;
Channel updates too". Android can also translate a whole chat automatically. The&lt;br&gt;
translation runs on your phone, "where WhatsApp cannot see them". Calls aren't in&lt;br&gt;
the post, and as of this week WhatsApp hasn't announced call translation anywhere&lt;br&gt;
we could find.&lt;/p&gt;

&lt;p&gt;So everything below is something you add on top.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three ways people do it today
&lt;/h2&gt;

&lt;p&gt;Most of the tools fall into one of three designs. The design decides more than the&lt;br&gt;
brand does.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Captions on your screen.&lt;/strong&gt; You take the call in WhatsApp on your computer, and&lt;br&gt;
an app listens to it and shows a live translation as text. &lt;a href="https://www.jotme.io/blog/translate-whatsapp-calls" rel="noopener noreferrer"&gt;JotMe's guide&lt;/a&gt;&lt;br&gt;
(August 2026) works this way, as does &lt;a href="https://sonicmeet.app/whatsapp-live-translation" rel="noopener noreferrer"&gt;SonicMeet&lt;/a&gt;,&lt;br&gt;
which shows bilingual captions for WhatsApp calls on Windows and Mac. You read; the&lt;br&gt;
other person hears your voice as it is. JotMe says its free plan "typically includes&lt;br&gt;
20 minutes of monthly translation", and it describes sharing translation minutes with&lt;br&gt;
a code so guests can view the translations too.&lt;/p&gt;

&lt;p&gt;Good for: you understand them, and you can answer in their language, or someone on&lt;br&gt;
their side can.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. A link that moves the call.&lt;/strong&gt; You send a link in the WhatsApp chat, and both of&lt;br&gt;
you join a translated call in the browser instead. That's &lt;a href="https://www.bridgecall.app/news/whatsapp-call-translation-in-2026-why-grandma-still-can-t-ju-2026-w33" rel="noopener noreferrer"&gt;Bridgecall's&lt;/a&gt;&lt;br&gt;
approach ("Keep the chat in WhatsApp. Move the call to a link that translates.") and&lt;br&gt;
&lt;a href="https://1aicall.com/blog/whatsapp-call-translator/" rel="noopener noreferrer"&gt;AI Call's&lt;/a&gt; Call Links. The other&lt;br&gt;
person installs nothing, but they do leave WhatsApp and open a link.&lt;br&gt;
&lt;a href="https://whisperr.co/use-cases/translate-whatsapp-call/" rel="noopener noreferrer"&gt;Whisperr&lt;/a&gt; mixes the two: it&lt;br&gt;
listens on your device, and a "Broadcast Mode" room link lets the other person read or&lt;br&gt;
hear your words in their language in a browser.&lt;/p&gt;

&lt;p&gt;Good for: an older relative who will tap a link in a chat but won't install&lt;br&gt;
anything, and doesn't mind it not being a normal WhatsApp call.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. A translator under the call.&lt;/strong&gt; The call stays a normal WhatsApp call, and the&lt;br&gt;
translation happens between the call and your ears and mouth. The other person&lt;br&gt;
doesn't open or install anything. On a phone that's Samsung's Live Translate; on a&lt;br&gt;
Mac it's what &lt;a href="https://ai-translator.dudko.dev" rel="noopener noreferrer"&gt;AI Translator&lt;/a&gt; does. More on both&lt;br&gt;
below.&lt;/p&gt;

&lt;p&gt;We aren't comparing translation quality between any of these. None of them publishes&lt;br&gt;
a number you could hold against another, and we haven't measured them. A five-minute&lt;br&gt;
test call with someone patient will tell you more than any page will.&lt;/p&gt;

&lt;h2&gt;
  
  
  On a phone: Galaxy users already have it
&lt;/h2&gt;

&lt;p&gt;If your phone is a recent Samsung Galaxy, start here. &lt;a href="https://www.samsung.com/us/support/answer/ANS10000935/" rel="noopener noreferrer"&gt;Samsung's support page&lt;/a&gt;&lt;br&gt;
says Live Translate works on select phones and tablets with Android 14 and One UI 6.1&lt;br&gt;
or higher, and that it's available in "some third-party apps, such as WhatsApp,&lt;br&gt;
Facebook Messenger, Instagram, Signal", among others.&lt;/p&gt;

&lt;p&gt;The path from that page: &lt;strong&gt;Settings &amp;gt; Galaxy AI &amp;gt; Call assist &amp;gt; Live translate in other&lt;br&gt;
apps&lt;/strong&gt;, turn on WhatsApp, then during a call swipe down to Quick settings and tap&lt;br&gt;
&lt;strong&gt;Live translate&lt;/strong&gt;. You'll see the translation on screen and hear it, and you can pick&lt;br&gt;
the languages and voice for yourself and the other person.&lt;/p&gt;

&lt;p&gt;Samsung adds one warning worth keeping: "Only one person should use Live Translate at&lt;br&gt;
a time, otherwise translation errors will occur." So if both of you have Galaxy phones,&lt;br&gt;
decide who runs it.&lt;/p&gt;

&lt;p&gt;On an iPhone, Apple &lt;a href="https://support.apple.com/en-us/123720" rel="noopener noreferrer"&gt;documents Live Translation&lt;/a&gt;&lt;br&gt;
for the Phone app, FaceTime and Messages. We found nothing from Apple or WhatsApp&lt;br&gt;
saying it reaches WhatsApp calls, so don't count on it there.&lt;/p&gt;

&lt;h2&gt;
  
  
  On a Mac: both directions, inside WhatsApp
&lt;/h2&gt;

&lt;p&gt;If you take your calls in the WhatsApp app for Mac, a translator can sit in the audio&lt;br&gt;
path. AI Translator installs two virtual audio devices, &lt;strong&gt;AI Translator Speaker&lt;/strong&gt; and&lt;br&gt;
&lt;strong&gt;AI Translator Microphone&lt;/strong&gt;. WhatsApp sees them as an ordinary speaker and mic, the&lt;br&gt;
same way Zoom, FaceTime or Teams would.&lt;/p&gt;

&lt;p&gt;Turn on Autopilot and the app switches system audio over when you press Start and&lt;br&gt;
restores it when you press Stop. Then two things happen at once, as two separate&lt;br&gt;
translation sessions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the other person speaks, and you hear them in your language in your headphones;&lt;/li&gt;
&lt;li&gt;you speak, and they hear you in theirs, through what WhatsApp thinks is your
microphone.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;They don't install anything and don't need to know how it works. To them it's a normal&lt;br&gt;
WhatsApp call where you happen to speak their language. If you want the plumbing, the&lt;br&gt;
&lt;a href="https://ai-translator.dudko.dev/blog/translate-a-call-on-macos-audio-routing" rel="noopener noreferrer"&gt;audio routing article&lt;/a&gt; explains why it&lt;br&gt;
takes two devices.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which engine for a family call
&lt;/h2&gt;

&lt;p&gt;AI Translator has three engines. This is from &lt;a href="https://ai-translator.dudko.dev/#providers" rel="noopener noreferrer"&gt;the site's comparison&lt;/a&gt;&lt;br&gt;
as of November 26, 2026:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;OpenAI Realtime&lt;/th&gt;
&lt;th&gt;Gemini Live&lt;/th&gt;
&lt;th&gt;On-device&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Runs on&lt;/td&gt;
&lt;td&gt;OpenAI's servers&lt;/td&gt;
&lt;td&gt;Google's servers&lt;/td&gt;
&lt;td&gt;Your Mac, with no network&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Speaks&lt;/td&gt;
&lt;td&gt;While the other side is still talking&lt;/td&gt;
&lt;td&gt;While the other side is still talking&lt;/td&gt;
&lt;td&gt;After each phrase ends&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sounds like&lt;/td&gt;
&lt;td&gt;The speaker's own voice&lt;/td&gt;
&lt;td&gt;A natural generated voice&lt;/td&gt;
&lt;td&gt;A macOS voice, or a downloaded one that imitates the speaker&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Translates into&lt;/td&gt;
&lt;td&gt;13 languages&lt;/td&gt;
&lt;td&gt;29 languages&lt;/td&gt;
&lt;td&gt;29 languages&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Costs&lt;/td&gt;
&lt;td&gt;Your OpenAI key, billed per minute&lt;/td&gt;
&lt;td&gt;Your Gemini key, billed by Google&lt;/td&gt;
&lt;td&gt;Nothing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Needs&lt;/td&gt;
&lt;td&gt;macOS 14 or newer&lt;/td&gt;
&lt;td&gt;macOS 14 or newer&lt;/td&gt;
&lt;td&gt;macOS 26 or newer&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;What we'd pick for talking to family: the on-device engine, if your Mac is on macOS 26&lt;br&gt;
and your language pair is covered. It's free, needs no key, and it's turn-by-turn, which&lt;br&gt;
suits a conversation where people take turns anyway. If you need it to keep pace with&lt;br&gt;
someone who talks fast and long, use a cloud engine, knowing the audio goes to OpenAI or&lt;br&gt;
Google under your own key.&lt;/p&gt;

&lt;p&gt;The site gives language counts, not a list, so check your exact pair in the app before&lt;br&gt;
the call that matters.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part about encryption
&lt;/h2&gt;

&lt;p&gt;WhatsApp says its Mac app &lt;a href="https://blog.whatsapp.com/new-whatsapp-app-for-mac-now-with-group-calling" rel="noopener noreferrer"&gt;keeps your calls private "with end-to-end encryption"&lt;/a&gt;.&lt;br&gt;
That's true, and it's about the trip between devices. To play the call to you, your&lt;br&gt;
device has to decrypt it. Whatever translates the call works on that decrypted audio,&lt;br&gt;
and then it's wherever the translator runs.&lt;/p&gt;

&lt;p&gt;That holds for every option in this article, ours included:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A translator that runs in the cloud sends the audio, or the text, to its servers or its
provider's. With AI Translator's OpenAI or Gemini engine, call audio goes straight to
OpenAI or Google under your key. It doesn't pass through a server of ours, but it does
leave your Mac.&lt;/li&gt;
&lt;li&gt;A browser link means the call runs on that service, not on WhatsApp.&lt;/li&gt;
&lt;li&gt;With AI Translator's on-device engine, recognition, translation and speech all run on
the Mac, and the site says audio and text never touch a network.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of that makes the cloud options bad. It just means the encryption badge stops&lt;br&gt;
answering the question once a translator is involved, and the question becomes whose&lt;br&gt;
privacy page you're reading. For the other tools, read theirs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this is the wrong tool
&lt;/h2&gt;

&lt;p&gt;We'd rather you pick the right thing than ours.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You take WhatsApp calls on your phone.&lt;/strong&gt; Most people do. AI Translator only works if
you take the call in WhatsApp for Mac, on an Apple Silicon Mac (M1 or later; Intel Macs
aren't supported). On a Galaxy phone, Samsung's Live Translate is already in your
pocket. Use it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You want it free, private and simultaneous all at once.&lt;/strong&gt; We can't do that. The free,
on-device engine speaks after each phrase ends and needs macOS 26. The engines that keep
pace need your own OpenAI or Gemini key, which costs money, and send audio to that
provider.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A family group call in three languages.&lt;/strong&gt; Each session is one pair: your language and
theirs. We haven't tested how it behaves in a WhatsApp group call with several speakers,
so we won't promise anything there.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You're on Windows, or an Intel Mac.&lt;/strong&gt; Some caption tools above run there; we don't.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Before the first call
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Wired headphones. They work best; the site says Bluetooth adds 100–300 ms.&lt;/li&gt;
&lt;li&gt;Pick the engine, and for on-device, any model it offers to download, before the call
rather than during it.&lt;/li&gt;
&lt;li&gt;Sign in to WhatsApp for Mac and check your language pair is there.&lt;/li&gt;
&lt;li&gt;Turn on Autopilot, or set AI Translator Speaker and AI Translator Microphone yourself.&lt;/li&gt;
&lt;li&gt;Press Start Translation (⌃⌥T works from any app), then call.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Try it once with a friend who speaks the other language. Then call the people you&lt;br&gt;
actually wanted to talk to.&lt;/p&gt;

&lt;p&gt;If your calls are on Zoom as well, the &lt;a href="https://ai-translator.dudko.dev/blog/zoom-voice-translator-vs-system-level-call-translation" rel="noopener noreferrer"&gt;Zoom Voice Translator comparison&lt;/a&gt;&lt;br&gt;
covers how that one differs.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://ai-translator.dudko.dev/blog/translate-a-whatsapp-call-on-a-mac" rel="noopener noreferrer"&gt;https://ai-translator.dudko.dev/blog/translate-a-whatsapp-call-on-a-mac&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>whatsapp</category>
      <category>livetranslation</category>
      <category>macos</category>
      <category>privacy</category>
    </item>
    <item>
      <title>Free multi-currency invoicing: what each free plan actually caps</title>
      <dc:creator>Dudko Development</dc:creator>
      <pubDate>Thu, 26 Nov 2026 15:19:40 +0000</pubDate>
      <link>https://dev.to/dudko-dev/free-multi-currency-invoicing-what-each-free-plan-actually-caps-5h5l</link>
      <guid>https://dev.to/dudko-dev/free-multi-currency-invoicing-what-each-free-plan-actually-caps-5h5l</guid>
      <description>&lt;p&gt;Search for free invoicing software that handles more than one currency and you'll&lt;br&gt;
get roundups, lots of them, and they mostly name the same few apps. What they&lt;br&gt;
don't agree on is what the free plans let you do.&lt;/p&gt;

&lt;p&gt;Two examples from pages ranking this month. One roundup says Zoho Invoice's free&lt;br&gt;
plan covers "1,000 invoices/year"; another says 500. One says Invoice Ninja's free&lt;br&gt;
plan allows 5 clients; another says 100. Somebody is wrong in both cases, and if&lt;br&gt;
you bill a handful of foreign clients it matters which.&lt;/p&gt;

&lt;p&gt;So we skipped the roundups and read each vendor's own pricing or help page on&lt;br&gt;
November 26, 2026. Every cell below comes from the page linked next to it. Where&lt;br&gt;
the vendor's page doesn't say something, the table says "not stated" rather than&lt;br&gt;
guessing.&lt;/p&gt;

&lt;p&gt;One disclosure before the table: Mini Accountant is ours, and it's in the table.&lt;br&gt;
Its row comes from our own published FAQ, on the same terms as everyone else's.&lt;/p&gt;

&lt;h2&gt;
  
  
  The free plans, side by side
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Free plan&lt;/th&gt;
&lt;th&gt;Invoices&lt;/th&gt;
&lt;th&gt;Clients&lt;/th&gt;
&lt;th&gt;Foreign-currency invoices&lt;/th&gt;
&lt;th&gt;Branding on free invoices&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://www.zoho.com/us/invoice/pricing/" rel="noopener noreferrer"&gt;Zoho Invoice&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;up to 500 a year&lt;/td&gt;
&lt;td&gt;not capped on the page (2 users, 3 projects)&lt;/td&gt;
&lt;td&gt;yes, &lt;a href="https://www.zoho.com/us/invoice/help/settings/currencies.html" rel="noopener noreferrer"&gt;add the currencies you deal with&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;"Powered by Zoho Invoice"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;a href="https://invoiceninja.com/pricing-plans/" rel="noopener noreferrer"&gt;Invoice Ninja&lt;/a&gt; (hosted)&lt;/td&gt;
&lt;td&gt;unlimited&lt;/td&gt;
&lt;td&gt;up to 5&lt;/td&gt;
&lt;td&gt;"Automatic Currency Conversions" is in the Free column&lt;/td&gt;
&lt;td&gt;yes; removing it is a paid feature&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;a href="https://www.waveapps.com/pricing" rel="noopener noreferrer"&gt;Wave&lt;/a&gt; (Starter, $0)&lt;/td&gt;
&lt;td&gt;unlimited&lt;/td&gt;
&lt;td&gt;not capped&lt;/td&gt;
&lt;td&gt;yes, &lt;a href="https://support.waveapps.com/hc/en-us/articles/360035158192-Create-a-foreign-currency-invoice-or-bill" rel="noopener noreferrer"&gt;per invoice&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;not stated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://invoicely.com/pricing" rel="noopener noreferrer"&gt;invoicely&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;5 a month&lt;/td&gt;
&lt;td&gt;3 saved clients&lt;/td&gt;
&lt;td&gt;"Bill in any Currency" is listed; the page doesn't make clear which plans get it&lt;/td&gt;
&lt;td&gt;"Branding: Limited", PDFs "Branded only"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://www.paypal.com/us/business/accept-payments/invoice" rel="noopener noreferrer"&gt;PayPal Invoicing&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;not capped&lt;/td&gt;
&lt;td&gt;not capped&lt;/td&gt;
&lt;td&gt;24 currencies&lt;/td&gt;
&lt;td&gt;not stated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://ad.miniaccountant.app" rel="noopener noreferrer"&gt;Mini Accountant&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;not capped&lt;/td&gt;
&lt;td&gt;not capped&lt;/td&gt;
&lt;td&gt;yes, each client has their own currency&lt;/td&gt;
&lt;td&gt;"Powered by Mini Accountant"; the optional Pro subscription removes it&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;So, on the two disputed numbers: Zoho's own FAQ says 500 invoices a year, and&lt;br&gt;
Invoice Ninja's own plan table says "Clients: Up to 5" on Free. The 1,000 and 100&lt;br&gt;
figures don't appear on either vendor's page today.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the table doesn't show
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Free to send is not free to get paid.&lt;/strong&gt; PayPal doesn't charge for the invoice,&lt;br&gt;
but it charges on the payment: 3.49% + $0.49 when the client pays with PayPal or&lt;br&gt;
Venmo, 2.99% + $0.49 by card, 1% by bank transfer capped at $10, per its&lt;br&gt;
invoicing page. Wave's Starter plan lists 2.9% + $0.60 per credit card payment if&lt;br&gt;
you take payments online through it. On a $2,000 invoice paid by card through&lt;br&gt;
PayPal that's about $60. If your clients pay by bank transfer anyway, none of this&lt;br&gt;
applies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Branding on the free plan is normal.&lt;/strong&gt; Zoho, Invoice Ninja, invoicely and Mini&lt;br&gt;
Accountant all put a small vendor line on free invoices. Most clients won't care.&lt;br&gt;
If yours would, check that row first, because that's the thing every one of these&lt;br&gt;
companies sells.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Caps you'll hit as a freelancer with foreign clients.&lt;/strong&gt; invoicely's 5 invoices a&lt;br&gt;
month and 3 saved clients are the tightest here; two retainer clients and&lt;br&gt;
one one-off project fill the client list. Invoice Ninja's 5-client limit is the next&lt;br&gt;
one people run into. Zoho's 500 a year is plenty for most one-person businesses.&lt;br&gt;
Wave, PayPal and Mini Accountant don't publish an invoice or client cap on their&lt;br&gt;
free tiers.&lt;/p&gt;

&lt;h2&gt;
  
  
  How each one handles the exchange rate
&lt;/h2&gt;

&lt;p&gt;This is the part that decides whether your income report is usable at tax time,&lt;br&gt;
and it differs more than the feature lists suggest.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Wave&lt;/strong&gt; records the expected rate when you approve a foreign-currency invoice
and then tracks the difference to the actual rate on payment as an unrealized
gain or loss on your balance sheet. That's proper double-entry accounting, and
it's a real reason to pick Wave if you want full books.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zoho Invoice&lt;/strong&gt; lets you add the currencies and exchange rates you deal with to
your account.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mini Accountant&lt;/strong&gt; gives each client their own currency, and their invoices use
it. Every payment and expense keeps its exchange rate into your business
currency, either fetched for its date or typed in from your bank statement, so
the totals and reports add up in one currency.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The "typed from your bank" option is worth knowing about whichever tool you use.&lt;br&gt;
The rate your bank actually gave you is rarely the mid-market rate on the invoice&lt;br&gt;
date, and it's the bank's number that ends up in your account.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Mini Accountant is the wrong pick
&lt;/h2&gt;

&lt;p&gt;Being straight about this saves you a migration later:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No bank feeds or bank import.&lt;/strong&gt; Payments and expenses are entered by hand or
through the app's assistant. Wave connects to your bank; we don't.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No online payment collection.&lt;/strong&gt; Your bank, PayPal or other payment details go
on the PDF and the client pays you directly. If you want a "pay now" button on
the invoice, PayPal, Wave or Invoice Ninja does that.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No scheduled recurring invoices.&lt;/strong&gt; You can duplicate an invoice in one click
and the copy is dated today, but nothing sends on a schedule.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not full bookkeeping.&lt;/strong&gt; If you need a balance sheet and payroll, look at Wave
or a paid accounting package.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Where it fits: a freelancer or small business billing clients in several&lt;br&gt;
currencies who wants invoices, expenses, VAT and income reports in one place&lt;br&gt;
without a cap on clients or invoices. Every feature is free on iPhone, iPad,&lt;br&gt;
Android and the web.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick answers
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Which free invoicing app has no invoice limit?&lt;/strong&gt; Going by their own pages&lt;br&gt;
today: Invoice Ninja (but 5 clients), Wave, PayPal (fees on payment) and Mini&lt;br&gt;
Accountant.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does Zoho Invoice's free plan support other currencies?&lt;/strong&gt; Its help page explains&lt;br&gt;
adding currencies and exchange rates to your account, and its pricing page doesn't&lt;br&gt;
restrict that to paid plans. The free plan's limits are 500 invoices a year, two&lt;br&gt;
users and three projects.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I remove the vendor's branding for free?&lt;/strong&gt; Not on Zoho, Invoice Ninja,&lt;br&gt;
invoicely or Mini Accountant. Each sells that as part of a paid plan.&lt;/p&gt;

&lt;p&gt;Prices and limits change. Every link above goes to the vendor's own page, so&lt;br&gt;
check there before you commit, and if you spot something that has changed, write&lt;br&gt;
to the address below and we'll update the table.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://ad.miniaccountant.app/blog/free-multi-currency-invoicing-plan-limits" rel="noopener noreferrer"&gt;https://ad.miniaccountant.app/blog/free-multi-currency-invoicing-plan-limits&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>invoicing</category>
      <category>multicurrency</category>
      <category>comparisons</category>
    </item>
    <item>
      <title>Open-source Glean alternatives: where each one keeps the permission model</title>
      <dc:creator>Dudko Development</dc:creator>
      <pubDate>Thu, 26 Nov 2026 14:56:54 +0000</pubDate>
      <link>https://dev.to/dudko-dev/open-source-glean-alternatives-where-each-one-keeps-the-permission-model-1ig1</link>
      <guid>https://dev.to/dudko-dev/open-source-glean-alternatives-where-each-one-keeps-the-permission-model-1ig1</guid>
      <description>&lt;p&gt;Search for an open-source Glean alternative and you get a page of roundups. &lt;a href="https://openalternative.co/alternatives/glean" rel="noopener noreferrer"&gt;OpenAlternative&lt;/a&gt; lists three: Onyx, PipesHub and Omni. &lt;a href="https://onyx.app/alternatives/glean" rel="noopener noreferrer"&gt;Onyx's own page&lt;/a&gt; lists one, itself. Most of the blog roundups put Onyx first, and they're not wrong to.&lt;/p&gt;

&lt;p&gt;What none of them tells you is the thing Glean sells hardest. Glean's search page says it &lt;a href="https://www.glean.com/product/search" rel="noopener noreferrer"&gt;enforces "the existing permissions of your data sources in results, so users only see what they are allowed to access"&lt;/a&gt;. If you're replacing Glean, that sentence is the requirement. And for the open-source options, the question isn't whether the permission model exists. Each of them has one. The question is which edition it ships in, and where in the query it runs.&lt;/p&gt;

&lt;p&gt;So this piece goes through three projects on that one axis: Onyx, Omni, and ours, Nacre. We work on Nacre, so weigh it accordingly. Every competitor fact below links to the competitor's own page, read on 26 November 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  Onyx: the most connectors, with permission sync in the paid plans
&lt;/h2&gt;

&lt;p&gt;Onyx is the one to beat, and on breadth it isn't close. The &lt;a href="https://docs.onyx.app/admins/connectors/overview" rel="noopener noreferrer"&gt;connectors overview&lt;/a&gt; has 56 connector cards today: Confluence, Slack, Jira, Notion, SharePoint and OneDrive, Google Drive, Salesforce, Zendesk and a long tail after them. Crawling, scheduling and change detection are written and maintained for you.&lt;/p&gt;

&lt;p&gt;The licence line is drawn in two places, and the two agree. The &lt;a href="https://github.com/onyx-dot-app/onyx" rel="noopener noreferrer"&gt;README&lt;/a&gt; says the Community Edition "is available freely under the MIT license and covers all of the core features for RAG, AI Chat, Agents, and Actions", and lists SSO, SCIM group sync and RBAC under "Onyx for Enterprise". The connector docs say the same about permissions specifically. The overview: "Permission syncing is available on Business, Enterprise, and Cloud plans." The &lt;a href="https://docs.onyx.app/admins/connectors/official/github" rel="noopener noreferrer"&gt;GitHub connector page&lt;/a&gt; spells out what happens without it: "On the Community Edition, Sync with GitHub is locked, and connectors are visible to everyone." &lt;a href="https://docs.onyx.app/admins/connectors/official/google_drive/overview" rel="noopener noreferrer"&gt;Google Drive&lt;/a&gt; and &lt;a href="https://docs.onyx.app/admins/connectors/official/confluence" rel="noopener noreferrer"&gt;Confluence&lt;/a&gt; say much the same: permission sync there needs a paid plan.&lt;/p&gt;

&lt;p&gt;On enforcement, Onyx's &lt;a href="https://docs.onyx.app/security/architecture/access_controls" rel="noopener noreferrer"&gt;access-controls page&lt;/a&gt; says every indexed document carries an ACL and that Onyx "applies the user's ACL as a filter on every search". It doesn't say whether that filter runs before ranking or after, so we won't guess. Ask them if it matters to you. (Below, we say why it might.)&lt;/p&gt;

&lt;p&gt;Open core is a perfectly normal way to fund a project like this, and we do it too. The practical reading, in their GitHub page's own words: on the free build, connectors are visible to everyone. If that's fine for your corpus, Onyx is very likely your answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Omni: Apache-2.0, with inherited permissions in the README
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/getomnico/omni" rel="noopener noreferrer"&gt;Omni&lt;/a&gt; is newer and smaller. It's Apache-2.0 and describes itself as "an open-source, self-hosted AI agent for company-wide work". Its README lists 23 integrations, from Google Drive, Gmail, SharePoint and Teams to Confluence, Notion, Slack, Jira, GitHub and Linear. On permissions, the README is direct: "Keep indexed information scoped by the permissions inherited from each source system."&lt;/p&gt;

&lt;p&gt;Its &lt;a href="https://getomni.co/cloud" rel="noopener noreferrer"&gt;pricing page&lt;/a&gt; has a free community tier with "No SSO or enterprise controls", SSO on a Business plan, and SCIM provisioning and audit logs on Enterprise. We couldn't find a sentence that puts permission inheritance itself on either side of that line. Before you rely on it in the free build, check it on a test corpus. That's an hour well spent with any of these three.&lt;/p&gt;

&lt;h2&gt;
  
  
  Nacre: six connectors, the permission model in the Apache-2.0 core
&lt;/h2&gt;

&lt;p&gt;Now the part where we lose, because it's probably the part that decides it.&lt;/p&gt;

&lt;p&gt;Nacre mostly doesn't connect to your sources. There are six reference connectors, deliberately generic: &lt;code&gt;git&lt;/code&gt;, &lt;code&gt;s3&lt;/code&gt;, &lt;code&gt;sql&lt;/code&gt;, &lt;code&gt;drive&lt;/code&gt;, &lt;code&gt;mongo&lt;/code&gt; and &lt;code&gt;imap&lt;/code&gt;, Apache-2.0, in &lt;a href="https://github.com/nacre-work/connectors" rel="noopener noreferrer"&gt;their own repository&lt;/a&gt;. No Confluence, no Slack, no SharePoint, no Notion, no Jira. That repository's README is honest about it: "They are a simplification, not the way in. Nacre takes documents pushed over its API, MCP, SDK or CLI, and the customer owns the sync." If you want Confluence and Drive searchable by Monday, use Onyx or Omni. Nothing to argue about.&lt;/p&gt;

&lt;p&gt;What's in the Apache-2.0 core is the permission model: layers, groups, grants, and the code that evaluates them on every request, plus the test suite that guards it. &lt;a href="https://github.com/nacre-work/nacre/blob/main/docs/licensing.md" rel="noopener noreferrer"&gt;&lt;code&gt;docs/licensing.md&lt;/code&gt;&lt;/a&gt; lists the commercial modules by name. The ones that touch permissions are SSO over OIDC with SCIM group sync, and &lt;em&gt;issuing&lt;/em&gt; document-level grants and deny rules. So the trade runs the other way from Onyx's. You get enforcement for free, and the directory integration costs money. If your groups live in Okta or Entra and you need them synced, that's a paid module here too.&lt;/p&gt;

&lt;p&gt;The reason we put the line there is the mechanism.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before ranking or after
&lt;/h2&gt;

&lt;p&gt;The easy way to make retrieval permission-aware is to fetch the top ten, drop the ones the user can't see, and return what's left. It demos fine. But a query that returns three results instead of ten has told you seven documents exist, and the gap shows in the count, the latency and the ranking. You never see the documents, just their outline.&lt;/p&gt;

&lt;p&gt;The fix has to happen inside the index, before ranking. Nacre's &lt;a href="https://github.com/nacre-work/nacre/blob/main/docs/authz.md" rel="noopener noreferrer"&gt;&lt;code&gt;docs/authz.md&lt;/code&gt;&lt;/a&gt; states six invariants. Two of them carry this argument:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;I2.&lt;/strong&gt; The number of results does not depend on whether the filter ran before or after ranking. A user with access to 1 layer of 20 asking for &lt;code&gt;top_k=10&lt;/code&gt; gets 10 results — not 10 minus whatever was stripped.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I6.&lt;/strong&gt; A request without permission is indistinguishable from a request for something that does not exist: &lt;code&gt;404&lt;/code&gt;, never &lt;code&gt;403&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A &lt;code&gt;403&lt;/code&gt; sounds like the careful answer, but it's still an answer. It confirms the document is there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checked today, not just read
&lt;/h2&gt;

&lt;p&gt;Claims about invariants are cheap, so here's one run against &lt;a href="https://playground.nacre.work" rel="noopener noreferrer"&gt;playground.nacre.work&lt;/a&gt;, the public demo. The logins are printed on &lt;a href="https://demo.nacre.work" rel="noopener noreferrer"&gt;demo.nacre.work&lt;/a&gt;, so you can repeat all of it.&lt;/p&gt;

&lt;p&gt;Same question, two users: &lt;em&gt;"what is the contract number for Northwind"&lt;/em&gt;. The engineer gets 8 items across the &lt;code&gt;engineering&lt;/code&gt; and &lt;code&gt;handbook&lt;/code&gt; layers. The contractor gets 3, all from &lt;code&gt;handbook&lt;/code&gt;. Neither gets the contract number, because nobody in the demo may read it.&lt;/p&gt;

&lt;p&gt;Then I6, which needs a control or it proves nothing. A system that answers &lt;code&gt;404&lt;/code&gt; to everything passes trivially. So, three requests:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# sign in (organization "demo"; passwords are on demo.nacre.work)&lt;/span&gt;
curl -s https://playground.nacre.work/v1/auth/login \
  -H &lt;span class="s1"&gt;'content-type: application/json'&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"email":"contractor@demo.nacre.work","password":"…","organization":"demo"}'&lt;/span&gt;

&lt;span class="c"&gt;# 1. contractor reads a document in the engineering layer   -&amp;gt; 404&lt;/span&gt;
&lt;span class="c"&gt;# 2. contractor reads an id that never existed              -&amp;gt; 404&lt;/span&gt;
&lt;span class="c"&gt;# 3. engineer reads the same document as (1)                -&amp;gt; 200&lt;/span&gt;
curl -s -w &lt;span class="s1"&gt;'\n%{http_code}\n'&lt;/span&gt; -H &lt;span class="s2"&gt;"authorization: Bearer $TOKEN"&lt;/span&gt; \
  https://playground.nacre.work/v1/documents/&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;id&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The result on 26 November: &lt;code&gt;404&lt;/code&gt;, &lt;code&gt;404&lt;/code&gt;, &lt;code&gt;200&lt;/code&gt;. Request 3 shows the document was really there. And the two &lt;code&gt;404&lt;/code&gt; bodies were identical once the per-request &lt;code&gt;instance&lt;/code&gt; and &lt;code&gt;request_id&lt;/code&gt; fields were removed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"detail"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"The requested resource does not exist or is not accessible."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;404&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Not found"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://nacre.work/errors/not-found"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The wording counts as much as the status. A friendlier message for the forbidden case would leak just as well.&lt;/p&gt;

&lt;p&gt;The playground is a demo, not a hosted product. It's capped at 200 documents and wipes itself daily. The thing you'd run is the &lt;a href="https://github.com/nacre-work/nacre" rel="noopener noreferrer"&gt;Apache-2.0 build&lt;/a&gt;, with Docker Compose or the Helm chart.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to choose
&lt;/h2&gt;

&lt;p&gt;Three questions, in this order.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do you need someone else to crawl your SaaS tools?&lt;/strong&gt; If yes, it's Onyx or Omni. Onyx has more than twice Omni's connectors. Nacre isn't in this race.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does your corpus need per-user visibility on the free build?&lt;/strong&gt; On Onyx, permission sync is a paid plan. On Omni, test it. On Nacre, it's the core.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Will a security review ask how the filter works, not just whether there is one?&lt;/strong&gt; Then ask each vendor whether results are filtered before ranking or after, and what a forbidden ID returns. We've put our answer above. That question matters more than any connector count, and it doesn't require you to run anything of ours.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://nacre.work/blog/open-source-glean-alternatives-permission-model" rel="noopener noreferrer"&gt;https://nacre.work/blog/open-source-glean-alternatives-permission-model&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>glean</category>
      <category>onyx</category>
      <category>opensource</category>
      <category>permissions</category>
    </item>
    <item>
      <title>pg_dump version mismatch, both ways: what fails, measured on PostgreSQL 14 to 19</title>
      <dc:creator>Dudko Development</dc:creator>
      <pubDate>Mon, 23 Nov 2026 16:24:13 +0000</pubDate>
      <link>https://dev.to/dudko-dev/pgdump-version-mismatch-both-ways-what-fails-measured-on-postgresql-14-to-19-2geo</link>
      <guid>https://dev.to/dudko-dev/pgdump-version-mismatch-both-ways-what-fails-measured-on-postgresql-14-to-19-2geo</guid>
      <description>&lt;p&gt;There are two pg_dump errors people paste into search, and they point in opposite directions.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pg_dump: error: aborting because of server version mismatch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ERROR:  unrecognized configuration parameter "transaction_timeout"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first means your pg_dump is too old for the server. It's the subject of a &lt;a href="https://stackoverflow.com/questions/12836312/postgresql-9-2-pg-dump-version-mismatch" rel="noopener noreferrer"&gt;Stack Overflow question&lt;/a&gt; from 2012 with close to 485,000 views that still gets activity. The second usually means your pg_dump is too &lt;em&gt;new&lt;/em&gt; for the server you're restoring into, and it has been turning up a lot lately, as CI runners and fresh Ubuntu installs moved to pg_dump 18. In &lt;a href="https://github.com/getodk/central/issues/2315" rel="noopener noreferrer"&gt;getodk/central#2315&lt;/a&gt;, opened on November 9, 2026, a host pg_dump 18.6 made backups that didn't restore into a 14.23 database, and the issue is titled "restoring ubuntu 26.4 backups to postgres v14 fails".&lt;/p&gt;

&lt;p&gt;So we ran every pg_dump from 14 to 19 against every server from 14 to 19, then restored the dumps across versions and recorded what broke. Most of it is the documented rule. One part isn't what people expect: a newer pg_dump's dump of a 16 server won't load back into that same 16 server.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule, from the manual
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://www.postgresql.org/docs/current/app-pgdump.html" rel="noopener noreferrer"&gt;pg_dump documentation&lt;/a&gt; says it in its Notes section. pg_dump "can also dump from PostgreSQL servers older than its own version", but it "cannot dump from PostgreSQL servers newer than its own major version; it will refuse to even try, rather than risk making an invalid dump." And then the sentence that matters for the second error:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;it is not guaranteed that pg_dump's output can be loaded into a server of an older major version — not even if the dump was taken from a server of that version.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The test
&lt;/h2&gt;

&lt;p&gt;Official Docker images: PostgreSQL 14.25, 16.16, 17.12, 18.7 and 19.0, the current minor of each major on the day we ran it (19.0 &lt;a href="https://www.postgresql.org/support/versioning/" rel="noopener noreferrer"&gt;came out&lt;/a&gt; on November 19, 2026; 14.25 is the last 14, which reached end of life on November 12). Plus 16.9 for one case further down. Each server gets the same small schema: an &lt;code&gt;orders&lt;/code&gt; table with 1000 rows, an identity primary key, an index and a view. Superuser, default settings. Every client major dumps every server major, in plain and custom format, and then the dumps made of the 16 server are restored across majors with psql and pg_restore. We ran it twice and got the same output both times.&lt;/p&gt;

&lt;p&gt;The script is &lt;a href="https://tabellum.dudko.dev/blog/media/pg-dump-version-mismatch/measure.sh" rel="noopener noreferrer"&gt;&lt;code&gt;measure.sh&lt;/code&gt;&lt;/a&gt;. It needs only Docker.&lt;/p&gt;

&lt;p&gt;One small schema is the scope. A real database with extensions, newer syntax or non-default settings can only add failures to the restore half of this, never remove them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Dumping: a clean triangle
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;pg_dump ↓ / server →&lt;/th&gt;
&lt;th&gt;14&lt;/th&gt;
&lt;th&gt;16&lt;/th&gt;
&lt;th&gt;17&lt;/th&gt;
&lt;th&gt;18&lt;/th&gt;
&lt;th&gt;19&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;14&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;ok&lt;/td&gt;
&lt;td&gt;refused&lt;/td&gt;
&lt;td&gt;refused&lt;/td&gt;
&lt;td&gt;refused&lt;/td&gt;
&lt;td&gt;refused&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;16&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;ok&lt;/td&gt;
&lt;td&gt;ok&lt;/td&gt;
&lt;td&gt;refused&lt;/td&gt;
&lt;td&gt;refused&lt;/td&gt;
&lt;td&gt;refused&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;17&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;ok&lt;/td&gt;
&lt;td&gt;ok&lt;/td&gt;
&lt;td&gt;ok&lt;/td&gt;
&lt;td&gt;refused&lt;/td&gt;
&lt;td&gt;refused&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;18&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;ok&lt;/td&gt;
&lt;td&gt;ok&lt;/td&gt;
&lt;td&gt;ok&lt;/td&gt;
&lt;td&gt;ok&lt;/td&gt;
&lt;td&gt;refused&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;19&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;ok&lt;/td&gt;
&lt;td&gt;ok&lt;/td&gt;
&lt;td&gt;ok&lt;/td&gt;
&lt;td&gt;ok&lt;/td&gt;
&lt;td&gt;ok&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;"Refused" is exit code 1 and &lt;code&gt;aborting because of server version mismatch&lt;/code&gt;, with both versions printed next to it. pg_dump N dumps any server up to N, exactly as documented.&lt;/p&gt;

&lt;p&gt;That's the easy direction. The fix is always the same: use a pg_dump at least as new as the server. If you dump several servers, the newest server decides.&lt;/p&gt;

&lt;h2&gt;
  
  
  Restoring: same server, still fails
&lt;/h2&gt;

&lt;p&gt;Now take that advice literally. You have a 16 server, your machine has pg_dump 18 (or 19), and you dump the 16 server. Line 13 of the plain-format file is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;transaction_timeout&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;transaction_timeout&lt;/code&gt; is a server setting &lt;a href="https://www.postgresql.org/docs/release/17.0/" rel="noopener noreferrer"&gt;added in PostgreSQL 17&lt;/a&gt;. pg_dump 18 and 19 write that line even when the server they're dumping is a 16, and a 16 or 14 server has never heard of it. Here's what happened to that one file, made by pg_dump 18 and by pg_dump 19 (both gave identical results):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;loaded into&lt;/th&gt;
&lt;th&gt;with&lt;/th&gt;
&lt;th&gt;result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;16 (the server it came from)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;psql -v ON_ERROR_STOP=1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;stops at line 13, exit 3, &lt;code&gt;orders&lt;/code&gt; never created&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;psql&lt;/code&gt;, default settings&lt;/td&gt;
&lt;td&gt;1 ERROR, exit 0, all 1000 rows loaded&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;td&gt;&lt;code&gt;psql -v ON_ERROR_STOP=1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;stops at line 13, exit 3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;psql&lt;/code&gt;, default settings&lt;/td&gt;
&lt;td&gt;1 ERROR, exit 0, all 1000 rows loaded&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;14, using psql 19 as the client&lt;/td&gt;
&lt;td&gt;&lt;code&gt;ON_ERROR_STOP=1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;stops at line 13, exit 3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;17 or 18&lt;/td&gt;
&lt;td&gt;either&lt;/td&gt;
&lt;td&gt;clean&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A newer psql doesn't help. The error comes from the server, not the client.&lt;/p&gt;

&lt;p&gt;Custom format (&lt;code&gt;-Fc&lt;/code&gt;) is worse, because there's a second check on top:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;archive from pg_dump 18 or 19, restored into 16 with&lt;/th&gt;
&lt;th&gt;result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;pg_restore 14 or 16&lt;/td&gt;
&lt;td&gt;refuses to read it: &lt;code&gt;unsupported version (1.16) in file header&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;pg_restore 17, 18 or 19, &lt;code&gt;--exit-on-error&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;stops on &lt;code&gt;SET transaction_timeout = 0;&lt;/code&gt;, exit 1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;pg_restore 18 or 19, default settings&lt;/td&gt;
&lt;td&gt;exit 1, &lt;code&gt;errors ignored on restore: 1&lt;/code&gt;, all 1000 rows restored&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That last line is the one that wastes an afternoon. Everything was restored, and the exit code says it failed. Any script, and any GUI that reads the exit code, reports a failed restore, and people go looking for a problem in their data. &lt;a href="https://github.com/pgadmin-org/pgadmin4/issues/8171" rel="noopener noreferrer"&gt;pgAdmin issue #8171&lt;/a&gt; is this exact output: a database backed up and restored on the same server, &lt;code&gt;errors ignored on restore: 1&lt;/code&gt;, reported as a failed restore. It was closed as not planned, with a maintainer saying "It is not a pgAdmin issue you need to set the default binaries compatible with your PostgreSQL version." Which is correct, and also the reason this keeps happening.&lt;/p&gt;

&lt;h2&gt;
  
  
  The quieter one: &lt;code&gt;\restrict&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;The same file has a &lt;code&gt;\restrict &amp;lt;key&amp;gt;&lt;/code&gt; line near the top and &lt;code&gt;\unrestrict &amp;lt;key&amp;gt;&lt;/code&gt; at the bottom. These are psql meta-commands added in the August 14, 2025 minor releases (17.6, 16.10, 15.14, 14.19 and 13.22) to fix &lt;a href="https://www.postgresql.org/support/security/CVE-2025-8714/" rel="noopener noreferrer"&gt;CVE-2025-8714&lt;/a&gt;, where a malicious source server could make a plain dump run psql meta-commands on the machine doing the restore. The &lt;a href="https://www.postgresql.org/docs/release/16.10/" rel="noopener noreferrer"&gt;16.10 release notes&lt;/a&gt; describe it: psql gets "a &lt;code&gt;\restrict&lt;/code&gt; command that prevents execution of further meta-commands", and pg_dump issues it "before any data coming from the source server."&lt;/p&gt;

&lt;p&gt;A psql from before those releases doesn't know the command. psql 16.9, given the same file with the &lt;code&gt;transaction_timeout&lt;/code&gt; line already deleted, stopped at line 5 with &lt;code&gt;invalid command \restrict&lt;/code&gt; and exit 3. psql 16.16 and 14.25 accepted it. So if you restore plain dumps with an old psql, "update to the current minor" is a real fix here, not boilerplate.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Dumping.&lt;/strong&gt; Use a pg_dump of the same major as the server, or newer. Older ones refuse.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dumping in order to restore into an older major, or back into the same one.&lt;/strong&gt; Use the pg_dump that matches the &lt;em&gt;target's&lt;/em&gt; major. That's the only route with no editing. If the target is 16, dump with 16, even when the source is 16 and you have 18 installed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You already have a newer dump and need it in an older server.&lt;/strong&gt; Delete the one line. On our file that was enough: with the line gone, psql 16 loaded it with &lt;code&gt;ON_ERROR_STOP=1&lt;/code&gt;, exit 0, all 1000 rows.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# plain format&lt;/span&gt;
sed &lt;span class="s1"&gt;'/^SET transaction_timeout = 0;$/d'&lt;/span&gt; dump.sql &lt;span class="o"&gt;|&lt;/span&gt; psql -v &lt;span class="nv"&gt;ON_ERROR_STOP&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1 -d target

&lt;span class="c"&gt;# custom format: let the newer pg_restore write SQL, then do the same&lt;/span&gt;
pg_restore -f - dump.custom &lt;span class="o"&gt;|&lt;/span&gt; sed &lt;span class="s1"&gt;'/^SET transaction_timeout = 0;$/d'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; psql -v &lt;span class="nv"&gt;ON_ERROR_STOP&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1 -d target
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We ran the second form too, with pg_restore 19 and psql 19 against a 16 server, and it loaded cleanly. Keep &lt;code&gt;ON_ERROR_STOP&lt;/code&gt; (or &lt;code&gt;--exit-on-error&lt;/code&gt;) on. Without it, the one error you expected and some other error you didn't look exactly the same in the output, and a richer schema than ours has more chances for the second kind. Read every error, don't count them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CI.&lt;/strong&gt; Pin the client major to the service major. The getodk issue above is this case: the runner's pg_dump was 18.6, the database was 14.23.&lt;/p&gt;

&lt;h2&gt;
  
  
  What GUI clients do about it
&lt;/h2&gt;

&lt;p&gt;A database GUI that backs up with pg_dump inherits all of this. What changes is how much of the version choice it leaves to you. From their own docs, read on November 23, 2026:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;DBeaver&lt;/strong&gt; runs a &lt;a href="https://dbeaver.com/docs/dbeaver/Local-Client-Configuration/" rel="noopener noreferrer"&gt;local client&lt;/a&gt; you configure. On macOS and Linux "the client never ships with DBeaver", and the tools work with remote databases "as long as the client version is compatible with the server". It doesn't define "compatible" there, and as the tables above show, it depends on which way the data is going.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;pgAdmin&lt;/strong&gt; has a &lt;a href="https://www.pgadmin.org/docs/pgadmin4/latest/preferences.html" rel="noopener noreferrer"&gt;Binary paths&lt;/a&gt; setting with a grid per server version, plus a default it falls back to. That works if every row is filled in. The pgAdmin issue above is what the fallback looks like when it isn't.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TablePlus&lt;/strong&gt; "ships with its own dump and restore tools for each supported server version", and its &lt;a href="https://tableplus.com/docs/gui-tools/backup-and-restore" rel="noopener noreferrer"&gt;backup and restore page&lt;/a&gt; tells you to choose the tool version and "Pick the one that matches your server." It remembers the choice per connection. Of the three, this is the one that solves most of the problem, as long as you pick the target's version when restoring into an older server. (TablePlus now labels these windows "Legacy" next to a newer Sync database feature.)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where Tabellum sits
&lt;/h2&gt;

&lt;p&gt;Tabellum, the database client this blog belongs to, comes in two desktop builds, and they back up differently.&lt;/p&gt;

&lt;p&gt;Per &lt;a href="https://tabellum.dudko.dev/manual/desktop/backup-restore-and-sync" rel="noopener noreferrer"&gt;its user guide&lt;/a&gt;, the Mac App Store version "backs up through the database connection itself": the schema and rows go into one SQL file of statements and &lt;code&gt;INSERT&lt;/code&gt;s, or into CSV, JSON Lines or an Excel workbook. No pg_dump is involved, so neither error in this article comes from that route. The same page is plain about the cost: it's "slower than the database's own backup tools and no substitute for them on a very large database."&lt;/p&gt;

&lt;p&gt;The version downloaded from the website is the other case. &lt;a href="https://tabellum.dudko.dev/manual/desktop/reference" rel="noopener noreferrer"&gt;The guide's reference chapter&lt;/a&gt; says that, compared with it, the App Store version "backs up through the connection rather than with tools such as pg_dump". The guide doesn't say which pg_dump version it uses or how it picks one, so we won't either. Everything in the tables above applies to it as it does to any other client, and so does the advice: for a restore into an older major, the target's version decides.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://tabellum.dudko.dev/blog/pg-dump-version-mismatch-both-directions" rel="noopener noreferrer"&gt;https://tabellum.dudko.dev/blog/pg-dump-version-mismatch-both-directions&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>postgres</category>
      <category>pgdump</category>
      <category>backup</category>
      <category>migration</category>
    </item>
  </channel>
</rss>
