
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
@sqliteai/sqlite-agent
Advanced tools
SQLite Agent extension for Node.js - Run autonomous AI agents, using other SQLite AI extensions.
SQLite Agent extension packaged for Node.js
SQLite Agent is a SQLite extension that enables SQLite databases to run autonomous AI agents, using other SQLite AI extensions.
npm install @sqliteai/sqlite-agent
The package automatically downloads the correct native extension for your platform during installation.
| Platform | Architecture | Package |
|---|---|---|
| macOS | ARM64 (Apple Silicon) | @sqliteai/sqlite-agent-darwin-arm64 |
| macOS | x86_64 (Intel) | @sqliteai/sqlite-agent-darwin-x86_64 |
| Linux | ARM64 (glibc) | @sqliteai/sqlite-agent-linux-arm64 |
| Linux | ARM64 (musl/Alpine) | @sqliteai/sqlite-agent-linux-arm64-musl |
| Linux | x86_64 (glibc) | @sqliteai/sqlite-agent-linux-x86_64 |
| Linux | x86_64 (musl/Alpine) | @sqliteai/sqlite-agent-linux-x86_64-musl |
| Windows | x86_64 | @sqliteai/sqlite-agent-win32-x86_64 |
For detailed information on how to use the agent extension features, see the main documentation.
import { getExtensionPath } from '@sqliteai/sqlite-agent';
import Database from 'better-sqlite3';
const db = new Database(':memory:');
db.loadExtension(getExtensionPath());
// Ready to use
const version = db.prepare('SELECT agent_version()').pluck().get();
console.log('Agent extension version:', version);
For complete, runnable examples, see the sqlite-extensions-guide.
These examples are generic and work with all SQLite extensions: sqlite-agent, sqlite-vector, sqlite-sync, sqlite-js, and sqlite-ai.
getExtensionPath(): stringReturns the absolute path to the SQLite Agent extension binary for the current platform.
Returns: string - Absolute path to the extension file (.so, .dylib, or .dll)
Throws: ExtensionNotFoundError - If the extension binary cannot be found for the current platform
Example:
import { getExtensionPath } from '@sqliteai/sqlite-agent';
const path = getExtensionPath();
// => '/path/to/node_modules/@sqliteai/sqlite-agent-darwin-arm64/agent.dylib'
getExtensionInfo(): ExtensionInfoReturns detailed information about the extension for the current platform.
Returns: ExtensionInfo object with the following properties:
platform: Platform - Current platform identifier (e.g., 'darwin-arm64')packageName: string - Name of the platform-specific npm packagebinaryName: string - Filename of the binary (e.g., 'agent.dylib')path: string - Full path to the extension binaryThrows: ExtensionNotFoundError - If the extension binary cannot be found
Example:
import { getExtensionInfo } from '@sqliteai/sqlite-agent';
const info = getExtensionInfo();
console.log(`Running on ${info.platform}`);
console.log(`Extension path: ${info.path}`);
getCurrentPlatform(): PlatformReturns the current platform identifier.
Returns: Platform - One of:
'darwin-arm64' - macOS ARM64'darwin-x86_64' - macOS x86_64'linux-arm64' - Linux ARM64 (glibc)'linux-arm64-musl' - Linux ARM64 (musl)'linux-x86_64' - Linux x86_64 (glibc)'linux-x86_64-musl' - Linux x86_64 (musl)'win32-x86_64' - Windows x86_64Throws: Error - If the platform is unsupported
isMusl(): booleanDetects if the system uses musl libc (Alpine Linux, etc.).
Returns: boolean - true if musl is detected, false otherwise
class ExtensionNotFoundError extends ErrorError thrown when the SQLite Agent extension cannot be found for the current platform.
This project is licensed under the MIT License.
Contributions are welcome! Please see the main repository to open an issue.
FAQs
SQLite Agent extension for Node.js - Run autonomous AI agents, using other SQLite AI extensions.
We found that @sqliteai/sqlite-agent demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers 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.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.