New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@libsql/client

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libsql/client

libSQL driver for TypeScript and JavaScript

  • 0.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
109K
increased by12.88%
Maintainers
1
Weekly downloads
 
Created
Source

libSQL driver for TypeScript and JavaScript

Getting Started

To get started, you need sqld running somewhere. Then:

import { connect } from "@libsql/client"

const config = {
  url: "http://localhost:8080"
};
const db = connect(config);
const rs = await db.execute("SELECT * FROM users");
console.log(rs);

You can also just run against local SQLite by dropping the url option from configuration:

import { connect } from "@libsql/client"

const config = { };
const db = connect(config);
const rs = await db.execute("SELECT * FROM users");
console.log(rs);

Features

  • SQLite JavaScript API
  • SQLite-backed local-only backend
  • SQL over HTTP with fetch()

Roadmap

  • Read replica mode
  • Cloudflare D1 API compatibility?

Keywords

FAQs

Package last updated on 12 Jan 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc