| Crates.io | vibesql-wasm-bindings |
| lib.rs | vibesql-wasm-bindings |
| version | 0.1.2 |
| created_at | 2025-12-05 05:50:12.270364+00 |
| updated_at | 2025-12-05 05:50:12.270364+00 |
| description | WebAssembly bindings for vibesql SQL database |
| homepage | |
| repository | https://github.com/rjwalters/vibesql |
| max_upload_size | |
| id | 1967749 |
| size | 140,411 |
WebAssembly bindings for VibeSQL SQL database engine.
This crate provides WebAssembly bindings that allow VibeSQL to run in web browsers and other JavaScript environments. It exposes a clean JavaScript API for executing SQL queries and managing databases.
npm install vibesql-wasm
import init, { VibeSQL } from 'vibesql-wasm';
// Initialize WASM module
await init();
// Create database instance
const db = new VibeSQL();
// Execute DDL
await db.execute("CREATE TABLE users (id INTEGER PRIMARY KEY, name VARCHAR(50))");
// Insert data
await db.execute("INSERT INTO users VALUES (1, 'Alice')");
// Query data
const result = await db.query("SELECT * FROM users");
console.log(result.rows);
# Build the WASM package
wasm-pack build --target web
# Or for Node.js
wasm-pack build --target nodejs
This project is licensed under either of:
at your option.