sqlite-ast

JSON →
library 0.0.7 ·javascript
verified Jun 7, 2026

Parse SQLite SQL syntax into an abstract syntax tree (AST). Version 0.0.7 is the latest. This package provides a lightweight, typed AST for SQLite queries, built on top of a parser generated from the SQLite grammar. It supports both parsing of raw SQL and a tagged template literal for safe query construction. Requires Node.js 22+. Features type definitions included, making it suitable for TypeScript projects. The library is minimal with no runtime dependencies.