All package.json files and imports have been successfully updated from @sushanth/toondb to @sochdb/sochdb. Package names and ToonDB references in code have been renamed to SochDB.
- Location:
sochdb-nodejs-examples/basic/ - Status: ✅ WORKING
- Example:
basic_kv.js - Notes:
- Uses embedded Database mode:
Database.open(path)(sync) - Requires
SOCHDB_LIB_PATHenvironment variable pointing to native library - All operations working: put, get, putPath, getPath, scanPrefix
- Fixed to use
scanPrefix(async generator) instead ofscan - Fixed to pass Buffer objects instead of strings
- Uses embedded Database mode:
Run Command:
cd sochdb-nodejs-examples/basic
SOCHDB_LIB_PATH=/Users/sushanth/sochdb/sochdb/target/debug/libsochdb_storage.dylib node basic_kv.js- Location:
sochdb-nodejs-examples/rag/ - Status: ✅ WORKING
- Example:
demo.js - Notes:
- Uses embedded Database mode
- Fixed vectorStore.js to use Buffer objects throughout
- Fixed to use
scanPrefixwith async generator pattern - Updated
Database.open()to sync version - Mock mode works (doesn't require OpenAI API key)
- Full RAG pipeline working with chunking, embedding, and retrieval
Run Command:
cd sochdb-nodejs-examples/rag
SOCHDB_LIB_PATH=/Users/sushanth/sochdb/sochdb/target/debug/libsochdb_storage.dylib node demo.jsThe following examples use features that are not yet available in embedded (FFI) mode:
- Location:
sochdb-nodejs-examples/basic/sql_check.js - Status:
⚠️ REQUIRES IPC MODE - Issue:
db.execute()for SQL is not available in EmbeddedDatabase - Needs: IPC client mode with server running
- Location:
sochdb-nodejs-examples/support-agent/ - Status:
⚠️ REQUIRES IPC MODE - Issues:
- Uses
await Database.open()(IPC mode) - Uses
db.execute()for SQL operations - Requires SQL schema and transactions
- Uses
- Needs: IPC client mode with server running
- Location:
sochdb-nodejs-examples/langgraph-memory/ - Status:
⚠️ REQUIRES IPC MODE - Issues: Uses
await Database.open()(IPC mode) - Needs: IPC client mode with server running
- Location:
sochdb-nodejs-examples/graph_overlay_examples/ - Status:
⚠️ REQUIRES IPC MODE - Issues:
- Uses
await Database.open()(IPC mode) - GraphOverlay might require server mode
- Uses
- Needs: IPC client mode with server running
- Updated all
package.jsonfiles from@sushanth/toondbto@sochdb/sochdb - Updated version from
^0.3.3to^0.4.0 - Renamed package names from toondb-* to sochdb-*
- Updated all imports from
@sushanth/toondbto@sochdb/sochdb - Updated in 13 source files across all examples
- Renamed ToonDBMemory class to SochDBMemory
- Renamed ToonDBCheckpointer class to SochDBCheckpointer
- Updated all string references from ToonDB to SochDB
- Updated environment variables (TOONDB_PATH → SOCHDB_PATH)
- Updated default paths (toondb_data_node → sochdb_data_node)
- Changed from
await Database.open()toDatabase.open()(sync) - Changed from
db.scan()todb.scanPrefix()with async generator - Updated to use Buffer objects for keys instead of strings
- Changed from
await db.close()todb.close()(sync)
- Updated
Database.open()from async to sync - Fixed all
db.put()calls to use Buffer objects for both key and value - Fixed all
db.delete()calls to use Buffer objects for keys - Updated
scanPrefix()to use async generator pattern withfor await - Fixed destructuring from
[key, value]tuple format
- Usage:
const db = Database.open(path)(sync) - Features: KV operations, path operations, transactions, scanPrefix
- Pros: No server needed, direct FFI access, lightweight
- Cons: No SQL support yet, no GraphOverlay yet
- Requires: SOCHDB_LIB_PATH environment variable
- Usage:
const db = await Database.open(path)(async) - Features: All features including SQL, GraphOverlay
- Pros: Full feature set
- Cons: Requires server process
- Requires: Server running
- For Basic KV and RAG: Use embedded mode examples (working now)
- For SQL, Agents, LangGraph: Wait for server mode or implement IPC client support
- Documentation: Update example READMEs to specify which mode they use
- Future Work:
- Add SQL support to EmbeddedDatabase
- Add GraphOverlay support to EmbeddedDatabase
- Or document how to run with server mode
All dependencies successfully installed in all example directories:
- ✅ basic/ - 63 packages
- ✅ rag/ - 65 packages
- ✅ support-agent/ - 128 packages
- ✅ langgraph-memory/ - 132 packages
- ✅ graph_overlay_examples/ - 81 packages
No vulnerabilities found in any package.
- macOS (Apple Silicon)
- Node.js version: (system default)
- SochDB native library:
/Users/sushanth/sochdb/sochdb/target/debug/libsochdb_storage.dylib - SDK version: @sochdb/sochdb@^0.4.0