The Digital Asset Management platform Bynder is a popular choice for teams, and integrating it with Hygraph is made possible with UI Extensions.
We no longer store content and assets all in one place, but instead we use a myriad of "best of breed" providers. If you're working with an existing project that uses Bynder, you can continue to use Bynder for that project as you migrate to Hygraph for everything else.
To make things easier, we've built an example Bynder UI Extension. It's recommended you explore the example to see for yourself what goes into building an extension, and build something that fits your workflow. This example isn't intended to be production ready, and doesn't come with any warranty.
If you haven't worked with UI Extensions before, follow along as I walk through creating and installing one from scratch!
#The Bynder Extension Code
You can browse the files on GitHub, or download them using
npx degit hygraph/hygraph-examples/uix-bynder-input uix-bynder-input
Then, once installed, change directory, and run a simple server (on Mac):
python -m SimpleHTTPServer 8000
Once this is running, you'll want to install it using the local address, e.g. http://localhost:8000/ within your Hygraph Project Settings:
Once you pass the compatibility test, you'll need to provide details about your Bynder account to the extension. This is safely stored with Hygraph.
|Default Domain||String||Your Bynder portal url|
|Default domain editable||Boolean||Should users be able to change the default domain?|
|Available asset types||String||Determines which asset types your users will be able to select.|
Once your schema has the custom field type for your UI Extension, you can interact with it when editing content.
In this case, the UI Extension invokes Bynder's Compact View v2 component to browse and select assets.
That's it! You can see here that content editors now have the power to work with digital assets stored within another system, and developers can query that
JSON data Bynder stored directly from Hygraph:
Jamie is a software engineer turned developer advocate. Born and bred in North East England, he loves learning and teaching others through video and written tutorials. Jamie currently publishes Weekly GraphQL Screencasts.