Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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

Package Overview
Dependencies
Maintainers
0
Versions
6
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

  • 0.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
decreased by-93.55%
Maintainers
0
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:
  servers:
    - id: <server id>
      url: <serverURL>
      token: <api key> # dummy token

Example local development configuration:

lightspeed:
  servers:
    - id: 'my-llm-server'
      url: 'https://localhost:443/v1'
      token: 'js92n-ssj28dbdk902' # dummy 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.conversations.read, read, allow
p, role:default/team_a, lightspeed.conversations.create, create, allow
p, role:default/team_a, lightspeed.conversations.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

FAQs

Package last updated on 09 Jan 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc