
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
@sqliteai/sqlite-ai
Advanced tools
SQLite AI extension for Node.js - On-device inference, embedding generation, and model interaction directly into your database
SQLite AI extension packaged for Node.js
SQLite-AI is an extension for SQLite that brings artificial intelligence capabilities directly into the database. It enables developers to run, fine-tune, and serve AI models from within SQLite using simple SQL queries — ideal for on-device and edge applications where low-latency and offline inference are critical. The extension is actively developed by SQLite AI, some API and features are still evolving.
npm install @sqliteai/sqlite-ai
The package automatically downloads the correct native extension for your platform during installation.
| Platform | Architecture | Package |
|---|---|---|
| macOS | ARM64 (Apple Silicon) | @sqliteai/sqlite-ai-darwin-arm64 |
| macOS | x86_64 (Intel) | @sqliteai/sqlite-ai-darwin-x86_64 |
| Linux | ARM64 (glibc) | @sqliteai/sqlite-ai-linux-arm64 |
| Linux | ARM64 (musl/Alpine) | @sqliteai/sqlite-ai-linux-arm64-musl |
| Linux | x86_64 (glibc) | @sqliteai/sqlite-ai-linux-x86_64 |
| Linux | x86_64 (musl/Alpine) | @sqliteai/sqlite-ai-linux-x86_64-musl |
| Windows | x86_64 | @sqliteai/sqlite-ai-win32-x86_64 |
For detailed information on how to use the AI extension features, see the main documentation.
import { getExtensionPath } from '@sqliteai/sqlite-ai';
import Database from 'better-sqlite3';
const db = new Database(':memory:');
db.loadExtension(getExtensionPath());
// Ready to use
const version = db.prepare('SELECT ai_version()').pluck().get();
console.log('AI extension version:', version);
For complete, runnable examples, see the sqlite-extensions-guide.
These examples are generic and work with all SQLite extensions: sqlite-vector, sqlite-sync, sqlite-js, and sqlite-ai.
getExtensionPath(): stringReturns the absolute path to the SQLite AI 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-ai';
const path = getExtensionPath();
// => '/path/to/node_modules/@sqliteai/sqlite-ai-darwin-arm64/ai.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., 'ai.dylib')path: string - Full path to the extension binaryThrows: ExtensionNotFoundError - If the extension binary cannot be found
Example:
import { getExtensionInfo } from '@sqliteai/sqlite-ai';
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 AI extension cannot be found for the current platform.
This project is licensed under the Elastic License 2.0.
For production or managed service use, please contact SQLite Cloud, Inc for a commercial license.
Contributions are welcome! Please see the main repository to open an issue.
FAQs
SQLite AI extension for Node.js - On-device inference, embedding generation, and model interaction directly into your database
The npm package @sqliteai/sqlite-ai receives a total of 5 weekly downloads. As such, @sqliteai/sqlite-ai popularity was classified as not popular.
We found that @sqliteai/sqlite-ai 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.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.