@flatfile/plugin-connect-via-merge
v0.6.1
Published
A connect plugin for Merge.dev
Downloads
326
Maintainers
Keywords
Readme
@flatfile/plugin-connect-via-merge
This is an alpha release connect plugin for Merge.dev. Using this plugin will enable you to sync data from hundreds of integrations (connected through Merge.dev) with Flatfile.
Before you begin...
- Email [email protected] to request that the
connections
flag be enabled for your account. - Create a Merge.dev account.
- Create and configure a Flatfile Space.
- Create a new secret named
MERGE_ACCESS_KEY
in your space containing your Merge.dev API key.
Getting started
First, install the plugin:
npm i @flatfile/plugin-connect-via-merge
Now you can create your Flatfile listener:
Javascript:
import mergePlugin from "@flatfile/plugin-connect-via-merge";
export default function (listener) {
listener.use(mergePlugin());
}
Typescript:
import type { FlatfileListener } from "@flatfile/listener";
import mergePlugin from "@flatfile/plugin-connect-via-merge";
export default function (listener: FlatfileListener) {
listener.use(mergePlugin());
}
And finally, deploy it to Flatfile:
npx flatfile@latest deploy
With the connections
feature flag enabled, you will see a new item in your space's sidebar labeled "Add Connection". Clicking this will open a modal where you can select the Merge.dev integration you want to connect to Flatfile. After you've made your selection, Merge.dev will since your selected integration with their system and your Flatfile listener will create a Workbook with Sheets to match Merge.dev's schema. Once the Merge.dev sync is complete, your Flatfile listener will complete the process by syncing with Merge.dev.