
Research
/Security News
Coruna Respawned: Compromised art-template npm Package Leads to iOS Browser Exploit Kit
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.
@buildable/client
Advanced tools
Buildable is a fully managed event bus lets you send and receive data across mission-critical cloud apps, databases and warehouses.
@buildable/clientBuildable is the easiest way to collect, stream, transform and action your backend system events. Buildable simplifies the process of communicating between services or cloud apps via events.
This library allows you to quickly and easily emit and listen on events via Node.js.
In order to use emit and listen on events, you'll need a Buildable account and Secret Key. Follow these steps:
Install the @buildable/client NPM package in your working code environment:
> npm install @buildable/client
The emit requires:
event - The name of the eventpayload - The data of the eventOnce an event is emitted, it will be visible immediately in the Live Events feed in your Buildable developer dashboard.
const { createClient } = require('@buildable/client');
const client = createClient(process.env.BUILDABLE_SECRET_KEY);
client.emit("user.created", {
name: "John Doe"
});
curl --location --request POST 'https://events.buildable.dev/emit' \
--header 'X-Buildable-Secret: <YOUR SECRET KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
"event": "user.created",
"payload": {
"name": "John Doe"
}
}'
A transaction is an action that can be triggered when an event is received. An event can have multiple transactions. Each transaction has:
txKey) per eventconst { createClient } = require('@buildable/client');
const client = createClient(process.env.BUILDABLE_SECRET_KEY);
// Transact on `user.created`
client.on("user.created", async ({ event, payload }) => {
console.log("Receieved event with payload: ", payload);
// Any value returned here will be set as the transaction's output
return {
success: true
};
});
When listening on events from cloud apps, simply add two additional options to the listener:
const { createClient } = require('@buildable/client');
const client = createClient(process.env.BUILDABLE_SECRET_KEY);
// Listen on `customer.created` from Stripe
client.on("customer.created", async ({ event, payload }) => {
console.log("Receieved message with payload: ", payload);
// Any value returned here will be set as the transaction's output
}, {
platform: "stripe", // Platform name
label: "my-stripe-connection" // Connection name
});
In order to trigger multiple transactions on the same event, you must specify a custom transaction key (txKey). For example, if two services need to listen on the same event and trigger different custom logic, each service must pass a unique txKey to the listener.
const { createClient } = require('@buildable/client');
const client = createClient(process.env.BUILDABLE_SECRET_KEY);
// Transaction #1 on `user.created` from service A
client.on("user.created", async ({ event, payload }) => {
// Set the notification.sent transaction output
return await sendNotification(payload);
}, {
txKey: "notification.sent"
});
// Transaction #2 on `user.created` from service B
client.on("user.created", async ({ event, payload }) => {
// Set the salesforce.customer.created transaction output
return await createCustomerOnSalesForce(payload);
}, {
txKey: "salesforce.customer.created"
});
*By default, the txKey is set to sdk.{{EVENT_NAME}}
In order to transact on events that have already been emitted in the past, simply pass in the additional configuration argument since. For example, to transact on messages from 10 days ago:
client.on("user.created", async ({ event, payload }) => {
// Set the notification.sent transaction output
return await sendNotification(payload);
}, {
txKey: "notification.sent",
since: Date.now() - (10 * 24 * 60 * 60 * 1000) // Since 10 days ago
});
Alternatively, you can use the Buildable API. Learn more about it at docs.buildable.dev
💻 Website: https://buildable.dev
📄 Docs: https://docs.buildable.dev
💬 Discord: https://discord.com/invite/47AJ42Wzys
🐦 Twitter: https://twitter.com/BuildableHQ
© 2022, Buildable Technologies Inc. - Released under the MIT License
FAQs
Buildable is a fully managed event bus lets you send and receive data across mission-critical cloud apps, databases and warehouses.
We found that @buildable/client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.

Company News
As AI accelerates how code is written and shipped, Socket is scaling to protect the software supply chain from the growing wave of attacks targeting open source dependencies.

Company News
Socket is scaling to defend open source against supply chain attacks as AI accelerates software development.