syntricdb-client
v1.0.1
Published
Official Node.js SDK for SyntricDB AI-Native Unified Database Engine
Downloads
152
Maintainers
Readme
💚 SyntricDB Official Node.js SDK (npm install syntricdb-client)
Official Node.js Client for SyntricDB—the AI-Native Unified Database Engine.
SyntricDB unifies relational SQL queries, HNSW vector similarity search (SIMILAR TO), in-memory key-value caching, and in-engine AI RAG into a single low-latency engine.
⚡ Quick Start
1. Installation
npm install syntricdb-client2. Usage Example
const { SyntricDBClient } = require('syntricdb-client');
// Initialize SyntricDB Client
const client = new SyntricDBClient({ host: 'http://localhost:8080' });
async function runDemo() {
// 1. Execute SQL Query
const createRes = await client.query(`
CREATE TABLE IF NOT EXISTS node_services (
id VARCHAR PRIMARY KEY,
name VARCHAR,
region VARCHAR,
latency_ms FLOAT,
embedding FLOAT_VECTOR(128)
);
`);
console.log('Table Created:', createRes);
// 2. Perform HNSW Vector Similarity Search
const searchResults = await client.vectorSearch(
'node_services',
'authentication microservice',
1,
"region = 'us-east-1'"
);
console.log('Vector Search Results:', searchResults);
}
runDemo().catch(console.error);🔗 Useful Links
- 🐙 GitHub Repository: https://github.com/upendra-manike/SyntricDB
- 💻 Multi-Language Examples: https://github.com/upendra-manike/SyntricDB_Examples
- 🎬 Video Walkthrough: https://www.youtube.com/watch?v=8xxpJwloe30
- 📖 Technical Documentation: SyntricDB Documentation
