Package Exports
- @lobehub/chat-plugins-gateway
- @lobehub/chat-plugins-gateway/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@lobehub/chat-plugins-gateway) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
LobeChat Plugins Gateway
Plugin Gateway Service for Lobe Chat and Lobe Web
Changelog Β· Report Bug Β· Request Feature

Table of contents
TOC
π Intro
LobeChat Plugins Gateway is a backend service that provides a gateway for LobeChat plugins. We use vercel to deploy this service. The main API POST /api/v1/runner is deployed as an Edge Function.
The gateway service fetches lobe plugins index from the LobeChat Plugins, if you want to add your plugin to the index, please submit a PR to the LobeChat Plugins repository.
π€― Usage
Base URLs:
| Environment | URL |
|---|---|
| PROD | https://chat-plugins.lobehub.com |
| DEV | https://chat-plugins-dev.lobehub.com |
POST Plugin Gateway
POST /api/v1/runner
Interface to communicate with the LobeChat plugin. This interface describes how to use the LobeChat plugin gateway API to send requests and get responses
Body Request Parameters
{
"arguments": "{\n \"city\": \"ζε·\"\n}",
"name": "realtimeWeather"
}Response
[
{
"city": "ζε·εΈ",
"adcode": "330100",
"province": "ζ΅ζ±",
"reporttime": "2023-08-17 23:32:22",
"casts": [
{
"date": "2023-08-17",
"week": "4",
"dayweather": "ε°ι¨",
"nightweather": "ε°ι¨",
"daytemp": "33",
"nighttemp": "24",
"daywind": "δΈ",
"nightwind": "δΈ",
"daypower": "β€3",
"nightpower": "β€3",
"daytemp_float": "33.0",
"nighttemp_float": "24.0"
},
{
"date": "2023-08-18",
"week": "5",
"dayweather": "ε°ι¨",
"nightweather": "ε°ι¨",
"daytemp": "32",
"nighttemp": "23",
"daywind": "δΈε",
"nightwind": "δΈε",
"daypower": "4",
"nightpower": "4",
"daytemp_float": "32.0",
"nighttemp_float": "23.0"
},
{
"date": "2023-08-19",
"week": "6",
"dayweather": "ε°ι¨",
"nightweather": "ι·ι΅ι¨",
"daytemp": "32",
"nighttemp": "24",
"daywind": "δΈ",
"nightwind": "δΈ",
"daypower": "4",
"nightpower": "4",
"daytemp_float": "32.0",
"nighttemp_float": "24.0"
},
{
"date": "2023-08-20",
"week": "7",
"dayweather": "ι·ι΅ι¨",
"nightweather": "ε€δΊ",
"daytemp": "33",
"nighttemp": "25",
"daywind": "δΈ",
"nightwind": "δΈ",
"daypower": "β€3",
"nightpower": "β€3",
"daytemp_float": "33.0",
"nighttemp_float": "25.0"
}
]
}
]See API Document for more information.
π³ Self Hosting
If you want to deploy this service by yourself, you can follow the steps below.
TO_BE_DONE...
β¨οΈ Local Development
You can use Gitpod for online development:
Or clone it for local development:
$ git clone https://github.com/lobehub/chat-plugins-gateway.git
$ pnpm install
$ pnpm startπ€ Contributing
π Total: 3