npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

scylladb-driver

v1.0.0

Published

High-performance ScyllaDB/Cassandra CQL driver for Node.js, built on the official Rust driver via NAPI

Readme

ScyllaDB TypeScript Driver

High-performance ScyllaDB and Apache Cassandra CQL driver for Node.js, built on the official ScyllaDB Rust driver via NAPI.

Requires Node.js 18+.

Installation

npm install scylladb-driver

npm installs the correct native binary for your platform automatically:

| Platform | npm package | |----------|-------------| | Linux x64 (glibc) | scylladb-driver-linux-x64-gnu | | macOS x64 | scylladb-driver-darwin-x64 | | Windows x64 | scylladb-driver-win32-x64-msvc |

Quick start

import { Cluster } from "scylladb-driver";

const cluster = new Cluster({
  nodes: ["127.0.0.1:9042"],
  localDatacenter: "datacenter1",
});

const session = await cluster.connect();

const result = await session.execute("SELECT release FROM system.local");
console.log(result.rows[0]);

TypeScript helpers

Optional typed helpers are available from the secondary entry point:

import { Cluster, getFirstRow } from "scylladb-driver/ts";

const session = await new Cluster({ nodes: ["127.0.0.1:9042"] }).connect();
const row = getFirstRow(await session.execute("SELECT release FROM system.local"));

Examples

Prepared statements

const prepared = await session.prepare(
  "INSERT INTO users (id, name) VALUES (?, ?)"
);
await prepared.execute([1, "Alice"]);

Paging

let token: Buffer | null = null;
do {
  const page = await session.querySinglePage(
    "SELECT * FROM large_table",
    null,
    100,
    token
  );
  console.log(page.rows);
  token = page.nextPageToken ?? null;
} while (token);

Batch statements

const batch = session.batch("logged");
batch.add({ query: "INSERT INTO t (id, val) VALUES (?, ?)", params: [1, "a"] });
batch.add({ query: "INSERT INTO t (id, val) VALUES (?, ?)", params: [2, "b"] });
await batch.execute();

Configuration

const cluster = new Cluster({
  nodes: ["10.0.0.1:9042", "10.0.0.2:9042"],
  username: "admin",
  password: "secret",
  compression: "lz4",
  defaultKeyspace: "my_app",
  localDatacenter: "us-east-1",
  connectionTimeoutMs: 5000,
  executionProfile: {
    consistency: "local_quorum",
    requestTimeoutMs: 10000,
    retryPolicy: "default",
  },
});

Features

  • Async connect and query API
  • Shard-aware routing (via the Rust driver)
  • Prepared, batch, and paged queries
  • Lightweight transactions (wasApplied on results)
  • Execution profiles, retry policies, speculative execution
  • TLS, compression (LZ4, Snappy), authentication
  • Schema metadata, metrics, query tracing, execution history
  • CQL scalar and collection types (lists, maps, sets, tuples, UDTs, blobs)

For advanced topics (load balancing, retry policies, data types, tracing), see the Rust driver documentation. This package mirrors that API surface for Node.js.

Contributing

See CONTRIBUTING.md.

References

License

MIT