@nospt/backstage-plugin-librechat-backend
v0.4.0
Published
Backend plugin for Backstage that proxies requests to LibreChat Agents API
Readme
@nospt/backstage-plugin-librechat-backend
Backend plugin that proxies chat requests from Backstage to a LibreChat instance, keeping API keys server-side.
This is the backend half of the LibreChat plugin. It exposes an HTTP route that the frontend plugin calls, forwards requests to the LibreChat Agents API, and streams the response back. Your default API key and agent ID stay on the server and are never exposed to the browser.
It must be paired with the frontend plugin, @nospt/backstage-plugin-librechat, which renders the chat bubble UI and holds the full configuration reference.
By default, backend routes require Backstage authentication. If you explicitly need public access (for example, local demos), set librechat.allowUnauthenticated: true.
Installation
Install the package in your Backstage backend package:
yarn --cwd packages/backend add @nospt/backstage-plugin-librechat-backendSetup
Add the plugin to your backend:
// packages/backend/src/index.ts
import {createBackend} from "@backstage/backend-defaults";
const backend = createBackend();
// ...other plugins
backend.add(import("@nospt/backstage-plugin-librechat-backend"));
backend.start();[!NOTE] Configuration, endpoints, and architecture are documented in the frontend plugin README.
