npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@getnuvo/pipelines-react

v0.2.2

Published

<!-- markdownlint-disable --> <p align="center"> <a href="https://getnuvo.com/" rel="noopener" target="_blank"><img width="150" src="https://general-upload.getnuvo.com/nuvo_logo_with_text.svg" alt="nuvo logo"></a> </p>

Downloads

219

Readme

API status

The @getnuvo/pipelines-react package provides React components that integrate seamlessly with nuvo pipeline APIs, allowing you to add a pipeline creation component to your React application easily.

Getting started

Before using @getnuvo/pipelines-react, ensure you have signed up for nuvo and have access to your license key.

Once you are signed up, you need to retrieve your access token, install the package via NPM or yarn, and implement the component into your React application.


Get access token

cURL

curl -X 'POST' \
  'https://api-gateway-staging.filedocks.com/dp/api/v1/auth/access-token' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "license_key": LICENSE_KEY,
  "auth": {
    "identifier": E-MAIL,
    "type": "USER"
  }
}' # Replace LICENSE_KEY with your actual license key & E-MAIL with your actual email

response

{
  "access_token": ACCESS_TOKEN
}

This is just a simple example. Get more info here.


Installation

You can install @getnuvo/pipelines-react using either npm or yarn:

npm:

npm install @getnuvo/pipelines-react

yarn:

yarn add @getnuvo/pipelines-react

Basic example

Here’s a basic example of how to use the CreatePipeline component in a React application:

import React from 'react';
import { CreatePipeline } from '@getnuvo/pipelines-react';
import '@getnuvo/pipelines-react/index.css';

function App() {
  return (
    <CreatePipeline
      accessToken="YOUR ACCESS TOKEN"
      onCreatePipeline={() => {
        console.log('Pipeline created');
      }}
    />
  );
}

export default App;

You can see a detailed example in our documentation here.

Settings & configuration options

The CreatePipeline component supports various configuration options for flexibility in pipeline creation. Here’s a detailed list of options you can pass as props:

<CreatePipeline
  accessToken={string} // Required: Your access token
  templateId={string} // Optional: ID of the pipeline template you want to use
  configuration={{
    developerMode: boolean, // Optional: Enable developer mode (default: false)
    name: string, // Optional: Name of the pipeline
    tdmId: string, // Optional: ID of the TDM
    active: boolean, // Optional: Set pipeline as active (default: true)
    outputConnectorId: string, // Optional: ID of the output connector
    inputConnectorId: string, // Optional: ID of the input connector
    errorConfig: { error_threshold: number }, // Optional: Error configuration
    scheduleConfig: {
      // Optional: Scheduling configuration
      frequency: 'HOURLY' | 'DAILY' | 'WEEKLY' | 'MONTHLY',
      startsOn: Date,
      endsOn: Date,
      interval: number,
    },
  }}
  settings={{
    i18nOverrides: {}, // Optional: Override default (i18n) text keys
    language: 'en', // Optional: Language setting (default: "en")
    modal: boolean, // Optional: Display as a modal or inline (default: true)
    allowTdmCreation: boolean, // Optional: Allow TDM creation (default: false)
    allowInputConnectorCreation: boolean, // Optional: Allow input connector creation (default: false)
    allowOutputConnectorCreation: boolean, // Optional: Allow output connector creation (default: false)
  }}
  onPipelineCreate={({ data }) => {
    // Callback: Executed when a pipeline is successfully created
    // 'data' contains the created pipeline object
  }}
  onClose={() => {
    // Callback: Executed when the creation workflow is closed (e.g., via "Cancel" or "X" button)
  }}
  onConnectorCreate={({ reload, connectorType }) => {
    // Callback: Executed when a create connector button is clicked
    // 'reload': Call this function to refresh the list of connectors
    // 'connectorType': Either "INPUT" or "OUTPUT"
  }}
  onTdmCreate={({ reload }) => {
    // Callback: Executed when a create TDM button is clicked
    // 'reload': Call this function to refresh the list of TDMs
  }}
/>

For more detailed configuration options and usage guidelines, refer to the nuvo documentation.