Wow! Thank you for sharing this. I am bookmarking this article for future use!
( Truth be told, I did not fully understand everything but hopefully future me would )
Reminds of that article about Postgres for everything: https://github.com/Olshansk/postgres_for_everything