The Fully Managed Event Streaming Platform
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
Keen API empowers developers to capture, analyze, and embed event data into their applications, creating opportunities for deep analytics and custom visualization capabilities. With Keen, you can stream, store, and query large volumes of events, enabling real-time insights into user behavior, system performance, or any other metric that can be captured via events. On Pipedream, integrating Keen allows you to automate workflows by capturing these events and triggering actions in other apps, based on the data you gather.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
keen: {
type: "app",
app: "keen",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.keen.io/3.0/projects/${this.keen.$auth.projectId}/events`,
params: {
api_key: `${this.keen.$auth.apiKey}`,
},
})
},
})
Develop, run and deploy your Node.js code in Pipedream workflows, using it between no-code steps, with connected accounts, or integrate Data Stores and File Stores.
This includes installing NPM packages, within your code without having to manage a package.json
file or running npm install
.
Below is an example of installing the axios
package in a Pipedream Node.js code step. Pipedream imports the axios
package, performs the API request, and shares the response with subsequent workflow steps:
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})