PostgreSQL Protocol Buffers Definition Parser

JSON →
library 1.30.5 ·javascript
verified May 27, 2026

The `pg-proto-parser` library is a TypeScript project designed to parse Protocol Buffers (`.proto`) definitions specifically for `pganalyze/libpg_query` PostgreSQL Abstract Syntax Tree (AST) structures. It does not parse raw SQL queries or the PostgreSQL wire protocol directly. Instead, its primary function is to generate TypeScript interfaces, utility functions, and JSON mappings for the enums and messages defined within these PostgreSQL-related protobuf schemas. This generated code facilitates the creation of type-safe AST nodes and simplifies enum value conversions, serving as a foundational tool for other PostgreSQL tooling like `launchql/pgsql-parser` for maintainable upgrades. The package is currently at version 1.30.5 and appears to be actively maintained, offering a crucial layer for developers working with PostgreSQL's internal query representation in a type-safe TypeScript environment.

total hits 22
actors 7 distinct systems
last hit 18h ago human
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
1
Humans
1

top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇳🇴 Norway · 🇩🇪 Germany