If you run the psql client from your dev machine, there’s no need for step 2. Also, in practice I don’t save the output JSON to a file, I just pipe it directly to pg_flame. The README breaks it up into multiple steps, but maybe I could make it clear that it’s not necessary.
But in general I do agree that simplifying this type of tooling is a good thing and something to strive for.
But in general I do agree that simplifying this type of tooling is a good thing and something to strive for.