> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/connectors/mariadb-connector-nodejs/other-nodejs-connectors/javascript-mariasql-for-nodejs.md).

# JavaScript - mariasql for node.js

[mariasql](https://npmjs.org/package/mariasql) is a [node.js](https://nodejs.org/) binding to the [non-blocking client library](/docs/server/reference/product-development/mariadb-internals/using-mariadb-with-your-programs-api/non-blocking-client-library.md) provided with MariaDB. It is compatible with MySQL.

This binding is different from other libmysqlclient bindings in that it uses the non-blocking functions available in MariaDB's client library.

Install it with the `npm` package installer:

```bash
npm install mariasql
```

In [benchmarks](https://mscdex.github.io/node-mysql-benchmarks/), mariasql performs much better than libmysqlclient.

The source code is located at [github:node-mariasql](https://github.com/mscdex/node-mariasql).

{% @marketo/form formId="4316" %}
