
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@vicary/kysely-libsql
Advanced tools
A Kysely dialect for libSQL, compatible with @libsql/client.
npm install @libsql/kysely-libsql
Pass a LibsqlDialect instance as the dialect when creating the Kysely
object:
import { Kysely } from "kysely";
import { LibsqlDialect } from "@libsql/kysely-libsql";
interface Database {
...
}
const db = new Kysely<Database>({
dialect: new LibsqlDialect({
url: "libsql://localhost:8080?tls=0",
authToken: "<token>", // optional
}),
});
Instead of a url, you can also pass an existing Client from
@libsql/client:
import { createClient } from "@libsql/client";
const client = createClient({
url: "libsql://localhost:8080",
});
const db = new Kysely<Database>({
dialect: new LibsqlDialect({ client }),
});
// after you are done with the `db`, you must close the `client`:
client.close();
Or pass a createClient function to have Kysely manage the client's lifecycle.
import { createClient } from "@libsql/client";
const db = new Kysely<Database>({
createClient: () =>
createClient({
url: "file:local.db",
syncUrl: "libsql://localhost:8080",
authToken: "<token>",
}),
});
The library accepts the exact same options as
@libsql/client.
This project is licensed under the MIT license.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in @libsql/kysely-libsql by you, shall be licensed as MIT,
without any additional terms or conditions.
FAQs
Kysely dialect for libSQL
We found that @vicary/kysely-libsql demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.