postgres_wire_protocol (npm): This project is a sample implementation of postgres wire protocol. You can emulate your own postgres server where you can intercept all commands and respond as per your requirement.
Keywords: postgres|wire|protocol