Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@nlbridge/express
Advanced tools
nlbridge
Express.js 🌲💬⚙️nlbridge
@lbridge
is a Node.js library that provides utilities, middleware, and a development server for building APIs
powered by large language models.
This package @nlbridge/express
provides an Express.js middleware for nlbridge
. It can be used to build custom APIs
that connect to large language models, and expose them as HTTP endpoints. It's designed to easily integrate with
nlux
(the conversational UI React and JS library), but it can also be used independently with any
other client.
@nlbridge/express
To use the nlbridge
middleware in your own Express.js server, install the @nlbridge/express
package:
npm install @nlbridge/express
Then, use the middleware in your Express.js server:
import {middleware} from '@nlbridge/express';
const app = express();
app.use(middleware(
// The AI backend to use (e.g. 'openai'). Only OpenAI is supported at the moment.
'openai',
// Configuration object. Ref below for details.
config,
));
Config is an object with the following type:
type MiddlewareConfig = {
apiKey?: string;
chatModel?: string;
chatMode?: 'stream' | 'block';
};
nlux
and nlbridge
nlbridge
is designed to work seamlessly with nlux
, the conversational UI library for any large language model.
To learn more, please refer to the nlux documentation.
FAQs
An express middleware to connect to several LLMs
The npm package @nlbridge/express receives a total of 8 weekly downloads. As such, @nlbridge/express popularity was classified as not popular.
We found that @nlbridge/express demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.