Socket
Book a DemoInstallSign in
Socket

brokeapi

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brokeapi

A simple and lightweight Node.js client for interacting with the **BrokeAPI** chat API.

1.0.3
latest
npmnpm
Version published
Maintainers
1
Created
Source

BrokeAPI

A simple and lightweight Node.js client for interacting with the BrokeAPI chat API.

This module lets you easily send prompts and receive AI-generated replies using async/await.

Installation

Install the package from npm:

npm install brokeapi

Usage

const BrokeAPI = require('brokeapi');

(async () => {
  // Initialize the API client with your API key
  const api = new BrokeAPI('YOUR_KEY_HERE');

  try {
    // Send a prompt to the BrokeAPI chat endpoint
    const response = await api.sendPrompt('Hello from Node.js!');

    // Print the reply text from the API
    console.log('BrokeAPI reply:\n', response.reply);
  } catch (err) {
    console.error('Error:', err.message);
  }
})();

How to get key?

To get key join our official discord server

FAQs

Package last updated on 16 Jun 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.