|
1 | | - |
2 | 1 | <p align="center"> |
3 | 2 | <img height="100" src="https://github.com/qdrant/qdrant/raw/master/docs/logo.svg" alt="Qdrant"> |
4 | 3 | |
|
9 | 8 | <b>JavaScript/TypeScript library for the <a href="https://github.com/qdrant/qdrant">Qdrant</a> vector search engine.</b> |
10 | 9 | </p> |
11 | 10 |
|
12 | | - |
13 | | -<p align=center> |
| 11 | +<p align="center"> |
14 | 12 | <a href="https://www.npmjs.com/package/@qdrant/qdrant-js"><img src="https://badge.fury.io/js/@qdrant%2Fqdrant-js.svg" alt="npm version" height="18"></a> |
15 | 13 | <a href="https://qdrant.github.io/qdrant/redoc/index.html"><img src="https://img.shields.io/badge/Docs-OpenAPI%203.0-success" alt="OpenAPI Docs"></a> |
16 | 14 | <a href="https://github.com/qdrant/qdrant-client/blob/master/LICENSE"><img src="https://img.shields.io/badge/License-Apache%202.0-success" alt="Apache 2.0 License"></a> |
|
22 | 20 |
|
23 | 21 | This repository contains packages of the JS SDK for the [Qdrant](https://github.com/qdrant/qdrant) vector search engine. |
24 | 22 |
|
25 | | -There are 3 packages: |
26 | | - |
27 | | -* [`@qdrant/qdrant-js`](./packages/qdrant-js) - the main package with the SDK itself. |
28 | | -* [`@qdrant/js-client-rest`](./packages/js-client-rest) - leightweight REST client for Qdrant. |
29 | | -* [`@qdrant/js-client-grpc`](./packages/js-client-grpc) - WIP gRPC client for Qdrant. |
| 23 | +There are published 3 packages: |
30 | 24 |
|
| 25 | +- [`@qdrant/qdrant-js`](./packages/qdrant-js) - the main package with the SDK itself. |
| 26 | +- [`@qdrant/js-client-rest`](./packages/js-client-rest) - lightweight REST client for Qdrant. |
| 27 | +- [`@qdrant/js-client-grpc`](./packages/js-client-grpc) - gRPC client for Qdrant. |
31 | 28 |
|
32 | 29 | ## JS/TS Examples |
33 | 30 |
|
34 | 31 | ### Installation |
35 | 32 |
|
36 | 33 | ```shell |
| 34 | +pnpm i @qdrant/js-client-rest |
| 35 | +# or |
37 | 36 | npm install @qdrant/js-client-rest |
38 | 37 | # or |
39 | 38 | yarn add @qdrant/js-client-rest |
40 | | -# or |
41 | | -pnpm i @qdrant/js-client-rest |
42 | 39 | ``` |
43 | 40 |
|
44 | 41 | ### Usage |
@@ -75,19 +72,24 @@ console.log('List of collections:', result.collections); |
75 | 72 |
|
76 | 73 | More examples can be found in the [`examples`](./examples) folder. |
77 | 74 |
|
| 75 | +## Support |
78 | 76 |
|
| 77 | +TypeScript types are provided alongside JavaScript sources to be used in: |
| 78 | + |
| 79 | +- Node.js (ESM and CJS) - `>= 18.0.0` |
| 80 | +- Deno |
| 81 | +- Browser (fetch API) |
| 82 | +- Cloudflare Workers (OpenAPI only) |
79 | 83 |
|
80 | 84 | ## Releases |
81 | 85 |
|
82 | 86 | Major and minor versions align with Qdrant's engine releases, whilst patch are reserved for fixes regarding the current minor release. Check out [RELEASE.md](./RELEASE.md) for more info on release guidelines. |
83 | 87 |
|
84 | 88 | For release automation we use [`changesets`](https://github.com/changesets/changesets) both for pull requests and pushes to the master branch, and their [Github Action](https://github.com/changesets/action) to automate changeset steps. |
85 | 89 |
|
86 | | -## Contributions |
87 | | - |
88 | | -In order to contribute there are a couple of things you may need to do. |
| 90 | +## Contributing |
89 | 91 |
|
90 | | -We make use of [`pnpm`](https://pnpm.io/) instead of `npm` or `yarn` to manage and install packages in this monorepo, make sure it's installed on your local environment. |
| 92 | +In order to [contribute](./CONTRIBUTING.md) there are a couple of things you may need to setup. We make use of [`pnpm`](https://pnpm.io/) instead of `npm` or `yarn` to manage and install packages in this monorepo, make sure it's installed on your local environment. |
91 | 93 |
|
92 | 94 | 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. |
93 | 95 |
|
|
0 commit comments