libsqlproxy@0.1.0
Initial release.
-
Expose SQLite databases via the libSQL remote protocol (Hrana v2) — connect any tool that speaks libSQL (TablePlus, Drizzle Studio,
@libsql/client, Prisma) to a local or Cloudflare-hosted SQLite database over HTTP:const client = createClient({ url: 'https://libsql.example.com', authToken: 'my-do-id:my-secret', }) await client.execute('SELECT * FROM users')
-
Cloudflare Durable Object support — expose your DO's embedded SQLite to data explorers like Drizzle Studio and TablePlus. One-liner in the DO, proxy in the Worker:
export class MyDO extends DurableObject { hranaHandler = createLibsqlHandler(durableObjectExecutor(this.ctx.storage)) }
Auth:
Bearer namespace:secret— namespace identifies the DO, secret is shared. -
Node.js adapter —
createLibsqlNodeHandler(handler, { auth: { bearer }, maxBodyBytes })wraps forhttp.createServer(). -
Custom SQL driver — implement
LibsqlExecutorwithexecuteSql/execRaw. Sync and async both supported. -
Full Hrana v2 protocol —
execute,batch(ok/error/not/and/or),sequence,describe,store_sql,close_sql,close. Unpredictable batons, 120s stream eviction, 10 MB body limit.