@opendesk-community/lancedb
v0.1.1
Published
LanceDB v0.41.0 fork for OpenDesk: local-first vector database with table maintenance APIs
Maintainers
Readme
@opendesk-community/lancedb
A fork of LanceDB v0.41.0 (Apache-2.0), maintained by the OpenDesk Community as the vector-index backend of the OpenDesk desktop app. Not affiliated with or endorsed by LanceDB, Inc.
What changed vs upstream 0.41.0
- Maintenance APIs — the Node.js binding exposes three additional table
methods:
cleanupOldVersions,compactFiles,planCompaction, giving applications direct control over version cleanup and compaction. - Compaction knob —
compactFilesacceptstargetRowsPerFragment(pass-through);0disables the "merge small fragments" trigger. - Trimmed build — optional features are compiled out (see below) and symbols are stripped. Binary size drops ~50% (darwin-arm64: 250 MB → 125 MB installed).
Removed capabilities (important)
Compared with the official @lancedb/lancedb:
db://remote connections and theremotemodule are compiled out.- Cloud object storage is limited to
s3://andoss://; other backends (gcs / azure / dynamodb / huggingface / goosefs) are removed. - Full-text-search tokenizers (jieba, lindera) are unavailable.
- OpenTelemetry metrics export is unavailable.
- The
./embedding/openaiand./embedding/transformershelper subpaths are still exported, but since0.1.1their npm packages (openai,@huggingface/transformers) are no longer installed automatically. Install them yourself if you use those subpaths.
Everything OpenDesk relies on keeps working: local connect, SQL where()
filters, vector search, and the maintenance APIs above. The TypeScript
types for removed capabilities are kept in place; calling them fails at
runtime instead of at compile time.
Platform support
| Platform | Binary package | Notes |
| --- | --- | --- |
| macOS arm64 (Apple Silicon) | …-darwin-arm64 | |
| macOS x64 (Intel) | …-darwin-x64 | Upstream dropped this target in 0.22.3; rebuilt here |
| Linux arm64, glibc ≥ 2.17 (Kylin V10 / UOS on 飞腾/鲲鹏) | …-linux-arm64-gnu | manylinux2014 baseline |
| Windows 10/11 x64 | …-win32-x64-msvc | VC++ Redistributable required |
Not published: Linux x86_64 (toolchain validated, available on demand), Linux musl (Alpine), Windows arm64.
Installation
npm install @opendesk-community/lancedbNode.js ≥ 22 (same as upstream). Requires a peer apache-arrow ≥ 15 and < 22.
The platform binary is selected automatically via optionalDependencies.
For OpenDesk or another application, add this package to dependencies.
Installing the published package does not require Rust, a local build, or the
maintainer tooling. The embedding SDKs are only needed if you use their
corresponding helper subpaths.
Usage
import * as lancedb from "@opendesk-community/lancedb";
const db = await lancedb.connect("data/sample-lancedb");
const table = await db.createTable("my_table", [
{ id: 1, vector: [0.1, 1.0], item: "foo", price: 10.0 },
{ id: 2, vector: [3.9, 0.5], item: "bar", price: 20.0 },
]);
const results = await table.vectorSearch([0.1, 0.3]).limit(20).toArray();
// Fork maintenance APIs
await table.cleanupOldVersions();
const plan = await table.planCompaction();
await table.compactFiles({ targetRowsPerFragment: 0 });Versioning
This fork uses its own version series. 0.1.0 is the first release and is
based on upstream LanceDB 0.41.0 / lance core 14.0.2; the upstream
baseline is recorded here and in the NOTICE file, not in the version
number. Breaking changes bump the minor version (0.x semver).
0.1.1 moves the two unused optional dependencies inherited from upstream
(@huggingface/transformers, openai) to development dependencies.
It also adapts the JS loader to reuse the existing platform packages, which
stay at 0.1.0; their native binaries
do not need to be rebuilt or republished.
License & attribution
Apache-2.0. Contains software from the LanceDB project, Copyright The LanceDB Authors. See NOTICE, LICENSE, NODEJS_THIRD_PARTY_LICENSES.md and RUST_THIRD_PARTY_LICENSES.html.
