# Data Relay

Transforms and filters data sending it to your desired destinations.

## 1. Sign up and create an organisation
Create an account at https://relay-plantkit.vercel.app/

## 2. Create a destination
A destination is where the data gets sent to e.g. Email or Slack.

## 3. Transform data (Optional)
Data Relay allows you to enrich your data in many ways such as detecting whether it's a junk sales message or if it's coming from a large company.

## 4. Filter data (Optional)
Filters allow you to prevent data from being sent to your destinations.

## 5. Send data
You can send test data via the admin panel or via this SDK

```
npm i data-relay
```

```typescript
import dataRelay from "data-relay"
dataRelay.sendEvent({
    // Submit any JSON data
    firstName:"Bill", 
    lastName:"Jones",
    emailAddress:"bill@acme.com",
    message: "Hello Data Relay!" 
}, {
    apiKey: 'YOUR_KEY', 
})
```
