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

@buildel/buildel

Package Overview
Dependencies
Maintainers
0
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@buildel/buildel

A flexible library for integrating with the Buildel service via WebSockets. Enables easy connection, authentication, and real-time event handling within the context of organizations and pipelines.

  • 0.3.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
53
decreased by-36.9%
Maintainers
0
Weekly downloads
 
Created
Source

🚀 Buildel

A flexible library for integrating with the Buildel service via WebSockets. Enables easy connection, and real-time event handling within the context of organizations and pipelines.

Installation

To install the package using npm:

npm install @buildel/buildel

Usage

Initialization

❗Before proceeding, ensure you have set up an authentication endpoint that will return authentication data for your websocket connection. The Buildel team has provided the @buildel/buildel-auth package to assist you in this process.

import { BuildelSocket } from "@buildel/buildel";

const organizationId = 123
const authUrl = '/your-api/auth-endpoint'

const buildel = new BuildelSocket(organizationId, { authUrl });
Connection
await buildel.connect();

// ... your operations ...

await buildel.disconnect();
Event handling

Run a pipeline and handle events:

const workflowId = 123
const run = buildel.run(workflowId, {
  onBlockOutput: (blockId, outputName, payload) => {
    console.log(`Output from block ${blockId}, output ${outputName}:`, payload);
  },
  onBlockStatusChange: (blockId, isWorking) => {
    console.log(`Block ${blockId} is ${isWorking ? "working" : "stopped"}`);
  },
  onStatusChange: (status) => {
    console.log(`Status changed: ${status}`);
  }
})
Pushing data

Send data to the channel:

await run.start()

run.push("your_block_name:input", 'sample payload');

License

This project is licensed under the MIT License.

Keywords

FAQs

Package last updated on 17 Oct 2024

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