qail-wasm
v0.14.18
Published
QAIL parser and transpiler for JavaScript/TypeScript via WebAssembly
Readme
qail-wasm
WebAssembly bindings for QAIL - the AST-native query language.
Features
- 🚀 Zero runtime dependencies - Pure WebAssembly
- 🔒 Type-safe SQL generation - From AST, not strings
- 🌐 Browser & Node.js compatible
- ⚡ Fast - Native-speed query parsing
Installation
[!CAUTION] Alpha Software: QAIL is currently in alpha. While we strive for stability, the API is evolving to ensure it remains ergonomic and truly AST-native. Do not use in production environments yet.
npm install qail-wasmUsage
import init, { parse_and_transpile } from 'qail-wasm';
await init();
// Parse QAIL syntax and transpile to SQL
const sql = parse_and_transpile("get users : id, name [ active = true ]", "postgres");
console.log(sql);
// → SELECT id, name FROM users WHERE active = trueKeywords
- qail - Query AST Intermediate Language
- sql - Structured Query Language transpilation
- wasm - WebAssembly bindings
- ast - Abstract Syntax Tree based queries
- query-builder - Type-safe query construction
- database - Multi-database support
- postgresql - PostgreSQL SQL generation
- mysql - MySQL SQL generation (planned)
- sqlite - SQLite SQL generation (planned)
- transpiler - Query language transpilation
- parser - QAIL syntax parsing
- no-sql-injection - Safe by construction
Related Packages
License
MIT © 2025 QAIL Contributors
🤝 Contributing & Support
We welcome issue reports on GitHub! Please provide detailed descriptions to help us reproduce and fix the problem. We aim to address critical issues within 1-5 business days.
