qdrant/qdrant-js
qdrant/qdrant-js has 474 GitHub stars and 52 forks. GitHot measured 0 stars in 24 hours and +1 in 7 days. Last checked 2026-11-24 01:04 UTC. Last push 2026-10-31.
实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
关于
JavaScript/Typescript SDK for Qdrant Vector Database
数据README.md
原文
JavaScript/TypeScript library for the Qdrant vector search engine.
JavaScript Qdrant SDK
This repository contains packages of the JS SDK for the Qdrant vector search engine.
There are published 3 packages:
@qdrant/qdrant-jsCode- the main package with the SDK itself.@qdrant/js-client-restCode - lightweight REST client for Qdrant.@qdrant/js-client-grpcCode - gRPC client for Qdrant.
JS/TS Examples
Installation
pnpm i @qdrant/js-client-rest
# or
npm install @qdrant/js-client-rest
# or
yarn add @qdrant/js-client-rest
Usage
Run the Qdrant Docker container:
docker run -p 6333:6333 qdrant/qdrant
Instantiate a client
import {QdrantClient} from '@qdrant/js-client-rest';
// TO connect to Qdrant running locally
const client = new QdrantClient({url: 'http://127.0.0.1:6333'});
// or connect to Qdrant Cloud
const client = new QdrantClient({
url: 'https://xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.us-east-0-1.aws.cloud.qdrant.io',
apiKey: '<your-api-key>',
});
Make requests
Using one of the available facade methods:
const result = await client.getCollections();
console.log('List of collections:', result.collections);
More examples can be found in the examples folder.
Support
TypeScript types are provided alongside JavaScript sources to be used in:
- Node.js (ESM and CJS) -
>= 18.0.0 - Deno
- Browser (fetch API)
- Cloudflare Workers (OpenAPI only)
Releases
Major and minor versions align with Qdrant's engine releases, whilst patch are reserved for fixes regarding the current minor release. New releases are made from the master branch.
Contributing
In order to contribute there are a couple of things you may need to setup. We make use of pnpm instead of npm or yarn to manage and install packages in this monorepo, make sure it's installed on your local environment.
After checking out the repository and desired branch, run pnpm install to install all package's dependencies and run the compilation steps. This will work for the monorepo.
For anything outside the monorepo, e.g.:
examples/node-js-basicfeel free to usenpmfor installing packages and running scripts.
探索相关项目
加载中…