mirror of
https://github.com/karust/openserp.git
synced 2026-08-05 16:53:54 +08:00
Add client SDKs and integrations
This commit is contained in:
21
README.md
21
README.md
@@ -4,7 +4,7 @@
|
||||
|
||||
[](https://goreportcard.com/report/github.com/karust/openserp)
|
||||
[](https://pkg.go.dev/github.com/karust/openserp)
|
||||
[](https://github.com/karust/openserp/releases)
|
||||
[](https://github.com/karust/openserp/releases)
|
||||
[](https://hub.docker.com/repository/docker/karust/openserp)
|
||||
[](https://github.com/karust/openserp/actions/workflows/ci.yml)
|
||||
|
||||
@@ -69,6 +69,25 @@ Once the server is running, the interactive docs are available locally:
|
||||
|
||||
To browse the spec without running the server, see [docs/openapi.yaml](./docs/openapi.yaml). For a higher-level overview of how OpenSERP works internally, see the [architecture docs](https://openserp.org/docs/architecture/).
|
||||
|
||||
## SDKs & Integrations
|
||||
|
||||
Official client packages. Each works against your self-hosted server (point it at the server's base URL):
|
||||
|
||||
| Type | Package | Install |
|
||||
| --------------------------- | -------------------------------------------------------------------------------------------- | ------------------------------- |
|
||||
| JavaScript / TypeScript SDK | [`@openserp/sdk`](https://www.npmjs.com/package/@openserp/sdk) | `npm install @openserp/sdk` |
|
||||
| Python SDK | [`openserp`](https://pypi.org/project/openserp/) | `pip install openserp` |
|
||||
| MCP server (AI agents) | [`@openserp/mcp`](https://www.npmjs.com/package/@openserp/mcp) | `npx @openserp/mcp` |
|
||||
| n8n community node | [`@openserp/n8n-nodes-openserp`](https://www.npmjs.com/package/@openserp/n8n-nodes-openserp) | Install via n8n community nodes |
|
||||
|
||||
```js
|
||||
import { OpenSERP } from "@openserp/sdk";
|
||||
|
||||
// Use your self-hosted server
|
||||
const client = new OpenSERP({ baseUrl: "http://localhost:7000" });
|
||||
const { results } = await client.search({ engine: "google", text: "openserp", limit: 5 });
|
||||
```
|
||||
|
||||
## Search Endpoints
|
||||
|
||||
Available engine names: `google`, `yandex`, `baidu`, `bing`, `duckduckgo`, `ecosia`.
|
||||
|
||||
Reference in New Issue
Block a user