Socket
Book a DemoInstallSign in
Socket

@red-hat-developer-hub/backstage-plugin-lightspeed-backend

Package Overview
Dependencies
Maintainers
6
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@red-hat-developer-hub/backstage-plugin-lightspeed-backend

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
0
Maintainers
6
Weekly downloads
 
Created
Source

Lightspeed Backend

This is the lightspeed backend plugin that enables you to interact with any LLM server running a model with OpenAI's API compatibility.

Getting Started

Installing the plugin

yarn add --cwd packages/backend  @red-hat-developer-hub/backstage-plugin-lightspeed-backend

Configuring the Backend

Add the following to your packages/backend/src/index.ts file:

const backend = createBackend();

// Add the following line
backend.add(
  import('@red-hat-developer-hub/backstage-plugin-lightspeed-backend'),
);

backend.start();

Plugin Configurations

Add the following lightspeed configurations into your app-config.yaml file:

lightspeed:
  servicePort: <portNumber> # Optional - Change the LS service port nubmer. Defaults to 8080.
  systemPrompt: <system prompt> # Optional - Override the default system prompt.
  mcpServers: # Optional - only one mcp server is currently supported
    - name: <mcp server name> # must match the name configured in LCS
      token: ${MCP_TOKEN}

Permission Framework Support

The Lightspeed Backend plugin has support for the permission framework.

  • When RBAC permission framework is enabled, for non-admin users to access lightspeed backend API, the role associated with your user should have the following permission policies associated with it. Add the following in your permission policies configuration file named rbac-policy.csv:
p, role:default/team_a, lightspeed.chat.read, read, allow
p, role:default/team_a, lightspeed.chat.create, create, allow
p, role:default/team_a, lightspeed.chat.delete, delete, allow

g, user:default/<your-user-name>, role:default/team_a

You can specify the path to this configuration file in your application configuration:

permission:
  enabled: true
  rbac:
    policies-csv-file: /some/path/rbac-policy.csv
    policyFileReload: true

Keywords

backstage

FAQs

Package last updated on 13 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts