
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@monkdb/monkdb
Advanced tools
🚀 Official TypeScript SDK for MonkDB — a unified, AI-native database for diverse data workloads
Welcome to the official TypeScript SDK for MonkDB, an AI-native database designed to handle diverse data workloads seamlessly. This SDK empowers developers to interact with MonkDB using TypeScript, leveraging its robust features for modern application development.
Note:
The @monkdb/monkdb TS/JS SDK, which is authored using modern ESM (ECMAScript Modules), fully supports both JavaScript and TypeScript environments, provided the runtime supports ESM.
@monkdb/monkdb SDK Compatibility and Usage GuideThe SDK is authored and published as an ES Module (ESM).
To use the SDK without any issues, make sure you're using a Node.js version that natively supports ESM and modern TypeScript features.
| Node.js Version | ESM Support | @monkdb/monkdb SDK Compatibility |
|---|---|---|
| >=14.13.0 | ✅ Experimental ESM support with flags or .mjs | ⚠️ Works with caveats (not recommended) |
| >=16.0.0 | ✅ Stable ESM support | ✅ Fully compatible |
| >=18.0.0 | ✅ Stable + LTS | ✅ Recommended |
| >=20.0.0 | ✅ LTS + Modern runtime features | ✅ Fully supported |
| >=21.x.x | ✅ Latest features, top-tier performance | ✅ Fully supported |
| <=14.x | ⛔ ESM not fully supported | ❌ Not compatible |
🕒 Time Series Data: Efficiently store and analyze time-series data, enabling applications to process and query time-stamped information with ease.
🧠 Vector Data Integration: Manage and query vector data, facilitating operations like similarity searches and machine learning model integrations.
🔍 Full-Text Search: Perform comprehensive text searches across your datasets, enhancing the retrieval of relevant information through advanced indexing and querying capabilities.
🌍 Geospatial Queries: Execute complex geospatial queries to handle location-based data, supporting applications that require spatial analysis and mapping functionalities.
📦 Blob Storage: Store and retrieve binary large objects (BLOBs), allowing for the management of multimedia files, documents, and other large data types within the database.
📄 Document Store with SQL Interface: Combine the flexibility of a document store with the power of SQL, providing a PGWire-compatible SQL interface for structured querying of unstructured data.
🚀 Streaming SQL- Run realtime/streaming data workloads to perform petabyte scale SQL analytics (realtime).
To install the MonkDB's TypeScript SDK, use npm or yarn:
npm install @monkdb/monkdb
or
yarn add @monkdb/monkdb
Here's a basic example of how to establish a connection to MonkDB and execute queries using the SDK:
// index.ts
import { MonkConnection } from '@monkdb/monkdb';
const connection = new MonkConnection({
servers: ['http://127.0.0.1:4200'],
username: 'your_username',
password: 'your_password',
});
const cursor = connection.cursor();
async function runQuery() {
await cursor.execute('SELECT * FROM your_table');
const results = cursor.fetchall();
console.log(results);
}
runQuery().catch(console.error).finally(() => {
cursor.close();
connection.close();
});
No special setup is needed beyond tsconfig.json with "module": "ES2020" or higher.
Here's a basic example of how to establish a connection to MonkDB and execute queries using the SDK:
// index.js
import { MonkConnection } from '@monkdb/monkdb';
const conn = new MonkConnection({
servers: ['http://localhost:4200'],
username: 'monk',
password: 'monk',
schema: 'doc',
});
const cursor = conn.cursor();
await cursor.execute('SELECT * FROM my_table');
const rows = cursor.fetchall();
console.log(rows);
cursor.close();
conn.close();
Ensure your package.json contains:
"type": "module"
Visit our tech documentation on how to execute use cases on MonkDB.
To get a feel of MonkDB using TS/JS, please follow the instructions available in this README file.
This project is licensed under the Apache-2.0 License.
For enterprise support or any inquiries, please contact us at 📧 support@monkdb.com.
FAQs
🚀 Official TypeScript SDK for MonkDB — a unified, AI-native database for diverse data workloads
We found that @monkdb/monkdb demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.