Preparing for system design interviews?  Try bugzed.com →

PostgreSQL Query Parser

JSON →
library 17.7.3 ·javascript
verified Jun 17, 2026

libpg-query provides Node.js and browser bindings for `libpg_query`, the real PostgreSQL C parser, compiled to WebAssembly (WASM). This library offers 100% spec-accurate parsing of SQL queries into PostgreSQL's internal Abstract Syntax Tree (AST) format, supporting PostgreSQL versions 13 through 17. Its key differentiators include being entirely cross-platform with zero native dependencies, eliminating common `node-gyp` compilation headaches. The package currently ships as version 17.7.3 and generally releases updates in alignment with new PostgreSQL major versions. It is distinct from other parsers by using the actual PostgreSQL source code, ensuring fidelity, and provides full TypeScript support for robust development.

total hits 15
actors 6 distinct systems
last hit 20d ago AhrefsBot
GPTBot
4
ChatGPT-User
3
Script
1
Search engines
2
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇬🇧 United Kingdom · 🇧🇪 Belgium · 🇩🇪 Germany