# Embed Integry Apps Marketplace

In this guide, we will use the [Integry.JS SDK](https://docs.integry.ai/apis-and-sdks/js-sdk-reference) to enable users to connect apps and setup/run integrations with those apps from your SaaS application.

Before you proceed, please [sign up](https://app.integry.io/accounts/register/v3/signup/?product=functions) for a free trial (if you haven't).

## Set up the SDK

Follow the steps [here](https://docs.integry.ai/apis-and-sdks/js-sdk-reference#setting-up).

## Show apps

Your users need a way to discover and connect apps.

### Show Apps in the Integry marketplace

Call the [`showApps()`](https://docs.integry.ai/apis-and-sdks/js-sdk-reference#show-apps) method to easily show apps in a marketplace-style list view. You can [configure the layout](https://docs.integry.ai/embedded-ui/render-modes-layouts-and-styling) and [customize the styling](https://docs.integry.ai/embedded-ui/broken-reference).

<figure><img src="https://78037505-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQak2YXQSmpUf7kzA1VKk%2Fuploads%2Fl7zZay0qs1cdFE9RdzQI%2FScreenshot%202024-11-12%20at%208.13.04%E2%80%AFPM.png?alt=media&#x26;token=8278dfc1-3231-4675-a735-b0bcafc90061" alt="" width="375"><figcaption></figcaption></figure>

Your users will simply click an app to connect. If the app has [Flows](https://docs.integry.ai/flows), they will then be able to setup/run those flows.

### Show apps in your own marketplace

If you prefer, you can use Integry to [add more apps to an existing list](https://docs.integry.ai/embedded-ui/add-integry-apps-to-an-existing-marketplace) in your app.

## Listen to events (optional)

### Integration created

If you are going to send data from your app to another app, you will need to capture (and store) the **unique callback URL** for the user's integration so you can trigger it from your app.

Subscribe to the `integration-created` event and get the `callbackURL`. This event will fire after your user creates an integration. It will not fire if they edit an existing integration.

```javascript
integry.eventEmitter.on('integration-created', (data) => {
    console.log("Callback URL: " + data.callbackUrl);
});
```
