Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@nlbridge/express
Advanced tools
nlbridge
Express.js 🌲💬 🌉nlbridge
nlbridge
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 38 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.