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

singlestore-nodejs

v1.0.1

Published

Fast SingleStore driver for Node.js. Implements core protocol, prepared statements, SSL and compression in native JS

Readme

SingleStore Node.js Driver

SingleStore client for Node.js with focus on performance. Supports configurable connection behavior, prepared statements, compression, ssl and much more.

NPM Version NPM Downloads Node.js Version Tests GitHub Pages License

Table of Contents

History and Why MySQL2

MySQL2 project is a continuation of MySQL-Native. Protocol parser code was rewritten from scratch and api changed to match popular Node MySQL. MySQL2 team is working together with Node MySQL team to factor out shared code and move it under mysqljs organization.

MySQL2 is mostly API compatible with Node MySQL and supports majority of features. MySQL2 also offers these additional features:

Why SingleStore Node.js Driver

The SingleStore Node.js Driver is a fork of mysql2, adapted specifically for SingleStore database. Since SingleStore is MySQL wire-protocol compatible, most mysql2 features work seamlessly.

SingleStore Node.js Driver is mostly API compatible with node-mysql and node-mysql2 and supports majority of features.

  • Official SingleStore Support: Officially supported by SingleStore for guaranteed compatibility and reliability
  • Consistent Data Type Handling: Handles SingleStore data types more consistently than generic MySQL drivers
  • Configurable Connection Behavior: Allows you to configure connection behavior by setting session variables
  • MySQL Compatibility: Maintains full compatibility with MySQL wire protocol

For more information about SingleStore, visit the official documentation.

Installation

npm install singlestore-nodejs

If you are using TypeScript, you will need to install @types/node.

Quick Start

const singlestore = require('singlestore_nodejs');

// Create connection
const connection = singlestore.createConnection({
  host: 'localhost',
  user: 'root',
  password: 'password',
  database: 'mydb',
  port: 3306,
});

// Simple query
connection.query('SELECT * FROM users', (err, results, fields) => {
  if (err) throw err;
  console.log(results);
});

// Using promises
connection
  .promise()
  .query('SELECT * FROM products')
  .then(([rows, fields]) => {
    console.log(rows);
  })
  .catch(console.error);

// Close connection
connection.end();

Migration from MySQL2

SingleStore Node.js Driver is API-compatible with MySQL2, so migration is straightforward:

// Before (MySQL2)
const mysql = require('mysql2');
const connection = mysql.createConnection({...});

// After (SingleStore Node.js Driver)
const singlestore = require('singlestore_nodejs');
const connection = singlestore.createConnection({...});

// All existing queries work as-is!

Documentation

📚 Full documentation: SingleStore Nodejs Driver

Contributing

Contributions are welcome! Please see Contributing.md for details.

Acknowledgments

This project is a fork of mysql2 by @sidorares. We are grateful for the excellent foundation provided by the MySQL2 project.