qail-wasm provides WebAssembly bindings for QAIL, an AST-native query language that transpiles to SQL. Current stable version is 0.17.1 (npm), but GitHub releases show up to v0.28.0. The package is in alpha and should not be used in production. It has zero runtime dependencies and supports browser and Node.js environments. Key differentiators: type-safe SQL generation from AST rather than string concatenation, preventing SQL injection by construction. Supports PostgreSQL, with MySQL and SQLite planned. The API is currently evolving and may have breaking changes.
npm install qail-wasmNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: initialize WASM, parse QAIL query, transpile to PostgreSQL SQL.
Pin a specific version and test after every update.
Monitor changelog and GitHub releases for breaking changes.
Ensure init() is awaited before any other WASM calls.
Use 'postgres' as the dialect parameter.
Call await init() before any other WASM functions.
Use dialect 'postgres' or wait for MySQL support.
Add a wasm loader (e.g., wasm-loader) or use the package in an environment that supports WebAssembly (Node.js 12+, modern browsers).
No dependency data recorded yet.