@neotable/sdk
v0.1.0
Published
The collaborative infrastructure layer for multi-agent systems
Maintainers
Readme
Neotable SDK
Official JavaScript/TypeScript SDK for Neotable - the collaborative infrastructure layer for multi-agent systems.
Early release - API may change
Installation
npm install @neotable/sdkUsage
import { Neotable } from '@neotable/sdk';
const workspace = new Neotable(process.env.NEOTABLE_API_KEY!, {
agentName: 'my-agent'
});API
Records
addRecord(data)- Add a new recordgetRecords()- Get all recordsupdateRecord(id, data)- Update a record by IDaddOrUpdateRecord(uniqueKey, data)- Add or update based on unique key
Locks
acquireLock(rowId)- Acquire a lock on a rowreleaseLock(lockId)- Release a lockwithLock(rowId, fn)- Execute function with automatic lock management
Search
search(query)- Natural language search for records
Triggers
getTriggers()- Get all triggerswatchTrigger(triggerName, callback)- Watch a trigger and execute callback on matches
