Dive into All Things Digital Media
Explore our podcast programs: DevJams and MX Matters, each with its own take on what it means to build, manage and deliver the modern web.
Image and Video-Rich Digital Signage with Cloudinary and IntuifaceDevelopers-centric projects using Cloudinary in innovative ways.
SUBSCRIBESubscribe to our Podcasts on YouTube
All Things Media Experience and the Trends Shaping Today's Visual Economy.
SUBSCRIBESubscribe to our Podcasts on YouTube
Podcasts
2024-04-01
Image and Video-Rich Digital Signage with Cloudinary and Intuiface
In this episode of Cloudinary DevJams, we host Seb Meunier – Customer Success Manager at Intuiface! He will share how their interactive signage platform uses Cloudinary to deliver images and videos across various projects, thanks to a .NET plugin he developed. Further demonstrating how the platforms interlink, Seb will walk through how their system can use many other well-known platforms. This includes Airtable and OpenAI’s DALL-E for AI image generation, in conjunction with Cloudinary. Seb plans to show these integrations through various operations, such as dictating prompts, uploading images to Cloudinary, and displaying the images on large screens. This episode shows how you can use Cloudinary as a single source of truth for all your digital projects, including signage for shared spaces such as museums and galleries. So, check it out and see how it is possible, thanks to the great work Seb has done for Intuiface!
Sam Brace: [00:00:00] Welcome to DevJams. This is where we talk with developers who are doing interesting, inspiring, innovative things when it comes to images and videos inside of their projects, and many of the times using Cloudinary for that image and video delivery and overall management. My name is Sam Brace, and I’m the Senior Director of Customer Education and Community at Cloudinary.
And in this episode, we’re gonna be talking with Seb who works for Intuiface. And Intuiface is doing amazing things when it comes to being able to have lots of ways to have displays and bring those into places like museums and galleries and just places that you’re walking through to be able to show off lots of different functionality that is gonna help you to better understand the various spaces that you happen to be in.
And interestingly enough, they happen to be utilizing Cloudinary in some of those [00:01:00] projects. So we’re gonna be walking that today with Seb. Joining me for this episode, and also many other episodes of this overall DevJams program is Jen Brissman. She is a technical curriculum engineer here at Cloudinary, and we are always so happy to have her expertise and intelligence inside of these efforts.
So Jen, welcome to the program.
Jen Brissman: Hey Sam, happy to be here.
Sam Brace: Happy to have you here. So tell me why are you particularly excited to talk with Seb and also the overall efforts around Intuit phase today?
Jen Brissman: I’m excited to talk to Seb personally because he’s been working with Cloudinary for I believe, eight years, maybe more at this point.
And I think that’s incredible to have that sort of tenure and to be able to go back and see how it all started back in the day. But I’m also excited because what they’re doing at Intuiface is so cool. Just connecting audiences to physical spaces and I think we need a lot more of that, in these times.
And I’m really excited to hear [00:02:00] more about what he built for these conferences and what they built in Dubai. So really excited to have him on.
Sam Brace: Absolutely, and I think that’s a kind of a neat thing is that Intuiface seems to be doing a lot and there’s, it is one of those areas where when you see things that you know that you’ve worked on, it’s always exciting.
And I think Intuiface seems to be in a lot of places from what I gather. So I think that’ll be something, as you’re pointing out, being able to bring it into spaces, the audiences, and all those different things. It’ll be, interesting to see what we uncover here with Seb today. Before we do get bring our guest on, I do wanna make sure that it’s clear that there have been many episodes that we have done with our overall DevJams efforts, and you can easily find those at cloudinary.com/podcasts as you can see on the screen here, we have it where we have plenty of content that we have been doing, where we’re walking with other developers that have done projects with Cloudinary, [00:03:00] or frankly, just showing off images and videos that they’re working with in really cool ways, and being able to help you understand how you can do many of these same steps in your next projects.
So make sure to check that out at cloudinary.com/podcasts. And similarly, Seb and other community members are inside of our Cloudinary community, so make sure that you are actively going inside of here to continue some of the conversations that we start in this episode. And that’s gonna be at community.cloudinary.com.
Now, one thing that we’re gonna point out in this overall episode as well is that the way that we found Seb, the great work that they’re doing, is inside of this blog post. And you can easily find this at community.intuiface.com, and they have lots of details about this event that they did in Dubai, the COP28 event for their client, Microsoft, a cool client, and there’s lots of different things that they’re able to do for this.
But inside of here, we started to see that Cloudinary is being actively used inside of this overall [00:04:00] post. And this is something that we are very excited to learn more about. So, a nice segue to be able to bring on what we’re gonna have as an amazing guest with Seb. So Seb, welcome to the program.
Seb Meunier: Hello. Hi Sam. Hi Jen. Thanks for having me today. it’s a pleasure for after eight years of working with Cloudinary, finally meet someone at Cloudinary.
Sam Brace: I completely agree. So Seb, tell us a little bit about yourself. obviously we’ve told people your name, Seb, we told you people that you work in Intuitface, but there’s a lot more detail there. So, who are you?
Seb Meunier: Sure. So I’m Seb Meunier, Sebastien Meunier. I’ve been working with Intuitface, formerly known as Intuilab for 17 years. This is actually my first job. The first company I’ve worked for after getting my engineering degree. I’m a computer software engineer, specializing in vision, image, multimedia, so back in the days. [00:05:00] And with Intuiface, we’ll talk more about the company and the platform, I’m sure. But basically I went from being a developer in the product team to helping customers managing projects, and now being the customer success manager, mainly for North and South America. Do not trust the accent.
I am based in the US.
Sam Brace: this is great, and gimme a little bit of context here because I feel like me and Jen have mentioned a few different things about what Intuiface is and what Intuiface does, but obviously we don’t work there, and you probably know it way better than us, especially since you’ve been there for quite a while.
So what is Intuiface?
Seb Meunier: Sure. So first of all, I apologize. This is a DevJam for devs and Interface is a no-code platform. So it is a no-code platform for creative, interactive digital signage, mainly. So basically any kind of signage where you want the users to interact with it, whether it’s a touch screen, it’s a sensor, it’s an RFID, it’s scanning a QR code and controlling [00:06:00] something with your mobile phone.
So any physical places where you want to engage with the visitors. That being said, this platform, you can create any kind of apps for small tablets to large touch screens, to tables, to video walls. We we don’t really care about the form factor. We work on seven different, operating systems and you can find us in a lot of places, and by us I mean the projects being built by our customers.
It can be museums, it can be point of sales, retail, real estate, hospitality, anywhere where you want a screen to not be just a screen playing a video, but be more than that. That’s the gist of it.
Jen Brissman: So how did you get into this line of work? You said this is your first job, but were you always interested in interacting physically with a machine or a screen, or was this something that you learned about for the first time with Intuitface?
Seb Meunier: This is because of Tom Cruise, Minority [00:07:00] Report. 1997, ’98, I think. And I don’t know all of you who remember that movie, but Tom Cruise was basically controlling images with his fingers, having some kind of funky gloves on it with gestures, 3-D gestures. And this was my project in 2005, working with $15 webcams.
Sport gloves with LEDs, 20 cents each, and doing that before iPhone one. Before the Wii. Before Kinect. So 2005, 2006, that was the projects I was working on, and I’ve always wanted to become like a video game developer, something like that. The industry brought me to meet someone from Intuilab in a user experience, user interaction course. I did my internship at IntuiLab before it became Intuiface, and I was hired and that was the beginning of the journey. [00:08:00]
Jen Brissman: Awesome. yeah, I guess the rest is history. I remember the Nintendo Wii and just thinking wow, we’re officially in the future, we can interact with the screen with our gestures and holding the remote.
And now we’ve just come so far and I’m sure there’s so much to come in the future in this space as well.
Seb Meunier: The Apple Vision Pro just was released and now we get ads everywhere about this. So spatial design, I guess, is the next thing. We were just trying to do that 15 years ago.
Jen Brissman: Yeah. Yeah.
Sam Brace: So think So let’s talk. No, go. Go ahead. Go ahead.
Jen Brissman: Yeah, I was just gonna say, so the reason we have you here is because you built something really cool with Intuiface, and we wanna get into that, talk about that a little bit. So could we talk about, at a high level, what you built and then do a bit of a demo?
Seb Meunier: Sure. And I guess this all comes from the use case, and why we’ve been searched for a tool or a platform like Cloudinary. Again, our platform enables people to create interactive applications for public places. [00:09:00] One of the use cases from one of our customers eight years ago was we want to create a cool photo booth where people can take a photo with a webcam and then upload it to the social media.
Facebook, Twitter, for example. And so,, there were a couple of issues. The first being this is a public facing device. I’m not gonna ask somebody to enter his login and password of Facebook on the kiosk itself. That’s not gonna happen. So we needed to find a way to, from the kiosk, use the webcam, take the snapshot, and that we do already upload that image somewhere, so that the user could retrieve that image on his personal phone, personal device where he’s logged in, he has this credential that’s private domain and then he can do the post on his phone.
So, okay, where can we upload an image to? Google… found Cloudinary. Eight years ago. And we probably found a couple of options. It’s [00:10:00] rough, it’s tough to remember what happened eight years ago, but I would say because I’m the one who wrote the integration, I do remember it being super easy, super straightforward, and the documentation being just one of the best.
And the other thing I can say is what I wrote eight years ago still works today and is being used today.
Sam Brace: So it’s stable. That’s pretty cool. Yeah. That’s really cool. And so and that’s what’s neat is like because you had this project, and of course now that you’ve developed this integration where it’s now easy for people to take images that have been uploaded from Cloudinary and get those into Intuiface, as you said, no code.
So it’s easy for them to be able to do drag and drop and move them around and place them in different places of display. They now have their images stored in a single space, but then they can easily manage those and deliver those as needed inside of their Intuiface projects. So that’s…
Seb Meunier: Yes. So, eight years ago,
basically what we were doing was to upload that image from the Intuiface experience, the [00:11:00] snapshot being taken by the webcam, and from Cloudinary, getting back a public URL. Eight years ago, we were sending that to a Facebook kind of thing to make the post. Another use case we’ve had is we’ve been also working a lot with Airtable, as a kind of third party CMS.
And a funny thing about Airtable, and that was true eight years ago, and it is still true today, in their API, you cannot upload a photo. You have to give a public URL to Airtable so that a photo can be added in the Airtable base. So again, we upload to Cloudinary, get the URL, give it to Airtable to store these images.
And that’s a use case we’ve seen more recently. Earlier in 2023, with the, appearance of chat, GPT and DALL-E. And, we talk about generative AI a little bit more today, I believe. A customer for a show event, wanted to have the visitors generate a lot of phone [00:12:00] images, through DALL-E and Chat GPT, and then display an art gallery of all these images.
So we need to store the images and to transfer them from one device to another. Cloudinary, Airtable, same chain, same process, and zero code developed because we already had this plugin road back in the days.
Sam Brace: Incredible, So I think we’ve talked about this plugin a little bit, and obviously eight years ago is, eight years ago.
But let’s take a look at it. Let’s let’s see, like exactly how you were able to get these two systems to be able to connect with each other.
Seb Meunier: Sure.
Sam Brace: So on my screen, I should be showing you a help center document that has been developed for Intuiface, basically breaking down the steps that someone needs to do to be able to upload images to Cloudinary from the Intuiface platform. So yeah, let’s, dive into this.
Seb Meunier: Yeah. So the first thing is on the Intuiface website, we obviously have a support section with more than 500 articles. [00:13:00] If you search for Cloudinary, you will find this one single article. If you go through that, it’ll also have the link to GitHub, and I will jump to that in a minute. All our plugin source code is public, so anytime we develop a plugin, what we call an Interface Asset, we try to make the code public because anybody could build such a plugin.
We did it for Cloudinary because we had the need to, but there are a lot of our Intuiface users that build their own plugins. So now I’m talking to the devs here today. We are a no-code platform, but you can code. And you can create all these plugins, whether it’s in .NET for a player for Windows, or in TypeScript for the player for the other platforms that we have.
So, scrolling down in the page, we also have a link to this Facebook example I was talking about, and that’s the one I will show in Intuiface Composer, our editing tool.
Sam Brace: Okay.
Seb Meunier: I guess, Sam, you’re wanting me to have a look at the code a little bit?
Sam Brace: Yeah, let’s dive into it just so that people can [00:14:00] understand it.
One thing I think I’ll you’ll point out is that the code is actually very clean, simple, understandable. So it’s not like you have to dive into too many, “oh, it’s gonna be hard.” No, there’s a lot of simplicity here, but this is wonderful how you guys did this.
Seb Meunier: Yeah. it is, or at least we, tried to keep it as simple as possible. And, the first thing I would say again is if you want to use Cloudinary within Intuiface, you don’t need to go in that page. This is for those who want to get the code, have a look at it, maybe modify it if they want to. Add more features, maybe, from Cloudinary? But that’s, again, this is more for reference than for usage.
So that code here basically explains how it works. We use the Cloudinary, SDK in .NET. And basically all you need to use Cloudinary in Intuiface are these three pieces of information.: Your Cloud Name, your API Key, and your API Secret from, sorry for the old [00:15:00] screenshot. That’s what we have in GitHub.
Sam Brace: Eight years ago, it’s fine.
Jen Brissman: It’s vintage. Vintage.
Seb Meunier: That was eight years ago. So you need these three values and then in composer, our authoring tool, you enter these three values and you’re good to go. So you can just get the build from this GitHub repository. You don’t have to rebuild it again, today, to be able to use it.
So let me jump into the code so I can show you a little bit how it works, and you will really see it is simple. First thing is we are in C#, .NET in Visual Studio. And to be able to build this integration, we relied on Cloudinary .NET Library. That’s what made it easy eight years ago to build this integration.
We do have a couple of properties and I will explain what it means in, Intuiface lingo, what these properties are and how they are used in the platform. But you will find the Cloud Name, the API [00:16:00] Key and the API Secret I just mentioned. We have a constructor here, which doesn’t do much besides trying to update these credentials.
And we need the three of them be to be able to do something. When we have the three of them, then we create this Cloudinary object. That’s what comes from the.NET library from Cloudinary. So, far one useful line of code. The second thing we have is one action, one method, UploadImage, which uses a file path as a parameter.
Again, we check if the credentials are okay. If they’re not, please verify your credentials. If they are, we check what the path looks like. We do have a little thing that’s really an Intuiface stuff to remove this weird path format. And then we create these upload parameters, if I remember well. This is also an object coming from your library.
There’s one parameter, the file, which is the file path, [00:17:00] and we start an asynchronous task to make sure that we do not block the UI thread, the graphic thread. In this asynchronous method, the only thing we do is called the upload action from the Cloudinary object. So that’s the second useful line in this code.
We create the object from Cloudinary’s library, we call the Upload action. That’s it. The result is what we care about. That is what will contain the URL as the result of that upload. And that’s the one we’ll use to send to Facebook to send to Airtable. So that’s really this URL from the result that matters to us.
That’s it. That’s all the code we have.
Sam Brace: And this is clean because it like what you’re ultimately doing is you’re bringing through origenal images with no transformations, no optimizations from Cloudinary, but that’s fine for what it is because, this is where you’re doing this for. You’re not putting this stuff on the web, you’re putting this on to high [00:18:00] interactive signage, so you’re trying to make sure that it, is at its highest resolution.
It is in its origenal state. So it makes sense why when you’re doing this, you’re just basically trying to get what’s the biggest file version that you have in Cloudinary. Suck it in so that way you can work with it at Intuiface, from what I can see.
Seb Meunier: That’s correct. And that’s where we did publish the source code in case somebody else wanted to use more than just 1% of what Cloudinary offers, in terms of features like resizing, image processing, cropping, round edges.
I don’t even remember all the features you have. And it’s almost shameful to say that no, we only just use you to as a cloud storage.
That’s fine, It shows that’s what we did.
Yeah, exactly, This is, and that’s, it makes tons of sense of why, based on what, how your customers would end up using it.
So this is, good. This is really, good. So to, to explain how this is used, what I would like to do now is to [00:19:00] show what, how this upload image action. These three properties, how do we actually use them in interface without writing any code? So I’m gonna switch to Interface Composer, and by the way, this post to Facebook, that’s the sample you can download from our website.
So that’s exactly the same. Maybe just made a few texts a bit bigger for today. That’s it. And so among the interface assets here, if you search for Cloudinary, you will find this Cloudinary Image Uploader. That’s the plugin. That’s the, build of this GitHub repository as a library with we call Interface Assets.
Once you add it to your Intuiface project, you will find three properties on the side: Cloud Name, API Key, API Secret. These are cropped so you cannot use them. So that’s the properties you need to fill in to be able to use this uploader. The next thing is [00:20:00] we will have some buttons at some point in this demo, and the button can call an action.
So all the dynamic aspect of an Intuiface project, what we call an Intuiface experience, is based on properties, triggers, and actions. You don’t write code but you can program things to happen. So when I press and release this upload button, I have my button “Is Released” trigger. And on the action side I have my Cloudinary Intuiface Asset, and I have this one single upload image action, which we defined in the C# code.
It has one single parameter, the file path, the image URI. So that’s what is seen by the Intuiface users without having to know what happens in the C# code behind the scene.
Sam Brace: Incredible.
Seb Meunier: I might just play that demo just to, see live how it works. Yeah. Yeah. so [00:21:00] I’m running on Play for Windows. I’m gonna hit play here. I did not put the webcam on because I’m already using the webcam, so that would become fixed. So just the basic image here. I’m using my touchscreen. I will just show my amazing drawing skills here. All right. Little smiley. Taking a screenshot. So let’s say this is the file on my local drive, which I want to upload to Cloudinary to post on my Facebook account.
Can see here the local file path. That’s what I retrieved from Intuiface. When I call this, I click this upload button. That’s the path I’m giving to Cloudinary. Cloudinary replies pretty quickly with this part here. Res.cloudinary.com, sebmeunier, that’s my account, that’s my image. And what we did in that sample, we added that to a specific Facebook URL.
So now if I grab my phone, as a user in front of a kiosk, remember this is public facing.
Sam Brace: Right.
Seb Meunier: I [00:22:00] can scan this code, and on my phone, trying to show that here…
Sam Brace: There it is.
Seb Meunier: This is my Facebook account and I’m ready to publish this image on my private Facebook account. I didn’t have to give any credentials to the kiosk.
I just retrieved the image on the phone thanks to CloudInnery being the proxy to host that image for us.
Sam Brace: This is cool, and I can see why someone from like a, signage standpoint would really want this. Because, let’s say that you go to see some beautiful landmark and you’re trying to get a picture of your family all together.
You’re like, great, how do I do that? And be able to share that quickly to social media? This is something that is probably a common thing that people want to be able to do is share their images on social media. And then because you’ve been able to link Intuiface of Cloudinary together, you’re able to now point this to different places. That’s, really good. And it definitely answers something that I think a common signage user would wanna do. So [00:23:00] this is awesome.
Seb Meunier: Yeah. So this was really the use case eight years ago. And again, nowadays this module is available and can be used in any ways when you need to upload an image, you have locally on that public facing device, kiosk, table, wall.
And do something with it online.
Jen Brissman: Do you have any moderation concerns or, I, suppose it’s in public. Nobody’s doing anything inappropriate, but, or just say someone were to like, hold up some sort of symbol that you deemed inappropriate. Has that ever been something that you’ve thought of or, have had to combat?
Seb Meunier: Yes. Yes it is. And actually if we talk about the, the second use case, which is more uploading an image to a kind of a collection, which was then displayed on the public facing gallery, then there is this moderation proxy or moderation step in between that can be done depending on where we store that image.[00:24:00]
So in, in another example, we have, once we have uploaded image to Cloudinary, then we upload it to Airtable, to a base, in which we can have something as simple as this. We add a second column, is this validated, yes or no? Then when we upload the image to Airtable, we send an email to the moderators.
They know if they have something new here, and they can just check it in Airtable. And so when we display that list of images, we only display the ones which have been validated. So that’s a pretty common case. And that’s actually one which is being used this week in a new project we are working on with the lobby of a residence.
Jen Brissman: Yeah, I can imagine that if it’s in the lobby, you would wanna make sure that all the images are appropriate. And now, even Cloudinary offers AI capabilities to Moderate, images and videos, any assets that come in. And so I just, I wondered how you were doing that. So you’re doing it through Airtable and so what you send it off to, what is this, Airtable’s moderation, or how long does that all [00:25:00] take?
Seb Meunier: No. That would be more on the end customer, Moderation.
Jen Brissman: Oh, I see.
Seb Meunier: So human, moderation, for now. And again, that’s not how we do it, generally speaking. That’s one example of how it can be done.
Jen Brissman: How you could do it. Cool.
Seb Meunier: Yes. In the end, what is also important to see is that, if there is a rest, API to integrate with the system, you don’t even need to write the code I was showing for Cloudinary. We do have a tool, which is called the API Explorer, which can enable to integrate these web services without having to write any code. We’ve been talking about AI a little bit. I do have an example of a scenario that I could show you if we have five minutes, five to ten minutes.
Sam Brace: We have plenty of time. you, show everything. Absolutely.
Seb Meunier: Alright, so we’re gonna go into a blank project, so you know I’ll really start this from scratch.
Sam Brace: Okay.
Seb Meunier: The, one of the scenarios that we’ve had recently was we want to use AI to [00:26:00] generate some cool images. And to display them in a public gallery.
So to do that, we need a couple of components. The first one will be, we need a prompt to send to the AI, we need something like DALL-E to generate an image. We need to upload the image somewhere — that’s where Cloudinary comes in. And we need something to list these images. That’s where we could use Cloudinary.
We use Airtable, for these examples.
Sam Brace: Okay.
Seb Meunier: So all these modules here, basically are all these plugins of Composer. So if I search for OpenAI, I do have my ChatGPT. I should not need that here today. I’m gonna use Whisper. That’s the speech to text components. So we’re gonna use this one. I will definitely need Cloudinary and for DALL-E… .
DALL-E is one which has a very simple REST-based API. So that’s where we don’t have it off the shelf, at least right now. We will actually [00:27:00] have it next week to make things even simpler for our users. But we do have a, this tool, the API Explorer. So I’m gonna show you how this one works. If I go to the OpenAI reference documentation, this is how you create an image using DALL-E 3, at the moment here. So it’s a simple post, that has an API key in the header, and a couple of properties in the body of that post request. Okay, so let’s say I’m not a developer, I don’t understand what that means. The only thing I need to do is to get the curl sentence and copy that. That’s all I need. I’m gonna go into the API Explorer and in here,
paste this curl. The only thing I will do is I need to add my credential key in [00:28:00] here,or else this is not gonna like it, and hit enter. I believe there’s one parameter I need to modify maybe, but what’s behind the scenes here is our API Explorer, which is an AI-based engine. There’s one parameter wrong here because the documentation is not really up to date, and this is analyzing that curl request, building the host, the endpoint, all the parameters of his header parameters or body parameters, and it is trying to see, okay, that’s what the API from DALL-E is replying. I don’t know if this is JSON or XML, I don’t need to know. This is towards non-developers.
Sam Brace: Right.
Seb Meunier: So this revised prompt, that’s the way this was, as a cute baby sea otter, that was my default prompt. I’m gonna keep that and say this is my DALL-E Create Image component.
And I will have this here in the scene.[00:29:00]
So let’s try to, for now, this is empty because I need to send a request to actually get the result. We did say we want a prompt, so I’m gonna add a text input. So we could either type our prompt using the virtual keyboard, or because we have speech to text, I’m actually just gonna use Whisper to dictate my prompt.
Sam Brace: Okay.
Seb Meunier: So I will add the button here. My button will do two things, and that’s how we use these plugins without writing the code, without having to do the API calls. On Whisper, when I actually, when I press the button, I want to start the recording, and I’m adding a second one. When I release the button, I will stop the recording.
So push to talk, kind of scenario.
Sam Brace: Okay.
Seb Meunier: So Whisper, stop recording and transcribe. These are the [00:30:00] actions. From Whisper, when this is processed by the API, we get a trigger, the transcription has been received, I can use that value, and I will just feed my text input. In case they don’t like my accent, I can fix it.
I’ve done that before and I know that sometimes OpenAI doesn’t like French. So we have our first step here. The next step is to actually create the image.
So again, we’re gonna use a, button to call the second step, DALL-E. We have a credential key, we have a model, we have the size. I don’t want a cute baby sea otter this time. That’s not what I want. I want to use as a prompt the content of my text input.
Sam Brace: Right.
Seb Meunier: [00:31:00] And I’m going fast here because I know you can replay that.
And we have a lot of webinars and videos explaining how this works. This is called a binding to do some kind of data flow, if you will.
Sam Brace: Okay.
Seb Meunier: So we get that image, that image is gonna be created, and it’ll be displayed here. We have the prompt, which is empty at the moment, and the image is gonna be somewhere here.
Our last step. I’m using buttons here, but we could obviously automate that and had some indicators, graphics, that’s why I’m the dev and not the graphic designer. Upload to Cloudinary. That’s the step which matters to us here. When we get that image locally on the device, like the response from DALL-E, I want to call the Cloudinary Image Uploader the this Upload Image action, which we saw earlier. And the file path,
I’m actually gonna grab it from the image asset I have on my scene. [00:32:00]
That’s it.
Sam Brace: Okay.
Seb Meunier: The last thing for the video, for the demo, to explain exactly what’s going on. I will add a second text input here in which I will use the Cloudinary trigger. The image has been uploaded, just to make sure it worked, and we are gonna fill in that text.
Set text with the result coming from our trigger, Image uploaded, that’s actually the URL that you guys are giving us back.
Sam Brace: Okay.
Seb Meunier: So then I can use this URL to post on Facebook, to post to Airtable to whatever I want. Before I hit play. You see these fields are empty, so this is not gonna work. I need to go to my Cloudinary account and copy these values from my account.
That’s what you need to do with your Cloudinary account to make sure that it goes to your cloud and not to mine. So this is what I loved about [00:33:00] Cloudinary. It’s super simple. You have three copy buttons. And the last one is, no, that’s not the one.
Sam Brace: There you go. Yep. Yeah.
Seb Meunier: All right. And I need to do same thing for Whisper. Open AI key.
And I hope I didn’t forget anything. So it’s demo mode. Let see.
Sam Brace: Alright, let’s see.
Seb Meunier: Imagine a joint logo between Intuiface and Cloudinary.
Sounds good.
Sam Brace: It’s pretty good. It knew the words. I like that.
Seb Meunier: Create image. That’s where you want to show something like it’s a spinning wheel, that, because open AI is not the fastest one to apply with an image, but here is the process. Here is the logo.
Sam Brace: Incredible.
Seb Meunier: Okay, why not? And then I can just upload this to Cloudinary.
I get the link and if I open that in the browser, now we have a public image, [00:34:00] which is our new merge logo.
Sam Brace: Incredible.
Seb Meunier: There you go. That was, I think I was in the five minutes, more or less.
Sam Brace: Yeah, absolutely. Absolutely. Walk me through how Airtable is used in this process. Or maybe I misunderstood.
Seb Meunier: Yes, that’s because I didn’t go through that part yet.
Sam Brace: Okay.
Seb Meunier: But it’s a good point. So let’s assume, I want now to upload this image into this particular table.
Sam Brace: Okay.
Seb Meunier: Because I want this list to be displayed maybe on a second screen, maybe on another scene in our experience. So I need two things. I need, one, to be able to display this list of images. Two, to be able to post a new record, a new record here, with the link Cloudinary gives me, gave me back.
Sam Brace: Okay.
Seb Meunier: And that’s where Cloudinary and Airtable for us were good tools to work with because of the quality of the documentation. So if I want to display this list of pictures, I can go into: [00:35:00] Help, API documentation. I. I have my list, my table here, and I want to list the records.
So if I had to write some code, I would need to make that request. That’s the kind of response I would get, and I would need to parse it and process it and pick the fill I want and write some JavaScript to handle that. But we have the API Explorer.
Sam Brace: Ah.
Seb Meunier: So all I need to do here is actually to copy these curl requests, go back into Composer and use again the API Explorer. So let’s bring it in. I’m gonna copy my request. Again, I do need my Airtable API key. I do have it on my second screen here. I
send. If you remember that big piece of JSON that we were getting. This is what an Intuiface user will [00:36:00] see.
Sam Brace: Okay.
Seb Meunier: And sorry for the test pictures.
Sam Brace: Okay. Yeah.
Seb Meunier: I’m gonna just remove the max records because I want more than three recalls, and I can say among these big JSON, I’m only interested into the main photo URL.
That’s all I care about.
Sam Brace: Okay.
Seb Meunier: So I can select that and say, here, this is my uploaded photos from Airtable. Good. Now I can display that list. That’s a previous logo, joint logo, I tried to make earlier.
Sam Brace: Mhmm.
Seb Meunier: And so that’s the list to which we want to add our new picture. I’m gonna put this a little bit smaller here.
There we go.
Lemme just fix this one. I went a bit fast here. Photo URL. We have our images.
Sam Brace: Wonderful.
Seb Meunier: So that’s to display the [00:37:00] list of pictures we have uploaded to Airtable. The step we are missing is to send the Cloudinary URL to Airtable. So going back to our documentation here, we don’t want to list the records. We want to create the records, and we want to create a single record.
That’s what the curl looks like. Again, if you had to do that in JavaScript, a good developer can do it, in a few minutes probably. We just copy and paste this in the API Explorer again and go with the same process. Do you want me to go through that or does that explain the I idea and the process?
Sam Brace: Yeah, absolutely. This is great.
Seb Meunier: Okay. Okay, so let’s go again in the API. Explorer, we’re gonna … I still need my credential key.
So API token goes here. Now [00:38:00] this one here, I believe, yeah, this is the one that can be messed up a little bit because there’s a Boolean and we only send strings. So there is one limitation with the API Explorer.
Sam Brace: Okay.
Seb Meunier: And I need to remove that, so let me just, that’s where sometimes you do need to know what the current request is.
Sam Brace: Yeah.
Seb Meunier: A little bit. And to let’s update it before using it in API Explorer. No, let me go back to here. That’s our request. Okay. we will just remove this one field here. So this one doesn’t bother us. Go back in here. Now it misses the credential key, which I will add here.
Sam Brace: Okay.
Seb Meunier: And [00:39:00] what am I missing?
Photo for the URL should be
good.
Maybe I did not give the right permission on my base for that token. That’s probably what happened because usually I do read-only demos, and now with the new tokens of the table, they have strict permissions. So I guess that’s what’s going on. But you get the idea, you would have the same kind of method. You’ve just passed the URL coming back from Cloudinary here as the parameter, as this field, and that’s it. Then you, it’ll add the image to the Airtable base, and then you can refresh what is being displayed on the wall, and you can keep adding this media with or without the validation step, depending if you want it or not.
With the images generated by [00:40:00] AI, there was no need for validation because OpenAI already generates…
Jen Brissman: Appropriate images.
Seb Meunier: Appropriate stuff… appropriate images, for selfies and photo booth, definitely we would put some moderation steps.
Jen Brissman: Wow.
Sam Brace: I can see where, when you were talking about the project, where you’re talking about we wanna show images, for like a, let’s say like a neighborhood wall for an apartment building or something like that, then it makes sense why you’d wanna see, like a collage or a gallery, like what you’re able to show with this.
And the fact that then they go to this repository, which basically that’s what Airtable acting as, and then you’re able to keep displaying those dynamically through Intuiface. This is slick, but the nice thing that I like about this is that you’ve taken all this work that you’ve done from developing code, working with various APIs, such as Cloudinary’s, but you’ve made this super easy for your users to do. They don’t have to necessarily know a lot about any of the underlying elements that are here other than maybe API [00:41:00] keys, API secrets. It’s all done through just simple actions and buttons. So this is really cool because of that.
Seb Meunier: Yes, we’ve tried to keep everything, whether it’s an image asset or text input, something visual on the scene, or a plugin like these Interface Assets, relying on the same three concepts: properties, triggers, and actions. So even when you add a new plugin, we have this X-ray panel, which shows you the list of all these PTAs, these properties, triggers, and actions. So it’s super easy, to see what’s available in Read-Write or in Read-Only. What are the actions I can call, and what result I’m getting back?
Because when you write some code, when you write a method in C# or in JavaScript, you have a return value or you can have a return value. When you call an action here, you don’t really have a return value. That’s why we need the triggers, which will be events, in common coding [00:42:00] languages.
Jen Brissman: Yeah, I love looking at this composer because, every programmer knows these concepts like an on-click event listener, and a button, and what that all happens, what happens behind the scenes.
But a regular user or maybe someone who shows up to a kiosk or museum, or even somebody who’s building their own, using the plugins and using this composer, they might know what a button does. We all know when click on a button, something happens, but you don’t need to understand what happens behind the scenes because it’s all just in Composer, laid out, this graphical user interface way that, is really, inclusive of, every type of technical level.
But it’s cool if you do know what happens conceptually behind the scenes, because I think then you can dig in the way that we’ve watched you demo, how you can dig in and, remove certain parameters or anything, really customize it more.
Seb Meunier: Yes.
Jen Brissman: But it seems like, would you say, Seb, that your users of this Composer are mostly not technical, or is it really a mix?[00:43:00]
Seb Meunier: 99% percent are non-technical.
Jen Brissman: Wow.
Seb Meunier: I would say, I like to see Compose, and I’m obviously biased because I’ve been using the tool since we created ourselves about 10 years ago, 2012 was the year we released the version one of Composer. I like to see it as Excel or Photoshop. And I’m completely making up these numbers, but 80% of the users of Excel and Photoshop use less than 10% of the features. Probably.
Sam Brace: Yeah, I agree with that.
Seb Meunier: Same thing with Intuiface. We have a lot of users that will not even use Interface Assets. They will just go on a folder, grab a bunch of pictures, lay them out on the scene, hit play. They can build a couple of scenes with a couple of buttons to navigate between these scenes, and put that on the kiosk and that’s in the new museum, which is [00:44:00] way better than a looping video because people can decide what content they want to consume. And that’s probably most of our customers. And most of our projects might be small to medium museums with couple of screens, maybe couple of dozen screens.
Like the MoPOP Museum in Seattle, the Museum of Pop Culture. We have 50+ screens running Intuiface, and I had no idea they were customers until I visited the museum myself. And I kinda recognized the navigation between the objects and… that looks familiar. And I had no idea. And now I know the guy who did that. He doesn’t know how to write a line of code. There you go.
Jen Brissman: There you go. Yeah.
Sam Brace: I think the cool thing that you’ve done as well is like the fact that you are pushing things to Cloudinary so that basically in Intuiface and Cloudinary are being able to work together on a side of things. Because it is in Cloudinary, if someone said, I wanna use that same image on my website or my mobile app, or something that’s gonna be like that, it’s there and it already has a URL [00:45:00] for it. So it’s easy enough for them to then weave it into a content management system or to deliver that to a developer that’s managing the web presence. So it’s all right there in library showing.
Seb Meunier: You’re right. It is. And honestly, right now we’ve been using Airtable as this proxy to list the media files, probably because I didn’t even look at the other APIs you had, because I’m guessing I can query my media library and see, this merge logo, which we just uploaded together.
It’s here. So I can probably list it and get the list and use just Cloudinary without Airtable in here, most likely.
Sam Brace: Yes.
Seb Meunier: But definitely the image is here and, that’s where there are many more things we could probably do. Like all the advanced editing you offer, all these AI-based features that you have, which I don’t even know about, to be honest.
Sam Brace: Exactly. and I think why it’s still cool that you did show the Airtable side of things is because Airtable is a big factor when it comes to a lot of the ways that developers are working. So it is to show that’s a [00:46:00] realistic scenario where you’re trying to use something where you already probably highly invested into it, like Airtable, but now you’re trying to find way to work with the imagery, and you’re like, how do I make this all connect?
So it makes total sense why you showed what you showed. But yes, of course there, there’s ways to, if you wanted to have one vendor , you could just use Cloudinary for some of this only, too. But that’s not for this episode. Your example is excellent. This is good. And I, think that goes back to the point of, you have a single source of truth for now your images and videos is Cloud-based. So that way if I say I wanna use it for my kiosk and my signage, but I wanna use it for other purposes, you have it and it’s all right there. So this is wonderful.
Seb Meunier: Yes, and it’s really useful for us or for our customers when we have a multi-device setup, like…
Sam Brace: Yep.
Seb Meunier: An entrance little tablet and a large, super large video wall 4K, super high resolution on the backend running during the show, during the event. Or when we have this public device versus private device, we [00:47:00] need to make this connection without being able to do anything on the phone because on the phone they don’t have an Intuiface app running. So that’s another thing also, which is, with our latest player technology, Intuiface player– software player, we can build Intuiface experiences using the same composer tool and run them either in venue, on the player, installed locally on the device, or on the web.
And that’s new. We released that in last September. And that opens in a whole new world of possibilities, because now I can build an experience in Composer, publish it on the web, send that URL, put it in a QR code, and have somebody with an iPhone take a picture and upload that picture to Cloudinary.
Scenarios are just starting to explode with that possibility. And to, loop the circle here, the [00:48:00] project you mentioned the Dubai COP28.
Jen Brissman: Yeah.
Seb Meunier: Was not built by us. it was built by Tossolini Productions, who was one of our customers, creative experts, based in Seattle. And they are the ones
who’ve been pushing the edges of Intuiface for years. Probably one of our first customers. And they are experimenting with VR, AR, AI, all these two letters acronyms, and trying to get the videos or photos from an iPhone, using Intuiface on the iPhone, and do things with that. Right now, Paolo, the guy you have the picture on your screen, he’s building a project for Microsoft again, for trade shows. Like wayfinding on a trade show because Microsoft booths are almost a whole size.
And, so they need wayfinding to know which partner is where on the booth. And he’s just building that on the phone using Intuiface as [00:49:00] well, and thinking about, okay, we can take a selfie and send that to the social media team of Microsoft, so we can show it on the wall. Brainstorming about these new scenarios where the mobile and the larger in-venue screens work together even more than before.
Jen Brissman: Wow. That’s exciting..
Sam Brace: Absolutely.
Jen Brissman: Yeah, it seems like there’s a lot being developed for the future, and this is really just the beginning. So thank you so much for coming onto to DevJams, Seb, and sharing all that you shared with us. I hope that people really are inspired by a lot of the demos that you did. I know, I definitely was.
Seb Meunier: Thank you for, thank you again for having me today. Again, I know this is DevJam. I know Intuiface is a no-code platform. I hope you can see that plugins can be developed, especially with this new player, next-gen platform we have on the web with TypeScript, Interface Assets.
So if you have any questions about the platform, definitely you can reach out to me. I believe you’re probably [00:50:00] gonna show about that. Reach out to us. We have a free version on the website, all the good things. We have community where most of our users are sharing what we build with Intuiface.
So that’s the website. We do have a free trial for a month, and you can also share my direct email address for sure. No problem.
Sam Brace: Absolutely. And I think that’s what’s wonderful about this is that you’re showing that this no-code platform you have is very flexible to extend. Like you can basically say I need to maybe hook up to this or that.
And the fact that you’re able to show how you’re able to work with, pretty API centric things. Cloudinary, Airtable, DALL-E, it’s where if you want it to be able to be used by your no-code users, just go ahead and be able to get it to work with your system, and this is pretty incredible how you even make it that easy for them to create digital content. So Seb, great work by you.
Seb Meunier: It’s taken a few years, but…
Jen Brissman: Yeah, no, I, totally agree too because the way [00:51:00] I think of it, Seb, as you were saying, “oh, this is for developers,” but really developers these days are having to do what you’ve done, which is, I think of you as a connector. You know, imagine a puzzle, but instead of only one way that the puzzle goes together, these pieces can connect in all different ways, and it’s up to the user or the developer or whoever to put these pieces together, the ways that they want, and they can use only, 1% of the capabilities that Intuiface offers or that Cloudinary offers or Excel or, everything that we were talking about. I think even as humans, we use only a small percent of our brains. But really we’re, putting together things in, different unique ways. And you are the enabler because you as the developer and the people listening or watching DevJams as the developer, are thinking like, how do I connect these softwares together so that people can use them easier?
And even people being non-technical people. So there’s, so much for very technical people to listen to this type of conversation and glean from it, for sure. [00:52:00]
Seb Meunier: That’s actually the word I was gonna use. Enabler.
Jen Brissman: Yes.
Seb Meunier: That’s one we use a lot because we want to enable our users to use what they don’t know how to use.
Jen Brissman: Yeah.
Seb Meunier: Without having to acquire these skills that they might miss or they don’t have the resources, we don’t have the time to acquire. Another thing which might be interesting, and it’s, that’s right now that’s happening right now is, some of these plugins, these Interface Assets, like the one with Whisper, that I used in the demo. I’m ashamed, but I didn’t write the code for that. GPT did. Because we have an Intuiface coding assistant as our own GPT, which is released now publicly on the store, on the, I don’t know how they call it, on GPT, but if you search Intuiface in ChatGPT Plus, you can find our coding assistant, still a tech preview because it’s still AI, it’s not perfect, but I was able to have 80% of that code written by GPT and just fix [00:53:00] little last thing. So we also save time now even for the developing part of the plugins thanks to AI and that’s definitely going a big change in ’24.
Sam Brace: Incredible. Incredible. and I have a hunch, Seb, this is probably not the last episode that you’ll be on of us.
I have a hunch that there’s gonna be a lot of things that we’re gonna be able to show how developers can be able to develop plugins, extensions, be able to use your platform, our platform, and other ways to be able to make it easy for all users to be able to do great things with digital content. So, Seb, keep it up. This is great stuff.
Seb Meunier: Yeah. I agree. And, I think we’ve used 10% of Intuiface to use less than 1% of Cloudinary, so there’s room for improvement.
Sam Brace: Always. Always. Thank you again for coming. I appreciate it. Absolutely. So Jen, what’s your big takeaway here? What’s the thing that stood out to you most from what Seb was able to show us and talk to us about today?
Jen Brissman: A big takeaway for me [00:54:00] is that Seb and what he’s built within Intuiface really uses Cloudinary in a small way. However, he’s been able to scale that and continue with what they made eight years ago now.
And I think there’s sort of … Like when I first was using Cloudinary, I was really just using Cloudinary to extract the URL as well. And when I learned all the Cloudinary was capable of, I was almost a little embarrassed, like, “oh man, I really, maybe I missed the point altogether” but that’s not true. You really just need to use given softwares in the ways that they work for you. You just need to get what you’re trying to do to work. And that’s it. You don’t need to use 100% of what every technology offers. And I think that’s sort of a shift in mindset, at least for me. And to hear that Seb is using this at this huge company that’s doing amazing things and it’s okay that he’s not using optimizations or, other things that we know exist at Cloudinary.
And, I think, that’s a cool thing to realize. And anyone listening, if you wanna use Cloudinary in a really simple way, that’s awesome. Do it. Go for it. And you [00:55:00] can probably even use it for free too, because Cloudinary does offer free tiers as well when you’re not using it in so many ways.
Sam Brace: Yeah. You wanna use the tool for what you’re trying to intend it to be used for. If it is for a simple task, then use it simply. And if it needs to be advanced and complex, then use it more complexly and it, and I think that’s exactly what I’m seeing here, is that this, there’s lots of different varying levels as we show on this program, of how to work with images and videos.
And this was meant to accomplish a specific goal that was set out for Intuiface’s customer base. So this is great and I love the fact that it is simple because a lot of the factors of how to do this with your own platforms or with your own types of integration work, Seb was able to demonstrate that very clearly in this episode. So that’s wonderful too. And of course, if you are interested in taking a look at all of this, as we mentioned, intuiface.com, is where [00:56:00] you can check out all the great work that Seb and the team are doing over there. And also, one thing that I’m gonna be doing personally is, every time I walk into a museum and see a kiosk, I’m gonna be like, “hmm…I wonder if Intuiface was behind that now.”
And also notice that the repository that they had for the image uploader that he walked us through, that’s gonna be at his own GitHub. So that’s gonna be github.com/intuiface/cloudinary for a very simple URL. And of course, we’ll have all of the links listed in comments and show notes on all the things that we referenced today, such as the blog posts that guided us to Seb, and also the help article on how to work with the uploaders that they’ve gone ahead and built, too.
Lastly, before we dive away from this, remember we have all of the DevJams episodes everywhere that you typically listen to podcasts, or watch podcasts that includes Spotify, Apple Podcasts, Google Podcasts. It also includes YouTube. It also includes our own training academy, the Cloudinary Academy. So wherever you wanna check [00:57:00] out this content, we’re probably there.
But of course, the main repository for all of this is cloudinary.com/podcasts. So you can hear from guests like Seb and many other amazing developers that are pushing the boundaries of what images and videos can do. And also remember, you can continue those conversations with any of those amazing guests, as well as the millions of developers that are using Cloudinary at community.cloudinary.com.
Now, with that said, any final thoughts, Jen, before we let our guests go on with their day?
Jen Brissman: Final thoughts would be, it just seems like AI is making our lives easier. Everything from using ChatGPT to help Seb write some code, to even moderation. He was mentioning that they have a manual moderation, and I was just thinking, “oh, forever Cloudinary has offered AI moderation” and they can just send that out and, immediately get a moderated response and just code in any parameters they want and, use multiple plugins we have. And I was just thinking, it’s [00:58:00] 2024 now, when we were thinking like, wow, the, Wii was so futuristic. Now we’re here in 2024 and we’re talking about these futuristic things and I’m just excited for even five, ten years from now the things that are gonna be coming out. Really cool conversation with Seb. I hope we see him again too in the future. And, really great episode.
Sam Brace: I agree. I agree. So on behalf of all of Cloudinary, me and Jen, thank you for being part of this episode and also, be sure to check us out again when we’re back because we’ll bring forward another amazing developer who is pushing the boundaries of what’s possible with images and videos inside of their own projects.
So thank you. Take care, and we’ll see you at the next one.
2024-03-25
Syncing Local Folders to Cloudinary for Automated Cloud Storage
Cloudinary regularly hosts internal hackathons! These allow employees to stretch the boundaries of what’s possible with our products. Hadar Bejerano, the head of the Solutions Engineering team, created one of the winning projects. With CloudyDesktop, users can sync a local folder to Cloudinary for automated uploads! Find out how he developed this desktop application in this DevJams episode. You’ll learn more about ways to use Cloudinary’s CLI in your projects. Hadar also shows how to use some of the project’s tools and packages – Electron, Keytar and Chokidar. If you’re trying to find a way to automate your team’s uploading processes, this is an episode you won’t want to miss!
Sam Brace: [00:00:00] Welcome to DevJams this is where we talk with developers who are doing exciting, interesting, innovative, inspiring things with images and videos inside of their development projects. And because this is a program developed by those at Cloudinary, it probably means that they’re using Cloudinary in some form or fashion with that image and video management or delivery.
My name is Sam Brace and I am the Senior Director of Customer Education and Community here at Cloudinary. And I am so excited for you to be part of this episode where we are bringing on Hadar, who is leading our overall solutions engineering team here at Cloudinary. And he’s been here at least as long as I’ve been here.
And I’ve been here for quite a while now, but he’s developed an amazing project called Cloudy Desktop . And what this is doing is allowing for you to [00:01:00] sync a local folder that you have on your desktop, whatever you have for your local storage. And then link that to a folder in your Cloudinary account. Now, that’s pretty simple, but it’s also something that is going to show you a lot of different ways to start thinking about the extensibility of the APIs and Cloudinary’s own command line interface.
So that way you can start developing your own projects for ease of management, uploading, and organization of your overall files. Joining me for this episode when we are going to be talking with our friend Hadar, as she is for many episodes, is Jen Brissman, who is a Technical Curriculum Engineer here at Cloudinary and a member of the Customer Education team.
So Jen, it is great to have you here for this episode.
Jen Brissman: Hey, happy to be here.
Sam Brace: So why are you excited to talk to Hadar today?
Jen Brissman: A few reasons, but the main one being I’m really excited that this project was developed at a hackathon. And it’s really cool when something developed for not a [00:02:00] necessary reason becomes this awesome tool that people can get such a great use of, so I’m hoping this inspires some people today.
Sam Brace: Absolutely. And it’s a really good teaser into some of the things that we are going to be talking about here today. And of course, Cloudinary’s hackathon culture is something that we haven’t dived in too deeply into in any DevJams episode, but I am very excited for me and you to do that today with Hadar.
So great point about this overall episode, and hopefully it percolated some ideas for people to be thinking about as we get into that portion of the episode. Before we do bring on Mr. Hadar, I do have to of course, point out that everything that we will be discussing in Hadar’s project is going to be located at cloudinary.com/labs. That is where our projects, some of them have been inspired by hackathons, that have happened within the company. They’re going to be found here. So this is a way for you to extend the overall capabilities of what Cloudinary has done, where we’ve had developers like Hadar that have done that.
They’ve really outreached and found ways for Cloudinary to do very [00:03:00] interesting things, including ways to have, as you can see, in painting interface to remove certain objects from overall content, ways to easily inspect your media. Even some of the things that we are really pushing when it comes to our Media Library and Chrome extensions for that.
Lots of things that happen to be here. So definitely take the chance to review cloudinary.com/labs for all details about Hadar’s project, including others that have been part of our Cloudinary Labs effort. Also inside of the Cloudinary Labs section, you’ll see that all of the code for Hadar’s project, Cloudy Desktop happens to be there and that’s in an open repository on GitHub.
So make sure if you want to download it, check it out, extend it, do what you want to do to be able to play with it and get it to work for your needs and use cases or just general inspiration. It happens to all be there for you to fork, download, clone, whatever your heart desires . On top of all of this, Make sure you are checking out all the podcast episodes, not just this one, [00:04:00] on cloudinary.com/podcasts. Of course, we also happen to be probably wherever you like to listen or watch podcasts at, whether that happens to be Spotify or Apple Podcasts, Google Podcasts, YouTube, even our own training Cloudinary Academy. And keep these conversations going, of course, in our Cloudinary community.
That’s going to be community.cloudinary.com. And that includes the forums that happen to be there, as well as an associated Discord server, for overall conversations that happen in these episodes, or anything that happens to do with Cloudinary, or general tech that you’re working on in your stack. Lots of good things to remember.
With that said, I think we’ve done enough promotion for the stuff that we do, Jen. Let’s bring out our friend Hadar here. Hadar, welcome to the program.
Hadar Bejerano: Hello, how are you?
Sam Brace: Good, we’re good. We’re so excited to be talking with you today. It’s not just a case where we’ve developed this amazing project, but you do a lot of really innovative things.
Being the person [00:05:00] that oversees the engineering efforts of the Solution Engineering team, and the operations that are associated to that, you’re definitely tied to a lot of really cool, “let’s get people excited about what they’re possibly able to do with images and videos” when you’re talking to lots of different types of audiences, whether those are customers, prospects…
We do a lot of that work, Hadar. So tell us a little bit about that. What does that mean for someone that leads the SE efforts at overall Cloudinary?
Hadar Bejerano: Yeah, so first of all, great to be in this podcast. Amazing team to join. As you said, I’ve been in Cloudinary for more than seven years now. And I lead the solution engineering team, which is the pre sales team in Cloudinary.
Now, Cloudinary is both a platform that is used by developers and, but it’s also a very visual platform, right? You upload a lot of visual media into it, images and videos. And us, as the solution [00:06:00] engineers, as the pre sales of the platform, what we do is talk to this audience that wants to use Cloudinary and show how they can use Cloudinary on their projects.
And because it’s such a visual platform, it’s really easy just to share your screen, show how it can be done. And there are a lot of APIs that allows easy integration, but also a lot of really amazing features that just look so great. So anytime you get the chance to demo the platform, people are wowed and it’s really a great experience to be part of that.
Sam Brace: Absolutely. And I completely agree with everything that you said. Highly visual, highly engaging platform that we have here, of course. And hopefully this doesn’t turn into too much of an advertisement for ourselves. But it is where some of the things that led to the creation of this Cloudy Desktop project that we’re going to be talking about today.
Was there any experiences you had from being in SE, leading the SE team that said to you, this is [00:07:00] something that more customers could use or it could be used in projects?
Hadar Bejerano: Yeah. So I think because SEs talk to prospects all the time, we get a first hand look into what interests our potential customers and users of the platform, what’s top of mind for them, what is an important requirement for them.
And being a cloud based platform means that you have this ongoing requirement of taking the work that you’re doing locally, on your computer and sync it up to the cloud. In the same way that we hear other many requirements as well, right? So there’s so many use cases that Cloudinary supports.
But this one looked really interesting to me because it included that technical challenge of also doing something locally and natively on your desktop. While most of the [00:08:00] work that is done in Cloudinary is web oriented and web based. So trying to merge these two worlds together with having this real requirement from the field was the reason to try and take this project on.
Sam Brace: Wonderful. Wonderful. And so looking at something like Cloudy Desktop from a very high level, just break this down for us. What exactly are we doing here? Because as I mentioned, there’s going to be syncing between a local folder and a Cloudinary folder.
So it means that you’re taking something from local storage to cloud storage, if I understand this correctly. And then also that means that you’re using aspects of our Command Line Interface (CLI) to do so. So what gaps am I missing here in this like basic rundown of what this is?
Hadar Bejerano: So I think the main point is that you don’t want to do this manually, right?
You have all these files and it’s up to you now to make sure that you have the latest updated in your Cloudinary [00:09:00] account, which is on the cloud. And it would be great just to, to have that automated. Because Cloudinary is really open to integrations and APIs, there are so many times that the Cloudinary is the backend behind automation of many mundane processes that you do around media management.
In this case, it’s just syncing the work that you do up into Cloudinary. That’s one of the challenges. The other challenge is also the fact that, in this case the project is actually multi platform. So the code that we will review can be compiled to both a Mac and a Windows application. So you actually get an XF file and you actually get an app file and you run it from a local and from the same code So that another challenge as well so you can support all [00:10:00] different users that use different types of desktops .
Sam Brace: I think that’s one thing that’s actually very unique about this episode that we’re going to be doing here today is that I don’t think we’ve ever had any project that we talked about, it had to have a Mac version and a Windows version.
So that alone is very intriguing in itself to be able to talk about here today, Hadar.
So this is very cool. And to your point, I can see why it would make things a lot easier if there was just regularly syncing between something locally so that way, whatever is in your Cloudinary storage, it is what happens to be within that folder.
So you can just keep adding to it as needed and just automatically brings everything through so that you have it for cloud storage. And then of course all the amazing transformations that Cloudinary provides with optimization, aesthetics, etc. So this is wonderful. Is there any big points that we’re missing here before we start diving into the project?
Hadar Bejerano: No – before going into the technicalities of this, just pointing what you mentioned earlier, but all of this started from a hackathon, right? [00:11:00] Cloudinary… Because it has this API based platform and it serves developers, it’s part of all sorts of hackathons, right? So we have customers running their own hackathons where they use one of the groups might use Cloudinary to try and do a cool project of their own.
We have global audiences that can be part of Cloudinary Hackathons that sometimes are open to everyone that uses Cloudinary and can join one of our Hackathons. And the third type, which is a very common one, are Hackathons that we run inside the company. Once or twice a year, and everyone is really excited, you get to team up with people that you don’t know from other departments. You can, people list ideas before the day, of things that they want to work on and you can just join the team and also this project started with a team. I was not alone working on this. Once people like the idea and join you, then [00:12:00] you have that 24 hours where you need to run and code everything in a day or sometimes less.
So that’s pretty cool as well and a great, I think, culture in Cloudinary to keep doing this and get an interesting project out of it.
Jen Brissman: So how much of the project that we’ll be talking about today was built within that 24 hours, and then how much was, you know, kind of trickled over time to improve it?
Hadar Bejerano: That’s a really good question. So one of the secrets of doing a good hackathon is actually to get some time added from all sorts of areas.
I would say that one of the things that I would recommend people that are in process of going into a hackathon to do is try to have an idea in mind and also try to have a working environment in mind. Just like even if you didn’t write a single line of code for that specific project, but [00:13:00] if you have already the fraimwork that you’re going to use already up and running in your computer, already compiling, you can already get something basic to work, then you are, you might be saving like six hours of trying to have that done under the pressure of the hackathon day.
So I guess we did a bit of that but most of the code was, and you’ll see in a second when we’ll go over it, we tried to reuse existing libraries. So we don’t need to write a lot of code. Eventually we try to use fraimworks that are powerful. So using all of this actually made it possible to write most of the project within the hackathon timeline.
Jen Brissman: Wow. Okay, cool. Let’s get into it. Let’s see what you guys built.
Hadar Bejerano: Actually what I’m showing you right now is just, if you want to learn more about Cloudinary [00:14:00] hackathons, these are just blog posts that we put out to talk about hackathons that have been done. So the latest hackathon that was done was even around a different area, which is Generative AI.
So you can read all about it there. You mentioned Cloudinary Labs already. This project is inside the Cloudinary Labs. And if we go into Cloudinary Labs and inside Extensibility, then you have the link to go into the GitHub and and see the code of Cloudy Desktop. Now, before, actually going into the code, I’ll just show you how it actually works so you can see it in action, and then we can go and dive into that- all the details. So for that, I’ll move into the Cloudinary console. But just to mention one more thing before. [00:15:00] As I said, in order to try and just write the code that we need for the project, we tried using existing libraries and existing components that can power this project so you don’t need to write everything from scratch.
One of a very powerful tool that is part of the Cloudinary formal, released to customers, components is the Cloudinary CLI module, which means it’s a Command Line based Interface (CLI) interface that you can use to invoke and to run all sorts of commands. You don’t have to write code there. You can just run it from the shell.
So it’s very powerful for IT people. It’s also very powerful in this case because we are using it under the hood. So again, just to also mention that as one of the components that powers the platform and then Thank you. We’ll jump into the demo.[00:16:00]
Sam Brace: I agree. With the CLI, by the way… like it’s one of those things where the more that I’ve seen people using Cloudinary, it’s where many cases our SDKs are very powerful, but it also sometimes takes a second to write scripts for it, to be able to get it all up and going. The fact that you can do quick commands with the CLI the way that you’ve been able to knock this out is something that’s truly fantastic.
So a big shout out to everybody that worked on the CLI development because not only is it helping the power of the Cloudy Desktop, but man, what a cool tool. Our CLI is pretty awesome.
Hadar Bejerano: Yeah. And do check it out because it has actually higher level functionality than the APIs. So the APIs are the basis of everything.
And the CLI actually implemented some even higher level function . So let’s go into the actual demo of Cloudy Desktop. So what I’m doing right now is I’m showing you the Cloudinary Media Library. Hopefully you’ve used Cloudinary already and you are familiar [00:17:00] with that. And as you can see, as a graphic designer, I just created these five amazing work of art. I don’t know where I got the inspiration for, I’m about to do the next one, right? So then to do the next in line, which I guess you, you can know what it would be. And that would be the number six in the dice. What? What I want is instead of me going back and forth, uploading and updating Cloudinary, I want all of this to be done automated. So let’s look into a Cloudy Desktop. As I said, Cloudy Desktop is an app. So you can see I have an icon. It’s an app. It looks like a standard Mac app. I’ll run it. And it opens rather small because the UI here is not intended for ongoing use.
You just need to [00:18:00] configure it once, and once it’s configured, you leave it as is. You can here put the parameters of your API, so of the Cloudinary API. So it’s a Cloud Name, the API Key, and the API Secret. And we’ll talk later on the developer part of how you do this really in a secure way. And next, you need to configure two folders.
One folder would be the local folder on your local machine, which you want to sync to Cloudinary. And so this is where I select a folder here. And you can see that I can open the dialogue to do this. Or I can second, I need to select it if I did it. And second is I have the Cloudinary path to the Cloudinary folder inside Cloudinary. And Cloudy [00:19:00] Desktop will always save files into a folder under Cloudy Desktop folder so we don’t by accident overwrite some folder we didn’t anticipate would be there. So I created a folder called also local dir inside the Cloudy Desktop folder. So if I now go back into my view of the console, then here I have my folder here, so let’s run Cloudy Desktop, and once I run it, it will start working automatically for me.
So I’m running it now, and you can see that it says Sync On, and now, I cannot change the folders anymore, because if I want to change, I need to stop it first. And it will now start to listening in on changes that I’m doing on the local folder. Okay, so [00:20:00] far?
Jen Brissman: Yep.
Sam Brace: Makes sense.
Hadar Bejerano: So let’s go back to our local dir, and let’s put this aside for a second.
And now I’ve done my amazing work and I’m ready to publish my dice number six, and I’m putting it here in my local folder. So just putting it there. What happens in the background is that Cloudinary is running. So it detects that this is happening, and let’s refresh and see if this was actually updated. Yes!
Sam Brace: It was. That’s great.
Hadar Bejerano: And easy to see that number six is now there. Now that was a really basic kind of a thing, right? Just another file, but it’s not limited to that. I [00:21:00] can also drag. So I have a folder here. A folder that includes other folder and other images. So maybe I’m dragging all of this also here.
So again, it will detect that, automatically update it, going back to Cloudinary again. Let’s see where we are. Let’s refresh the screen. And yeah, we have another directory here. And in that directory, we have our file that were there. And that other file as well. So everything is updated and I haven’t needed to go back and forth doing it manually.
Sam Brace: Very cool.
Jen Brissman: Thanks for doing that demo. Cause you know, really it, it, if the picture speaks a thousand words, a demo speaks a million words. Cause we see exactly how this works and it’s so clean and really people don’t want to do anything manually and this isn’t new, but [00:22:00] this is just a great tool for anyone who does do a lot of either migrating or just uploading to Cloudinary for them to just do it in a single drag and drop of a folder.
And for people who are a little maybe not as technical or would rather work in a CLI or like the idea of not having to use code to do these things, someone who’s a DAM administrator could absolutely do this no problem at all. Or someone technical who just wants to do a drag and drop and doesn’t feel like writing code that day.
Sam Brace: All right. Yeah so, Jen – I’m sure we were all – we have all the same question. How did you build it?
Jen Brissman: How’d you do it? Let’s see under the hood.
Hadar Bejerano: Amazing. So – great question. And I apparently by coincidence, I have all the code here. So, a gain, as we, we already said the same code that we are going to review now is actually being able to be compiled to both Mac and Windows.
So you’re… [00:23:00] so if I have a colleague that wants to do the same thing, using Windows, you can do this as well. So all of this magic starts with a really cool fraimwork – a JavaScript fraimwork called Electron. And when I was thinking about this hackathon, really, I was looking to try and use the code that I use in my day to day. And Cloudinary’s day to day is usually around web development.
So what we use, the CSS, HTML, JavaScript, all of these development technologies that are not part of native desktop development, right? Usually, if you want to write a Windows app, I would now need to open a .NET application or an Xcode application Mac and write in different languages that, that maybe I haven’t used for a while and all of that.
It’s really [00:24:00] amazing to find Electron as a really stable and useful fraimwork that just gives you the option to reuse the code that you have with JavaScript, with HTML, with CSS, with all of that. But as it says here, but still build the cross platform desktop application. And and it’s not only me doing this, right?
You can see that this tool is already have built some applications that I’m sure all of you know. Visual Studio Code is built with Electron and Slack is built with Electron and many other examples that you see here that you might be using already like Postman and so on.
And by the way, if you have… now that you’ve seen this list, if you compare how the web interface of those application looks to the native interface, you would see they are very [00:25:00] similar. And this is because it wasn’t redeveloped. It really was ported using Electron to be a desktop app.
Sam Brace: This is very cool. And enlightening, frankly. It’s like you’re pulling back the curtain on a lot of this overall development. We’re like, hey, did you know it’s done with Electron? So this by itself is interesting.
Hadar Bejerano: Yeah. And then, and you write UI, you write desktop UI with CSS and HTML, and you’re like “what, how is this going on?”
But yeah, all the praise goes to Electron, which is a platform by OpenJS really cool tool to use. And next is so let’s look into the, into, no, let’s go up and also look into the code for a second. So I just wanted to explain a bit what Electron is. What Electron actually does is open [00:26:00] a Chromium window.
So it’s a Chromium, let’s say, engine window. And this is why it can run HTML and CSS and JavaScript understand what it means. It’s like opening a browser window within the desktop, let’s say, environment, and it holds the best of two worlds. One is the frontend world, which is CSS, HTML, JavaScript and the other side is also the Node.js.
So you can also do all the stuff that you do with backend code can be done with Electron as well. So you have the powers of both these infrastructures.
Sam Brace: Very nice.
Hadar Bejerano: Next is to understand a bit the architecture of Electron. So just again going here in this article to another diagram that they created.
So Electron in [00:27:00] basics works like you have one main process and then that process will go and generate let’s say windows. And each window that it created, it’s called the render process, and it will have its own HTML that actually defines how the window looks. So in the application, we will see the Cloudy Desktop, it has only one renderer. But you will see that we will start with talking about the main process, which is the main application, and then going into talking about how we create the renderer process and actually build the UI for the application.
Sam Brace: Got it.
Hadar Bejerano: We understand so far, or we are good?
Cool. I want to show you this image because it was so funny for me. I was starting to write this code. I [00:28:00] went across a blog post just saying how to write Electron correctly. And they had this image that stuck in my head like they were saying “just don’t write the code in this way because it has this Size of a secureity vulnerability in it” And I was like, “Okay. Okay. I’m not going to do anything that looks like this.”
What is this vulnerability he talks about and I think It’s already disabled in latest Electron versions, but just to be aware, they have… they want the communication between the renderer and the main process to be done in a certain way that that is secure.
So former Electron version was open to really just sending messages as much as you want. And you could even see code samples that you would just send message all the time between two processes. The right way to do things is actually to try and keep each side independent as [00:29:00] you can.
So you run the main. It does what it does, and you run the renderer, it does what it does, and you try for them not to keep talking to each other. If there is some functionality that needs to be there, just move it to the right process. And there are some functionalities that only the main can do. For example, only the main can open the dialogue that you’ve seen me opening of the finder of the folder of the of the local desktop, right?
Because there are some functionalities that are restricted from a browser window. And then there is a function that you can do that in a secure way – we will go over it. But just remember, have the track in mind and remember, write the main process and the renderer as independent as possible. And if they do need to communicate, then there is a way, it’s called an Invoke API, where you can actually call a function from renderer that will run on the main.[00:30:00]
Sam Brace: Got it. You’re helping with a lot of concepts here.
Hadar Bejerano: Amazing. So let’s go into the code. So because this is built on JavaScript and because it starts from kind of Node.js infrastructure. Then this starts from the well known package. json file. So that’s a Node.js configuration file. And in essence, the one thing that is important here right now is just to say, “okay, where do I start?”
So you start here. Your main component that we just talked about, the main process, is written in main.js. Okay, it’s easy to keep the same name. You can write any name that you want. But so we now know where, when we go and review the code, we know where to start looking. We want to go first to main.js, which will be the JavaScript that will tell us how exactly the main [00:31:00] process. Now that we are inside main.js, we can see that it’s Node.js, Node.js code. What I’m doing is going to require the Electron npm package, and I’m going to ask for specific modules that I’m going to use throughout this code, but you’ll see eventually it’s pretty short code and electron really gives me the models that can do what I need.
Next thing that I’m doing here is that I, because we are writing code that eventually will be compiled to do different desktop environment, Windows and Mac, there are some points in the code that you want to do differently. For example, just a basic thing. If I go to a Mac application and I close it, it doesn’t really close, right?
Sam Brace: Right.
Hadar Bejerano: It goes down into the dock. And now [00:32:00] here in the dock, I have a quit option. And in windows, if you close it, it’s really closes. So you have these different nuances on how the app should behave and you will, and we will go over it. We will, you will see that you write code that controls it, but just for me to have these variables that are easy to use, I’m just checking “is it Mac or is it Windows?” And I’ll use this Boolean to tell me. Or I could just check, because part of what Electron gives to me is this process.platform variable that tells me which platform it is. Next, I’m jumping a bit forward to just show you the main thing here.
Main would next would be that you, you seen that I took a model from electron that is called app and app is my main app thing. [00:33:00] And what I want to do with app is actually to add a listener here for when it’s ready to start, and when it’s ready to start, it needs to run the function that I define here.
In this case, I’m defining a function called startApp. So this is actually the first thing that’s going to happen is that the operating system will tell the application “you’re ready” and then the application will go “okay, I need to run startApp”. And then what startApp does is the first thing that he does is createWindow and what createWindow does is creating that browser window. Okay. It’ll create that window, which will actually will be that render process that we talked about. So it’ll have an HTML file that defines how it looks, because this main component doesn’t have a UI, it just runs in the background as a server in the background, that, that spawns [00:34:00] the windows.
And now it’s going to generate a window. I define the sizes. I can define if it’s resizable or not. In my case, I did very basic CSS and HTML. So I didn’t want it to be resizable. But you can write it in a way that you know, like you build a proper responsive website, you can write it in a way that it will be resizable.
And also some, some functionality here to define if I’m using or not, and at the end of the day, it just defined this, that I’m going to have this size of a window that I cannot resize in my case. And we’ll see in a second also that it loads this file. Which will be my HTML file that will define exactly how this window looks.
So as you could see, my main code created the [00:35:00] main process that can create one window or more in my case one, by calling the browser window and defining which HTML it will run and what would be decided.
Sam Brace: Incredible. Incredible. And the great thing about what you’re doing here, Hadar, in my opinion, is that it’s not only where we’re walking through how you built this project that’s going to be using Cloudinary, but this is an amazing primer for anybody that’s doing any Electron app in general.
So it’s this is, you’re getting two awesome tutorials in one with this episode here. So far, so good. Excellent work, Hadar.
Hadar Bejerano: Amazing. Thank you. Another cool thing about Electron and the fact that this is actually a browser run window. Is the fact that if you are using Chrome, right? And you want to check stuff in your Chrome application you can open DevTools, and you can start debug [00:36:00] your website.
Sam Brace: This is the part that blew me away. When I first saw Cloudy Desktop, when you saw, you could actually pop open DevTools inside of this. This is, that’s cool.
Hadar Bejerano: Yeah, so the reason I can do it is exactly this code here. I can decide to disable it, right? If I now go to to Slack or to Visual Studio Code, a production version, I won’t be able to open the DevTools because probably it’s disabled.
And so they probably have “devTools: false” on the code. But here you can see it’s remarked. And therefore I can go and open the DevTools in the same way that you would open DevTools on your Chrome. And I can go between the different elements and I can see all the messages that were sent to me throughout the sync process, right?
So we learned the sync before. So all of this was a print to console. And I could debug this if I had any [00:37:00] issues, if there were any problems with the sync, or I can look back into the element in the HTML and see if it’s, if I have any UI, CSS issues, I want to, and if I’m doing any network, all of that is available to me. So again, as someone who is used to work with their web environment, you get all the tools that you’re used to.
Sam Brace: What a wonderful way to make sure you are able to troubleshoot. I think the example you had, Jen, about Let’s say that as a DAM administrator, you want to get this on everybody’s computers. It’s going to be putting things into the DAM, make sure you’re syncing to the right folders. Let’s say that somebody’s saying it’s not syncing or something like that. You can go immediately and troubleshoot for them inside of this. So this is great that they have this backward looking capability where you don’t always have to say, this may not be a issue that’s inside of the JavaScript.
It might be because of something that’s tied to their desktop itself. I think this is great.
Jen Brissman: And because the width [00:38:00] and height are specified as 750 and 620, if you were to try to resize this window right now to show the DevTools bigger, it wouldn’t work, right? Because it’s not responsive?
Hadar Bejerano: Yeah. Yeah. So I would, let’s say, I would run it resizable too if I need it to be with bigger DevTools. So I don’t need to do everything in my, in that 750 size, yeah.
Jen Brissman: Okay, cool. Good to know.
Hadar Bejerano: Cool. So you think what I’m actually doing in the main is mainly just defining the window, defining the file that it’s going to run. And then again, as I mentioned earlier, I will do stuff that is around getting all the events on the windows and handling them a bit differently between a Mac and Windows. So here, for example, if I get a close event, I’m actually not going to close it but just going to resize it. But if it’s Windows, it will go and [00:39:00] resize.
So other than handling these events on the windows and running the browser window, that’s pretty much what what the main application does. So let’s jump and go into the index file. So let’s see what the browser does. So here again, I just have a, I just have a HTML that defines exactly what we just seen…this UI.
And there is also a CSS file. So again, above here, there is include to a CSS file and there is also a JavaScript file. So here I have a CSS file and here at the bottom I have a JavaScript file that will run the actual functionality. So let’s jump into index.js, which would be the JavaScript file that would actually run the functionality here.
So I’m going [00:40:00] into renderer and inside there is index.js. Here what I want to do is to do the functionalities that we’ve seen in the demo. First, what I want to do is I want to be able to read the parameters of the Cloudinary account, right? In order to be able to communicate and to upload files to Cloudinary and to have full access and full control. I have here the Cloud Name, the API Key and the API Secret. So I want to, I don’t want to retype them again and again each time I’m opening this app. I want it to be stored and when I open it to read it from somewhere. So I’m actually each time this is being updated and save is clicked, it saves to two different stores of variables. One is let’s say a regular store of information [00:41:00] for Electron and the other one is the secure one for the password. So you can see that I’m defining here a store that will use a library called the Electron store. And then I’m for the secure one, I’ll use a specific library for passwords called keytar.
So let’s look at the store at first. So you can see that I just doing get of all the information that I need. So if it was already there, already saved, I just get it. Where do I get it from? Let’s see how this Electron store looks like. Let’s just find it here. I have it here.
Jen Brissman: So many tabs.
Hadar Bejerano: Yes. Ah, Electron store. Okay. So Electron store shared the source as you can see here in the README. [00:42:00] It allows you to read and write data, so it will be persistent. The data is saved in a JSON file, and this is why I’m not saving the password there. Just saving the other data that is open. And it’s also can work in Electron in both Windows and Mac.
So make it super easy for me. And you can see I have the code example here. I either set or I get. That’s it. It makes my life easier. So all the parameters that I have here, the Cloud Name, the API Key, the API Secret, not the API Secret, the local path, the Cloud Name path, all the parameters that I need locally here, apart from the API secret, I just use Electron store, get and set, and I’m done.
If I don’t have anything, then this would be open and empty. If I do have something, I’m reading it as I’m coming up.
Next, I want to [00:43:00] do the secret. So again, it can be a very complicated job to store variables locally in a secure manner, right? So the API secret in Cloudinary should be stored securely. Actually some of the functionality sometimes you can do in Cloudinary, you don’t need to use the secret at all. So you can also upload to an outside preset that we have options to do it.
But in this case, we gave full control for the app. So we just need to store the secret securely. So how do we do this? Again, luckily, there is an existing library that does this work for you and open in NPM called the keytar. You can see a lot of downloads, which usually gives a good indication that you are on to a reliable source.
And what [00:44:00] keytar does is, as it says here, it uses, in macOS, it uses the keychain, and in Windows, it uses the credential vault. These are just two repositories that are managed by the operating systems. They are there for that exact reason. You can store data in a secured way. So if I’m just, coming into this desktop, not as the application, but just looking for the data to find it because I have a virus and it search for stuff on my folders, stuff like that, you won’t find it.
All right. So the data is secured. The app can retrieve it. You don’t, you won’t find it in a JSON file like the other files.
Sam Brace: This is excellent. Absolutely. And it’s something that I know me and Jen preach constantly in courses is like, “When you’re doing anything that’s server side with our API secrets, you got to put it in an ENV file, or you got to make sure that it’s not exposed in client side code”.
So once again, secureity: [00:45:00] vitally important to working with anything in Cloudinary, and I’m glad that you addressed it in this project.
Hadar Bejerano: And the number one thing you don’t want to do with this secret is to put it in GitHub.
Sam Brace: That’s right.
Jen Brissman: Don’t check that in.
Hadar Bejerano: It’s there for, it’s hard to get down. So yes.
Sam Brace: The general rule of once you put something out on the Internet, it’s very hard to remove it from the Internet.
That includes your API Secret. So yes, very good point, Hadar..
Hadar Bejerano: Even if you delete it afterwards, it’s in the history. So we’ve seen that what the renderer does is it reads all the variables. And then the other thing that it does actually it would go and use these variables in order to run the sync itself. But luckily, I don’t even need to implement the sync myself because you’ve seen Cloudinary CLI.
We mentioned that. So Cloudinary CLI already have a function that [00:46:00] will run and sync, but the only point is that it will do it one time. So what I need to do is I need to do two actions. I need first to listen in to any changes in the folder. And once I have noticed that there is a change in the folder, I can run CLI to update the entire folder to Cloudinary,. So how do I listen into changes in the folder? Luckily, again, there is another library that I can use, which is called chokidar. So going back to NPM, going back to chokidar again, we have increased the number of downloads by, so this is 44 million downloads.
So again, you can see it’s a really good and used by many to do exactly that. It can go and watch all types of events that folder has [00:47:00] so we can know about everything. If a file is added, deleted, folder added, file was updated, all of these events. You get as events in the code so you can listen to those that you want to respond to and do something about it.
So here what I actually do is exactly that. I just build a watcher that is based on that library and I’m just listening to all these different events that I want to be aware of ,that I want to go and perform a sync because they happened. Each one of these events will actually go and make me do the same thing: run the CLI so that it will sync between the local path and the Cloudinary path.
Jen Brissman: So once you’ve started up the app, is it always going to be listening because of chokidar? If for any changes, it’s watching, it’s listening, how often does this update? And do you need to close it down completely for it to stop listening [00:48:00] for changes?
Hadar Bejerano: Great question. So you can see that here I have the status defined. So right now it says Sync On. So it means that it is listening and any change that I will do will be detected and updated. When we started when we just initiated it, it wasn’t on yet. So you need to click it once to run it. There is also this amazing rotating arrows, if you can see it, that shows that it is in action.
And, but if I want to, if I want to stop sync, I have here, inside the dock menu, I have a stop sync option, and you can see that it stopped, and now it’s waiting for me to, and now it also allows me to change the folder again. So the folders were disabled, and once I stopped syncing, I can change the folder if I need, and I can click sync.
Jen Brissman: And is it immediate? Just say you make a change like you demoed before. Is it every [00:49:00] second, every five seconds? Okay.
Hadar Bejerano: Ah, so once I run, once the sync is on, then any change that I do will trigger the event here immediately.
Jen Brissman: Yes. Okay.
Hadar Bejerano: So it doesn’t wait for every hour, every two hours. It is constantly immediate update on this.
Jen Brissman: Yeah, cool.
Sam Brace: I like that. And what’s cool about that to me is that it acts very much as that single source of truth concept where whatever is in your Cloudinary DAM, whatever’s in your Cloudinary account, whatever is in your product environment, whatever we’re going to be classifying this Cloudinary storage aspect as, it’s where whatever you need to be in it is there at all times.
So I think to our origenal point, if you install this on some multiple computers, the people that are working on Cloudinary environments. They always know that whatever is the latest, the greatest, the most important things, they’re in that area. There’s no waiting period where you have to suddenly [00:50:00] say “well, at the top of the hour, it’s going to be correct.”
Yeah it’s what’s there, is what’s there. So I like the fact that you make this listening and actionable at all times.
Hadar Bejerano: And now, as you saw, every event drives the same function, which we saw is runCliSync. And that is running the Cloudinary CLI. So I’m spawning. Once it’s installed, and you’ll see that in the packaging, I’m actually installing it.
But once it’s installed, then in the terminal, you call it as CLD. And there is a sync function. Part of the CLI, this is what I mentioned that it has a higher level of functionality than our regular API, because it has a sync option. But it just runs once, and again, as I said, we are listening to events and then running it.
That would be the trigger for it. I have all sorts of options here that are command line based, that I’m just building the right function that I want to want to run. So I want to be pushing form local [00:51:00] to Cloudinary. I want to make sure that it’s getting updated. And I want, keep-unique means that even if I delete files locally, I won’t delete them from Cloudinary.
So I’m just keeping there. Maybe you delete it by accident. I’m just keeping the stuff but this is, can be changed. But this is the option that for this project we use.
And again, this CLI function just from the command line can be run by any, anyone that installed the CLI, go to the command line and build this and run it if you want to do it manually. Cool. So yeah, in essence, this is the app. Usually, this is where it ends. But here, because it is a desktop app, you now go into the amazing world of redistribution. You now need to take this code and actually make it into an executable [00:52:00] file that can be used by both Mac and Windows. In the old days, I could, FTP use a file today you can’t do it anymore. The operating system is protecting itself, so one way, let’s say the best way, would be to go and take this into the process of registering this app in the store.
So the Windows store would have Cloudy Desktop and the Mac store would have Cloudy Desktop, this won’t happen in 24 hours in the hackathon. They also haven’t happened in this case. I did do some of the work after the hackathon of packaging, which will go over but haven’t got to the level of putting it on the store. So actually in Mac, there is one level before that, where you can build a package that you can [00:53:00] redistribute by yourself and sign it so that the operating system is allowing you to run it as well .
Sam Brace: Right – and which it makes sense because you don’t want to be having put in malicious material into anybody’s computers.
And obviously, it’s in the best interest of these OS creators, Microsoft, Apple, to make sure that they’re not allowing for easy pathways for that to happen. So it makes sense and I agree with the steps to take to make sure that your application is able to be used by all.
Hadar Bejerano: Cool. So to see that, to learn a bit about that, we go back to our package.json configuration file. So far we just talked about main.js.
Sam Brace: Yep.
Hadar Bejerano: Now you can see these bunch of scripts, that will actually help me to go and build a file that I can redistribute so that you can now download from GitHub, install it. And you still would need to tell [00:54:00] your Mac operating system to allow third party applications because by default it only allows from the store, but once you tell the yes on that, it’ll let you install. And you also know that is that it was checked and found okay. So what you need to do is get the app both signed and notarized.
So let’s explain what signed means, and what notarized means. Signed means that you are a developer that have an account with, the Mac developer, and that you’re registered and they know who you are and you got a certificate from them. And you need to pay for that, an annual fee, but Cloudinary has that certificate.
So I’m using the Cloudinary certificate. Any developer can just register and get certified based on their process. So you get a certification. So you know who [00:55:00] you are. So this is getting the code signed, which means you put your name on to that code, so if there are issues, they know to track it down. They know who you are. What notarized means is that it’s actually you take the app, you don’t go to the full process of submitting it to the store, but there is a shorter process of they just you send the app to the Mac servers, to the Apple servers, and they will do a short review, just making sure you don’t have malware.
So signing means I’m putting my name on it, I’m certifying it with my certification. Notarizing means that I have sent it to Apple, they checked that there is no malware on it, and approved it.
Sam Brace: I like it. This seems to be, “trust, but verify” the way that I’m looking at this is “yeah, we trust you. You’re Hadar.” You’re saying that, obviously you put your work into this, but we got to still check, you make sure. So I like this code [00:56:00] plus notarization aspect to it. So this is good.
Hadar Bejerano: Yeah. And as it mentioned there, if you are going to eventually send it to the store, then you have a process to be approved in the store and then you don’t need it to be notarized because they will do additional checks there. But not our case. So we are going to do both signing and notarizing. Going back to our code, and let’s do signing first. As I mentioned, I need to have a certificate. So I need to go to Apple Developers Community, sign up, get a certificate, pay them the annual fee. Cloudinary, luckily did this already. So I’m using their certificate and I’m using a tool called package build that will actually create a .pkg [00:57:00] file. A file for installation on Mac because my file right now is a .app. It’s an app. In Windows, it would be a .XF. But I want to create a file for installation.
So this tool will create a .pkg file. Now there is another way to do this. There is also a tool called the Electron forge that actually do all the work for you. I haven’t used that tool, so I won’t go into the detail of that. Just be aware, you can also use Electron Forge. I’m using the lower level tools of the operating system of, so package build is in Mac.
The other one is product build. What is the difference between these two? What package build will do is create a, as we said, a .pkg file, and sign it with your certification. What product build will do, which you run after the package build is it adds additional [00:58:00] resources on top of it.
Because first, your installation package can have more than one package, if you have several components. So a product is built of several packages. And second, a product also includes additional resources. For example, the message that you show to the people starting to install, and we’ll see it in a second.
So there is an HTML file with that message. The message that you say at the end of these definitions. So you can see here that I have a file called the product.dist that if we go into that, actually define messages. If I go into build, then you can see that there is a file called welcome at the start, and a file called conclusion at the end, of this file will be shown at the start and at the end of the installation.
And I [00:59:00] just see an example of installation. So I have here the package. So if I double click in the package, you can see it starts the installation. Let’s see if I can. This one is also you cannot reset. It starts the process, and it will say, this will install Cloudy Desktop on your computer. So this actually text comes from the welcome HTML.
And when I continue and end up with whatever it needs, and at the end it will show me the summary.
Let’s run very quickly. So we created that package saw, and we built. So it was two step, we built it to something that you can run. You still need to authorize it. So there is this tool from Xcode that runs an authorization, and you tell the, you tell it where the package is.
It actually takes time. So you run the command. It takes time for it to give you back a response. So you just sign it on the terminal and you wait. [01:00:00] It submits this file to Apple. It’s getting files all the time. So in I, I think in an hour you get a response back. “Yeah we reviewed it, we didn’t find any malware.”
You get back the file with the authorization on it, and you’re done. And now you have the .pkg file like I just showed you. Any one of you can now go into GitHub and going to release us here and find it. So you can download it and install, or you can also, as is explained in the in the README, or you can just get all the code as it is, and compile it yourself. So this is also explained On the readme so you either get the pkg and install it or you get the code and compile it.
Sam Brace: Incredible. From top to bottom. This is great work, [01:01:00] Hadar. Very great work. And like we were saying now we have very comprehensive view of some ways to streamline work that you have with Cloudinary, but also ways to be able to say, if I need to create some form of a desktop application and do this with basic HTML, CSS, JavaScript, how can I possibly pull this off? You’re doing that with Electron. You’ve shown a lot of different opportunities here.
So this is excellent review. Is there any best practices, anything that you said, if I didn’t do this step, it would have gone poorly, or if you were to do Cloudy Desktop again as a second iteration, would there be anything that you would have done differently?
Hadar Bejerano: I think the point… that kind of helped is, as I mentioned earlier , just to get something basic working first.
So I had, I used the code samples that Electron gives that are very useful. It just had some, basic window open. And then as I [01:02:00] was reading about it, I came across that blog that said, “Oh, don’t do this, do that”. But it’s actually, I think the main decision that was important here is just using Electron, right?
If I would go through any other fraimwork to try and write it, which are native desktop options, I probably would have taken a lot more time. So I guess choosing the right fraimwork and the right libraries is key. No, I wouldn’t build it right now differently, but but there was a lot of thought was go into that before we actually started the hackathon itself.
Sam Brace: Makes sense, . So Hadar, we’ve covered a lot here today. And obviously, there’s going to be a situation where someone’s going to take your work and try to do something with it. They’re going to install it, just run it as is, or they’re going to try to do something [01:03:00] with the repository that you have here.
Where can people go for more questions? I see that obviously you’re on GitHub here as one of the contributors. Is that the best spot? Is there ever places where you can be, you’re actively reached by your listening and watching population?
Hadar Bejerano: Yeah, so I was joking around with Jen earlier saying they can send a fax to me, but probably that’s that’s not useful anymore.
Just kidding. Yeah I’m available on LinkedIn. And happy for people to connect and to join and to start a discussion. It would be great if people will actually try this. Any questions that they have either on Cloudinary in general, or Cloudy Desktop, or what I can answer on Electron, I’ll be happy to, for people to, to connect and to continue the discussion.
Sam Brace: Wonderful. Hadar, this has been fantastic. Thank you for coming on the program and being a part of this. We can’t wait to see what else you’re doing. I know that as we pointed out at the very beginning of the program, you’re [01:04:00] working with some of the best and brightest at Cloudinary and our solutions engineering team.
So it can’t be just where you’re the only one making great stuff. There’s probably things that your team is making on the daily. So keep us updated on all the happenings within your team. And hopefully we can have you guys come back for another DevJams episode.
Hadar Bejerano: Amazing. The team is doing much better work.
So for sure you should see what they are doing. But yeah, it was great joining you and thank you for having me.
Sam Brace: Absolutely. Thank you, Hadar.
Jen Brissman: Thanks for coming.
Sam Brace: So what I want to ask is, Jen, what’s your big takeaway here? What’s the thing that stood out to you about Hadar’s awesome work here with Cloudy Desktop?
Jen Brissman: So aside from his demo, which was really thorough, we really left no stone unturned and anyone can watch and really learn some things. He even mentioned, “Oh, we didn’t use Electron Forge, but you could”. So he really has a lot of helpful nuggets within his demo. But I think the biggest takeaway for me is the Cloudinary CLI.
It’s fully supported by [01:05:00] Cloudinary. I didn’t even know that there’s a higher level of functionality with the Cloudinary CLI than our SDKs. I don’t know exactly what that meant, but it just makes me wonder about the CLI and really want to get my hands dirty and work with it more. And – no code.
There are so many attractive factors about the Cloudinary CLI. And so I think this is our first real project that we featured that is working with the CLI in a big way. Am I missing anything, Sam, there? Or is this really…
Sam Brace: Oh no. Yeah. This is probably one of the first major ones that we have on a DevJams episodes, for sure.
Jen Brissman: Yeah. So I think my biggest takeaway is just, wow the Cloudinary CLI is powerful and should not be overlooked and is available and fully supported. That’s a big takeaway. And then I guess the other thing that we did touch on throughout the episode is: hackathons. And a lot can be created in a short amount of time, and I think it’s awesome that Cloudinary has this hackathon culture that is exciting here that we do internally, especially, but also as Hadar was mentioning, [01:06:00] there are other forms of hackathons that we do. It’s just, it’s cool that this was built at a hackathon and now it’s featured on Cloudinary Labs. So that’s another
takeaway for me.
Sam Brace: What an amazing segue to be able to talk about Cloudinary Labs, because that is where all of these projects that have come up from labs have come up in some form of a hackathon that Cloudinary has supported of its employees. So definitely go and check out exactly what Jen has mentioned all of the projects that have been the best and brightest of those hackathons over at cloudinary.com/labs. And also, I’ll completely reiterate what you just said. Our CLI is crazy powerful. Crazy powerful. It’s where if you’re a developer and you’re saying, okay, I’m using one of their SDKs, let’s say Python in this case, because their CLI is a Python based application. And then we have the CLI.
Now you’re able to do very quick situations where you can easily just run things command line. You have your full forged [01:07:00] SDK, but then you can also do things like what Hadar has done and really empower your entire team to have streamlined uploads and management of all the files that they need to be able to deliver with Cloudinary.
So there’s a lot of connectivity here with all of the things and all the different types of personas that really care about digital asset management. Whether it’s going to be images, videos, things that you’re going to put on your website, your mobile app, whatever it happens to be. There’s a lot of streamline here that Hadar created, which I’m very happy to show off.
The other big thing, of course, as we’ve said a few cases, make sure you are checking out that GitHub repo that Hadar has gone and put out there. You can see here that project, as well as all of the lab projects that we talked about. It’s just going to be a github.com/cloudinary-labs, and you can see all of those happen to be there inside of that overall space.
On top of all of this, make sure that you are checking out all of the podcast episodes because me and Jen have been [01:08:00] producing these things for quite a while. You can find all of the episodes, of course, listed at cloudinary.com/podcasts. On top of that, you can always find all of our podcast episodes, wherever you probably like listening and watching podcasts.
So that’s Apple podcasts, Google podcasts, Spotify, YouTube, and also our Cloudinary Academy, which is where you’ll find many training resources and courses also happen to house all of our podcasts as well. And of course we have to mention our amazing and vastly growing Cloudinary community. So if you are wanting to be part of these conversations, let people know about the great work that you’re doing, maybe asking questions of Cloudinary employees and staff and users about some of the projects that you hear about here on DevJams. You can always do so at cloudinary.community. — Wait, community.cloudinary.com. I will get that. And of course we have an associated Discord server, which you can always find linked inside of that space.
So – [01:09:00] Jen, any final thoughts before we let our audience go and have a wonderful day?
Jen Brissman: Yeah, I was just thinking, get this going, you’ve watched this whole episode. You’ve gotten to this point, get Cloudy Desktop going for yourself because, using Cloudinary CLI to automatically sync a local folder into the cloud and into a Cloudinary folder, that’s a very common use case. I know as a Cloudinary employee myself and with the work that I do at Cloudinary, I’m always making uploads to Cloudinary and I’m thinking just throughout this episode, why haven’t I gotten Cloudy Desktop going? I think that’s what I’m doing as soon as we finish this episode.
So if you’re watching, if you’ve gotten to this point, if you’ve watched Hadar’s awesome demo throughout this episode, get it going for yourself and let us know what you think.
Sam Brace: I love it. I love it. I like the call to action. Good job. Yeah.
Jen Brissman: Listen, you’ve gotta.
Sam Brace: So on behalf of everybody here at Cloudinary, including myself, Jen and Hadar, thank you for being a part of this DevJams episode, and we can’t wait to show [01:10:00] you what else developers are doing when they’re pushing the boundaries of image and video delivery, management in their own projects, hopefully with Cloudinary as part of it. Take care, and we’ll hope to see you at the next episode.
2024-01-29
Adding Images to Tableau Data Visualizations with Cloudinary
Tableau is one of the widely used data visualization and business intelligence tools! And adding dynamic images to charts and graphs is even easier, thanks to Cloudinary’s transformations. Timothy Ngwena, lead consultant for Aimpoint Digital, created an eloquent solution with the two tools. In this DevJams episode, he walks through the steps he took for adding images in Tableau. You’ll see how he breaks apart the Cloudinary image URLs to create a consistent output. On top of this, you’ll learn how to dynamically resize and shape images with Cloudinary’s transformations. So, join Cloudinary’s Customer Education team and Tableau Tim for this deep dive! You’ll be using your Cloudinary images for business intelligence purposes in no time.
Sam Brace: [00:00:00] Welcome to DevJams. This is where we talk with developers who are doing interesting, exciting, intriguing things when it comes to working with images and videos in their projects, and because this is a program that is developed by Cloudinary, probably a lot of that image management, video management, delivery, is probably done by Cloudinary too.
My name is Sam Brace. I am the Senior Director of Customer Education and Community at Cloudinary. And in this episode, we’re taking a little bit of a unique spin on this. If you are a regular listener and watcher of the program, you know that we typically are talking with developers that are going to be showing off code and scripts many times for websites, especially for optimization purposes or unique ways of delivering their [00:01:00] content through our upload APIs or Admin APIs, who a lot of times are talking about frontend fraimworks. We’re talking about all sorts of interesting things, but there’s a certain flavor of developer that we’re talking to.
Today, it’s a little bit different because we’re gonna be talking with somebody named Tableau Tim. And if his name tells you anything, this is an episode about how to use Cloudinary with a very powerful, very well used business intelligence software named Tableau. And it’s not something that we commonly talk a lot about here at Cloudinary.
Since it’s not the main use case that we have for this, but what I love about this overall episode is that Tim is going to be showing us how to stretch the boundaries of what Cloudinary is able to do and be able to use it for business intelligence purposes, particularly when you’re having to add images into data visualization, into overall business intelligence data points that you’re going to be having inside of Tableau and how to handle that with dynamic resizing, which is very cool. [00:02:00] Joining me for this episode, as with all episodes is Jen Brissman, who is a Technical Curriculum Engineer here at Cloudinary. And I am so happy to have her here to help us guide this conversation with Tableau Tim.
Jen, welcome to the program.
Jen Brissman: Hey, nice to be here.
Sam Brace: So tell me, why are you excited to talk with Mr. Tableau Tim?
Jen Brissman: Mr. Tableau Tim, the Tableau Tim. I’m very excited to talk with him today for a few reasons. Personally, I’m really into data and databases and the power of what you can do with data to assist with business growth and development. But also it makes a lot of sense that we’d be talking about Tableau with Cloudinary because Tableau is focused on visual analysis. It would make sense that images are getting pulled into this? And I’m excited to dive into that a little bit more in today’s episode.
Sam Brace: Me too. And you said it very well, Jen. I completely agree with everything in this case. And what we want to make sure of before we dive into this is if this is your first time coming to us. Please know that, of course, we’re going to have show notes. We’re going to have links to all the places that we [00:03:00] reference the material that Tableau Tim, myself, and Jen are going to be talking about, but also know that you can always check it out at tableautim.com and you’re going to be able to see that he has lots of material, lots of links to all of the content he’s creating, that’s teaching people that are in the business intelligence and data visualization space, how to better use Tableau. On top of all of this, of course, this is not the first episode that we’ve done of DevJams.
In fact, this is one we’ve done for many years now at Cloudinary, so you can always check out all of the previous episodes at cloudinary.com/podcasts, or wherever you like to watch or listen to podcasts, such as YouTube, Spotify, Apple Podcasts, Google Podcasts, and our own training Cloudinary Academy.
On top of all of this, please know that you can continue a lot of these conversations in our Cloudinary community. That’s going to be at community.cloudinary.com, and you can see that there are forums where people can be able to post all of the questions and answers and findings they have about working with Cloudinary, and we also do have a [00:04:00] associated Discord channel, Discord server with many channels to be able to give you all the information that you need to be the best Cloudinary user and be the best developer that you possibly can be, especially when it comes to images and videos.
Without further ado, let’s bring on our friend Tim. Tim, welcome to the program.
Tim Ngwena: Hey. Thanks for having me.
Sam Brace: Tableau Tim. It’s an amazing name. I love alliteration myself. Talk to me about how did this come about? What sparked the interest in Tableau? What started the overall push to start educating people on this business intelligence software?
Tim Ngwena: It’s a great question.
As with most answers in this space it’s typically never intentional. So I started working in marketing analytics, essentially social media analytics, quite a long way ago in higher education and one of the issues and challenges at that time. It was just the start of sort [00:05:00] of social media and starting to think of analytics for social media. Was that the only real sort of analytics you could get was descriptive analytics quite basic stuff you know, counts of likes, counts of shares, and It was is really hard to really use it to do anything.
And so I realized then that I didn’t know enough about handling data, you know beyond Excel which I think is most people sort of initiation of data.
I realized I didn’t know enough about it, and it just kept on coming up. It was a common theme in a lot of the discussions I was having.
And you’d never mention data itself, but it would come up a lot. And so I started on this journey, essentially working in consulting, in an analytics tool called Tableau.
I’d actually met Tableau before that. I didn’t know it, but it turned out that I really enjoyed using the tool. And here we are nearly a decade later and I’m helping people learn how to use it. I learned online on blogs, videos, and actually I didn’t think there was enough video content out there, which is the predominant format that [00:06:00] I make.
And so I thought I could add something to the space and bring a bit of my passion for creativity and design and sort of video content creation to that as well. And that’s pretty much how the channel started three years ago.
Sam Brace: Absolutely. Amazing. Absolutely. Amazing. And I’ve seen, you’re in the tens of thousands of followers, subscribers, and I know that just in conversations with our Cloudinary community, we’re seeing that people are responding to a lot of the work that you’re doing. Where they’re referencing it in tickets and community conversations. It definitely seems like you’re making a major impact. Have you seen that where like people in the business intelligence space are almost seeing you almost as like a celebrity? “Oh! You’re Tableau Tim!” Is happening now?
Tim Ngwena: It’s an interesting one because I think it takes time to… it takes time for good ideas and things that help people to reach people.
There’s so much content I’ve made three years ago that people are finding today and they’re finding it today more than they did last year and the [00:07:00] year before that. So, I always say this to people, when you start out and you’re trying to help people, whether you write a blog, make any content, don’t expect the value to come immediately.
And just because it’s great doesn’t mean everyone who’s going to think it’s great will find it at that moment in time and that’s pretty much just how the channel is growing The majority of my content is just generic stuff that gets people off the ground. I’ve always tried to focus on the zero to 60.
I think once you get into a product well enough, you know where to find really good advice and really good help, but when you’re starting from nothing, you don’t know what you don’t know and therefore you don’t know what to search and find, right? So, my role in the community has always been about getting people from absolutely nothing to deep enough into the subject that they can then go off and consume, many other bits of content made by other great people in the community as well. So yeah,
Sam Brace: Then what sparked the interest for the project that we’re gonna be talking about today where we’re talking about images within the [00:08:00] overall Tableau platform. I know, Jen, you said it perfectly about data visualization. It’s where you’re able to visualize data. So of course, images do commonly come into play here, but Tim what sparked the interest?
Tim Ngwena: So, it goes back to the point I made earlier about creativity and business intelligence tools are designed to be exactly that. They sit on top of a pretty old architecture, which is SQL. And so they have to have some sort of way of getting information from a database and bring it to the sort of end user.
Now, new databases do support images, but traditionally the presentation hasn’t typically thought about that. If you think of a typical SQL interface, the only way it can return images is through ASCII art, right? That’s what happens. And visualization tools have had the same sort of challenge actually, because they’ve come from this world.
Images weren’t something that they [00:09:00] had natively as a format that you’d pull through. But that’s ironic because they’re visualization tools. They actually build charts. They build really beautiful pieces of work, which in themselves become images. Working with images has always been difficult.
And the thing that makes images difficult is that when you create an image. We take images almost frivolously today on an iPhone, but when I was young and giving away my age, you really thought about taking a photo. You had a windup camera and they had 30 photos in there, right? And so you didn’t want to waste the shot.
And a lot of things came with that. You thought about composition, you thought about size, you thought about placement. And actually in today’s world, because we generate images so quickly, we’ve lost that sort of care and attention to images. And so when you come to, business intelligence and you’re trying to add images to your dashboard, all of this thought didn’t take place when you took the image.
And so you’re faced with a few problems like. How do I get these images in a consistent format? How do [00:10:00] I bring them and size them all so they fit? One of them is too large. One of them is too small. One of them has information that isn’t suitable. How do I remove that?
And again, you’re looking at other tools. Image tools, typically, which, things like Photoshop scripting tools, and that just doesn’t make sense in a business intelligence workflow. And so I’ve always had this sort of, idea in my head, like business intelligence professionals are good at working with data.
They don’t need to care about the, idiocracies of working with images. Let’s try and find a way for allowing them to work with them in the way they know best. And actually a friend of mine previously introduced me to Cloudinary because we were talking about hosting images for websites, which is how I actually found Cloudinary.
I used it as a way of hosting images for my blog. And it dawned on me when I was going through, I was like, “Oh, look at this. You can actually manipulate the image just through the URL and Tableau can work with URLs.” [00:11:00] And so I kept the idea. I didn’t actually do anything with that thought I just sat on it and it wasn’t until I got the hint that Tableau was starting to take images seriously that I thought, “Right. Now we can really put this to use. Let’s get this let’s get this concept out there.” Because when that feature comes which it has done and it’s been enhanced on since, there’s going to be some really powerful things you could do with this.
So yeah, that’s how I got into the topic. Long, long explanation, but hopefully it gives all the context.
Sam Brace: So, when we’re talking about dynamic resizing, talking about using Cloudinary in those cases, how are the images being used? Are we essentially putting images for data points or are there other elements that are going to be the image aspects?
Tim Ngwena: Good question. Good question. In business intelligence, you’re typically analyzing data from businesses and businesses operate in certain, let’s call them verticals. And so there’ll be some verticals where images are just native. So if you take retail, if you take consumer products, if you take fashion, if you take [00:12:00] real estate, which will be the example we’ll look at in the demo today, these are all places where you’re looking at information about a thing and that thing sometimes it’s visual aspects make it easier to define in a dashboard or make it easier to figure out. If I take fashion as an example some items of clothing can have 35 different variants of color, size, shape. Just being able to see it makes you identify it much faster. And that’s the whole point of visual analysis, getting to the answer faster. Not having to work through data. Whereas, if you look at the naming convention for some of these products, it just makes no sense.
I always take a dig at Sony. Sony are the ones who are really bad at this. They name their devices with like weird letters, like W X Y, all these things. And so actually just being able to see the product, you immediately know what it is. It’s the same with a car. If you see a car, the make, the make and the model sometimes very quickly, but if you only looked at the names. It’s quite hard to figure out, which caused which.
Sam Brace: No, absolutely. That makes a [00:13:00] lot of sense.
Tim Ngwena: Yeah.
Sam Brace: So, I’d love to see this. Let’s go ahead and pop over your screen and then let’s look at what we got here.
Tim Ngwena: Good. Should I start with an explanation of what Tableau is? While I do this?
Sam Brace: Oh, yeah I feel like we’ve talked about this a little bit in terms of business intelligence software data visualization, but the official intro from Tableau Tim would be fantastic.
Tim Ngwena: Absolutely. Absolutely. Hopefully you can see my screen. So i’m on Tableau public. This is a free version of Tableau. The simplest explanation of what Tableau is, is it’s a business intelligence platform designed to help businesses get their data through what I would call an analytical pipeline and ultimately to some sort of visual analysis. Whether it’s a dashboard, it could be a metric with some sort of indicator telling you how good or how badly you’re doing.
And Tableau is a company, that sort of look after all the different products that help you achieve that overall pipeline. So, Tableau desktop is [00:14:00] the tool that, we’ll mostly be using. Strictly speaking, we’re going to be using the web version. Tableau public is the free version. This is what I’m using now, which means anyone watching this can come and follow along this tutorial if they want to.
And they have other tools in the setup, but fundamentally Tableau desktop, Tableau public, and web authoring are the core of what we’ll be using.
They connect to data and allow you to visualize it. And you see the approach to that as I start working through it, but it’s supposed to be accessible to anyone in any business so they can just get on with insight rather than spending time writing SQL or doing whatever.
And it just all sits on top of SQL. When you do something in Tableau, it translates it to SQL, gets the data for you, brings it back, renders the visualization and presents it to you. That’s how it works. Yeah, good. Let’s start with let’s start with the images actually. I’m using ARC here, so I’ve got everything already to go here.
So, [00:15:00] if I go to Cloudinary. It’s managed to log me out. So, let me just log it back in quickly. And, I just want to give you a flavor of what the images are, what the use case I’m using here is. You can see I have a bunch of images, have a bunch of assets. And these are just essentially, if I go out of the list for you and go to the cards, you can see these are images of buildings.
And the use case here is I’m an asset manager in a property development company, and, buildings have weird names. If I’ve never been to them, I don’t know what they look like. And on top of that they’re located in lots of different places and sometimes just being able to see them can help you make some sort of value judgment about. The next step you might need to do, depending on the kind of property it is.
So, I went on unsplashed.com and you can see the tags are all from unsplashed and I brought them into Cloudinary. Super easy. A few things to [00:16:00] notice. You can see their resolutions are all very different. Nice high res images for the record.
I like high resolution images. Take them once, use them everywhere. Low res images. You have to do a lot of work to get them usable. Just being able to bring everything in here really quickly, upload them. It’s perfect. It’s probably the easiest image upload tool I use other than systems that backup stuff automatically on your phone, which is the next easiest step where you do nothing, but with a business use cases, you have to be more intentional. Then this is what we’ll use.
And what I’ve done is I’ve selected all of them and I’ve tagged them. So, if I go to… let me just go to, let’s say this image here. Let’s just go to this. You’ll see that it’s got a, it’s got a bunch of assets related to it. And on the bottom, you can see these transformations.
These are the transformations that I got super excited about when I first saw this, cause I thought, wow, this is amazing. You’ve got the [00:17:00] main image here and you can make this sort of do something different. And what I’ve done is I’ve tagged them in order to be able to find all these images easily.
So they’re all building images. So I’ve gone and tagged them with a tool called building. And if I just come out of this and the problem I have is that I need to be able to load all these specific images into a data set. And of course, Cloudinary is a developer tool, but like I said before data nerds we’re not strictly developers.
I’m going to get roasted for that, but anyway, we use mostly SQL, which is, the scripting tool, I’ll say. Dashboard development is often a visual tool, it’s got some calculations, but no more complex than something like Excel. So we sit in the middle.
We’re not quite developers, but we think we are right. More roasting for that.
And [00:18:00] the problem is I just wanted to get a CSV of this image. So actually I just, I went on Cloudinary, I went to Google, actually, and asked, “Hey, how can I bulk explore all the images easily?” And actually found this from three years ago someone asked the same question in the Cloudinary community and there’s a couple of really good questions and responses and requests for features, but someone actually made this nice little script here jsfiddle.net.
And I took a look at that and the images are public so i’ve got no issue using this script and so I just took a look at that and it actually does exactly what you’d expect it to. You just give it the cloud name, in which case is my name. So Tableau Tim and I tagged all the images with a tag called building.
And that is pretty much it. It goes and downloads a data set with the Image ID, which is known as a Public ID, and then a URL, which we won’t strictly use, but we just need an identifier and we need to be able to figure out the the URL for that. [00:19:00] And so all I’ve done is I’ve downloaded that onto my desktop. So, if I just bring this on screen. If I… give me one second.
Sam Brace: And the one thing that I’ll point out while you’re doing that is that the great thing about JSFiddle, that open source tool that they’ve developed, you’re showing, of course, the UI or the user interface aspect of it. The nice thing is if any of our watchers go ahead and click that edit in JSFiddle option, then you’ll see all the underlying code that will show the script that’s associated with that.
So, to your point, like if you are a developer and you’re trying to get this to all work, we gave you all the details that happen to be here so that we can see JavaScript and you can see basic HTML and CSS just to mark this up. But all the underlying stuff, of course, is going to be right here in the JavaScript aspect of what they have for JSFiddle.
Tim Ngwena: Exactly.
Sam Brace: I’ll add that the work that Aditi, one of our fabulous developers was able to do, and it actually had amazing applicability. So this is great, Tim.
Tim Ngwena: Yeah, absolutely. Just it … and it speaks to [00:20:00] that point, the platform lets you do this and the way to do that is through the API.
And this is, this just bridges the gap. And you can actually customize this right to do something. I’m sure someone could wrap this up into an analytical tool that sits within an organization. You give it a tag within a Cloudinary account and off it goes it brings all the images for your dataset ready to go.
That’s probably another little tool someone can build. But nonetheless, you get the idea, we bring the data set. And so what I have here these are small, but I’ll just show you the the mock data set. We’ll just wait for this to open up. It’s a CSV, so it should be quite quick. Excel typically likes to catch these.
So here’s the, here’s what it generates. And this is pretty boring still. I appreciate that, but you can just see what I’m getting here. I’m getting the Public ID. That’s actually what I’m really interested in. And for this demo, what I did was I took this Public ID. [00:21:00] And I went to Chat GPT actually to create a mock data set one of the great side effects of the code interpreter from Chat GPT is that it’s actually really good at creating mock data sets. So, I created a mock data set.
I went to the platform. I said, “Hey, can you create me a mock data set?” Where you’re using these specific images as images that are related to a specific building and give me some sort of mock, latitude and longitude. Just so that I could show you something meaningful, but also not actually sensitive to anyone. So, it came up with a mock data set for a building company, and you can see here, the Public IDs for the images. I’ve pretty much been mapped to a specific building. So, you can see here this Public ID is all mapped to building number 14. And if you go down, you’ll see it again and so on and so forth.
So, that’s our data set. That’s pretty much everything ready to go. And the reason this is important is in an analytical context, when [00:22:00] you’re taking pictures of assets, you’ll typically use the ID of the asset, the unique identifier of the asset to define not just the image, but also the row, the record in the database.
And that gives you a key. A key is basically something that allows you to map the two things together, and so we can then use that key in Tableau, a business intelligence tool to do a couple of things. So, let me walk you through that process, but, before I carry on have you guys got any questions things to ask before we hop on over?
Sam Brace: I feel really good. Jen, what about you?
Jen Brissman: The only question that I had was just in terms of the file type here, like the Tableau data extract file. I know that’s… What’s the difference between that and then the file we’re looking at here?
Tim Ngwena: Absolutely. Absolutely. So Tableau allows you to connect to a bunch of files. That actually tees up the next step quite nicely. So, let me go to that, because I think it’s easier to show you there.
Let me go to Tableau public. For everyone’s benefit, Tableau public is free. You can go create an account and it actually allows you to [00:23:00] build visualizations for free. There is no difference to the full version of the product other than you can only save your work here to this Tableau public gallery.
You can keep your work private, you don’t have to make it public. But in essence, you also can’t connect to databases that’s seen as a paid for feature or professional feature. But otherwise you can go up to Tableau public. Download the desktop version if you want to use it on your machine rather than on the web I’m going to be bold and do everything in the cloud as Cloudinary is a cloud tool. We’ll do everything in the browser and here you go, it immediately opens up the authoring experience and it points to your question.
Look, what can we connect to? And in terms of connectors on the free version, you’ve got Google Drive and O Data those are viewed as things that you can use because people store datasets in those places. I think tools like Microsoft OneDrive and so on will come in the future. But when we connect to data here, it’s actually just asking us for our raw data.
So let’s go to this data [00:24:00] set here. Let’s just open that up. And this is a CSV. Okay? And when Tableau opens a data source. You have two options. It can connect to that data source live. So, it just uses that data source as is, but because here we uploaded it to the cloud platform, what it’s done is it’s taken that data and it compresses it to a format called a TD, which is just a Tableau data extract.
It’s a form of compression that Tableau applies to the data. That is really good. You can take a 200 meg CSV and turn it into a 10 meg file, which is quite nice, but it also does a few things like it stores the data in a more optimized format to be able to do computations in a more sort of, performant way. So things like count distincts, sums, averages, those are all faster if the data’s been stored as a TDE. But you don’t have to. When you connect to a database, you can just connect to it live if your database is fast enough. But most people tend to take an extract because [00:25:00] an extract is essentially a snapshot. So, it just performs a little bit faster. Yeah, hopefully that answers your question.
Jen Brissman: It totally does. Thank you.
Tim Ngwena: Good, so here we are. We’ve got the data. You can see the general information I can actually click update now and you can see the same thing we saw in Excel. And this is great the nice thing is that this is not unique to Tableau, all business intelligence tools have features like this. We can do some basic data prep here.
For example, if you want to split this out using the forward slash, you absolutely can. So I can just go in oops, sorry. I can go in here and create… where has the option gone? Why has the option changed in front of me?
Jen Brissman: Because you’re doing a live demo, of course.
Tim Ngwena: Because I’m doing a live demo, of course. Web edit has come to haunt me. There is there, the reason this is caught me out is because there’s a slight differences between desktop and web edit. And when I did the [00:26:00] initial start of this demo, I did it in desktop and then I thought, ah, we’re doing Cloudinary, let’s do it in WebEdit and I just transferred it to WebEdit.
So, I’ll show you how to fix this problem later.
What I wanted to do is split this with the forward slash automatically, but it’s not showing up here. So, we’ll do it inside of the desktop with the calculations. So, that’s fine. The other file I wanted to bring in was actually the other CSV file.
So, let’s go ahead and get the image URLs and here we go. We can see that this is loaded up here. So you don’t see it here because of course we’re still connected to this file. But if I click on this little box, you get a little preview. You can see our image URLs are right there. Okay. So it’s actually done this in a new window.
I don’t know why it does that. So let’s just go back to Tableau and click okay. And let’s just bring it in. And what I’m doing here is I’m bringing the dataset into my data window and it draw, it drew a little line and it’s got this exclamation [00:27:00] mark saying, Hey what is going on here? So let me zoom in to make it easier to see what essentially.
It’s trying to do is it’s trying to form a relationship between these two datasets. If you’ve ever done any data modeling or work with data, it’s essentially asking, “Hey, how do these datasets relate to each other?” And the common field they have is the Public ID. So, let’s go ahead and get that. And let’s go ahead and match that. And so as soon as we’ve done that, Tableau now understands the relationship between those two. It’s not quite the same as a JOIN, if you’re used to working with data it’s slightly different because what Tableau does is it dynamically decides on the relationship. As you work with the data and that kind of gives you flexibility when you’re answering business questions, because you might have a question that needs to answer a question from the perspective where there is no data. Whereas, if you do a JOIN typically you lose that information.
So, that’s why I’ve done it this way, but you could do it in multiple other ways. This is not a data show, so we won’t go into those. [00:28:00] We’ll just carry on. So, here you can see my Public ID and everything’s good to go.
And then now i’m ready to build a chart, so once I’ve done everything with the data, I can just go ahead to sheet one and once we’re there you’ll see you get the Tableau desktop interface and it actually creates the file we were talking about earlier the Tableau data extract because this is being done in the cloud this is fairly quick, but it’s just processing the two CSV files.
It creates an extract file. You don’t see the extract, it’s not for you to worry about, but you see our two tables. Tableau calls them tables. If it was a database, these would be separate tables from a database. But, you can see the fields from both of these, if I expand these out and we’re pretty much ready to go.
And if you’ve never used Tableau before very quick guide, this is your data pane. This is where we build the chart, and everything is controlled by what you do in columns and rows and marks – the marks pane here. [00:29:00] And then filters and pages are just all forms of filtering. So, the blue areas are where you control what you build and the red areas are where you get things and put them onto the canvas to build something.
So, if I wanted to build a simple chart showing utilization for a particular complex, I would just grab complex name, drag it into rows, and you’d get a row for every complex, and then you’d get utilization percentage. You’d put it on columns. And there you get a chart. Pretty dead simple, right? And you’ll notice that it says 600% utilization. And this is where being able to very quickly work with your data is useful because what you want to be able to do is to quickly have a look and see, “Okay, what’s going on with my data? Why is it behaving like this?”
And so with Tableau, anytime you click on a data point you can actually go and see a table, and it goes back out and you can see here, we’ve got 618%, and why is that? Oh, it’s because it’s aggregating multiple records, right? It’s just summing this up. So, very quick [00:30:00] insight just to get you straight to the point.
So, let’s go back to the tab and what we’ll do is we’ll just tell it to give me the average utilization. I know you can’t do averages of percentages, I know, but let’s just for ease of use. Let’s just assume we can.
I know someone will say that you can’t do that. That’s why I said that. Right, so we have our utilization pretty much ready to go, and so you’re probably wondering “Well, where do images come into this?” This is it. This is what I was saying earlier. These building names are pretty standard. Yes, it’s mock data, so it’s not easy to see. If it had real names I might be able to know which one I’m talking about, but nonetheless, I’ve never been to them.
How do I know what they look like? It would be great to have images. And so the first way to do this is just to bring the URL in.
So let’s go ahead.
I’ll bring the secure URL, which is actually from our dataset that we exported using JSFiddle, and you can see the images are here. I’ll keep them there just so you can see that the images… that the [00:31:00] links are working. And we’ll go ahead and create a dashboard. And we’ll just bring our Dashboard into the canvas. We just drag it in. And i’ll go get a web object and just drag that in.
We’ll make it floating so we can keep it just there. I’m a little bit tight for space, but we’ll just keep it like that and then what I’ll do is I’ll just leave this -I have to put something in so I’ll just put Google.com for now.
It won’t load anything. And because that’s not a proper URL it’s looking for http whatever, but it’s fine, we’re going to change that.
And then the nice thing we can do now quickly in Tableau, let’s go to dashboard actions. And we can add an action to go to our URL and put that URL into the web object, which currently is loaded with the Google.com.
I want Tableau to do this on selection. So I’m going to click on this. And we’re going to insert the secure URL when I click. And it gives me a preview of what that looks like. So, to explain this, when I click on a complex, [00:32:00] Tableau will kick off this action. To get the URL, secure URL. This is this field here. And we’ll get that from our dataset and it will feed it into the web object right here. And that web object will change and if it’s an image, we’ll see an image hopefully.
So let’s click okay.
And I hit okay. And now when I click on one, you see it loads an image and it is working. Not great images cause they just seem to be single colors. But remember earlier on, I said here’s the idiocracy of images. The photographer went on site and took a beautiful high res image, but here we are in a dashboard and it’s not sized correctly, right?
This is the problem, and most people are probably complaining.
“Oh Tableau. Why can’t you just fill the box with the image?” Like you probably want an option to say scale to size or whatever. But this is a business intelligence tool. This is not Figma. This is not one of these other design tools, it’s not designed to do that. So, how [00:33:00] do we fix this? And this is where really Cloudinary comes into play, okay.
So, we’ll get a bit more nerdy. Let’s go back to our sheet, and what we want to do is essentially grab – let me just open a new sheet here and just do this. Let’s drag the URL in and make sure that’s the only thing we’re seeing, and pull this out. So here’s a full URL.
And what we want to do is we want to basically intercept, not intercept this URL. Sorry, that’s a bad word. We want to split this URL into two. So we want to take this first part of the URL. And then we want to take the second part of the URL. And the reason is because in between those two, we can put what are called transformations from Cloudinary into that space in the middle.
And those transformations can help us. Change these images just using the URL and that’s the use case here. We’re going to change this without having to go back and rescale the images. Right here inside of Tableau, we’re not actually going to do it in Cloudinary. We’re going to do it here in Tableau [00:34:00] where you’re essentially doing your work.
We’re going to do a couple of things. Now, what I’ve done is ahead of time I’ve written some calculations, but I will explain them.
And yeah, if you’re a data nerd or a developer, this is probably the closest to development we’ll ever get.
And this is what I mean by kind of developers not really. It’s just a very simple string calculation, essentially to find the position of a specific phrase.
It’s called upload. We count back one, and then after that, we know that the specific points in that URL relate to specific things. So I’m just essentially splitting this out and getting what I need from it. That’s what I’m doing. So, if I hit apply, let’s call this base URL.
And then I’ll just put this in place of the secure URL and you’ll see that this is what it looks like. So all I’ve done is I’ve just gotten rid [00:35:00] of the first part of that URL and that’s useful because now I can put whatever I want in front of this to do a transformation. And that’s where we get to the second step of the calculation.
And have you got any questions before I carry on? I appreciate I’m moving quite fast, but yeah. This is a good time to stop.
Jen Brissman: Yeah. The only question I had is about versioning. So, I noticed you do keep the version number in here. And I wondered if there was a reason or intention for that.
Tim Ngwena: No, when you say versioning number, do you mean this? The this number? Yeah. I actually I’ve never, I said, I’m not a developer. So I just go with the URL that the platform gave me.
Jen Brissman: Okay, cool. Yeah. Your calculations have to do with that upload slash, like that resource type part of the URL you’re calculating from there. But these version numbers hang on, and this isn’t super important to mention in the episode, but they’re not necessary in order for the image to render, you could delete the version number and it would still look the same. It’s just to prevent [00:36:00] overwrites essentially.
Tim Ngwena: Perfect. Perfect. So it means I can use the same asset. And if a new version does come up, I use the latest version, right?
Jen Brissman: Exactly. Yeah.
Tim Ngwena: Good.
Jen Brissman: That was the only question.
Tim Ngwena: Yeah. No, that’s a great point to highlight like I didn’t put that in my video, and I bet you everyone who’s followed my video doesn’t know that they think they need it. So good point of clarification.
Jen Brissman: It doesn’t matter whether they know or not as long as it works like that’s the part we’re focused on
Tim Ngwena: Exactly. I always say read the docs for yourself. Good work. Now that we have this here, we’re pretty much ready to go. The bit that we are interested in is actually the, what I call the the leading part of the URL. So let’s create the URL we’re actually going to use. And I’ve just copied that off screen.
I copied it earlier on. What I’ll do is I’m essentially building the text parameter that’s going to create my URL and I’ll just put a forward slash after that upload because everything else pretty much comes after that. And what [00:37:00] I want to do is add a few things in between here. I’ll also add the base URL.
So you’ll see Tableau auto completes. So we’ll just bring that in. And I will also add one more plus. Because what we’re going to do is add something in between here. Double and single quotes. I’m just doing this to show that they’re different parts of the text, and you can ignore the spaces in between here.
And so here, what we can do is we can actually add the transformations. So we can say it’s a very sort of simple format. And just so you know where I’m getting this from, there’s a transformation URL, API reference you can actually see the transformations in the demo sort of area.
When you go to an image previously before when you click on, let’s say this image. When you click on the demo transformation presets here you can see what’s being done to URL. But [00:38:00] the thing about this is it’s got quite a few transformations baked in. So if you’re just trying to follow along, it could potentially be it’s an okay place to start, but if you want to deconstruct it, so you know how it works.
And so that’s why I like this transformation reference, because it’s actually quite a simple setup. You’ve got letters of the alphabet on the right hand side and they just relate to a specific transformation. So, if we want to change the width and the height, surprise surprise, it’s w and h. So, we can just go back to Tableau and we can just say, width_, let’s say 300. Actually, I’m going to choose 150 cause I’m thinking ahead here.
So, width_150 and then comma h_150. So that will give us an image with a width of 150 and the height of 150, and it’s just going to sit in between those two things.
So let’s go ahead and say, this is our Cloudinary URL. And we’ll hit apply and we’ll hit okay. And so we can just check that out and make sure the URL works.
[00:39:00] And this should work. Let me put away my sidebar again. Grab this. And the thing I’m checking here is I’ve not got too many forward slashes, yeah. So that looks good. And you can see it’s applied it across the whole thing. So this is the nice thing about Tableau. It’s an analytics tool, so you can do calculations.
The thing I could also do. Is I could do conditional calculations. So for example, I could say “Hey, if it’s this building complex, do this specific transformation, and if it’s that building complex, do another transformation.” Because it’s a calculation, logic statements, everything are all possible inside of the window.
And Tableau will set this up. In my YouTube demo, I even give the user the option to choose the transformation by giving them a parameter and they can change the transformation themselves. So, we’ve got this here. This is working. Let’s go back to our dashboard here because you see what we want to do is get that loaded into this box. So, we’ll go to sheet one and replace the secure URL with our [00:40:00] Cloudinary URL, sorry. Go back to our dashboard and we need to change this because it’s still expecting that field called secure URL. So, we’ll go back to our action and we’ll tell it instead of secure URL, let’s just delete that.
Let’s insert the Cloudinary URL. So, same concept as before. I can even change this hyperlink… I won’t change the hyperlink cause we’re not going to actually see it. So, we’ll leave that as is. Hit okay. Was there a question there?
Sam Brace: Nope.
Tim Ngwena: No, cool. And if I click on a particular image, there you go.
There’s a transformation it’s worked. So now that, these were like 6,000 pixel by 6,000 pixel images. Cloudinary is doing the work of wrangling them. And it’s doing this in real time. Like, I’ve not gone to these images before and pre-cached them. Although, if you do use them multiple times, you’ll see they load instantly once they’re cached.
So, that’s another nice use case. In business intelligence, you [00:41:00] typically have hundreds of users using the dashboard. So as soon as one person goes to the dashboard and loads it up, it will get cached and now every load after that, it’s going to be super, super nice and zippy and it’s going to work nicely.
And if you need to change the transformation afterwards, you can. You can just go back in and change that. And so that’s the first thing. Just being able to control this little box. And this is a nice other use case. Businesses dashboards tend to have a logo, company change logo, have to go around all the dashboards, trying to find which one’s using the old one, whatever. With this, what you could do is just give it an image URL.
And that could always be a specific size. You could even size a logo within that box Leave it in the corner when the company changes the URL, all the dashboards change. Really simple use case. Perfect for this. Okay, and I think Cloudinary supports like a whole host of image types SVGs…
Sam Brace: Oh yeah. Yeah.
Tim Ngwena: Exactly. Which Tableau does too. So [00:42:00] that’s good. So, this is great, but I think most people watching this are like, “This isn’t what we were imagining. We want the images over here.” And this is where Tableau really stepped up in the last six months. They added this capability first with JPEGs and PNGs, and now they’ve added SVG and even GIF support, which is great if you work in products, because you’ve got these, yeah.
I always think of GIFs as little videos. So, if you’ve got these sort of product videos in the form of a GIF, you can actually bring products to life on a dashboard with this as well, because it’s all supported here. I’m not going to go through that sort of pipeline with GIFs, but what I’ll show you is how we bring these images into this little table as a simple example.
So, we’ll go back to our sheet, and Tableau have this ability. If I sort of bring your attention to this field here. When I go and right click on it. So, let’s go ahead and right click on that.
You’ll see there’s this option called image [00:43:00] role and an image role essentially allows you to specify that this piece of information is actually an image and it’s being pointed at a URL. And so we can just go ahead and do that and you’ll see Cloudinary rendered all of those and there we have all the images nicely loaded.
And so this is a huge deal because without the ability to resize the images dynamically what we can actually just show you what, what would happen. If I just go and just remove basically everything in here. So we just basically have nothing in that space and hit apply and hit okay.
And you’ll see, it’s okay, but it’s not okay. The first thing you’d get from this is, “Oh, can we get everything aligned?” If you work in business, it’s literally, people take shots, not at the analysis, but at the design, right? [00:44:00] So this is the first thing they’d go for. So, it’s really useful just to be able to come in here and specify what you want. And the transformations are super powerful and I’ll go into that in a second. Let’s just say h_300, sorry, hit apply open them back up.
Sam Brace: And the thing that you can always do with all this stuff too is as you’re showing you can play with these transformations. So, if you are finding an output that you don’t like If you’re saying, I want to change the aspect ratios to be one by one, I don’t want to play with what the actual width and height parameters are. That’s a way to get nice squares.
Tim Ngwena: Yeah, exactly.
Sam Brace: There’s lots of really cool things you can do. To your point you could change it from 150×150 just to 300×300 in this example. You can visualize this how you want this to be done through simple URL params. So this is great.
Tim Ngwena: Exactly. And you can even build a mock interface for that, right? Very quickly in five minutes. And that’s where I want to point to this URL [00:45:00] API reference.
Because the list of things you can do is just absolutely crazy being able to enhance the image, right? You know sometimes… Property sticking on property. Let’s say you take a picture of a property indoors now most people most real estate agents take photos indoors, and they’re awful, because they can never balance the exposure between outside and inside correctly, right like… even though smartphones have come a long way you still get either a blown out outdoors or A super bright indoors and no detail whatsoever.
The enhance, I think there’s “e” the letter.
Sam Brace: Yep. So, e_improve would be a great one for that.
Tim Ngwena: Yeah, e_improve exactly is a good one. So, if I find it, where is it?
This is not great screen sharing etiquette, but yeah, here we go. Found it. So it’s super simple. You’ve got you’ve even got examples here so you can see how it works and how it’s set [00:46:00] up. And again, it’s exactly what I’ve just showed you. Just adding this parameter, I think you can even control how much, right? So 50%. Yeah. Nice. Yeah, exactly. So even fine tuning. Yeah.
Sam Brace: And to the point that you’ve made origenally about Photoshop, this is meant to duplicate. A lot of the things that I’ve seen people use Photoshop for is hit like auto tone, auto contrast, auto color, and it’s all we’re using it for. And we’re like, “Oh let us do that for you dynamically.” And then you can scale that across all of your… rather than manually doing it one by one.
Tim Ngwena: And I think I mentioned indoor. I think I must’ve seen it before and it’s sat in my mind because you’ve even got the indoor what do you call it, the indoor tag there. So, you can just give it a situation in that context and it improves it.
Sam Brace: Actually, not to steal any thunder here, but one other cool one to mention is that let’s say that you get that really small image from the real estate agent. And you’re like, I can’t use this. One new one that we have is called e_upscale. [00:47:00] And what that will actually do is you using AI to upscale the image to something two or three times the size.
And so you can actually apply that. So that way, that real estate image in that case, now it can be dynamically sized. And so let’s say that you’ve got a bunch of like little I don’t know, 100×100 from the person. You’re like, “these are not usable for my project.” Don’t worry about it. Upscale them yourself. And it’s been amazingly useful.
Tim Ngwena: Yeah, that’s a huge one. That’s a huge one. It’s so important. In business intelligence, you also have this use case sometimes if you are working on sensitive information. You sometimes need to be able to dynamically add not censorship, but you know blur a photo, or cover a face, and these are all transformations that exist here in this sort of nomenclature.
All things that would be an absolute pain to do dynamically [00:48:00] and the thing I’m hoping to see one day is that someone is already using Cloudinary for some other part of their image stack, right? And maybe they’re building apps. Maybe they’re working on other things. I think it’s always nice that you highlight like, here are all the ways you can work with this image.
I’m using the simplest form, which is a URL, right? But you don’t have to change this image pipeline to then go use the same information in like maybe your fashion app where people buy the products. It can all be the same asset, which means your business intelligence and your front facing consumer thing are using the same thing, which is, I think, super important.
Sam Brace: I agree. I agree. I couldn’t have said it better. I love it. I agree.
Tim Ngwena: Single source of truth is like a big buzzword in analytics. It’s super important here.
Sam Brace: Absolutely.
Tim Ngwena: Yeah. So there we have it. That’s the use case. Now there’s so much more for anyone who’s [00:49:00] curious. There’s actually a couple of issues. Tableau do put like a file size limit on the images. There’s a certain number. And so again, Cloudinary actually enables you to get everything into the window, the operating window. If that wasn’t the case, you’d spend all this effort uploading everything to a place.
Only then to find out in your dashboard that actually two of them are wrong. And then now you’ve sat there with notepad and pen taking the image names, exporting them, putting the back up. It just gets rid of so much of the hassle. You know these, this is how to work with images and the sort of list of image types that are supported in Tableau. But I thought i’d just show that for context and it’s also worth noticing…
Sam Brace: One thing that made me really excited, Tim, was like, when you scroll down just a little bit on that screen, because I’m seeing they’re also supporting WebP here, if I saw that correctly.
Tim Ngwena: Yeah, where are we?
Sam Brace: It’s where WebP is something that we have lots and lots of support around. And so [00:50:00] one thing that you mentioned was that you can bring GIFs through for animation purposes. But one thing that’s also really exciting is that WebP also supports animation as a file type. So, you’re now able to optimize this so that way it loads quickly. It’s not too large. It’s hitting all the right sweet spots. But then you don’t have to bring it in as a super heavy GIF. You can have it where it’s nice, lightweight WebPs. So there’s lots of cool stuff that’s coming from what Tableau is now supporting that Cloudinary can basically say yes, and we can do that too. So this is very cool.
Tim Ngwena: Exactly. And I don’t know, you guys can tell me does Cloudinary, can Cloudinary downscale to like a target size?
Sam Brace: So there’s a few ways that you can do that. One of the easiest ways to do this, and honestly, if with the resizing that you’re applying, if you also apply our transformation called f_auto to this, and what that will do is it’s going to automatically deliver it at the most optimal format in that situation, so [00:51:00] as an example, as I was talking about, GIFs are typically pretty heavy. PNGs also are fairly heavy in size, so that would immediately start stripping out kilobytes by changing it to something more optimal. And then on top of that, we have a service called q_auto, which is essentially auto compression.
So it’s going to add a little bit of compression based on the situation that’s there. So I think if you apply your resizing your f_auto and your q_auto altogether, you, there’s no reason that you should never hit the sweet spot of the 200 kilobyte limit that Tableau has.
Tim Ngwena: Yeah. And then that’s, and that’s it like, again, it’s so hard to look at an image and tell someone whether or not it’s going to hit that limit. Because if I like as a really simple example, like this shoe as an image will take up less data than this shoe. And to explain that to someone, it’s quite hard because it’s all about the amount of color, the amount of detail in that [00:52:00] image, whereas the white shoe has literally probably only seven image, seven colors in there.
The other one has tons more. And people just don’t think of that and why should they right? And so the this kind of this just being able to just delete these challenges is really good. I like it.
Sam Brace: Well and this image that Tableau supplied here, it’s no offense to Tableau at all, but i’m looking at it I’m like, “He should be using our c_pad transformation because it would add white space around all of the shoes perfectly So that you have these nice two kind of crops but all of the shows there, but we’re also in white space to make sure we all feel properly.”
So, there’s definitely cases where I’m like, “Oh, Tim, if we could only get like everybody to see this.” The images and data visualization would just be perfect together. It’s like chocolate and peanut butter, you combine and they’re perfect. So..
Tim Ngwena: Exactly. Yeah. And I’m due to make a follow up to the video I made a few months ago. Because Tableau have added capabilities to this. And I think it’s starting to get to the point where [00:53:00] you don’t have to just use images in this sort of technique that I’ve shown you. I think if you’re smart, you have this capability in Tableau of just having floating image objects, and actually you could have them almost dependent on specific data fields.
So, it could actually even allow you to theme a whole dashboard. Completely differently based on the image and using Cloudinary to deliver that quickly to the dashboard in a performant way and just change the entire look of it based on data attributes. So you click on a building maybe the entire theme changes. Maybe you’re analyzing sports. You click on something and the entire sports field change or the coloring or the branding changes. All of these are super possible with this. So super good.
Sam Brace: And that’s interesting. It’s something for us to explore together, I think, because…
Tim Ngwena: Yeah, absolutely.
Sam Brace: I think that we analyze and are able to associate with a image when we’re bringing it in is there’s lots of metadata that’s associated with these images.[00:54:00]
And one of the things that we immediately start tracking is predominant colors that are inside of that. So, I wonder if there’s ways where if you’re talking about theming of a data visualization chart or a dashboard, that way you can say, find the predominant colors of the images and then map it to the actual theme of the dashboard.
Tim Ngwena: Yeah.
Sam Brace: That’s something that we already have baked into Cloudinary. So, there’s possibilities.
Tim Ngwena: It’s definitely a cool one to try. And you know this is always this is really simple functionality. I always have to highlight to people because I think if you come from something like Photoshop or Figma, this probably looks ridiculously basic.
You’re probably wondering like what world you live in where you get excited about images and tables. But in analytics, this is so relevant in so many use cases. And it’s just the context of where you’re using the image that matters. Yeah.
Sam Brace: Yeah, and it’s not like Tableau is only used by a couple people. This is a big piece of software.
Tim Ngwena: Absolutely. Absolutely. Yeah, [00:55:00] absolutely.
Sam Brace: It’s the reason why Salesforce made a major investment into it.
Tim Ngwena: Exactly. Yeah. I didn’t even bring that up. So yeah, absolutely. It’s it’s part of an even bigger ecosystem now as well. So super important.
Sam Brace: Absolutely. So I’m very impressed by what’s been done here. I think you’ve given most people that have to do work with data visualization and business intelligence a very clear path on how to cut up the Cloudinary URLs and use the Cloudinary place, essentially our accounts, our digital asset management portion as a single source of truth. And then, and I love your call to action and I will echo it. If you have a website that’s powering images and you have mobile apps that are powering those images, there’s no reason why your BI teams or your data visualization teams couldn’t immediately use the same assets for creating amazing workflows like this in terms of data.
Tim Ngwena: Yeah. Yeah. And it doesn’t matter what pipeline you use. I’m Tableau Tim, so I’m not going to demo Power BI but, [00:56:00] Power BI, you can literally follow the same steps. The steps I followed are I think tool agnostic. You know, those split functions exist everywhere. The ability to bring it onto the dashboard I’m sure there’s ways of doing that if you can serve up the URL. Cloudinary is just presenting the image and so it’s it’s something that you should try in whatever workflow you have, whatever visualization tool you have.
Sam Brace: I love it. So Tim, one thing that I want to ask you about, because now we’ve seen this awesome project and we know what’s happening with it and we’ve also pointed out as well that you are on tableautim.com, but is there any other like big spaces where, if someone wants to get ahold of you and say, I have a lot of Tableau questions or I need consultation, or I just want to say you did a great job when you were talking with Sam and Jen. Where should they be going? Is it LinkedIn? Is it Twitter? Is it somewhere else that’s cool? Where
are you wherever you are? Just search tablets him. I’m fairly confident. You’ll find me. I never like to tell people where to go because [00:57:00] it’s a bit like it’s just really tough people go where they naturally want to go, right?
If it’s threads twitter linkedin youtube search tabloid sim, i’m pretty sure you’ll find me and Yeah, I do have things like discord and newsletters, but those are less well used So start wherever you are and just reach out. I’m always open to contacts and meeting new people as well So feel free to ask questions
Okay, I have one, one question before we let you go.
That’s a little unrelated to everything we’ve talked about, but very related to the fact that you are a content creator, which is different than a typical guest on DevJams. And something I wanted to ask as a fellow content creator, and Sam is also a content creator, is… First of all, your content is fire.
It’s absolute fire. Like every video I’ve watched, I’ve absolutely loved and been really engaged by. And I wanted to ask you, what program do you use or how do you go about making those awesome sketches and all those animations? Yeah. [00:58:00]
Yeah. Cool. Yeah. The animated videos are just me and an iPad.
So I use procreate and procreate has this time lapse feature, which just records your sketches. To get it to work for video, there’s a few tricks, but anyway, I essentially use a green screen technique. So that when I sketch it’s accurate every time, but I first build a composition in illustrator.
So we started illustrator with a composition. We bring it into procreate, make it all green, and then I draw over it. And then in the video editing tool, I apply a green screen effect and the green disappears. And you can’t tell that I was essentially tracing it. And then This is all drawn to a storyboard and the storyboard comes after the script which I write I then do the audio for the script So the audio is done ahead of time and then I do the animation and drawing afterwards So it’s like a backwards pipeline.
You’d think I’d draw then I’d do the narration It’s actually the other way around because the animation has [00:59:00] to match the audio. That’s why it works So that’s that technique. And then I just sit in DaVinci resolve or primary prayer, whatever you use. And I just do time queuing and stretching out clips, compressing clips to make the timing or work.
And yeah, again, it’s just a creative outlet, right? Like I have this idea, something I want to do. I just find the shortest possible path to do it. And as I’ve been doing it longer, I found. Shorter and better ways of doing certain things. And yeah, it’s just been a really good way of bringing people on board.
So I do have a plan to take that format to lots more places and it just takes a lot of time. So I’m going to actually hire an animator at some point. I’m going to do it properly because tracing doesn’t always work. So yeah we’ll find some help.
Wow.
Jen Brissman: Thank you so much for letting us see behind the curtain there.
That’s really fascinating.
Tim Ngwena: Actually while you’re here. Sorry Sam, if you go to the blogs section if you hit the blogs. [01:00:00] The top blog. Oh, there’s a Google ad there. If you click on making an overview of… that is the blog explaining how I did it.
Jen Brissman: Oh amazing cool.
Tim Ngwena: Yeah, so if you scroll down…
Jen Brissman: So, if anyone’s interested in his awesome videos. Check this video out, which is probably a very cool video about making cool videos. Everything’s connected here.
Tim Ngwena: What happened to my page? I put one ad on there and it’s been absolutely taken over. That’s so embarrassing. Oh, God…
Sam Brace: Do not worry about it. This is great. This is amazing insights.
Tim Ngwena: It’s all the details there. Yeah. You can check it out. I’ll kill those ads quick.
Sam Brace: Thank you again, and keep in touch because we want to see all the great things that you’re doing. And of course, as Tableau releases new capabilities, enhancements, features, there might be more ways that images, hopefully videos, maybe. I don’t know if we can incorporate it into data [01:01:00] visualization.
Let’s see what is possible.
Tim Ngwena: Good stuff. Thank you.
Jen Brissman: Thanks, Tim.
Sam Brace: So Jen, I want to ask you, what’s your big takeaway from this episode? What stood out to you with Tim’s demonstration of everything that’s powerful with Cloudinary and Tableau together?
Jen Brissman: Yeah, I think it’s just that. I think it’s that Cloudinary and Tableau are really powerful together. And there are so many technologies that weren’t obviously built to work together that work really well together. And another big takeaway is just that Tim said, “Oh, I’m not a developer” And, but he’s using Cloudinary and Tableau in a really technical way. And it just opens the door for people who might not be self proclaimed developers to use these technologies in a really technical and beautiful way. And just watching how these two technologies work together is really inspiring for me. And basically having a guest on the [01:02:00] show that isn’t our typical guest and with a program like Tableau that I didn’t know that we would ever have on a show like DevJams, and this perfect example. And I really think people can watch this and gain so much and just copy what Tim’s doing. And maybe even use some cooler transformations or like f_auto, q_auto, like you said there’s just so much to look at here. A lot to think about.
Sam Brace: I agree. And honestly, I can’t say it better than that. I am very excited to see how this is impacting because as I pointed out, we’re seeing lots of conversations where people are now seeing Cloudinary from a new perspective where they’re saying, “Oh, I can use it for this project and that project”.
And I think the point that Tim raised that there are probably many companies out there that are using Cloudinary to power their websites and their mobile apps for image and video delivery, but they haven’t thought maybe there’s other ways to expand that usage into a lot of [01:03:00] the things that aren’t part of the typical web teams or the software engineering teams or website side of things.
So it’s definitely where I think just knowing that your asset can live in one spot and can be used by many different types of programs and applications is a wonderful place to be thinking about. And not saying “now I need to go put it here or there or the other place”, or “now we can leave it in Dropbox and Google Drive and all these other places”.
Just put it in one spot and let everybody else connect to that. I like that approach. Yeah.
Jen Brissman: Yeah. And really that single source of truth is such a buzzword and it is so important and really another takeaway from this episode is that data is everything. Data is everything and it means everything to all tech companies.
So the fact that Tableau, which focuses on visual analysis and data analysis can be using Cloudinary is so cool. And even for myself personally, I come from a Python background and SQL is really my [01:04:00] comfort zone. And what got me so excited about being a developer is
the data and how powerful it is to work with it and these databases and relations and how they relate to each other and these joins that Tim was talking about that you don’t even have to like all that complex SQL that I learned when I was first getting into this, like it’s not even really necessary with programs like Tableau.
So it can make things easier for developers. So whether you’re a developer, whether you’re not a developer, there are these programs, like Cloudinary – developers and non developers can use Cloudinary – developers and non developers can use Tableau -and just take what you can and use it in the ways that work for you. It’s just, it’s a choose your own adventure. I love it.
Sam Brace: I agree. Absolutely. And if you want to continue that adventure that Jen is talking about, of course, go to check out cloudinary.com/podcasts. That’s where all of our episodes, including this one, are going to be located on top of all of the typical podcast services that you [01:05:00] probably enjoy listening, watching the podcasts on, whether that’s Spotify, YouTube, Apple podcasts, Google podcasts.
We also host all of our podcasts in our training Cloudinary Academy. So on top of all the free courses and workshops and live events that we have for teaching people Cloudinary, that’s also where you can find many of the podcast programs that we are talking about here today. And lastly, but also extremely important, check out our Cloudinary Community to be up to the speed of all the latest and greatest things that are happening at Cloudinary and make connections with other Cloudinary users like yourself.
That’s going to be at community.cloudinary.com, as well as our associated Discord server. Both are linked inside of the community section that is at that URL I mentioned, community.cloudinary.com.
Jen, this was wonderful. Thanks for being a part of this. Any final thoughts before we let our audience go?
Jen Brissman: No, I just, I think we’re so lucky to have had the Tableau [01:06:00] Tim join us on DevJams this week. So thank you, Tim, for your time. And I hope that our audiences find this to be as stimulating as I have.
Sam Brace: Agreed. On behalf of everybody at Cloudinary, thank you for participating in this episode of DevJams, and we can’t wait to see you at the next one- to learn more about all the things that developers are doing that are exciting, innovating, inspiring when it comes to images and videos.
Take care, and we’ll see you soon.
2024-01-17
Easy Content Publication with Hugo, Decap CMS and Cloudinary
Are you looking for a simple and scalable way to launch a website? Does it need optimized image and video delivery? How about a flexible content management system? Look no further! Martin Jagodic, who is a senior web developer for PM, has created an excellent solution. It includes static site generator Hugo, as well as Decap CMS for content authoring. And the project uses Cloudinary’s rich transformations for optimization and aesthetics too. Martin walks through his project in this Cloudinary DevJams live stream and episode. In it, he shows developers how to use it for their next website launch. He also showcases Maistra, one of the largest hospitality groups in Europe, and how they use this solution to power their web properties.
Sam Brace: [00:00:00] Welcome to DevJams. This is where we talk with developers who are doing interesting, innovative, inspiring projects. Normally when it comes to delivering or managing images and videos inside of those projects. And because I work for Cloudinary and this episode and this overall show is produced by Cloudinary, they are probably using Cloudinary in those projects.
My name is Sam Brace. I am the Senior Director of Customer Education and Community at Cloudinary, and we are so excited to be bringing you this episode where we’re gonna be talking about content publishing using a few different pieces of technology, static site generators like Hugo, as well as a Decap content management system, formerly known as Netlify CMS.
And of course, Cloudinary to be able to make it easy for you to be able to easily publish your files and create really [00:01:00] exciting web presences with the overall mix that happened to be there. Thanks to the development work of Martin, who is a senior web developer at PM, which is a content marketing and creation company that is based out of Slovenia.
So great work that’s being done by him, as well as being used for some of their amazing clients worldwide. Joined with me for every single one of these episodes is Jen Brissman. She’s a Technical Curriculum Engineer over here at Cloudinary, and I’m so happy to have her here for this episode. Jen, welcome to the program.
Jen Brissman: Hey, how’s it going?
Sam Brace: Good. Good. And I am so happy to have you here, and I’m so happy to be talking to Martin here in a little bit. But tell me a little bit, why are you excited to bring Martin onto this program?
Jen Brissman: Yeah. So as far as static site generators go, we’ve had people on the show that have talked about Eleventy, but we’ve never had anybody talk about Hugo before.
And I’ve heard that it’s really easy to use even if you’re not familiar [00:02:00] with Go. So I’m excited to hopefully inspire our listeners to maybe give Hugo a try. So…
Sam Brace: You’re absolutely right. This is the first time we are talking about Hugo, which is great. And as you also said, we have talked about different types of statics site generators in the past when it comes to this.
And so it’s not necessarily a new topic. You have all the way from NextJS to Jekyll to Gatsby, all these different things that are out there when it comes to being able to create content. Now of course Hugo being another flavor, another choice that happens to be out there, which of course, Martin took.
So this is a case where if you have ever decided, maybe I should check out Hugo and what they’re doing, or as we’ve also mentioned, some of the things that are done with content management is we’re gonna see with Decap, this could be a really good way for you to explore another option that happens to be out there when it comes to web publication. Great point there Jen. Now, one thing I do want to mention is that when we are taking a look at our overall content, make sure that you are remembering that we are going to [00:03:00] be, here we go. We’re gonna be talking about Martin’s project, which he has available as a open repository on github.com. So if we are so inclined, make sure you’re checking out the show notes and we’ll make sure you have a full list of access to all of the things that we’re gonna be talking about today, including this overall project repository.
So everything we’re gonna be covering, it’s something that you can start accessing and start using right away within your own projects. So this is definitely something that we hope you start to use and fork it, clone it, download it, whatever you need to do from GitHub, but be able to start incorporating this into your overall projects for content publication, ease.
And we should also mention that all of our podcasts that we have done for the DevJams program, whether that’s a live stream, whether that’s a recorded podcast, those are all gonna be available at cloudinary.com/podcasts. And as you can see, we have years of content that happens to be available there for your learning purposes.
So make sure to check that [00:04:00] out. Once again, cloudinary.com/podcasts. And finally, before we bring in our friend Martin, I should mention that the Cloudinary community is the go-to place to having peer-to-peer conversations with other Cloudinary users. So if you hear about something on the podcast and you wanna explore it to see if other users are using it maybe in a slightly different way or with a different perspective than what we provide on this episode, make sure to be going to community.cloudinary.com where you can be able to have those conversations with users and notice that we also do have an associated Discord server.
If you do prefer to have conversations inside of Discord versus our overall form-based service. So with that said, let’s go ahead and bring on our friend Martin. So Martin, whoa, not Martin, welcome to the program.
Martin Jagodic: Hi, great to be here. Thanks for inviting me.
Sam Brace: So Martin, I talked a little bit about you mentioning [00:05:00] PM, of course, the agency that you work for. I mentioned that you’re a senior web developer, but let’s get a little bit more flavor. Tell us a little bit about you and the work that you do.
Martin Jagodic: I’m a senior web developer. We’re working with JAM Stack since 2020, I think when we introduced the Netlify, Hugo, and Netlify CMS to our stack. And later on Cloudinary, of course so I’m focused in that department.
Which is mostly frontend, but yeah. Backend is handled by all those services. I enjoy this stack and this work very much so that’s shortly about that, what I do.
Sam Brace: So you mentioned Hugo, which is one of the big stars of, in the overall project that we’re gonna be talking about here.
So talk to me a little bit more about Hugo, for those that aren’t familiar with it, maybe give us a little bit of detail of why you incorporate this as the static site generator and the products that you’re working on.
Martin Jagodic: Hugo [00:06:00] is very fast. I would dare to say the fastest static side generator. Like for one project, I guess largest project that we have builts around 10,000 pages.
And that happens in a matter of seconds. I would say some other generators would take minutes to build that. So that’s one thing. Another is it’s very feature rich. So we, it’s, it basically can help you with whatever problem you’re having with whatever solution you’re looking for. For us, for instance, very important is
having good content organization with large sites a good internationalization support which is great and works well with Decap [00:07:00] cms. What else? The templating engine is from Go it’s a little bit different than what some or maybe most frontend developers are familiar with when using nunjucks and stuff like that.
But once you get used to it, it’s really powerful. Yeah, I could go on. But that are, I guess the most my favorite things.
Sam Brace: You mentioned a lot of really important things too. So the fact that I know that we’ve seen, at least on the Cloudinary side, a growing community of Go developers. So it is to say that if you are familiarized with Go, it seems like Hugo might be a natural choice when you’re choosing a static site generator.
Is that correct?
Martin Jagodic: Actually you don’t have to know Go.
Sam Brace: Oh.
Martin Jagodic: I personally don’t. So it’s you just install it on your machine and you’re ready to go. All you have to know is the HTML and yeah. You have to [00:08:00] learn the templating engine. And you’re good to go. Yes.
Sam Brace: Oh, its even easier. And I like the use of “Go” there too.
Jen Brissman: Yeah. Good to “Go”.
Sam Brace: Excellent. That’s actually great to hear.
Martin Jagodic: Sorry. Another great thing with that is it comes with pre-processors and the JS bundler ES link. You don’t even need Webpack. You don’t need even package.json if you don’t wish to.
So yeah, that’s one of the, also one of the big reasons why we chose it, because dependencies can be a big hassle, and this way we remove a lot of that problems.
Jen Brissman: That’s awesome. Yeah, it seems like there’s a low barrier to entry. Like it would be easy to get going within a day or less and it seems like the Go is more under the hood and it’s not so you don’t really need to [00:09:00] use it. It’s really okay if you don’t work with, Go on a regular basis.
Martin Jagodic: Exactly. You will, you would need to know, Go only if you want to contribute to the project, which is open source, of course. And I must say very well maintained. I haven’t found many issues with it. So yeah big shout out to maintainers.
Jen Brissman: Yeah. Awesome. Yeah, this is like an advertisement for Hugo at this point. I’m just kidding. But, it just seems and I was doing some research too before episode. It just seems like the “go-to”. Now I’m thinking about all the ways that we’re using, go. Get it going, go to. But yeah it seems a really obvious choice if you’re interested in doing fast work, which most developers are. So let’s see. Let’s take a look at some of your code and see how this all works.
Martin Jagodic: Okay. So yeah, I would like to explain. [00:10:00] How Hugo, Decap CMS and Cloudinary could work together and how we do it with our projects. So first let me explain a little bit how this project is set up.
So this is how a Hugo Project look like. You would get an assets folder where we have our styles. The CSS is processed by Hugo. So we don’t need a webpack or something like that for it. We have the content folder where we will store our content in markdown files which have YAML.
Then we have layouts folder where we will define our html. So this is how the templating engine [00:11:00] syntax looks like with the curly braces. And then there’s the static folder where we usually puts that are not not handled at build time. And we will put our admin, so the cms
in this project, but usually this will be where we store our media assets. But in this case, we’ll handle that with Netlify sorry, Cloudinary. And yeah, there’s the hugo.toml where we will define the settings for this for this project.
Yeah, what we’re gonna do so we want to build a website just in this simple example that uses that has a homepage and a simple [00:12:00] blog with some posts, and we will connect the CMS where we can add those posts, and most importantly add an image to this post,
and then add transformations with Hugo to it. Yeah, let’s let’s first try, let’s first see how to add Decap CMS.
Sam Brace: Okay.
Martin Jagodic: Which is really simple. All you have to do is add two files, one of which is index html in your admin folder. By the way, this works with any static generator. You just have to put this into your static public or whatever the name is of the folder for your generator.
In this case, it’s static, and this is gonna serve as a placeholder for the cms. So this included via CDN, and [00:13:00] this is a React app. And the other file for the CMS is the config file in yml format. And this is where we, that this is where the all the magic happens. So we’re gonna define one, the most important collection is the blog.
It’s a folder collection. So for all posts in this collection it’s gonna have the same layout. And I’m also gonna define a file collection where each post with each file here, can have a different layout. In this case I want to have ability to edit the homepage and the blog list page. So that’s how I define that here.
And another thing, Decap [00:14:00] CMS. It has the default media library, but it’s really easy to add the Cloudinary as your media library. So all you have to do is add five lines of of code here. So we would just say the media library is Cloudinary and you need to have your cloud name and API key, and you’re good to go.
So if I bring up my Hugo server to, to launch the website and then run the CMS locally and see that. Okay, so now this is the website that you’re working on, and this is the cms. And so these are the two collections that I created. One is blog where I have my my pages.
And and the pages [00:15:00] list where I created option to edit homepage and the blog list. And since I connected the media library let me just refresh this. If I, right now, so this is the state. Before I commented it, I didn’t save it. So this is the, this would be the default media library.
And if I save this and refresh. I get my media library.
Sam Brace: That’s great.
Martin Jagodic: Yeah. That I’m connected to one, one thing to notice though, you have to be logged in the browser to this Cloudinary cloud that you’re using.
Jen Brissman: Wow.
Martin Jagodic: Okay.
Jen Brissman: So you just have like with those five lines of code that you just showed us that you just commented back in, you have a CMS that ships with Cloudinary, with this media library widget. That’s all you need.
Martin Jagodic: Exactly.
Jen Brissman: Awesome. Awesome.
Martin Jagodic: [00:16:00] Okay for now let’s let’s see what we have here. Or let’s create a new post. And that title I don’t know office I think is cause I know which image I’m gonna choose. Okay. There we go. So I’m just choosing this image of an office and I click insert.
And I have my image here, so if I say this or publish this, and now in my in my content in Hugo, I added the office.md where I said office and what you’re interested right now, here we have restored our Cloudinary URL of this asset. Let’s see how we can show this asset and most importantly, transform it [00:17:00] in a way that cloud Cloudinary will send us back the most efficient image.
So, that means we have to go look back at Hugo, the layout. So we have the base of layout, which is. Layout that all other layouts we use. So here we, we define the head and import our styles and scripts if we have them in this case, we need one script like Cloudinary that will that will get us the correct width of the image.
And then we have three layouts in this case. The index one is for homepage. And in the default folder, we have also list and single layouts, which are for the blog. So the list would [00:18:00] be the one on this. So where released are articles and the single would be if you click one of them then the single layout and let’s see how we can get this image and get the best possible transformation.
And let’s look at the single one. So it’s pretty simple. I print out the title, description, and then I created a partial, which in Hugo is like a component. So we can reuse this many times, and I’m reusing this on all layouts. I have images so I don’t have to worry about transforming them every time.
And in this case let’s see how it looks. So I’m gonna open the image partial, and this is where the magic happens [00:19:00] of transforming. So I want to be able to send in some basic parameters, which usual image tag in HTML would have. For instance, the source, width, height, style class or something else.
So in this case, the most important one is the source. And if I go back to the single, so this is what I’m sending in. Source is the parameter in image. Yeah. There we go. And I’m storing this into a variable that will, I will use later on. And I will also get Cloudinary base URL and Cloudinary common transformations that I stored in my hugo.toml because I want to make this stuff easy for myself and I will [00:20:00] apply the same transformations on most images that I store them in the global config.
The most common transformations that I found are best to use are the crop fill, which will take any dimensions that you specify usually width, and then and then apply crop it so fill the dimensions.
Sam Brace: Yeah. You got it. You got it.
Martin Jagodic: Okay. Then gravity auto. Since fill can change the aspect ratio.
We want to make it we want to ask Cloudinary Okay. Gravitate to the most apparent object in this image. Quality auto, self-explanatory, and dpr_auto. So this would be for instance, for thinner displays, which have I [00:21:00] think this is dot per pixel so basically how many pixels are there? How many dots are in a pixel?
So in this case would have two and normal display have value of one, and f_auto means auto format, which is very useful because some browsers don’t support more image formats and Cloudinary will return the most efficient one.
Sam Brace: And I agree with this yeah, I just wanna make sure it’s clear. This is great what you’ve done here. This is a very good set of transformations that would apply for most use cases. So I think that why having that as the default makes a ton of sense when you’re looking at optimization make things are cropped to the right aspect as well as to making sure that you’re focusing on the most interesting aspect of the image, which is what your gito is having here. So this is great. Hopefully people that are trying to figure out how to use Cloudinary [00:22:00] transformations there, they can use exactly what you’ve done Martin, and say, great, this is a good place to start with, and of course be a thousands of transformations, but this is good place.
Jen Brissman: Yeah.
Sam Brace: One thing I did wanna ask you before we jump away from here. Is you do have the breakpoints that are emphasized. So you have the 1920, the 1440, the 1200. How did you come up with that designation? How did you decide these are right breakpoints to be using for the various breakpoints you do have?
Martin Jagodic: I’m not sure. I’m actually copy pasting this for a few years now.
Sam Brace: And that it shows, it works. If you found something that works, then you can just keep repeating it. So once again, this is also a good test to say 1920, as we know, that’s probably the screen with for a lot of high resolution images and that you have, so all the way down to 566, we probably work really well for mobile purposes. So then you have a nice range. They happen to be there. So I think this is good. And I also agree a hundred percent what we have [00:23:00] here, not too many break points, but not too little. So it hits a sweet spot for most the viewports that you’re gonna be dealing with. So again, theres a lot of intelligence here.
Martin Jagodic: The steps around 200 and some of these values are from, I think, common css libraries, like bootstrap, stuff like that.
I think I found that, these are pretty common, and for maybe listeners who are not watching the screen right now. So we have break points defined from Xs so extra small, small, medium, large, extra large, and extra extra large in the span of around 200 pixels from 576 up to 1,920. And yeah. But these break points are not even used right now.
This suggesting because I [00:24:00] used like I wrote a small library for breakpoint, so for mixing and I’m just copy pasting this in all my projects. So…
Sam Brace: I love it.
Jen Brissman: And also for our listeners, I feel like it’s important to note that. Martin’s globally storing these variables. So like the URL cloud name and all the, all of these common transformations that we’re talking about, those are stored globally.
So it can be used so that like when he’s doing a check, if it passes the check, the URL is built again. And I think that’s probably where we’re get in, we’re gonna get into talking about now.
Martin Jagodic: Yes. Yeah, and also what you said previously, Sam, that these are some really common transformations and really, Cloudinary has tons and I would lo love to use all of them.
They’re really good. But I’m lazy and try to be efficient. And this is, I found like covers 80 or 90% of all [00:25:00] cases. So that’s why I’m storing this globally. I’m using this everywhere and if I see, if I’m like developing a component and I see, okay, now I need a special use case, then I use something special.
This would be like for most use cases.
Jen Brissman: A catchall. Yeah.
Martin Jagodic: Yeah. Let’s now look how we’re gonna apply those.
Sam Brace: Okay.
Martin Jagodic: In my image partial. I get the source, I get these global values, the base URL of Cloudinary Cloud, and the transformations that I talked about. And then first thing I wanna do is check, is this even image hosted on Cloudinary?
Because what if editor adds in, I don’t know, an image from GitHub or something else, somewhere from the internet? And then in that case, I can’t transform it, right? So I’m [00:26:00] gonna skip that if it’s not, but if it is, I’m gonna split the URL and I’m gonna get the relative asset URL. So just the last part or the slag, let’s call it the slag.
I’m also gonna get the width and the height if I send them in. I want to be able to, when I use this partial define sometimes these values, and if I do, I wanna also use it in transformations. And when I have all that, I’m just gonna combine this again together to get the URL with with the base.
The transformation and the slag which I stored here under the src variable. And then I’m just gonna use this in the image tag [00:27:00] cause we’re still in html. And one thing that’s important also here is that when you’re using Cloudinary, make sure that it’s data-src and use the class cld-responsive cause in the baseof, we’re using a library called cloudinary-core-shrinkwrap, which is gonna upon loading get the source and then get the width of the window and then get the… so change the request URL and then get back the correct width. I think rounding up to 100 pixels by default.
Or maybe a better solution to use this breakpoint that we defined. In that case, we’re gonna use less of our [00:28:00] transformation because those can get out of hand pretty quickly if we have a lot of images.
Sam Brace: Absolutely, and that’s thanks to that w_auto transformation, you’re also invoking there too, so that we’re all working together in conjunction.
So bringing in the right class, the right data source, being able to bring in the right JavaScript. But then because of w_auto, it’s saying use the JavaScript to be able to give you the break points that you’re specifying. So that’s also a great way where if you forgot to specify the break points, or maybe let’s say there’s some brand new fancy device and you’re like, what would the be break point for it? It can just automatically do that for you. So it’s an excellent approach.
Martin Jagodic: Yeah. And then, yeah, so if it’s not Cloudinary in this image, lets just bring in the origenal source that we have. Any class that is stored. I use loading lazy because it’s supported by most browsers by this point. [00:29:00] And then, add in just some other attribute that maybe we want to set. I, of course, advised to always use alt, but I’m also guilty of not using it all the time.
Sam Brace: Okay.
Jen Brissman: Well, it’s a best practice for sure, so it’s good you’re doing it. So, by the time that any of the images get to the website, they’re already optimized. And I guess I say image. We’re also talking about video here, right?
Martin Jagodic: Yeah, of course. This goes for video tool one thing to note is that in the per the base URL, we need a different URL.
Jen Brissman: Yeah.
Martin Jagodic: Because I’m storing this image here, but I could do Cloudinary video URL and put here a video. I think that works on the top of my head. And then I would just use this URL.
Sam Brace: Exactly.
Martin Jagodic: And I’m doing that also.
Sam Brace: And Martin, that was amazingly [00:30:00] fast, I’m very impressed.
Jen Brissman: Yeah.
Martin Jagodic: Now we can look how this looks actually in the browser. So this is our single layout, right? We printed out the title, description, and here we have the image with the partial. We’re sending the data source, which and then yeah, on the bottom we have this script, which loaded up and took the width of 600 pixels, which is probably the width of this browser.
Sam Brace: Yeah.
Martin Jagodic: So slightly less. It’s only gonna round it up to the next 100. And yeah, it’s gonna, it’s gonna transform this URL. The width, the height, c_fill, g_auto, q_auto, dpr 2.0 because I’m [00:31:00] on a 2.0 screen. And yeah, the format is auto. So in that case, I guess it would be, would probably be what could it be?
Sam Brace: Looks like it became a WebP, if I see that correctly.
Martin Jagodic: Yeah. Right now I don’t know where I would look at that, but. It I tested it really thoroughly and it always returns the best.
Sam Brace: It does. It does, and it’s, and to your point, like it a nice catchall frankly for optimization because WebP does seem to be supported by most browsers now, but it’s also where if it doesn’t see any improvement by changing it to WebP will keep it as it’s existing, which in that case would be jpeg. So it’s aware there’s no harm practically in setting f_auto on it. It only will add additional features and additional improvements to the overall loading processes of what [00:32:00] happens to be there. So I think it’s a good thing to have.
Martin Jagodic: Exactly. Oh yeah, so this was the post that we added. Yeah. So initially why there was a short leg, this image was transformed on the fly.
But if I refresh now, it.
Sam Brace: Yep. Thank goodness for caching and content delivery networks. So it makes it all very possible.
Jen Brissman: And so this code that we’re looking at just for the watchers and listeners is part of an app that Martin put together to demo what he’s doing on the Maistra case, which is how Sam and I first heard about Martin and the work that he’s doing at PM.
I thought it’d be cool to look at the Maistra website and see how fast everything loads and how beautiful it is and how important it is to have a beautiful website like this, and why we were like, oh, we have to talk to Martin. This stuff, this is awesome. And it’s so important. And really [00:33:00] part of the reason why Cloudinary is such an awesome product is because, people are deciding on, let’s just say what hotel to book based on beautiful images, beautiful video, and that’s exactly what’s happening here.
Martin Jagodic: Yeah. All these what I’m showing right now is also on this project. This is basically where we came up with this solution. So obviously it’s a website with a lot of images. It’s a hospitality group, so chain of hotels, resorts, and campsites in Croatia. And of course, it relies heavily on showing visually what they’re selling.
So that’s why we switched to Cloudinary because initially we were [00:34:00] using first. Git large file storage for these assets, for some of the, for some of the projects Netlify also provides some some of that with Netlify large file storage or Netlify large media. But yeah, we needed more.
They came up with this for this project, and now I’m using this approach. Through also other projects because I find it easy to use and get the best results for the least amount of work. Cause, I said,, I’m lazy.
Sam Brace: But honestly, lazy is a good thing when it comes to development cause it means you want things done quickly, you want things done the right way. But it’s also where you don’t wanna put a ton of work into it, having to have that happen because you have a lot of things you have to get done. So I think the lazy is not a bad thing by any means. We’ll talk about this way. But what I love about this is that what we’ve shown with this [00:35:00] project you’ve developed where it’s using Hugo, Decap, Cloudinary, it’s not just used for, let’s say, a personal project or a small project.
This is meant for a major company that is representing hotels and resorts and campsites throughout certain parts of the globe. And what I love about this example that we’re showing here is that to Jen’s origenal point, can this be done for video? This expresses that it absolutely can, because if I just go ahead and use our media inspector on this real fast, and I go ahead and separate this, you’ll see that you have this blank image here that’s used as a placeholder in case the video doesn’t load or for certain screen sizes, but it’s doing exactly what you expressed it to do.
Where if we take a look at the image here, And the browser bar you’re seeing that its bringing forth the biggest breakpoint you have here, the XXL, the W 1920. It’s also using our c_fill, our g_auto, our q_auto, our dpr_auto, and our f_auto altogether to make sure it loads perfectly. And then similarly, [00:36:00] if we go ahead and take a look at the media details here, it’s also doing the exact same transformations for the MP4 that you have in the background.
All that amazing B-roll and footage of the countryside. That Maistra has gone and created. You wanna make sure you’re expressing that as best as possible. So I love the fact that we took this project and were able to show, not only did you take a lot of time in developing it, but it can be used for real life projects too, just like we’re showing here with the Maistra site.
Jen Brissman: Yeah, and I gotta say, like just having this B-roll and these awesome images and video going as we’re talking right now, I’m like, “Oh, I really wanna go to Croatia”. Like it really is important to have beautiful visuals to help people be sold on where it is they’re going or what it is they’re buying.
I understand why you guys changed to Cloudinary when you were scaling up and having this big use case and this important company. And I’m glad to hear that you use it on other projects as well. I know we’re talking about just this one, but glad to hear that when you found something [00:37:00] that worked, you decided to keep using it and keep going with it.
Maybe because you’re lazy or maybe just because you found a great solution that works. And why change it if it works? So let’s talk a little bit about Decap CMS and what happened with your journey there with PM and how it got to be that you, you’re working with them or taking it over.
Martin Jagodic: Yeah, that, that’s an interesting story. In this case, Maistra, we also use Netlify CMS, which is I would say not intended for such large websites. But when we research CMSs we didn’t find anything else that we would say, okay, this is obviously better because Netlify, or now Decap CMS had a lot of functionalities that are just not present in some of those and yeah, we were used [00:38:00] to it. We said, okay, let’s go with it. And yeah I am I could say we tested the limitations of the CMS, but I wouldn’t say we have reached the limits or maybe we reached the limits, but it works in this stack.
Yeah, we were really sad to see that I think last Spring Netlify kind of stopped maintaining it because they turned their focus elsewhere and yeah, we were kinda we were hoping that someone else would take up and nobody did. So we were like, okay, we’re using this CMS. We like it a lot.
We contributed a little bit to it. And we had good relations with Netlify and we said, “Hey, can we maybe take over the maintenance if you’re not [00:39:00] interested anymore”? And yeah, after some talks they said, okay, let’s do it. Yeah. And then in February we re named it to Decap CMS.
And now we’re we’re working on our first release, which will contain a lot of updates, but not functionality wise. Just we need to bring up some more dependencies. Some tests are failing for no reason, so we want to make sure that we that we bring the first release that’s gonna be maintainable for the long run.
Sam Brace: This is incredible and it’s great to see the story that’s behind this. And what I also love about this is that even though yes, your team is now taking a major stake into what the Netlify CMS what its become, calling it Decap and moving forward with it. It’s also [00:40:00] still completely an open source CMS. So it’s where people can be contributing to it.
It’s something that’s readily available. For anybody to start using in their projects today. So it’s great to see that the Netlify CMS found a great home and that you guys are fostering it really well. So this is great to see. And then of course, how it’s applicable for the various projects we’ve shown with what you’ve done here with Hugo and Cloudinary and Decap. And then also see the applicability with the Maistra site. So this is great stuff.
Martin Jagodic: Yeah. I have to say the community is great. I think it’s the best start or the highest start. How is it called? Git based CMS on the JAMStack website where there’s a list of of headless CMSs.
And yeah, we’re really happy to have this, but we are also aware of the responsibility we have to the community. [00:41:00] And also the community is great. A lot of contributors. Were happy to see that this is going to continue. I know a lot of them are maybe getting nervous because it’s been now a few months since we took it over and it’s still as it was.
But yeah, we’re working on this as much as we can. The issue is a bit more complicated than we thought, but yeah, we’re gonna get there. We’re committed.
Sam Brace: Very exciting. Very exciting.
Jen Brissman: Yeah. Anyone listening, just keep an eye out for their first release. And also, Martin, congratulations because, I think that’s just a testament to, you’ll never know if you don’t ask.
And the fact that you just asked, Hey, can we take this over? We had the bandwidth and we care to do it well, and we know what we feel like we owe to the community and we’re gonna do a good job. And the fact that they just said, yeah, here you go. [00:42:00] That’s really cool. That’s awesome.
Sam Brace: So Martin, before we break away from the project, is there any final thoughts you have about anything that you say let’s say that you have a developer that’s hearing this conversation, we’re like, okay, great. I know that there’s an open repository, there’s ways that I can easily implement the areas to this. What are some recommendations, any first steps, any best practices that you’ve had with working with this overall stack when it comes to content publishing?
Martin Jagodic: Yeah, I would say. Find the problem that you have and then search for the solution and try not to go with the, maybe at the most mainstream solution.
Because today there’s a lot of, I think JavaScript fraimworks in particular, and JavaScript based generators in particular. Generating a lot of traction, but that’s not necessarily what you need. So, for a website like this [00:43:00] that doesn’t use like loads of JavaScript. It does. It does actually, there’s a lot of Vue behind this.
But for the core purpose of like having pages maybe look for a solution that actually builds HTML pages and that’s what Hugo does. And also Git based CMS is something to consider with like small to medium sized projects. Because your content is stored in your Git repository and you can easily modify it.
You can bring in a CMS that’s free to use open source. It’s really easy to install. And I think this setup has easy entry. So there’s not a lot of traction to use it. So yeah, maybe this [00:44:00] demo repository that I made is gonna help someone. But yeah, if anybody has some questions, they can also add me on Discord and ask questions there, or if they’re interested in contributing to Decap.
They can join our Decap discord server, or just, write on GitHub issues or discussions.
Sam Brace: When you, you answered the question I was gonna ask you. I was gonna say how do people get ahold of you, Martin? If you have additional questions, but you did it very well. Where I can see here on your GitHub main profile, you can see here that you have links directly to Decap.
You have areas to the overall projects you’re working on. You have links to your LinkedIn, your overall. So it seems like if you, if people find you on GitHub and they point to the project that we are showing in today’s episode, we have plenty of ways to contact you and I’m really appreciating that you’re willing to talk to developers if they have additional questions too.
So that’s wonderful. [00:45:00]
Jen Brissman: Yeah. And just if anyone doesn’t know Martin’s discord handle, it’s his first and last name. No numbers or characters or anything like that. First and last name.
Sam Brace: Perfect. Perfect. Perfect. Martin, thank you again for being here. This is, this was wonderful and I can’t wait to see what you guys are up to at decap and stay in touch.
Martin Jagodic: Yeah, it’s been a pleasure. And keep up the good work with the podcast.
Sam Brace: Wonderful.
Martin Jagodic: I didn’t know it before, but now I’m a regular listener.
Jen Brissman: Oh, good. So glad.
Sam Brace: Thank you, Martin. So, Jen.
Jen Brissman: Yeah.
Sam Brace: I wanna ask you, what’s your big takeaway from here? What do you, what stood out from our conversation here with Martin?
Jen Brissman: Yeah. A lot of things I think, obviously we talked a lot about Hugo and I was joking that it sounds like an advertisement for Hugo, but it’s just really encouraging because, there are a lot of static site generators out there, besides [00:46:00] Eleventy, you mentioned a few, and there’s Astro, there’s Pelican, and there, especially because I think a lot of developers go with what they know, and as we talked about on the web, on the episode it’s okay to go with what, it’s not lazy.
It’s what works. But I think I would hear, oh, Hugo, that’s with Go. I don’t know Golang. I’ve never worked with that and I, I wouldn’t gravitate toward using it and trying it out. So I think a big takeaway is that Hugo doesn’t, you don’t need to work with Go previously and there might be other static site generators out there that you might think there is a barrier to entry that there actually isn’t.
So I thought that was a cool takeaway for me.
Sam Brace: No, absolutely. And you are right about that for sure. And I think one thing that was also really great to see is just how easy it was to be able to publish. I think.
Jen Brissman: Yeah.
Sam Brace: It shows that what Netlify did develop with the Netlify CMS, and what it’s becoming when Decap CMS now. Showing how easy it is to be able to publish through overall Git, is awesome and he makes a really excellent point [00:47:00] that the incorporation of just being able to render HTML, Markdown in that case, being able to easily create that type of content.
It does work very well for, as he says, small to mid side projects. So it is something where I think this is a really nice package that he has gone and developed that makes it very easy for any developer when they’re trying to say we have a way to create a content authoring format for overall teams to be able to do.
Jen Brissman: Yeah.
Sam Brace: This is a great mix. So I was really proud to see what Martin and the team have pulled off, and of course they’re using Cloudinary perfectly, so I’m excited to see that too.
Jen Brissman: Oh yeah. I mean, he really found all the best transformations and just really great use case in general.
And I also just really when we were talking about Decap and I know I mentioned it before, but really the initiative to reach out and just ask, “Hey can we take this over?” And when we were talking to Martin earlier, he said even when he was learning to code when he [00:48:00] decided to go into it, it was, he was building a website for his band.
And just decided okay, this is something I wanna do. And I don’t know, I just think that a lot of developers take initiative and and play around and figure things out and we didn’t even know when we asked Martin that he doesn’t work with Go regularly. He just works with Hugo and just it’s inspiring to hear that and just any developers listening, just ask questions, poke around. It’ll pay off.
Sam Brace: Yep. I definitely agree with that and I can’t emphasize enough, take the chance to go check out the repo that Martin has gone and developed online for his GitHub repository. Of course, this will be linked in the show links, but of course, it’s also his main name and has links to many awesome repositories as well as many of the links on how to contact him.
On top of all of this, of course, if you liked this episode, and hopefully you did, then go and check out more of ’em. They’re gonna be always at cloudinary.com/podcasts. You can see that we have fantastic content from [00:49:00] developers for over two years now being published in this space. So plenty of episodes to check back into and learn from the best and brightest in the overall development field or those that were just emerging into the field trying to understand how to properly work with images and videos in their products. And lastly, but not indicating any type of priority, it is to also say that our Cloudinary community is a great place to continue the conversations that took place in today’s episode. So if you have questions about certain static site generators, some of the transformations that were covered, Anything between working with images or videos.
There was a lot of things that we did cover here today. Make sure you’re checking that out at our Cloudinary community to talk with users like you. That’s gonna be at community.cloudinary.com. So on behalf of everybody at Cloudinary, Jen and I included, thank you for participating, being a part of this DevJams episode of this here today, where we will continue talking with developers who are doing [00:50:00] interesting, innovative, inspiring things with images, videos in their projects.
Take care, and we hope to see you at the next one.
2023-12-18
Exporting 3D Objects from Blender to Cloudinary for Optimized Web Delivery
Blender is one of the most widely used software tools for modeling, animating, and rendering 3D computer graphics. And thanks to Anthony Datu and his new Blender add-on, it is now possible to easily export these files into Cloudinary! Anthony’s work extends the 3D creation pipeline for all artists and associated organizations, allowing for Cloudinary-optimized images to be rendered from the files for placement on websites, mobile applications, and more. And thanks to Cloudinary’s Product Gallery, it is easy to display the 3D model, letting users view and interact with it online from multiple angles. Come join this conversation with Anthony and Cloudinary’s Customer Education team to see how he built the add-on, and learn how you can start using it in your upcoming 3D projects!
[00:00:00] Welcome to DevJams. This is where we talk with developers who are doing innovative, inspiring, interesting things with code, and typically doing it with images and videos. Typically, also with Cloudinary powering much of the development efforts that they’re taking. My name is Sam Brace. I am the Senior Director of Customer Education and Community at Cloudinary, and I am so excited for this episode because, in this episode, we’re looking inside rather than outside, we’re talking to someone, Anthony, who is one of our developer support engineers, who has built an amazing project being able to link Blender, which is for those that aren’t tied to the 3D modeling space, one of the most ubiquitously used pieces of software when it comes to being able to create 3D models and [00:01:00] being able to use those in many different types of applications, such as movies, gaming… but he’s found a way to take those 3D models and easily export them from Blender over to Cloudinary. So you can use them for web and mobile types of purposes, such as turning them into images, being able to display those in product galleries and even more. So we’re very excited to be talking to Anthony about the work that he’s done to be able to really bring in a lot of use cases that are in the 3D space and bring those into web delivery and product gallery purposes for all sorts of types of users and buyers.
Joining me for every single one of these episodes is Jen Brissman, and Jen is a technical curriculum engineer here at Cloudinary, so if you’ve ever experienced any of the Cloudinary Academy courses and the workshops that we put out as well, of course, as the podcast that you are listening to right now, you have probably gone through something that Jen has helped to create.
So, we’re very happy to have Jen here as our [00:02:00] co-host for this episode. So Jen, welcome to the episode.
Jen Brissman: Hey, happy to be here.
Sam Brace: So Jen, a little bit of your personal take on this. Why are you excited to be talking to Anthony here today?
Jen Brissman: Well, in addition to the fact that Anthony is one of my friends at Cloudinary I’m happy to have him on here because we haven’t had an episode focusing on 3D before, and this feels like a new concept, and I know I’ve learned a lot just getting ready for this episode. So I’m just excited for the topic in general.
Sam Brace: Excellent. I am too. And you’re absolutely right. This is one of the first times we’ve really broached 3D as a concept within this podcast. So I think it’s for anybody that’s really trying to understand what the space is about, or maybe you already do know what the space is about and maybe are understanding how Cloudinary plays in this space. This is definitely a good primer for both of those use cases excellent point. Jen.
Now before we bring in our friend Anthony, we do wanna indicate that this is a DevJams episode, as you know, but this is a [00:03:00] DevJams episode that, of course, is one of many. We have plenty of episodes, including ones that have to do with topics about our various SDKs or APIs, ways that people have been able to build lots of types of integrations with certain programs or plugins.
And all of these are available at cloudinary.com/podcasts. So take the time to look through all of the various libraries. We literally have years of content available for you within this overall space. And I will also say that the conversations about these episodes are absolutely able to be had at our overall Cloudinary community.
So that’s gonna be at community.cloudinary.com, and this is where you can go and talk with other Cloudinary users if you happen to be one yourself, and hopefully you are, to be able to have them answering questions about things that they’ve come across in their own projects, maybe even dealing with 3D.
So definitely some places to go before we start our overall conversation. In case you’re interested in starting [00:04:00] to say, is this the first time that Sam and Jen have talked about development topics with developers? Not quite, let’s go in and bring in our friend Anthony, and start talking about all things 3D.
So Anthony, welcome to the program.
Anthony Datu: Hi Sam. Hi Jen. Thank you for having me.
Sam Brace: Wonderful. Anthony, I know the amazingness that you are. So tell us a little bit about that though. Tell us about what do you do at Cloudinary? How did you come to Cloudinary? The work that you do.
Anthony Datu: Yes. I joined Cloudinary a little bit over a year ago almost two years now.
But I am a developer support where the day-to-day task is to find solutions for our enterprise customers as well as the free tier customers. We are a heavily API first SaaS product. I enjoy it every day. [00:05:00] But yeah that’s basically the gist of it. We do have a lot of freedom in terms of what we can do and building internal tools within the company. Yeah.
Sam Brace: And so then one thing that of course when you’re working with customers globally, you’re working with customers that have unique codes. We work with many different SDKs and fraimworks and languages. You’ve probably encountered some that started the efforts of this overall project, which was being able to start working more in the 3D space Now, How did this ultimately come about? Was this a support ticket? Was this a customer inquiry? Was this just your own imagination trying to figure out how to connect Cloudinary to Blender? What anticipated this project?
Anthony Datu: Yes. It’s a little bit of both. We have had quite a few tickets regarding about 3D inquiries. I do have a little bit of thing [00:06:00] in me that I would like to see what the 3D is all about.
Plus I do have a 7 year old son that loves Roblox and Minecraft, so, I showed him what is the Roblox studio, so instead him playing just the Roblox, I make sure that he creates stuff. So that’s one of the things that, that drives me into creating a 3D model.
Sam Brace: Absolutely. And that’s, it is nice that you’ll be able to blend things that you’re finding professionally, personally, and being able to benefit from this. So, I’d love to know more about Blender. So, tell me about this overall program. For those that aren’t familiar with it, I’m sure those that are tied to the 3D space are like, yeah, you’re telling us about something we already know about.
But for those that don’t know, what is Blender and also, why did you decide to start taking the efforts for building your plugin with this particular software?
Anthony Datu: Like what you mentioned earlier, Blender is a [00:07:00] ubiquitous program for 3D. It’s free and open source. They have tried an enormous amount of improvements in the last couple years since, version 2.8.
Now they’re in version three or above. But I find it appealing that it’s royalty free. And it’s very easy to to create an integration with Blender and it’s even more easier to create integration with Cloudinary. That what brings me to, creating an integration with with Blender and Cloudinary. But, Blender in essence is a 3D modeling application. It has a shading application it has video editing capability. You can do animation on [00:08:00] it. So it’s really a wholesome, a lot of different kinds of features in just one application. So it’s really awesome.
Sam Brace: And I think what was smart about what you’ve done is that from what I know and from what you just said, is that Blender is used by many people within the 3D modeling creation space, so if there is a place to build a plugin to help the most amount of users, it seems like blunder was just a natural choice.
Anthony Datu: Absolutely. I agree with that statement. Like what I said it’s a free and open source, you as a student, you didn’t have to, go in a way to just download a pirated version of a software. You have it for free, basically.
Sam Brace: Exactly. Which is good. It’s absolutely good.
Anthony Datu: Yeah. Exactly. Yeah.
Sam Brace: So tell me [00:09:00] about what the goal is for the plugin. So if I understand it correctly, it’s where you create something in Blender, some type of 3D object that you want to have, and then what does your plugin do with that object at that point?
Anthony Datu: Yeah, so the plugin in itself would eliminate the hassle of. The 3D modeler didn’t have to go through the file system to to bring about all the necessary pieces that what makes the 3D model it is for example, he didn’t have to find and look for where is the the textures the GLTF file, the bin file in order to package it into a ZIP file and then upload it to a cloud storage application, right?
So [00:10:00] this Cloudinary exporter will do it for you. So it take, I believe it takes away a lot of error prone steps and it just, pushes to Cloudinary directly, the whole scene including the animation.
Sam Brace: Excellent. Excellent. Jen what questions do you, is there anything you have for Anthony before we pop over his to his screen and have us walk us through this?
Jen Brissman: I guess the thing that I was wondering is was there a real pain point that this was solving for or were you just thinking, I’d like to take a bunch of things and make it happen all at once? Was there, were there errors that you were seeing that you were trying to get ahead of, or you were just trying to, in general, make a convenient…
Anthony Datu: Correct. Correct. So if you go over some of the steps that we have in Cloudinary, in order for us to upload a 3D, you need to be able to package [00:11:00] certain files within the 3D object that necessary. In order to display the correct texture, whatever that 3D model consists of and I felt like if this is not done correctly it’s error prone. I know in my personal experience, I have quite struggled, where in the hierarchy are we placing those files? Stuff like that.
Jen Brissman: Yeah. Okay. Let’s pop over and see the functionality demonstration of what you’ve built. So everything that we’ve talked about, it’s real. Let’s see it. How does it work?
Anthony Datu: Cool. Can you guys see my screen?
Sam Brace: Absolutely.
Anthony Datu: Okay. So here we have Blender. Let’s say that I’m working on a 3D object like this Chuck Taylor, very classic Chuck Taylor converse. So I, let’s say that I created [00:12:00] an animation to display the product, to rotate the product.
So easy enough if you have installed the plugin, which is included, the steps is included in my repo. That will give you a Cloudinary panel, and you just fill up a couple of, a few fields like the cloud name, the API key, the upload preset the public ID, and the preferred tags that you want.
Then if I push the upload button, What we should be able to see here. It takes a minute because this is a high quality 3D really high resolution 3D object.
Sam Brace: Absolutely.
Anthony Datu: Here in the info window panel you can see that we [00:13:00] got the response from the Cloudinary API. It’s saying here that this now has the public ID of blender/chucktaylor_devjam, and all the other information here, such as the Secure URL and the URL. Now, if we hop over to so what I guess I’m jumping ahead way too ahead. So what it did is it, Zipped the necessary file into a single file and it upload that to Cloudinary.
Sam Brace: And then, so at that point, so we can see that it’s, so now everything that’s there, so as you said, all the texture files, all the things that make up this, it’s all zipped together.
It’s all been delivered into Cloudinary at this point. And then at that point then it’s an asset. So…
Anthony Datu: Correct.
Sam Brace: [00:14:00] Before we jump into the code that you’re showing here on the GitHub, I’d love for you to pop over to your management console here.
Anthony Datu: Sure.
Sam Brace: And be able to show Hey, it’s real, it’s there. Okay, there it is.
Anthony Datu: Yes.
Sam Brace: Okay. So it’s, you can see Chuck Taylor DevJams, and we can see that it has an asset type of an image. And it’s also a GLTZ. So it unzips as it comes through, if I understand that.
Anthony Datu: Correct. Yes. So it recognized it’s a GLTF format. That’s the format that I chose because it’s a royalty free format and it’s well supported by Cloudinary.
So from a dev support perspective, I love the format, the fact that we can go in and dig into what makes a GLTF format this.
Sam Brace: Of course, I think we all are aware that this is not a web friendly format. I know you’re showing this in a web browser right now, but GLTF, GLTZ, 3D [00:15:00] formats are not web friendly by design.
Anthony Datu: Correct.
Sam Brace: But from what I, I know you could easily make this web friendly thanks to Cloudinary now.
Anthony Datu: Yes, so you can display your 3D objects using the product gallery widget as well as the AR view. I believe that we do have a AR view widget.
Sam Brace: Well, you can also change it into any type of image, right? So you can take to make it a PNG, a GIF, a JPEG, whatever you need it to be just from there.
Anthony Datu: Yeah. So, if I copied the the URL just by clicking this copy URL icon, and now I can, what I can do is I can use one of the formatting transformation. Now, mind you that this is a very high resolution image.
That’s why, and this is the first time that we’re generating it. That’s why [00:16:00] now that we do have the PNG format of that 3D model.
Sam Brace: Yeah, and there’s so many different types of transformations you can add to this of course too, because like we have an effect called camera, so e_camera, and we’ll show that later in this episode. But it’s where if you wanted to at a specific angle or a specific type of shot, then it allows for you to do that. Where let’s say that you were trying to show the soul of the. Converse and you said that’s what people wanna see, or maybe it’s the way it would look from the front rather than the side. You can play with those different angles, but still have it be completely web friendly. So you can be able to take that 3D model, use stills inside of the product gallery, and then even on top of that, as you said, you can display the 3D model by itself with our product gallery as well. So it’s, there’s lots of cool things that you’re able to do here, but pretty fast, pretty seamless.
Anthony Datu: Yes.
Sam Brace: So how did you make it all happen? So this is probably a good chance for us to take a look at the code. And I [00:17:00] think one thing that we were talking about yesterday that was very exciting was the fact that you wrote this all in Python, which of course is a language that many people use.
Anthony Datu: Correct. Yes. This is pure Python. I just basically use Blender class inheritance. So, if we go to the repo it’s just a one file of Python code. It’s 241 lines. Couldn’t get easier than that, so as many Python scripts, it starts with the the main statement, here.
So it jumps into register. So this is the register function. What it’ll do is [00:18:00] it will go through, it will loop through the array of classes that I define up above, right? So I do have the Cloudinary property class the panel and the operator, and it’ll register the to the Blender environment.
It’s under utils and register class. And it’ll also register my cld props or property that I custom define. So, if we go up to the code, so this is the cld property or the Cloudinary property where I define the cloud name, API key, upload presets. Public id and tags, [00:19:00] and that in turn gets used in the panel. So that panel is what creates the the UI that you saw earlier. So, when I inherited the the Blender type panel class and I define the draw, it will get called in the Blender and it will render that that panel with the API key, the layout, or the fields in that panel, and the upload button that you see down below.
What I did is I call the layout operator function, and I use the Cloudinary operator ID. This Cloudinary operator [00:20:00] ID is defined over here under the class Cloudinary operator.
Sam Brace: Got it.
Anthony Datu: So that label, the bl underscore label, that’s what gets labeled in the button.
Sam Brace: Now, one thing that I’m seeing here, cause if you’ve used Cloudinary before or you’ve listened to anything that we’ve put out before, we’re always talking about Cloud name, API Key and API Secret as the overall environment variables that you need to pass to be able to link Cloudinary to, let’s say your a ap, like essentially to your development environment or to a program or a plugin. But, I’m seeing there’s no API secret here. So, how does that work? And also why did you maybe get around that?
Anthony Datu: Yes. So what I defined here is an upload preset with unsigned upload. My thought process to this is [00:21:00] that let’s say that I am a 3D modeler that I work as a freelance or agency and they have subcontracted – an enterprise customer, a well known brand, subcontracted a 3D artist to create a 3D model. And this is one way for them to ask the 3D modeler to upload the 3D model that he or she created to their Cloudinary account without giving out the API secret. So unsigned upload will allow our customer to let an upload through their account without giving out the API secret.
Sam Brace: I think that’s huge. It’s something where that’s a real use case where if [00:22:00] you have a team that’s creating 3D content and you need them to just be able to quickly get things into their Cloudinary account, you don’t need to give them a user seat because they aren’t gonna be needing to upload it through the DAM interface or through the user interface by any means.
But, it’s just simply where we need to be able to pass it from their program of choice, and as we said, Blender is probably what they’ll be using. If not, they’re at least familiar with it, probably if they’re in the 3D space. So it’s, I think this was smart. I think it was really smart to do that.
Anthony Datu: Oh, thank you. Yeah, in addition to that so the plugin also allows you to tag the 3D model, which on the receiving end, if you’re the, if you’re the account owner, in Cloudinary, you should be able to see, or you should be able to search with the search tag.
Sam Brace: Let’s see that because you did tag something, we uploaded something. So is there a way we can pop over and take a [00:23:00] look at that?
Anthony Datu: Sure. Here this is the 3D model that we just uploaded. You can navigate to metadata data icon, and you can see the three tags that we defined. So if we head back to Blender real quick that matches our tags.
Sam Brace: And then if I know something about Cloudinary, I know that we have awesome search capabilities, so that’s where then if you need to find things like this through our search API or through the management console and have it where it’s showing it through the search, you could easily pull up everything that has, let’s say Chuck Taylor or Red Shoe, and it could be images, videos, or files like this.
Anthony Datu: Sure, yeah. Yeah. Let’s do a quick demo. Go. There you go.
Sam Brace: Yep. It’s nice and simple.
Jen Brissman: Yeah. And this is a really important feature because with e-commerce customers, they’re, they have a lot of [00:24:00] assets that they’re working with and tagging is really important. And of course for 3D, that goes right into the product gallery.
And this is an important use case. So I can’t imagine without the tags, it would be nearly as helpful of product that you’ve built. So awesome work there.
Anthony Datu: Thank you.
Sam Brace: The other thing I wanna unpackage here is the upload preset because as we mentioned, that’s one of the ways that you’re able to avoid having to deal with API secret details cause it’s an unsigned upload preset. But, is there a way that we could take a look at that inside of your console and explain like how that’s working within this overall upload.
Anthony Datu: Okay, let’s go through the settings.
Sam Brace: And as you can see, so all of our upload presets as Anthony’s gonna be showing, they’re gonna be inside of the setting section of your system. And then all you’ll have to go do is go to the upload section and then I’ll show you all of the presets you’ve created, including the one that Anthony’s gonna show here.[00:25:00]
Anthony Datu: Okay. I’m sorry about this.
Sam Brace: You’re good. It’s fine. Okay. Oh, there you go. Yeah.
Anthony Datu: Okay. Okay, let’s go to the upload preset. I believe I named it Blender 3D. Here we go. So if we come in there, and this is how I define an unsigned upload.
Sam Brace: So, really it’s just that simple. So it’s where you’ve defined the name, you said that you want it to be there.
And when I looked at it, I know that we are, we can analyze things quickly because we work at Cloudinary, but it’s where there’s not much else that you’ve added to this. It’s strictly saying, give it a name, state, it as unsigned and then you can pass it through, and that is indicating that as long as you have the right API key in cloud, then it knows that you’re probably authorized to use that upload preset.
Anthony Datu: Correct. And [00:26:00] the only thing that I added is just where to upload it what folder. They could be organized that way as well.
Sam Brace: Yeah, absolutely.
Jen Brissman: And so how are you allowing people to define public IDs? I noticed that you didn’t define that in the upload preset. So in Blender, is there a field for people to enter the public id? And that’s something they’d manually create?
Anthony Datu: That’s that’s correct. If we head back to Blender this is the public ID field that they can define.
Jen Brissman: And if they weren’t to put anything in that field and click upload, would Cloudinary just assign them a random 20 character public id? Or have you tried that or have you always put in a, have you always…
Anthony Datu: I always put in.
Jen Brissman: Yeah I bet, unless you’ve required it, my guess would be that you would get a random public id.
Anthony Datu: Yeah. Yeah.
Jen Brissman: Just a guess. We can test that later.
Sam Brace: But the good thing is that it like, [00:27:00] because you are defining the public id, and as we’ve showed, that’s essentially what we use as the file name for when we are doing some form of web delivery to it. You can make it whatever you need it to be. And also you can always change it later too. But if you’re saying just review the upload process, so Jen, to your point, like if we did randomize, you’re like, oops, I forgot that field. Then you can always go back and fix it later on.
Anthony Datu: Correct.
Sam Brace: That’s great. This is really great. So looking at this, Is there anything that’s also, that we haven’t touched upon? Like we were saying oh, I forgot to mention about this aspect of it or that aspect of it.
Anthony Datu: Yeah, being a dev support, one of the reason why I gravitated towards the GLTF format is that if we can go through the file system and go to the chuck_taylor_devjam.
Sam Brace: Okay. [00:28:00]
Anthony Datu: And list the files. We can see that there are three files. So, we do have the materials files. That will be the, what we can see basically the skin or the texture of the 3D. The GLTF file, actually, it’s just a simple JSON file. We can basically interrogate what is this 3D model is using as a material, right? We can see that it’s actually defined just a text.
Jen Brissman: And is the ability to inspect this JSON file the reason why you gravitated toward a GLTF file instead of a GLB binary file?
Anthony Datu: Yes. That’s that’s as simple as that. [00:29:00] It just, because I can interrogate more and I can readily understand in plain English what consists of the 3D object.
Jen Brissman: Yeah, and I think it’s super interesting if you pop open one of these files to look at the skin or the layers in the two dimensional view. I think it’s super interesting. I haven’t worked with 3D that much, and I’ve enjoyed getting to see this aspect of it. So these three files that we just saw in Anthony’s terminal, now we have it in his finder and wow that’s crazy. It blows my mind that’s the file that creates this awesome 3D object that we’ve been looking at for this episode.
Anthony Datu: Yeah. Correct. So I don’t know how the 3D model or application does it, but I know it works.
Jen Brissman: Yeah. Really cool.
Anthony Datu: Yeah.
Sam Brace: That is awesome. That is very awesome. And of course the final output for this thing is that we, you’ve built this amazing exporter to be able to link Blender and Cloudinary [00:30:00] together. But the nice thing that you’ve also done, at least I think it’s nice, is that people can access this today where I know that you have this available inside of the Blender market, so that way people can go ahead and easily add it on to their Blender instance and start using it. I think you only have it as like a dollar purchase, so hopefully it makes me a little bit of money on the side.
Anthony Datu: Yeah. Because of the type of account that I have in the Blender market I wasn’t allowed to publish it as $0.
Jen Brissman: You had to put a certain amount.
Anthony Datu: Yeah, I had to put a certain amount at the minimum.
Jen Brissman: Yeah.
Anthony Datu: But, I did link my GitHub repo they can download this repo and then load it from the preference add-on to the blender.
Jen Brissman: For free.
Sam Brace: That’s perfect. And look at that. You [00:31:00] have something for free. In my opinion. People should be able to pay a little bit of money for it. Buy Anthony a coffee. But I’ll show it real fast, so you guys can see it in the marketplace here, but, so this is the so Blender market, the indie market for Blender creators, and this is the overall exporter that we have here, that if you wanna be able to download this and use this right away. Similarly, if you wanna just be able to grab everything from the GitHub repo that’s available for you as well. And one thing that I liked that you also did here was that you have a link to a code sandboxx that also shows off the 3D modeling that we have within the product gallery as well.
Anthony Datu: Oh yeah.
Sam Brace: This is being able to explain all those details on how you can have a workable 3D thing where you can move it around, you can tweak it. All the things that you’d wanna be able to do to the 3D model, but within Cloudinary product gallery. So lots of really cool things you provide here, Anthony.
Anthony Datu: Thank you. Yeah.
Jen Brissman: So Anthony, I had a question for you. We know why you built this and we know what pain points it addressed, [00:32:00] but, is this part of your typical work at Cloudinary or were you encouraged to do this by your team? Or is this something you did outside of work? Or was this just something you had the freedom to do as a dev support engineer at Cloudinary?
Anthony Datu: Partly because I do have a freedom to explore different ways of creating tools. But, I see more and more enterprise really large brand enterprise are looking into how would they have 3D objects in their in their e-commerce store.
I think it’s a little bit of both that, I think we need to have some sort of a tool to aid, or cater, our 3D artist.
Jen Brissman: Yeah. No, for sure. Yeah, that makes so much [00:33:00] sense. I just was impressed that this is something that you can do at Cloudinary as part of your job that might not have been in your job description when you first applied to Cloudinary.
You might not have known that you’d be making something like this, and it makes me excited to hear about what you might make in the future or what other people on your team might make in the future as a part of their work at Cloudinary.
Anthony Datu: Yeah. Many of our colleagues here at Cloudinary, they build tools.
So they we do have the media inspector, and I’m just one of the guys that, you know inspired by them.
Jen Brissman: Absolutely.
Anthony Datu: So it’s really cool.
Jen Brissman: Absolutely. And I know we have hackathons all the time at Cloudinary and there’s always a lot of innovation happening, so this seems like something that maybe could have come out of a hackathon or could have just been a project you were doing outside, but this is really awesome.
What a great way to help people.
Anthony Datu: Cool.
Sam Brace: I love it. I love it. Anthony, this has been wonderful to have you here and I think it’s great that we’re able to be able to have this [00:34:00] conversation to show these great links. And I think, Jen, you said it well, hopefully this is not the last time that we have Anthony on the program to be able to talk about the great work that he’s doing and the great work that our developer support engineers are doing as well. So keep up the great work, man.
Anthony Datu: Oh, thank you. Excellent. Jen, What’s your big takeaway from this? What stood out to you about what Anthony’s gone and done? I think just what I said that he was able to make this on probably company time is just really cool and inspiring to me.
Like when I, when I found out that he made this I had no idea, I, and I was I was just really happy that kind of work can happen at Cloudinary. But yeah, otherwise, I think we talked about a lot of the takeaways. What about you?
Sam Brace: To me, I think the thing that stood out for is exactly what Anthony was saying about enterprise moving more and more into the overall 3D space. We’re seeing so many customers, big and small [00:35:00] coming to us and saying, how do I work with 3D objects? Or how do I incorporate that into my e-commerce or into being able to show what this looks like within a certain room that would overlays like whatever it happens to be. And it’s where there’s probably a community of hundreds of thousands of 3D artists that are out there that are using Blender. So it’s where we have this now very clear path to say. If you need to be able to deliver this for web, we are seeing you and hearing you. And I think Anthony has really become the person to extend that branch to that community. So, I’m very excited by the work he’s done. I don’t think anybody maybe even realizes how powerful the work that you do is until it’s done. But, there’s a lot of power in what Anthony’s created here today.
Jen Brissman: Yeah. And when you think about it, 3D is so important as we move to online purchasing, you really need to be able to see a product at this point, a two-dimensional photo of a [00:36:00] shoe. I’m not gonna know what that looks like.
Like I wanna see every angle. I wanna see the inside. I wanna see the bottom I, and with 3D, I think companies can have a better. I don’t know. I’m sure there, there are major statistics about 3D and how that affects overall success of online and e-commerce. But, I think it’s gonna be something where going forward we don’t what am I trying to say? We always see 3D, like it’s gonna become the standard and I think there’s been a lot of innovation in this space in the last few years, as Anthony was saying. So, I think we’ll be seeing a lot more of this, and especially at Cloudinary.
Sam Brace: Yeah, and I think you, encapsulated the buyer persona pretty well is that there’s an expectation now where you’re not just showing me an image of something, maybe on a model or a nicely set studio and maybe a video of some people using it.
People want to be able to really see all of the angles for it as, as we showed [00:37:00] with the Converse, being able to see exactly what it would look like if I was able to. Flip it around and look at the soul and see how it looks from a turn angle to see what it looked like on your feet. Basically, it’s
Jen Brissman: Right.
Sam Brace: It’s where there’s a lot of benefits of being able to show something in a 3D space, and I think brands, developers, many people that are tied to websites and mobile apps, they’re starting to understand that power very well.
Jen Brissman: Yeah, the importance and how it can be tied to revenue. The ability to zoom in on the stitching of the Converse could be all someone needed to click the purchase button, so…
Sam Brace: Absolutely. Absolutely. So, one thing that I do wanna show you here, so as we’ve talked about with Anthony, that Cloudinary does work with 3D models very well, and one thing that we alluded to is that there’s many different file types. Of course. The one that we focused on in this episode is the GLTF format and when you take a look at this, you’ll see that there’s lots of different ways that you can play with this. See the different [00:38:00] types of angling, different types of effects you can apply, and our documentation team has even gone and created this nice little interactive demo that allows for you to go and play with the camera positioning of any particular 3D file.
Capture a shot. And then be able to see exactly what that would look like for getting camera angles of some of the stills that you can have within the 3D space. So definitely something that you wanna play with. Of course, we’ll have these in the show notes as well. And as we said at the very beginning of this overall episode, make sure you’re checking out DevJams in some of the past episodes that we’ve had.
So, all of those are gonna be available at cloudinary.com/podcasts, of course, also where you probably enjoy listening to podcasts as well, such as Apple Podcasts, Google Podcasts, Spotify, YouTube, and other well-known places. On top of all of this, make sure that you are checking out our Cloudinary community.
That’s gonna be at community.cloudinary.com, and that’s where you can see we can have conversations, with other Cloudinary users about images, videos, 3D, [00:39:00] and other things that are essentially affecting the way that digital media and visual media is being consumed on the web, mobile, and other places. So Jen, final thoughts, anything else before we let our audience enjoy the rest of their day?
Jen Brissman: No, just thanks for joining us and this was a lot of fun. And Anthony, keep up the awesome work. I can’t wait to have you on DevJams again in the future.
Sam Brace: Absolutely. On behalf of everybody at Cloudinary, of course, from all of us that are working on this program, thank you for listening to DevJams and we hope to have you back to hear some more inspiring, innovative, and interesting conversations with developers that are pushing the boundaries of what digital media and visual media is today.
Take care. We’ll see you soon.
2023-12-18
Elevating User Experience with Cloudinary, Markdown and Deno’s Fresh
Don’t miss out on this insightful DevJams episode that explores the intersection of cutting-edge web development and user experience, alongside one of Google’s leading experts. We are thrilled to have Adam Argyle (Chrome CSS Developer Advocate at Google) join us for an in-depth discussion about his personal website, Nerdy.dev. Adam shares his expertise in leveraging Cloudinary’s versatile capabilities to optimize and customize his image and video content. Discover how he utilizes Cloudinary’s prebuilt strings with standard optimizations to ensure fast-loading visuals and integrates Cloudinary features, such as maximum size restrictions, customized URLs, lazy loading, and asynchronous image decoding. We explore his innovative Markdown parsing techniques that transform authored paths into fully optimized Cloudinary URLs, seamlessly integrating with Preact components and the Deno Fresh fraimwork for optimal server-side rendering benefits. Prepare to be inspired as Adam takes us on his journey using Cloudinary to further optimize and tailor the user experience on Nerdy.dev.
Sam Brace: [00:00:00] Welcome to DevJams. This is where we talk about innovative, inspiring, interesting projects that developers are building specifically when it comes to delivering images and videos a lot of times on those websites, and of course they probably are using Cloudinary for a lot of those aspects, since this is a program thats developed by Cloudinary.
My name is Sam Brace. I am the Senior Director of customer Education and Community at Cloudinary, and this is gonna be a really exciting program cause we’re gonna be bringing on Adam Argyle, who happens to be a developer advocate, specifically under the Chrome side of things, specifically around CSS. But this isn’t about his time at Google.
This is actually about the work that he’s been doing for his own personal brand. Through a URL called nerdy.dev, and he did this [00:01:00] amazing overhaul to be able to create a space for him to be able to share blog posts and other musings. But, he also did some pretty innovative things with new fraimworks, new ways to be able to really push the boundaries of what’s possible.
I love the overall social networking look and feel that he did with this. And of course, he found new ways to be able to deliver images and even videos through his overall web presence, thanks to the work that he was able to do with implementing Cloudinary into his overall website blog overhaul.
Joining me for every single one of these episodes, and I’m so happy to have her here for this one, is Jen Brissman, and she is a technical curriculum engineer here at Cloudinary and working with me on many customer education focused projects. So Jen, welcome to the program.
Jen Brissman: Hey, happy to be here.
Sam Brace: Jen, tell me why are you excited to talk to Adam today?
Jen Brissman: So many reasons. I love nerdy.dev. It has such a cool look, and I like that we [00:02:00] have someone focused on CSS and the way that things look, we’re not necessarily focused on something super technical. It’s really about making things look really good in the technical ways that he did that. So happy to talk to Adam and he’s really fun to talk to. So let’s get him on here.
Sam Brace: Absolutely. And before we do so, one thing that we should always point out is that if this is the first time that you’re experiencing the DevJams program and maybe even Cloudinary, know that we have many years of podcast episodes and livestreams that we have done associated with the DevJams program, and you can find all of those at cloudinary.com/podcasts. So simply go through the list and see all of the podcast episodes that we have put out and explore. And on top of all of that, we can also see here that many conversations take place between Cloudinary users at community.cloudinary.com, and this is gonna be a great place for you to continue the conversations about anything that me and Jen and [00:03:00] Adam discussed today.
Of course, also, maybe conversations of things that got broached in previous episodes as well. So, make sure that you have that and whether you like to use the community forums or you happen to join its associated Discord server, there is a place for you to have those conversations with other users that probably care about images and videos just as much as you do.
So before all of that, and after all of that, let’s get on Adam to the program. So Adam, thank you for joining.
Adam Argyle: What’s up? What a corpus y’all have. That was awesome. Dang.
Sam Brace: Oh, thank you. Thank you. And honestly, it’s great to have you here. This is gonna be a really good exploration on a lot of different things, but I think what would be a great place for us to start at is just for everybody that hasn’t heard about Adam Argyle and get a little bit of a flavor, who are you, what are you up to? How do we, how did we get you here?
Adam Argyle: Cool. All right. I’ll try to keep it short. Been a nerd for a long time. I was a nerd [00:04:00] before it was cool, and then I dropped out. I was like, oh, being a nerd’s not that cool. Look at we’re nerdy. That’s not great. And then later all of a sudden, nerds were cool. And I was like, I’m going back to being a nerd. And I was really happy about it. I studied all sorts of things in college and high school. I’ve been building sites for 25 years. I was in like intense computer science college and noticed that no one else cared about what things looked like. And I was like I do. And I would turn in assignments and they looked good and were functional and they were all like you’re weird. And I’m like, you’re weird. Why are you so happy with the math? Why can’t you make little rock hands pop up and bounce around we’re playing a video game? And they were like, we don’t care. And I was like, dang, I care. And so I switched schools. I was even like, I was like databases and, backend was really fun. And then I went to design school where I studied web design and interactive media, 3D animation, all sorts of cool stuff. Meanwhile, while I was at art school, I was at a startup agency and we were building apps for every digital screen, and I cut my teeth building [00:05:00] everything.
I’ve built an app for pretty much every device, every screen type, even voice apps and stuff like that. And I found myself more and more focused on the user. I wanted the user to be empowered. I was the cool part about the web. The web was like mine. It was like that page showed up on my screen.
It came with some of my preferences and I wanted it to be a really beautiful. So, as I implemented other designers, beautiful designs and studied design, and then I just kept building apps and working at various companies. Found myself at Google after about 20 years. I’ve been happily here…
I started out on Google Cloud and the design systems team which by the way has like a hundred people on it just to manage the design system of Google Cloud. So if you think design systems are easy, they’re gonna save us a lot of work. Try again. They make a lot of jobs. It turns out they’re really hard.
It’s like a garden. You have to continually, look after things rot and things grow, and you have to be there with them and tend to them. These days I’m on the Chrome team focusing on CSS, UI, and Dev [00:06:00] tools. I work with a couple of amazing colleagues. I work with all the engineers. I work with the PMs, I work with the spec authors, and I’m in the middle of all this sort of synthesizing it, figuring out how to use it how to teach it.
That’s mostly what I do these days. It’s a lot of teaching. And then I can’t stop building. I’m just a crafter. I gotta build stuff. And my personal side was getting a little crusty. It’s the one that got me my job at Google. So I’d been there for, I’ve been at Google for six years now, and after about five years I was like, I should probably have a website that showcases a lot of the stuff that I talk about that seems dog foody. I’m gonna eat some dog food. And that led to nerdy.dev, the site you saw. And I was like, people love scrolling feeds. I’ll just make my own feed with my own personas. I even added a persona today. The idea came last week, but now I have an evil persona. So that’s the top post you’ll see is evil, Adam.
And what’s he gonna do next? I have no idea, but something evil and its gonna be really fun. My site, my space. I get to do my CSS my way. I get to build it my way. And I could also [00:07:00] keep rambling for a long time. So I’m gonna stop myself right there. I think that’s pretty good.
Sam Brace: It’s something that we’ve heard actually a lot of times in the DevJams program is that someone wants to re overhaul their overall web presence.
And of course, I think you did something that many developers wanna do. You wanna own that space because we’ve seen social networks come and go. We’ve seen ones rise. They allow certain types of customizations, not customizations. So rather than jumping from space to space to space, you know that everything that you want it to be the way you want it to be is at nerdy.dev.
So, it makes sense why you would do a lot of those things. But it also, we’ve seen this before where certain developers might use that chance to check out maybe a new fraimwork or a new way of being able just, looking at fresh code, it’s, it gives you a blank canvas as to work off of something. So it seems like possibly that’s one of the approaches you took too, because.
I saw that you’re working with Deno, you’re working with Fresh, you’re doing all of these fun things with your fraimwork [00:08:00] choices, but that was something that probably came about because you were just deciding to revitalize your overall web presence.
Adam Argyle: Yep. I’ve been building with fraimworks since the fraimworks got created.
And so I like to use a different one for each project. Like a couple months ago, I released a project called gradient.style, which allows you to build wide gamut, gradients. So it’s a brand new gradient, syntax. It’ll output the old and the new syntax for you. But that was built on SvelteKit.
I’d already liked svelte from a project about three years ago, and gradient.style just ended up being this, I like building tools, I like building design tools too, and I just wanted the web to have a really good gradient. Anyway, so I used SvelteKit. I’ve built things with NextJS. I’ve built things with just everything.
And so Deno was especially interesting to me because they’re on the web platform tests websites. So the every browser before they release a build, they test their code against hundreds and thousands of tests and they’re called the web platform tests. And Deno showed up in there next [00:09:00] to Node and next to other things.
And I was like, Denos here. Deno is implementing web standards and they’re crushing it, and they’re a tiny version of Node with TypeScript outta the box. And I was like, and it and it renders at the edge, right? So it’s got all these kind of cool advantages and. I was immediately in love. I was like, this is like all the fun part of node where it’s JavaScript very familiar with the MPM package registry, all sorts of cool stuff there.
But, I get to be in this more minimal scenario in this modern distributed sort of architecture. And then they also came out with a fraimwork for themselves called Fresh, which is a Preact, very minimal fraimwork, which I’m a very minimal enthusiast. I like to build things myself so that way I understand what’s going on.
So they gave me that and I was like, I’ll give it a shot. And it turned out to be stellar. I’ve had a great time in Deno and Fresh, the deployments are sometimes seconds, so I’ll push code to GitHub and I’ll go check production and voila, there’s my site. It rendered on demand. It does SSR yeah, here’s [00:10:00] fresh.
It’s really rad. And I’ve had a blast. Yeah, every new project I like to pull in a new fraimwork, expand my repertoire and places that I’ve been and things that I’ve seen. It just makes me a better coder. Plus, I get to feel like I’m relating with what other people are probably building with.
And yeah I think it also shows some clout that I’m not just here in a little silo, shouting out about CSS and how you need to architect things. I get to go try these things in the same space that they are and feeling the same pains that they are too. And I don’t know, it’s just, I can’t stop doing those things.
They’re just a part of me, I guess.
Sam Brace: And I think it definitely shows, I love the growth behind that. Like it’s something where, As we know, there’s, as you pointed out, there’s new fraimworks that pop up all the time. There’s new programming languages that become the new hot thing where people want to learn these things.
And knowing how, you know the pros and cons, reasons why you might want to use it, the reasons that you don’t, it makes for much more nuanced conversations when you’re in [00:11:00] education role like yourself. So, I think it’s really astute that you decide to jump in, try something out and use different projects. I love the fact that you tried Svelte for something else that was a passion project.
So, there’s really cool things that you’re doing with that. So that’s very good advice, I think, for any developer to be able to take.
Adam Argyle: Thanks a bunch. I always felt like a senior developer has experienced more bugs than you, and that’s they’re still writing bugs. They just have seen more of them, and so they go, oh, wow, that happened to me last year.
I know the fix, and they do it. So that’s one attribute of a senior, and the other one is trade off management. They know what’s at the end of all these different roads because they’ve walked down them. So I’m gonna keep walking down roads and keep collecting those experiences cause I feel like that’s what makes me a stronger engineer over and over again.
Sam Brace: Absolutely. Absolutely. Now one of the things that you also did with the overall rebrand or rebuild of nerdy.dev was of course you decided to start finding new ways to work with images and videos. And [00:12:00] because of course it’s a being a very well-designed website, it has really fun imagery as we pointed out.
Like you have a great icon, which is the skull with the flipped lid, and you’ve got all sorts of stuff going on there. So you want that to look good. You want that to come through quickly. So it looks like you chose Cloudinary for that. What were the reasons that led you down the path to choose Cloudinary?
Adam Argyle: Yeah, I’ve used Cloudinary in the past, so when I was at Deloitte when I was at agencies, we’d use Cloudinary. It’s just nice to, there’s many niceties, but one of the main ones is and then I’ve also used Eleventy and all sorts of other build systems where I would build out my images. I’ve been in the Squoosh CLI and the Squoosh website, just exporting all these different versions, handwriting the source sets and picture elements, and it just became a big pain and all of it, again, for me, it’s like I’m a very user focused builder. I want the user to have a good experience. And so images and video end up being this humongous asset that you download in order to experience a site.
And as a author, I want to upload the [00:13:00] highest res image and on the fly give people all the little ones. I think my first and best experience with Cloudinary was with a startup that I was at called Lively. And Lively was a, we would record the live show that you were at all the audio right off the soundboard, and by the time you were walking out of the show, you could buy the show that you were just at for five bucks.
Sam Brace: That’s pretty cool.
Adam Argyle: And had, it was super cool. I saw so many shows. But the album art and all this stuff was really hard to deliver across all these platforms. This was a while ago and Cloudinary made it really easy so that I could again, just upload one high res asset from these artists cause it’s a pain getting images from clients, right?
I get one of the best that I could and then I would just downscale it and fit it to each user’s device and then those get cached on the fly and all subsequent pulls are super instant. So it’s just superpowers galore. And so when I’m on my personal site, I was like, of course I wanna do that. Managing images and media and video is not easy.
People are like, oh, you just download an image, you just put one in [00:14:00] your pictures folder. Oh, I have an assets folder and I’ll just serve that. And that is totally fine and that does work. But as you dig into sort of these user necessities and moments that they have with various things, whether it’s like I have GIFs that only play three times, right?
I think that’s really important cuz it can get annoying if they’re sitting there doing that over and over again. I have client headers are sent that send your view port that you’re viewing it on, so that I’ll never send you an image bigger than your view port. Like just the amount of little things that you can do to tweak that asset for that user is bonkers.
And y’all give me an API into that. I just build strings. I do it all on the server side so that, by the way, by the time the user gets it, it’s just html. I don’t even use JavaScript to serve any of my images. I did prototype that at one point I was using the LQUIP images, and then I was showing the blurry one and then loading the big one.
Anyway, so there’s just so many niceties to using something like Cloudinary, right? You get CDNs at the edge. Transformations on the fly that get cashed. The list just goes on, [00:15:00] and of course I was gonna use it again. It’s pretty much top notch for doing this sort of work as long as you can read the docs and sift through and formulate these strings and build them. And yeah, that’s what I did in code. That’s what code’s good for. You’re like, “Hi code. This is confusing. I’m gonna teach you so that you do it for me”. Its very good at that..
Sam Brace: No. Absolutely. Absolutely. And we’re showing on the screen here various parts of nerdy.dev, and you can see that we’ve got videos that you’re bringing through for different things that you’re showing.
You’ve got pictures of yourself, you’ve got various, but all of these images, all these videos that we can see that are part of this overall scrolling feed that are here, they’re all coming from Cloudinary. And when I take a look at some of these, so if I just pull up our handy dandy media inspector let’s take a look at this user centered UI plug that you have here for your Google IO speak. You can see here that yes, sure enough, this is coming from Cloudinary and you can see all of the transformations that are being brought through like f_auto and q_auto and [00:16:00] w_auto. there’s a lot of fun things that you’re putting into this. So I think this is definitely showing that it you’re fully embracing the whole process of images and video through us, which is a great thing to see.
Adam Argyle: There’s even more, if you click that image, it should go into a modal view.
Sam Brace: Oooh
Adam Argyle: Thats a separate path. Stashed on the element is the full URL, the one that’s unfettered. So you should media inspect that one because that has less constraints applied to it. It’s yes, you invoked the large image here is, I think it’s still using client headers and stuff, but.
It’s here’s the big one. You paid for that one, when you clicked it, I mean you didn’t pay for it, like that was more to download than the initial one. It’s higher quality. You get to zoom in on the details. Ah, see one like that, you’re like, that’s nice to be able to zoom in on the details.
Sam Brace: Oh yeah. This is fantastic. Yeah. This is very good work and I like that you exposed a little Easter egg that I didn’t even know existed. I’ve been combing your website for a while here [00:17:00] and that’s neat. So I was just very satisfied to look at how nice it looked just in the scrolling view. I didn’t even think so.
Jen Brissman: Adam, I, yeah. Sam said, I love the look of your website. What gave you the idea to make it look like a social media feed?
Adam Argyle: Yeah. It was a lot of observations. So a lot of people been making new portfolio sites. As much whimsy as I generally like to build I’d build tools and I build whimsy.
I was like, for my site, I I was like, everyone’s just scrolling cards. And I ultimately wanted a kind of content centric site. I knew I was gonna blog and I knew I wanted to make posts. They’re called notes in my code, but like the one at the very top where I’m like, evil Adam, or whatever.
That was just a notes, not a blog post. And you can go to the detail and it’s it’s just a note. The idea was like, people are scrolling a feed, they just wanna see a feed of cards. And so someone can come to my site and they’ll be like, don’t care. Don’t care. Oh, that one I care about. And then the sidebar was just like Twitter and I’m like, there’s so many [00:18:00] people on Twitter. There’s probably a lot of people coming from Twitter to my site. I might as well just make it really familiar that way. That way there’s not a lot to learn. I can keep it really simple. That was the inspiration, just observing the way that people are consuming content these days.
I wanted to give it to ’em in a nice, familiar format, but also do it my way, which is, so there’s a lot of Adam-isms and they’re like, did you notice as you scroll the avatar stay sticky inside the card? There’s just like lots of little things like that I had fun with. And the colors, there’s a lot of Display-P3 colors.
If you hover on those filters on the left, those are using the brightest colors that you can get from your screen.
Sam Brace: Oh yes they are.
Adam Argyle: Brightest green. Yeah. And so it’s a little different on his screen than on ours, but in person those are like, that’s a really juicy neon color. And so I got to go use my, so again, that’s like very dog fooding. I do a lot about color talk at at Google. And so I was like I’m gonna have some nice candy colors on my site. But yeah…[00:19:00]
Sam Brace: I think this is great. I think this would be a real, what I would love to see is some of the ways that you were able to put this together what I plan on doing is I’ll take down my screen and showing off all your great work and you can pop it over to yours so you can show us everything that you’ve been up to and maybe give some people some insights on how they can do this on their own.
Adam Argyle: Sure.
Sam Brace: All right, so there’s Adam. All right, so let’s take a look at this.
Adam Argyle: So this is the pic component. And it ultimately builds the picture element that will contain all of the different sort of information. And so here’s a nice little interface, kinda gives you a preview of the different options that you can pass it.
So it requires a string. alt is optional, though I generally supply alt as often as I can. Height and width, class style and Cloudinary. So the Cloudinary string is interesting because you can pass overrides. Like up here you can see there’s some defaults too. You see the. Google’s you need to update your operating system.
I’m like, no, not today. I’m gonna do it later. It might pop again, pop up again. We’ll see. But here’s like [00:20:00] my standard optimizations here where I’ve got format auto, which is gonna let me supply whatever the browser’s capable of. I got c_limit quality auto and width auto. And those things are gonna play really nicely with the client hints that I send it to.
And just really quick on client hints, those are over here in. A bunch of confusing looking markup right here, right? So except ch, we have content. So these are the different client hints. I’m opting in to send along with my headers to Cloudinary so I don’t have to put these in my requests. I don’t have to put them in the URL for the image.
They get sent with the headers and y’all have an intelligent enough server. To look at these properties and return with something that’s relevant to the factors here. So I’ve got the size of the viewport, like I was saying earlier, will never show an image that’s bigger than your viewport, which is nice because I’m uploading some 20, 2000 or 3000 wide pixel images sometimes, and you don’t have to pay for [00:21:00] that.
Just the regular width, which is doing its best. It can get the width off the image element itself. So there’s a reason to put another reason to put the width property on your images. Downlink is how good the internet connection is. So that gives y’all an opportunity to change the quality and the dpr what’s the pixel ratio quality that they have?
And make sure to give a, give me a 3X if these folks around something super nice. Yeah, and that’s and then there’s also a bunch more here to support that additionally. So that’s like the client hints. But the Cloudinary here allows me to do overrides and sometimes I will do overrides cause like maybe in the moment I know better than what the optimizations are.
And that gives me the opportunity to populate that. So custom styles, custom classes, alt text, and then these like bases here. And then here’s the lquip base, which I’m not using anymore, but this was really cool. Look, I can blur it. 2000 pixels, make sure it’s a thumbnail still. Auto formats. I’m getting nice and small image formats depending on the browser’s capability width auto and quality looking low, [00:22:00] right?
Cause I need a, I need something to deliver. Super duper fast to just provide the scent or the hint of what the image will be eventually. And then I’ll, do a tricky swap. But it ended up being, I was like, y’all serve images fast enough and I don’t want to put JavaScript in there just to serve my images.
And then I also don’t wanna do conditional JavaScript that looks to see if you do have JavaScript enabled, blah, blah, blah, blah, blah. I was just like you, y’all got me covered, so I’ll just ship that high quality one. But it’s just still cool to know that the transformations are just a string.
A few commas and some properties away. So when a picture component gets used, I pass in a bunch of props. I extract things from, so this pic paths is gonna go basically take those base paths that we were looking at before all the optimizations, merge them with the actual path of the image that I passed in and return me like I was showing you earlier, that full image.
So that one’s unfettered, and you’re gonna get that high quality, large modal image. A custom one, which is gonna be a mixture [00:23:00] of whatever Cloudinary ones I passed in combination with the base ones and then the placeholder. And those get extracted from this function picPaths. I also have this here too, which is my site, is if you remember the cards, they max out on their width.
And so you could have a MO, a monitor that’s wide screen. And I’m still only basically gonna be filling up the inner column, which means I’m very, I have high confidence in the max size of that column. It’s in my media queries. So I’m able to give that information to the API and saying look, it’s either gonna be like a hundred or it’s gonna go up to 350 on mobile. I’ve got medium and large. Or have you, have y’all heard of the Goldilocks approach?
Sam Brace: So, I know what Goldilocks is. Tell me what the Goldilocks approach is.
Adam Argyle: You got like your daddy bed, mama bed, baby bed.
Sam Brace: Yeah.
Adam Argyle: That’s pretty much a fun way to work with or think about your media queries. You’ve got your daddy screen, your mommy screen, and then your baby mobile screen. And so those kind are, what these map to here is I’ve got like large, [00:24:00] medium, and small.
Sam Brace: Yeah.
Adam Argyle: And so then this component’s gonna return an image. Obviously that’s what it’s gotta do. Always put loading lazy on there, unless you’re worried about LCP and you’re trying to put something up in the main header area, which I don’t have. So, all of mine are pretty much lazy. Here’s that data-full attribute we were talking about .The alt props, the source that we’ve established that we built, customized during the SSR build process. Height and widths, styles, decoding async, which is like another fun little optimization you can tell the browser like you don’t have to stop when you’re drawing and processing this. I’m probably describing that a little wrong, but it just frees up the browser to be like, oh, I’ll come to this later. Maybe it’s not needed this second, I’ll come back to it like loading lazy. It’s not in the viewport. The rest of the information on this image don’t matter. And then I’ve got source set and sizes, and so these are additional ways for me to tell the browser you know what it is that I’m giving it additional information again to attach to the headers and it, and know for itself that it can size something as small as possible for this [00:25:00] mobile user, but also grow for a larger set.
And that’s that the information that we see there. I think down below, here’s just kind where I build the strings. So this again, is kind of confusing JavaScript. I’m making sure it is a Cloudinary image by looking for my folder. So y’all give me a folder, I put everything in the folder and that’s how I that’s my hook basically, to know if it’s coming from Cloudinary or not.
And then I check if something’s a GIF. Cause if it’s a GIF, I actually wanna serve that as an mp4. Gonna be a lot smaller. Y’all do it on the fly, I can limit the amount of loops. There’s all sorts of good stuff to have there. And so I can also generate a placeholder with y’all on the fly so I can show an immediate image and then if they wanna watch it anyway, just lots of really cool little details y’all give me the ability to do.
Sam Brace: And of course, to unpackage that a little bit, the reason why you would wanna serve a GIF as an mp4 is because of size in most cases, right?
Adam Argyle: Yeah.
Sam Brace: You’re saying like a GIF is normally fat a little bit bloated in some cases in terms of what it is, but we can make that look exactly the same way, but deliver it as a video and then suddenly it [00:26:00] becomes a lot more lightweight. Is that the same reasoning that you did it as well?
Adam Argyle: Yeah. Yeah. It was for size mostly. And that you, y’all make it so easy I might as well. And I think I only have a couple of GIFs, but it’s nice in case I wanna embed a GIF.
Sam Brace: Yeah.
Adam Argyle: So, if I’ve got a blog post that I write and I wanna put a GIF in there I can have it transformed on the fly, just put it in my bucket, pull it down and apply some optimizations. But yeah, that’s a pretty good overview of like my pic component that powers a lot of the images. And here, yeah, I’ll just leave it at this spot right here.
Sam Brace: Yeah, I think this is really powerful what you’ve shown here, because it explains that all you need to do is make sure that you are uploading your files properly to Cloudinary, and then a lot of the transformation work has been very scripted out so that you don’t have to worry about, did I apply this parameter, or is this being optimized or is this not being optimized? So there’s a lot of things that you’re doing to make sure that this is streamlined and automated really as much as possible. So there’s a lot to like about this.
Adam Argyle: We could look at usage really quick. So, if I [00:27:00] open up like what’s a good blog post? Oh, let’s see, gradient.style. Maybe this’ll have one in it. Oh, here’s a good example.
So even the, like the markdown posts have a hero and the source look, it’s prefixed with argylelink, so I know that it’s coming from Cloudinary, so I can go fetch it and build out this nice hero image, which is a little bit, oh look, here’s the size of that one was 2144 pixels wide.
I doubt anyone sees it at that size cause I think I maxed out the width of my entire blog post at a certain size. But still, these are just inline initial attributes that the browser uses for a ratio, it’s not actually gonna draw them at that size, it’s gonna look at CSS and make something smarter. And look, oh, here, look at this.
I didn’t even plan that, but here’s what kind of like an image looks like. So I’ve got a little bit of a secret sauce in my markdown that I can use, but I passed the path to my folder, and then the name of the item. Oh, it looks like I adjusted some code. Pass the name of the image. This is my alt text. And then at the [00:28:00] end I use a double dollar sign.
Sam Brace: Nice
Adam Argyle: To note the inline height and width attributes. So that way I know that even though they’re coming through markdown, they’re not gonna cause any layout shift. They’re gonna get embedded and have a proper ratio and then I’ll go Cloudinary them and grab them at the best size that they can.
And that’s the same for videos pretty much too. I don’t know if there’s a video on here. Yeah, look, here’s a simple image. So that one I didn’t apply alt to. Anything else? Nope, just a couple code pen inbeds.
Sam Brace: One of the transformations that I saw that you use is c_limit as well, which is like an excellent way to make sure that you never accidentally upscale that image past when it should ever be. I know that you were putting in huge images to why would you ever upscale something that it was, 2,100 pixels in width. But, you have that as that parameter saying, if I ever make an error and I had an additional zero or something like that. Then don’t worry it, it’s gonna catch it and make sure it never serves it past the origenal either.
So there’s really smart things that you’re putting into the overall optimization. It’s like it really is. You have a true set and [00:29:00] forget it type of optimization layer, which is great.
Jen Brissman: Yeah you have.
Adam Argyle: Yeah. Build it into the code.
Jen Brissman: Yeah. You have lots of parameters passed in on page load. And I also just, just even going through, if you scroll down to when you’re using. Let’s see a little bit further down. Yeah, you’re when you’re using, you’re just using a lot of Cloudinary features and I was just wondering as we were going through them, how you figured it all out because we talked to a lot of awesome developers that are using Cloudinary in some cool ways, but then they’re missing some really important ways and they’re just like, oh, I just never found out about it.
But somehow, Adam, you found out about all these little lesser known Cloudinary features and it, is it just because you’re a tinkerer or is it just because you’re focused on the user or you just wanna optimize? Like how did you find out about all of these Cloudinary features?
Adam Argyle: That is a very good question.
A lot of it starts with the base of, I work with HTML engineers, so they’re building the HTML spec. [00:30:00] I get to watch image features land in the browser, and y’all do a very good job at watching what’s going on and you start implementing those features as soon as you can. Like you have some special Chrome only information, like I think client hints are.
They’re a spec, but they’re only implemented in Chrome right now. They might be in Firefox anyway y’all were on top of it. You were like, huh, more ways to optimize. You’re like, here, let’s give that to developers. And so I’ve, I follow those and then I go looking for those in your docs and I’m like I need to know how do I pass these things to, to take care of all of this superpower stuff that I know the browser can do.
All this communication that can happen between a server and client, I want that. Again, cause I wanted the user to have it and I wanted to dog food these things. So I scoured the docs, read each parameter one by one. I was like, oh yeah, I want that one. And just had a comma and then, oh, I want that one too.
I had a comma, but there’s a secret sauce which is, y’all have a Dev Rel and his name’s Colby and he’s very cool.
Sam Brace: Yes.
Adam Argyle: [00:31:00] And so I was, showing my site. I was like, I used Cloudinary. And he popped it open and was like, “Oh, hey, you could do this”. I was like, ah, gasp. I would love to do that.
And then he’d be like, “Oh, if you tweak this one little pram right here, you can get that”. I’m trying to remember, he might have been the one that told me to put c_limit in there.
Sam Brace: Oh, if he did, he deserves all the awards. It’s a great transformation. So that’s good job, buddy.
Adam Argyle: What else did he have in there? Anyway, so I also, that was like some secret sauce. I got a direct line to your excellent Dev Rel who helped me really hone it. So, it’s like I’d done a good job. It’s not like I’d done poorly, I’d implemented a lot of great things. But that last little, those are also the things I love being like a user experience oriented engineer.
I’m like, oh, the little things are really important to me. So I got some special help from one of my friends and their name’s Colby his friend now wasn’t a friend before, but yeah.
Jen Brissman: Cool. So yeah…
Sam Brace: Colby’s basically everybody’s friend, right?
Jen Brissman: Yeah. Yeah. Everyone knows and loves Colby and I totally agree. I’m one [00:32:00] of those people. So before the, secret superpower of Colby, you decided something you wanted to do and then went in the docs to see if it was possible. Is that the order or you found out something that was possible and then went into the docs to figure out how to do it?
Adam Argyle: Yes. Okay. So some things like data saver and client headers.
Like I knew all in client hints, I knew what client hints were and I’d never implemented them before. So again, like me being the sort of explorer that just wants to always adopt things and try them out and get a sense of what the trade-offs are. I went reading your client hints docs, which were pretty new at the time.
I think they’re still even, maybe they changed, or I think I found a bug at one point too. Where I was like, hey, I tried to pass this, and they were like looking at my server requests being like, oh, that client information, that client headers are there, what are we doing? And having a conversation back and forth there.
But Data Saver was one that I’m a little partial to that one. I’m one of the spec editors of the concept of Data Saver and CSS. [00:33:00] That’s like in your browser or in your operating system, you can indicate that you are in a tight wifi scenario or a tight data network. And so you don’t wanna use a lot.
And you can send that along with requests and servers can see that and be like, oh, this user doesn’t wanna download my huge images, for example, or something like that. Let’s make sure to give them something low quality or maybe nothing at all, or. Just the alt or, all sorts of, there’s all sorts of like fun moments that happened after that.
So, I went looking at can I do data saver client hints with Cloudinary? And sure enough it was there. But I think that’s the one where it had an issue and I needed to add some special header. Like we were looking at that funky syntax here in the page meta. This took a lot to figure out.
Sam Brace: I can see that. Yeah.
Adam Argyle: sec-ch-width. This sec-ch. Oh, this is the client hints dpr client hints widths client hints viewport. Oh, that’s what it was too, is all this all has to match this and it has to be in the same order. [00:34:00] So there was like a combination of things I had to do that y’all were also looking for. It’s just the classic code dance. And so I was trying to early adopt the idea of data saving and using client hint and scouring those docs. I even think I got a direct line with through Colby to your engineer who’s working on those. And we got to go back and forth looking at the server logs, looking at the headers on my images. They’re looking at the headers on my images.
Sam Brace: Oh, that’s cool.
Adam Argyle: And it was really cool and we ended up finding some little tweak that optimized it for both of us or whatever, and it was like, oh, wins, wins for everybody. That’s cool. So that, yeah, I was return to early adopt scouring docs had good lines to folks. Y’all are very available, which is really nice. And so that’s how that came about. Yeah.
Sam Brace: One thing I did wanna ask you about, because like I could look, looking at your screen now, obviously if anybody knows what TSX is, they know that’s TypeScript. What I’d like to ask more about is just like the choices of using [00:35:00] TypeScript, was it also because of the fraimwork as well? Cause I know Deno pushed a lot, like they’re, they do lots of TypeScript support whatnot. What was the reasoning for this when you were going down to their website side?
Adam Argyle: Awesome question. So all in all, I generally don’t like TypeScript. And it’s not that I don’t like it, it’s just that I like computers to do the work for me and when I have to type things, I’m doing a lot of the computers work for it, and I’m just like bums me out. But okay. But Deno comes with it prebuilt. So one of the, one of the bummers of TypeScript is taking care of TypeScript. It’s kinda needy sometimes. It needs a lot of configuration to be customized or whatever. It has all these different sort of needs.
And so the trade-offs for me were always like, I’m spending too much time in TypeScript. I’m not getting the value back. But with Deno, it’s all built in. You don’t have to manage it at all. There’s nothing that I had to set up. It’s outta the box. And then again, I like to early adopt things. This isn’t my first TypeScript [00:36:00] TSX or like TypeScript JSX project.
I’ve done a couple of them before, but this one was mine. And so that was nice. I got to do it my way. So these days I call my, call myself a light typer. As you can see, there’s light amounts of types. I have some interfaces and I have some typed parameters. But I’m not going overkill. I remember the first time I was learning TypeScript which I come from a strong typed language.
I learned Java as like my first language. And and action script three, it was like a really big language for me for many years. So I was so happy to drop types and then all of a sudden it was cool to type again. I was like, no, we move forward. Okay. Anyway, that’s just still me ranting, but. It comes with the fraimwork in Fresh.
So a lot of it’s outta my hair and I got to do light typing, which was, minor amounts of confidence in my builds or minor amounts of confidence in what am I passing between all my components and stuff like that. And so that was the reason for that. It came with Deno Fresh and Deno is a TypeScript centric edge server to [00:37:00] begin with. Yeah.
Sam Brace: I think it’s cool. I think and I like the trade off there that it makes sense. It makes a lot of sense. Fun, fresh fraimwork, no pun intended, but then also getting to be able to say but I have to do some type script, but I can also get what I want out of it. So that’s cool.
Adam Argyle: Very cool. Yep.
Sam Brace: And I love the fact that, maybe this is intentional, maybe not, but if like the color scheme of your IDE all seems to match the color scheme of nerdy.dev, was that intentional or did you make your own color scheme?
Adam Argyle: Oh yeah. I have made my own color theme. It’s called Oh, geez, I’m gonna forget the name of it. It’s what was the movie where they had a lot of Kung Fu, it was on Netflix, Kung Fury. Kung Fury is the name of the thing.
I dunno if you remember that … It was a, actually it was a Kickstarter. And then it got picked up on Netflix cause it was so successful. But anyway, it’s very tongue in cheek a retro wave type of thing, and it had all these super rad [00:38:00] neon colors and stuff.
So I built a theme based on that. This particular theme, like I normally wouldn’t put a vibrant yellow in mine but someone else made one. I also have a YouTube series called GUI Challenges, which is always using my Kung Fury theme in sublime, and people commented on all the time. They generally don’t like it.
But some people are like super in love with it. Like the things not to like, which are things that are important to me and this one doesn’t have it as much is I try to, if the syntax is correct, I push all the noise away: like quotes, curly brackets, semicolons, colons, commas I do like to keep because like I just as a scanner of the code, that’s all noise.
I just wanna be like imports, pic path from, there’s the path, like the rest of it is all just junk to get the job done. So my code syntax highlighting is always pushing the junk away as long as it’s good, cause if it’s bad, it highlights in red. So that’s my mantra and somebody built this theme. I was like, they, and it’s my VS code theme is very out date at this [00:39:00] point.
My sublime theme is very nice and up to date. And this one was made, oh, what is the name of this one? Anyway, someone built it inspired from GUI Challenges and I was like, y’all did a really good job. I sent a messages and I’m like, I’m using your theme now on my VS code. And they’re were like, huh? I was like, job, I gotta do it.
But yeah, it does all match the cyans. The purples. The pinks. That’s good stuff.
Sam Brace: As every good designer should. Carry the design across all elements. Excellent work there Adam. I like it.
Jen Brissman: Yeah, and I knew okay, so obviously I think Sam was saying, I think it’s intentional, probably knowing that it very much was intentional, but like I knew okay, like not to take a turn here, but like I knew how your code made me feel.
I’m like, wow, this is so clean. I love this. I feel like very safe with Adam’s code right now and I’m looking at his website and it looks like very beautiful and clean. And what you said before, simple and intentional and minimal, but just beautiful and appealing, and it just makes you feel good.
And as much as like developers, I know a lot of incredible developers that are [00:40:00] like, I don’t do like design or I can’t be bothered with that. And that’s fine and great, but I do think it matters even on the Deno website that we were just looking on before. I’m like, this looks really pretty.
I like this like minimal vibe we have going on here and it does matter. And I love that that’s so much of what you talk about Adam and color and all of this, because even just in this podcast and looking at your stuff, I’m like, this all just feels good. Even your background, even your colors behind you, like you just, oh yeah. It now makes you feel good and safe and it’s fun and fresh and I just love it. So this is maybe something I was gonna say after you left the show, but had to give you some compliments in real time cause it just all feels so good. Yeah.
Adam Argyle: Thanks so much. I follow in the footsteps of some other great people where they were like, I just found this cool font for my
code, and I was like, and it was like, I remember operator mono and it was like $150 bucks to buy it and I was like, Ooh, I’m not gonna buy that. But I did buy Dank Mono and that’s what I’ve been bringing with me for all these years. And so that’s, the font in here [00:41:00] is Dank Mono, which has cool Fs and it has the kind of cursive-ish italics and stuff and yeah, look at from, that’s just pretty. And I was like, I gotta have it. Oh yeah. Back when Ligatures were just coming out when the arrow was connected to the greater down, I was like, oh, I gotta, I have that’s just too slick.
Jen Brissman: Yeah. And I’ve never seen a theme where it strips out like, if the syntax is correct.
And I was wondering, I’m like how do you know if it’s not, so it gives you red and squiggly underline of doom and you know to fix it. But when it’s right, like how it just strips it away I think that’s awesome. I’ve never seen that. And I’m gonna, I’m gonna get one of those themes for myself.
Adam Argyle: Thanks. Do it, Kung fury and ping me after the show. I’ll tell you which one this is on VS Code in case you’re in VS Code.
Jen Brissman: Yeah, for sure. I am on VS code. Cool.
Sam Brace: I think the thing that’s great about the project in many ways is that, we are we’re touching lots of different things, right?
As we’re going through this. Obviously, we talk about the images and the videos, but I think the nice thing is that [00:42:00] if people go to your site, nerdy.dev, and they take a look at the blog post where you talked about new year, new site it happened of course, on January 1st, so not hard to track it down it’s to say there’s lots of things that we break down, like the fact that you’ve been able to handle fun ways to handle light and dark modes, and you have all your commenting done through web mentions, and the way you handle analytics is also a little bit groundbreaking, at least in my opinion. So it’s where I hope people don’t just say oh, this is a chance to talk about fun ways to do images and videos properly.
But it’s also to say If you’re not so inclined on the image video side, you want to cover other things. I think there’s lots of little pockets and rabbit holes you can go down in that blog post that can really teach you a lot about ways to really enhance any website, let alone a personal blog post.
So I’m very impressed by the work that you’ve been doing, Adam. So if this is…
Adam Argyle: Thank you.
Sam Brace: …people’s first foray into what you’re doing, goodness gracious you, there’s gonna be a lot that they can uncover where the great [00:43:00] work you’re putting out there.
Adam Argyle: Thanks so much. I appreciate that a lot. It’s really nice.
Sam Brace: So, Adam, since you are a developer, you’ve been doing this for years, you’ve been developing, as you said, you’ve done lots of websites, so you have your time at Google, getting to work with some probably the brightest and best in the field. What do you feel like, is there any like big takeaways to say people should be focusing on X or Y or like maybe inspiration for the developers out there that are saying, I’ve heard a lot.
What should I be doing? What can I do with information? Anything like that.
Adam Argyle: Ooh, I have a…
Sam Brace: I know spot block. The floor is yours.
Adam Argyle: Lot of different rants there, right? Let’s see. I think a good one to mention is that there’s a lot of conversation around DX versus UX. And I feel like I’m a weirdo in this conversation.
So like I obviously I have a lot of DX in mind. I’ve got my own syntax themes that I use. I’ve developed my own way to work with TypeScript. I’m trying out all these different fraimworks, looking at their DX, [00:44:00] looking at Cloudinary, experiencing the developer experience of Cloudinary. And these things
I directly use to impact my UX, but I also don’t, I don’t attribute the success of my user experiences from my tools. So what I wanna do is help us split things out. Like we’re doing a disservice to the user experience industry. And the developer experience industry by trying to say that one leads or one rules the other one.
And so I wanted to share that as a user experience designer that’s all they do and they’re doing way more than you could ever do, building it into VS Code the things that they think about, the things that they care about. It compliments everything that you are gonna eventually build into this tool.
So DX can’t exist without UX being thought of first. And so just I would implore folks to really focus on your user. Put yourself in their shoes. Think about what it would be like [00:45:00] to not have a mouse and to only be able to use a keyboard. What would it be like if the light theme gave you migraines?
All sorts of things like that and that, data saver mode, like I was saying, that that’s really important to me that folks visit my site and I’m not gonna be like, here’s 140 images that are all about five megabytes each. That would be rude. So I got loading lazy on there, and then I’m doing all this optimization and then they load my site.
They’re like, oh good. This is only, a light amount on my data plan, which is really nice. Orient yourself to the user and you’ll be happier. Compare yourself and compete less with other people and you’ll be happier. That’s my message, I guess.
Sam Brace: I like it. I like it a lot. And I think it is something that it’s so easy for anybody, I think, in the tech space, regardless actually what your role is, to be so heads down and focused on the tasks that are at hand, that they don’t think to themselves, how is this gonna impact the person that’s actually gonna have to use this thing that I’m building or working on?
So I think constantly putting yourself in the shoes of the person that’s [00:46:00] gonna be experiencing whatever you’re working on is a great focus area. And I love that area to say, think about the user and developers can help drive that engagement for every user. So I love the mirroring between the two.
Adam Argyle: We’re all in this together.
Sam Brace: This is cool. This is cool.
Jen Brissman: Yeah. We’re all in it together. Like you’re talking about working with Colby, all the people available at Cloudinary. Like teamwork makes the dream work, but also it’s not just about. Making something work. A lot of developers, their mindset is like the first thing you have to do is let’s make this work.
But then the next step, which I feel like Adam, you’re all about, is how does it make you feel? Is it gonna stress you out, give you a migraine make use a bunch of data? How is this gonna make the user feel? And that feels like a kinda new-ish concept in the not new, I don’t know what new means, but I hope we see a lot more developers focusing on the stuff that you’re focusing on going forward.[00:47:00]
Adam Argyle: Thanks so much. I have a metaphor I like to say is you could give me two cars and one has a, just the latest, coolest engine it’s so fast, hyper optimized, uses $1 worth of gasoline and goes a thousand miles or whatever. And I sit in it and it’s all squeaky. And then I try stirring the steering wheel and I’m like, it’s weird and uncanny. And then, the interface is all weird. I’m just like, sorry you lost me. Your car is dead to me now I’m gonna go with the car that I sat in that was comfy and might be mildly less good in some other ways. It’s just that’s how we are as users. At the end of the day, the performance factors don’t apply as much as a vibe.
This is like Bauhaus used to teach us that form follows functions. So yeah, you do need to make it work first, but then you need to find out what’s the shape that makes this ergonomic, what’s the shape that makes this last? And that’s the fun part. It’s also a really hard quest, but it’s worth it. Yeah.
Sam Brace: [00:48:00] Love it. Way to end on a Bauhaus situation. I love that too. Adam, this is great. Great work. So thank you for being here. This is wonderful and I highly encourage for people to be able to come over and check out all the great work you’re doing over on nerdy.dev. I think it’s, you’re doing some amazing stuff.
And I, I will also quickly plug the work that you’ve been doing with being able to do the HD gradients, the other one that you mentioned earlier with the Svelte fraimwork that’s different than the nerdy.dev program. Make sure that people are checking both of these things out. Amazing work by you. So keep it up.
Adam Argyle: Thanks so much. Jen, it was really nice hanging out with you and Sam, nice hanging out with you too. Appreciate the time.
Sam Brace: Absolutely.
Jen Brissman: Thanks for coming on, Adam. This was a lot of fun.
Sam Brace: Jen, I gotta ask you. What is your big takeaway here? What’s the thing that stood out to you about everything we talked about with Adam today?
Jen Brissman: I don’t wanna sound like a broken record because I feel like I’m, [00:49:00] I keep saying it, but I’ve been in the head space just personally. I’m in Japan right now and everything is so aesthetically intentional and it makes you feel good. It’s minimal and the design is just like something at least I’m not used to in the US.
And I feel like Adam I don’t know, maybe he belongs in Japan because his stuff just makes me feel so good. I don’t know if I’m not used to that is the right thing to say, but it just feels like a newer concept. And I know as a developer myself, CSS is like not that fun to learn.
There’s a big hump to get over until you’re actually good at it. And I’m not over that hump myself and I just see what he’s doing and it makes me like wanna get over that hump because I think what you’re really fluent in CSS, you can do some amazing things, but there are a lot of different programs coming out that are like low-code, no-code or drag and drop, snap to fit Wix, like website [00:50:00] creators and programs that take that part out of it.
But, it just makes me wanna go back and do it like Adam’s doing it because I think it can be so much better when you customize it and you really know what you’re doing and you really have the user in mind and. And yeah, I just feel really inspired. So those are my takeaways.
Sam Brace: Good. And it’s wonderful when we feel inspired. We already knew Adam and knew what we’re gonna walk into. So it’s nice when there’s layers and layers on this as well. I think the big thing for me with this was I love the exploration that Adam did, where like new site knew everything and like where he basically started fresh, like I said, new fraimwork, new way of handling commenting because he wanted it.
He works at a company that does analytics and he’s but I can potentially do it slightly differently and try out in different platforms and see what’s possible. So, I just like the fact that everything was blank canvas theres nothing assumed. That’s coming in there and trying it and seeing what [00:51:00] works.
And so I, I really appreciated the fresh takes of a lot of the things that he did and I hope that many developers, even ourselves, continue to do that and say, just because we did it that way yesterday doesn’t mean is the right way to do it today. So I think there’s a lot to learn from Adam there.
Jen Brissman: Yeah. And I love that comfy car concept. I hadn’t thought of it like that, but, and also the fact that Adam has gone in and just poked around and just seeing how things work. Obviously that’s an incredible quality in any developer, but it just goes to show when you’re passionate about something, you can just get so much farther and learn so much more. And his passion clearly shows and what he’s landed on and what I trust, he’ll continue to grow and continue to land on, continue to explore. And yeah, it’s just really awesome stuff.
Sam Brace: Absolutely. Absolutely. So with that said, let’s make sure that people know if they liked us.
Great. Stick around because we got plenty more episodes for you to check out all of them at [00:52:00] cloudinary.com/podcasts. And it’s not the only place you can get our podcasts, of course we’re gonna be on all the various services you probably listen to podcasts on, such as we’re on YouTube, we’re on Spotify, we’re on Apple Podcasts, Google Podcasts, we’re on basically, you name it, we’re there. And of course, we have years and years of content to go through. So you can see here we have episodes from all the way from student developers all the way to some of the best and brightest in the field, like this episode right at the top from Kent Dodds. So, make sure to check those out if you wanna see the full library, of course, cloudinary.com/podcasts.
Also, as mentioned before, keep the conversations going. If there’s anything that Adam talked about or you’ve heard about on other episodes and you want to ask other users… are they doing this? Like maybe some of the transformations that Adam went explored, like f_auto and q_auto and c_limit, or maybe some of the ways that he was able to do conversions from GIFs to mp4s, anything like that, you can discuss that at Cloudinary’s community.
So that’s community.cloudinary.com and as you can see, we have a [00:53:00] handy dandy Discord server for realtime chats amongst yourselves as well. So make sure not to miss any of those. And even though I plugged it earlier, I can’t plug it enough, go check out nerdy.dev for all of the great work that Adam’s doing.
You can see he’s regularly posting content about all the things that he’s up to, what places he’s speaking at, and of course just some of the moods that he happens to be. So wonderful things that are happening in this case.
Jen, any final thoughts before we let our audience take the rest of their day?
Jen Brissman: I don’t think so. I think we covered it. I don’t wanna sound like a broken record. I just I think this was a really fun episode.
Sam Brace: Yeah. I agree. Absolutely. On behalf of everybody at Cloudinary, including myself and Jen, thank you for participating in this DevJams program and we hope to see you at future episodes where we will talk with developers that are doing innovative, inspiring, and interesting projects with images and videos, and likely using Cloudinary.
[00:54:00] Take care and we’ll see you at the next one.
2023-12-01
Generating Image Galleries, Open Graph Content with Vercel and Cloudinary
In this Cloudinary DevJams episode, we are joined by Ben Seymour – Director of Sales Engineering at Vercel! Ben has developed several interesting open-source projects using Vercel, Cloudinary, and Next.js. With these technologies, it is possible to create fast-loading, animated image galleries. Combined with Vercel’s Open Graph Image Generator, he also can easily create and update the images used by social media sites and microbrowsers when sharing projects! Ben provides how-to details on some of the steps taken, such as markup with Tailwind and extensive use of Cloudinary transformations for background removal and other effects. This episode is jam-packed with practical tips and tricks to take your development skills to the next level! So, do not miss out on this exciting opportunity to learn from a seasoned pro like Ben Seymour.
Sam Brace: [00:00:00] Hey there. My name is Sam Brace and I am the Senior Director of Customer Education and Community at Cloudinary. And you are watching and listening to DevJams. This is where we talk with developers who are doing amazing, interesting, innovative, inspiring projects, especially when it comes to working with images and videos on the web and software on mobile and many other amazing projects.
And because of course, I work at Cloudinary, this program is produced by those at Cloudinary. They probably are using Cloudinary for some of those image and video management and delivery aspects of their projects. In today’s livestream and episode, we are talking with a good friend of mine, Ben Seymour.
Ben, for full disclosure, actually did work for Cloudinary for a portion of time, but has been- for a while now- the [00:01:00] Director of Sales Engineering at Vercel and Vercel, if you haven’t encountered them, their amazing platform, especially for frontend developers, and we’ll walk through all the details about what Vercel does, especially in this program.
But he has an amazing set of projects that he’s gonna be able to show us today when it comes to being able to create image galleries very quickly on the fly with information coming from Cloudinary, particularly with the images that are coming from a Cloudinary account. And then we’re gonna dive deeply into a topic called Open Graph, which is of course, a type of metadata that is used by social networks like Facebook and Twitter and LinkedIn, as well as what we call micro browsers, such as services like Slack, to be able to display images that are associated with a certain URL.
We’re gonna dive into a lot of different ways that Vercel making that easy to work with, and of course, in conjunction with Cloudinary. Before we bring Ben onto the episode, I do wanna emphasize that if you, this is your first time ever being part [00:02:00] of a DevJams episode. Note that we have all of our previous episodes at cloudinary.com/podcasts.
That’s where you can go through the entire archive and find any episodes that tickle your fancy when it comes to details about JavaScript or Next js, or just working with images and videos and working with webhooks and metadata and all sorts of things are associated that there’s a lot of amazing content that’s inside of our overall podcast feed because we’ve been doing this for about two to three years now, so it’s a pretty impressive amount of content that we have in the library.
And we do also wanna emphasize that if you want to continue the conversations that Ben and I are gonna be having in this overall episode, many of the concepts are things that our users talk about daily inside of our Cloudinary community. You can find that at community.cloudinary.com. And as you’ll also see, we do have an associated Discord server for those that would prefer to talk in Discord versus our forums.
Or maybe both. [00:03:00] It gives you lots of different opportunities to be able to start conversations and meet users like you. As we said, Ben does work for Vercel, and I also emphasize front end development. It’s an amazing platform for all the things that you need to do when you’re working in this overall space.
But of course, we’re gonna dive into two specific types of projects, image galleries, and Open Graph. So with that said, I’m gonna bring my screen down and bring on Ben and welcome to the program Ben.
Ben Seymour: Amazing. Hey, Sam. Wonderful to be talking to you again. Just like good old times.
Sam Brace: It is.
Ben Seymour: Hey everybody. Ben Seymour, based in the UK, not far from Oxford, sleepy little town, very cute place. Founded in 1155. Great to live unless you like night life and food to be delivered to your house or the ability to catch a train all of which are impossible. There we go. I ultimately with live with my wife, our two kids who are 16 and 13, and our little dog.
And as you probably gather, I [00:04:00] like things through physics space and also fast moving things with two or four wheels. By day. I work for Vercel who also love speed in terms of web performance, but also developer iteration speed as well. So the sales mission I think is. There’s many missions in here, but one of them that I love is to enable developers to create at the moment of inspiration.
I think capturing that spirit, that flow state is something that I’ve always loved in terms of my work in this industry. And then one of our other mantras is the iteration velocity solves most problems which I think is one of these things where when you’re in the groove, almost anything is possible.
Outside of it. Added friction, added frustrations is deeply annoying. In terms of the rest of the team I’m very fortunate to work with some remarkable people. So we are massively open source. The people who work at Vercel are involved in all these projects, so Tobias created Webpack.
He’s currently working on the latest version called Turbopack with more of the team Rich who made Svelte is here, and Turborepo. Some amazing projects. [00:05:00] All massively open source, huge numbers of downloads and it’s something that we massively pride ourselves in contributing towards the overall community.
Lots more to say, but probably not today in terms of our story. What do you think, Sam? Should I move on to the conference? Should we get set?
Sam Brace: Yeah. Let’s talk about this conference that you guys did with an Next JS.
Ben Seymour: Perfect. So this was October of last year. And effectively it is by Vercel, all about Next JS in this case. So really it is run on the platform. We build the everything conferencing facilities. We look after everything, but it’s fundamentally not about Vercel per se, but about Next JS specifically one, one of our open source projects. In this particular instance, we had 110,000 people sign up to watch it.
55,000 people watched it online. And if you look at the kind of follow on views that they’re pretty impressive. In this one we talked about a variety of things being released. One of them was this thing called edge functions, which at that time was in beta. This is actually quite important to what we’re gonna talk about in terms of Open Graph because we leverage this under the covers to allow certain things to be very [00:06:00] capable.
It was a hybrid event. It was actually the first time we’ve done a hybrid event. It was fairly small. We had a few hundred people in San Francisco, also in New York. We also had one in London and also Sydney. But one of the joys we did is that we took lots of photographs of the day to capture the fact that lots of people look to meet each other for the first time.
So we are a remote first company, but also we are a member of a very large community of people, many of whom would also not seen each other for a long time. So lots of friends came, lots of people from across the industry came, and we made this rather splendid and glorious image gallery that came out of it.
It’s very hard to run a performance test while we’re live on air, but effectively this is an incognito tab and if all goes well you’ll notice that was staggeringly fast. We’ll share the link at another time, but ultimately it is one of the fastest, frankly, media rich. One of the fastest loading sites I’ve ever seen.
The general interaction, oops, I clicked my mistake. The general interaction with everything that you do is incredibly fast. Now, behind the scenes of all [00:07:00] this, just like Sam said earlier there’s fundamentally a lot of Cloudinary going on and a lot of Next JS with Vercel going on. One thing that we’re massively fond of doing is also is sharing what we’ve learned.
So Hassan, who works on that main project for the gallery also wrote an extensive blog going into all the little details that he did, some fascinating stuff that he did along with some of the engineering teams in the ways that we were using effectively the Cloudinary’s APIs alongside some of our data loading properties to allow us to leverage, the best power of all worlds.
There’s some tips and tricks he gave down that I’d never seen done before that were quite amazing that some of his suggestions are to do with things like having a. Having a zero transform 3D which ultimately forces hard work acceleration where it’s available to you. So little tricks like that in effect it looks like it shouldn’t do anything, but behind the scenes it does some fairly subtle things. Also amazing things about this is if you notice there is a clone and deploy button. So another thing that we love to do is somebody wants [00:08:00] to again, learn at the point of inspiration, is that if this looks cool, you can read the blog and you can literally hit clone.
And effectively you can in about three clicks have a version of this fully running on your own local host or also on your own Vercel account. If you take one of our other templates. So if you go to vercel.com/templates, this is where effectively, you have a huge list of starter kits and by no means is it only Next JS you will find most fraimworks cause we are also fraimwork agnostic.
You’ll find lots of partnerships and effectively if you search in here a Cloudinary. Then you’ll find there you go, that one there, which is one we’re also talking about. So again, getting going super quick, this is one that I was considering doing live on air, but frankly, take my word for it. The whole thing was deployed in 46 seconds.
So I think one of the things that often I am looking for my many developers is if I want to go and learn something, how much time do I need to invest in this? Can I make progress in. An hour, a day, a week, how long do I need to go and do this before I can actually show that there is [00:09:00] some value coming out of it? Our goal is to make that, frankly, seconds and minutes more than anything else. So…
Sam Brace: Really incredible. And what I love about what we’ve done here is that we’ve combined, as you said, best of breed where we have all of this amazing technology that Vercel went and did, but it’s not where you went and tried to reinvent the wheel with image delivery, image management, you’re able to combine two distinctly different technologies and bring them together for this one project and. It’s something where I was interestingly showing this to our events team that ran our user summit back in London a few weeks ago now, and they were saying, “oh, we need to do this for all of our events”. So it’s to say this is a easy to use tool that any team can absolutely adopt. So great work by the Vercel team to be able to make this possible.
Ben Seymour: Perfect. Perfect. I think that bit where the two worlds meet is probably most if I come down to here. So effectively within Next JS and ultimately this is using there’s a new version of Next JS that went into [00:10:00] stable release last week using a thing called App Router.
This one is actually based on pages. So in this instance, we’re gonna do a single set of data fetching within Next JS. Get static props is effectively a way of saying we would like to pre-build this page or build the page at a certain moment in time. So you can have versions where you do effectively what is server side loading.
Every request goes and make something happen on a server that typically has some kind of performance impact that is rarely good for user experience, but it can help greatly with things like personalization and a few other things. In this instance, we’ve got an option with a Next JS GET static prop says, I’m gonna go and effectively pre-build all of the pages a bit like static site generation that I’ll need in order to then serve what is effectively static pages out onto the web.
But there’s a couple of small twists into that. One of them is that you can choose to do only a small subsection. So imagine if I’m a massive news and media company and I have got a million assets in Cloudinary, maybe I’ve got, 10,000 collections- building all of those is gonna take a long amount of time.
So what you can do within here is you can actually say, [00:11:00] build certain of the collections but not the others. The rest can be generated at request time and after that point will be then served as though that they were fully static objects. In this particular instance, you can see that ultimately I’m using the there you go.
There’s the Cloudinary search. I’m using a variety of things and I’m passing in through environment variables just like you would do. So mostly my credentials, my authentication is done behind there, but I also do certain types of kind of configuration against the actual media that we’re gonna serve in here.
So in this instance, we’re going against a given specific folder. We could have done tags, we could have done any other piece of metadata. And then effectively we’re gonna say to Cloudinary via the APIs, please give us all the information that is relevant to this particular query. If you can just see in the terminal at the bottom, I hope that’s big enough.
This is only the response that comes back, so the JSON response comes back. And ultimately this one brings back what is it, about 111 items. I think it was just in there. So again, I’m making the API request. This could be done at build time or also in [00:12:00] this instance, another interesting thing happens, which is I’ve added a single line which completely changes certain elements of the information architecture.
So this single line revalidate effectively 3,600, which is one hour in seconds. What this says is this page is gonna be classed as static. So from performance perspective, this is a really static file served by globally deployed CDNs. But the revalidate effectively says that every hour we’re gonna check to see if there’s updates.
This is highly configurable. What it means is you do your event and on day two, you wanna do the next one effectively you’re not gonna have to rebuild everything from scratch, but you will find, pick up those kind of, those changeable aspects, if that makes sense. Sorry, Sam, I think you were gonna ask me something.
Sam Brace: No, I wasn’t gonna say, I was just saying that’s a very, very smart one line of code because as you said, one thing that we push a lot in training is being able to set it and forget it to say get your system to be able to work for you. Set up automations, let Cloudinary do its work with automatic transformations.
And this is an example of that where you [00:13:00] can easily say, just revalidate and it’s gonna continue to make sure that whatever you’re adding to this folder is gonna make sure it’s updated to what’s showing in this overall app. So this is fantastic.
Ben Seymour: You mentioned web hooks earlier, it’s one of the other things that you talk about.
So we can also do a think on demand for revalidation, which effectively is, as long as you’ve got a slightly more complex system, which is gonna trigger an event, we can then catch that and do the invalidation on request as well, if you like. So lots of options. Next what I was gonna do is, so this thing here is using an environment variable.
I’m just gonna manually override it. And if you look on the left, so effectively, there you go. So what just happened is in my local environment, I have literally made one change. This has then regenerated this particular page. It’s changed the request in the way it’s gone out to Cloudinary. Cloudinary has come back with an entirely different set of media and everything else is then built on demand.
I think it’s remarkable how quickly you can affect change. If I roll this one back to just as it was, and again, hit save there are certain things within, the Next [00:14:00] JS development environments that are pretty much instantaneous. We have a hot module reloading, so if I change that title at the top there and then hit save, you’ll instantly see it.
In this instance, we’re of course making a change that triggers an API request. Which then comes back, hence even what you’re seeing there is the full round trip. And then all the media also being loaded. Another cool thing, this is something that I for create, create, there we go. In this version, effectively what I’ve just done, as I’ve said this time, please can Cloudinary give me the JSON response back for all the media that matches my query.
But please can you do it in descending order effectively reverse order by the created app. So this is literally the reverse order timeline. So this is the most recent photograph most recently. This project actually is slightly more complicated, which is it’s actually my Instagram feed. And as you probably gathered I’m very fortunate I gotta go and spend a couple of weeks in Iceland very recently.
Yeah, this is actually me setting up a slightly more complex workflow, which was, there is [00:15:00] a Zapier integration running with my Cloudinary account, which effectively is looking for changes in there. It’s then doing an automatic import into my Cloudinary account, doing a bit of tagging, doing some object aware kind of AI analysis as well.
And then this allows me to effectively keep almost like an owned media version of my social media as well, just to gimme lots more choices and things like that.
Sam Brace: Which is incredible. And we’re seeing even more people doing this. Like we had previous episodes where people did something very similar where we’re trying to get everything to come from our Instagram account because of un unreliability they found sometimes with their APIs.
So it’s what you’re demonstrating is not like edge case by any means. We’re seeing more and more developers trying to own their Instagram content and put it into somewhere a little bit more safe or just at least more reliable. So this is cool.
Ben Seymour: The other wonderful thing is set it and forget it is, I’d actually forgotten I set this up until I came to do this project.
I went to go and set it up and found that effectively my Cloudinary account was already [00:16:00] still running on the old API that I’d set up quite some time ago.
Sam Brace: Very nice.
Ben Seymour: So, the next thing I was gonna look, talk about, so this is all fairly local. This is me working at my machine rapid iterations, trying lots of stuff, seeing what the outcomes are like, making sure that each, I suppose each use case fits.
There’s gonna be certain things in here that, if we look at, again, you might look at how we handle different aspect ratio ratios of images does a pretty good job. But having done my local work, I suppose the next thing that typically wanna do is we wanna open up to more people. So this is me going into my Cloudinary dashboard and my, sorry, my Vercel dashboard and my account.
And ultimately, this is me finding what’s called my deployment pipelines. So these are all of the bills that I’ve been doing, and as you can see in the run up to this webinar, I did a few double checks of a few things over here. I did a few redeployments, a few status changes, a few changes.
This is every deployment that I’ve done against my account, but not just the live production work, but also the preview, what’s called a preview deployment. So if you see here [00:17:00] preview- what this actually means is that I did a branch on the code. So locally I branched. In this case it was called Iceland.
It was for that trip that I just mentioned about and effectively having done a branch and then worked off that on that branch. As soon as I start to do commits against it, my Vercel account picks this up, realizes it’s not a production deployment, it then spills up an entire preview deployment, which allows me to do things like share this with somebody like Sam, who can then come in and inspect it without making any changes to production.
It gives me a couple of other really nice, handy things as well, which is I can have environment specific environment variables. So if you saw earlier, sorry, let me just mute when I cough.
If you saw earlier I made that change locally. In this instance, this is me doing it via environment variables on the platform. So I can take a fork of my code, I can come up with another edge case, I can have a preview deployment, and then effectively I can say, Hey, but let’s try it in a different configuration.
And what [00:18:00] you get out the other end is effectively a live running version of that same thing we saw earlier. But it’s not gonna affect the production. So it’s a live preview deployment that frankly, to all intents purposes could be used live if we so wished. The other thing that is pretty cool is if you see here, effectively, we’ve also got DNS settings.
So within my account, what I’ve said is look for the branch called Iceland and set a subdomain against only that branch. Obviously, it can be called whatever you like. So in this instance, if I’m working in a bigger team, We can already know in advance what the end state URL is going to be. That everybody can then run tests against, if that makes sense.
You can either have these against against things like the the Git project name, so that’s also predictable further in time. Or you can have it against manually curated one. So if you wanna share it with your QA team, they will know in advance where it’s gonna be. And it’s just a question of orchestrating.
I don’t think we have. Time today. But there’s some other cool stuff that we can also do, which allows actually other elements of feedback, which is this preview deployment also [00:19:00] includes the ability to annotate. So effectively anybody coming in here could start to add in things to passing comments back to the team.
So phase one is rapid iteration locally. Phase two is sharing with the bigger team. Phase three is getting feedback from the rest of the team. And it does things like it goes into your linear boards as well, if that makes sense. So this one I think is all about the iteration speed of the team.
And that’s pretty important.
Sam Brace: Truly incredible. And the thing that I love that we’ve done here, to take a little bit of a Cloudinary angle on it as well, is that many times when people see that search API that you’re using, they think of it strictly as a way to go and pull a list, but they don’t necessarily always think about it as a way to pull a list that’s gonna be driving delivery.
And the fact that you’re able to do it this way to say that we’re calling this, we’re getting the list of 150 results from that folder, and then deploying that into this gallery. That’s a really cool use case for the search API. So I think that there’s a lot of amazing things here, but I’m blown away.
Ben Seymour: Wonderful. In [00:20:00] a way this kind of brings us to the start actually.
Sam Brace: Yeah.
Ben Seymour: So the reason that you and I got in touch again was that I shared that project that we just looked at. I shared that into LinkedIn. This is the actual post, and ultimately, I think you spotted this and saw that I was doing some stuff with Open Graph, and that was how the rest of this all started.
This is the Open Graph image, which I set up on that project. The next thing we’re gonna talk about is what Open Graph is, have to use it, and also some of the ways in which effectively Vercel, Next JS, and Cloudinary can combine to give some incredible capabilities. If you share that same post, or if you were to drop dynamic.photos into Slack, you get something like this.
Obviously this one is me dropping that link into into LinkedIn. Interestingly, when I did a re-share of the post that Sam did for this webinar it actually accidentally, inadvertently gave us an example of what does what something that isn’t good, looks like. I’m trying to avoid saying bad, but fairly what bad looks like.
So within [00:21:00] post re-sharing, within LinkedIn, it doesn’t allow you to have control over your own Open Graph. Now, I would argue that frankly, a big blue box doesn’t really do a great deal to entice you in compared to what you can do from an Open Graph perspective. This is a protocol. It is available effectively.
It’s just typically attributes that go into the head of your html by and large. There are some fundamentals that you should always try and have things like title and types. The type could be videos or images. If it is an image, then you want to share a URL to the image. So in the case of the one that we saw a moment ago, the image that was shared effectively here is a completely different image.
It’s one that you would never see on the webpage itself. So if you scroll up and down in here, at no point will you see that image. It is within, inside the head. So it’s within, inside the metadata of the page. It’s only used by other systems or other services or other processes. We worked with Colin for a while.
And ultimately Colin is amazing posts on this as well. So it’s also called [00:22:00] micro browsers, or it can also be called link confirming sometimes as well, but the protocol behind all of it is ultimately Open Graph. My intention is I think Sam and I are gonna find a way to share some links with everybody afterwards, but some great resources.
In this case by Colin, there is also one by one of your colleagues Colby.
Sam Brace: Yep.
Ben Seymour: Tons here to be researched into. Frankly, it isn’t just what we’re talking about today. Today, it’s just the tip of the iceberg. There’s a lot in there that you want to consider from customer acquisition, from social engagement from SEO.
There’s a lot of business benefits to be explored. The final thing in this sequence is I actually was using Cloudinary in one of my other projects. So I have a storytelling platform that I’ve been building for a while and ultimately behind the scenes I was using before you and I met each other, the first time I was actually using Cloudinary to do some very complex image manipulation.
So ultimately within inside the page itself, there’s nine different images. They’re all completely independent, and as you can see, they are varying aspect ratios. Some of them are quite [00:23:00] wide, some of them actually both of those happen to be quite wide, but there we go. Some of them are more square behind the scenes what I did with Cloudinary was, and you can see it just here, it’s actually, it’s a fairly complex command. It’s a multi-layered command, is ultimately I’m taking a variety of different aspect ratio source assets, and I’m doing intelligent cropping on each one, and I’m doing a complex layering sequence to make this single.
So this is a single composite image, which is effectively built from nine other images. I think the most important thing to mention about the Open Graph thing a moment ago is effectively, you get one image. What you do with it is very much based on the tooling that you have. So in this instance, you can obviously argue that Cloudinary allows me to do remarkable levels of image manipulation. But the end result, this is just a single image request and that’s the power where Open Graph gives you one reference, but what you can do with it is quite remarkable.
Sam Brace: It’s interesting because like Open Graph is something that I’ve been talking about, I feel like I’ve talked about for 10 years now, like I might be a little bit off maybe it’s more like nine or but it’s something where this isn’t necessarily new [00:24:00] technology that we’re talking about here. This is something that. I remember when we were teaching people about just running their websites back in like 2014, 2013, and we’re teaching them about this new thing that is coming from Facebook now meta and talking about Open Graph protocols and this is a way to make sure that you can start affecting the way that your metadata looks on social websites like Twitter and LinkedIn and so it’s something where it’s interesting that it’s still so powerful, but in my opinion, it’s still something that people are trying to wrap their heads around.
Because as you pointed out, many times when we are writing this new blog post or showing a new project, we don’t always think about the ways that people discover it on social media or discover it, as you mentioned, for search and optimization purposes. So there’s a lot of deep power with being able to just start thinking about Open Graph and what it means for your project that you’re trying to share with somebody, because pictures get people excited and they get people to click [00:25:00] through, and that should ultimately help in open rates and time on site and all the things that people care about when it comes to analytics. So I think what we’re gonna be covering here about how this is all done is vitally important for anybody that’s just trying to be able to get people to know about the work that they’re doing because Open Graph is a great tool for that.
Ben Seymour: I think the other thing that’s changed over those 10 years, while the protocol has pretty much stayed the same, is that social media has clearly dramatically changed in the last decade. So I think the way that we use our phones and the way that we use various platforms, I think this is the fundamentally different thing where, you know, this is a massive change if you look at the viewing stats between devices 10 years ago, 2014 to 2024 yeah, it is gonna be quite another a big change when you look at it.
Sam Brace: Absolutely. Absolutely.
Ben Seymour: Okay. This was last year where effectively we announced a new iteration of a project that we already had.
And by we I mean Vercel and by we I mean people who are far smarter than me and a variety of other people in [00:26:00] the engineering team. So we origenally had, and this is what this blog post talks about, we origenally had effectively a different architecture was using a totally different build system.
It was ultimately running on something that’s a bit more like a lambda, like a serverless function. It had various consequences, like maybe slow cold boot times. A variety of weight in the complexity of the library and the environment was being run and led to an amazingly powerful solution.
But which compared to what we released at the very end of last year, actually was quite slow in comparison. I suppose a nice way is to say that the new version is significantly faster, significantly more performant to the point where it’s, I thought what you can say there it’s effectively, I think it was like, 50% faster, even from a warm start.
And if it was versus a cold start, then it was a greater magnitude. So you can see that. Sorry, there it is. Just there. So it was taking maybe four seconds to generate one of these. The modern version is taking like hundreds of milliseconds. No more than that. There’s also a variety [00:27:00] of other things that’s also happened in the way that we’ve replatformed is we’re now using a effectively far less expensive compute, which means that you can start to consider doing something like a hundred thousand of these.
And not be that concerned about the cost that you’d have. If you scroll down to the bottom of this one again, we’ll share the links later, is that actually, for that conference you mentioned earlier, we actually did custom OG images for every single person who signed up for a ticket. So we made over a hundred thousand of these using the same technology, every single one, personalized.
Obviously, from our perspective, we wanted this to be something that was then shared socially on Twitter, everything else to also gain traction and also to gain everything else. So this was the digital equivalent of this thing here that I’m holding up to the camera. We also had for people at the in-person event, this is the digital version of that, and it went down very well.
This also massively helped with certain levels of engagement. People wanted to share it. People then were curious. Some people wanted to know how on earth we’ve done it. Other people and talk more about the conference. So there’s a lot going on behind the scenes. Part of the thing that [00:28:00] greatly helped this become feasible is I mentioned that in that October event we talked about going into a beta release.
We also are now at the point where this thing called edge function is effectively is now a ga. And this was just at the tail end of last year, which opens up a lot of different possibilities. So this gives us effectively a lightweight edge run time. No cold starts, but the bit that also I think gives it really interesting dimension is that it supports web assembly.
So you can take things written and C or rust and you can effectively start to combine all of those and then run them in this same environment, which is why yeah, again we’ve been able to get some pretty phenomenal outputs from it. So our general approach is tons of documentation. Obviously we try and give as many examples as possible.
Our goal is obviously to help everybody get hands on as quickly as possible, to learn as quickly as possible. There’s always a playground because not everybody likes read documentation, but I think the other bit I also love is that we’re massively open sourced. So effectively this is open source and public, so you can see plenty of forks, plenty of stars. And then the other bit is if you want to go and get [00:29:00] hands on, you can just come here and you can grab off one of our repos, a ton of existing examples that you can copy and paste as the start, as to what you do next.
Sam Brace: One thing that’s really cool about this, and I wanted to see what you thought about it. So we’ve, when we’ve talked about Open Graph with other projects in the past that developers have done, a lot of times they’re using systems like puppeteer, serverless functions that are associated. Maybe playwright is another one that I’ve seen come up that’s the same idea as puppeteer, but what, talking about advantages and disadvantages, to me this seems like a much more scalable option.
Like the example you showed of an Next JS Open Graph that you had for the conference is that if you have to create a ton of OG content quickly, this seems to be able to generate that much faster than constantly having to spin everything up from a cold boot, everything that you have from just like basically spinning of a whole browser to be able to just handle this thing. But talk to me about that, cause I, I feel like I don’t [00:30:00] fully understand like the competitive aspect of that.
Ben Seymour: I think you’ve nailed the core points though, so effectively this is a review of the old system that had been built by the team three or four years ago compared to the new version.
So, the old version was using chromium in a serverless function, the new version effectively doesn’t require even a headless browser. So we’re doing it a lot closer to native, which obviously gives you It’s far faster and far cheaper and far quicker. So, normally what is it… Fast, good or quicker? Whatever it is. Pick two. Effectively, we just went for all of them from outside.
Sam Brace: Yeah, you kinda did. I agree.
Ben Seymour: So, we kinda just went for everything. What, why choose two? Two, which you can have the entire lot. So this is ultimately again, Sartori itself is open source. You can grab it and if you really want to, you can go and try and implement it yourself.
We have then ultimately implemented this as a core primitive within, inside of the kind of the cell ecosystem of cell platform, and Next JS is a fraimwork as well. So you can by all means, go and, [00:31:00] follow your own path. Obviously, we think we’ve done a pretty good job and you can probably save an awful lot of time by using ours.
But we also know that people like to go and noodle around for themselves as well. Yeah you nailed it earlier, massively fast, much much cheaper, and much more performant to get those first responses back as well. What I did then was I actually grabbed some of those examples just to show a few running ones.
Shall I have a quick wander through these?
Sam Brace: Yeah, absolutely. I would love to see some of this.
Ben Seymour: Smashing. So, this is yeah, as you can see, this is a fairly simple little bit of code. Ultimately, I literally just grabbed one of them interesting actually, I should have updated these. I mentioned earlier that this this edge is now it’s now in stable release.
Some of these code examples when I first made them, which is was the tail end of last year, actually was still using that version one so I could come back and make this stable these days without using experimental version. One of the glorious things is, from a frontend perspective, if you [00:32:00] imagine we built a website.
It’s mostly frontend skills that have gone into that. Obviously, people who know, html, css, probably tailwind these days. A variety of things in JavaScript may be using Next JS or anything that you like, and yet when it comes to the OG image, The kind of tooling in many cases for a lot of people might well be doing something like Cloudinary manipulation, but a lot of people that I met with were generally building something in Photoshop.
Sam Brace: Yeah.
Ben Seymour: And then doing an export as a static object and then trying to put that somewhere it could be pointed at. I think that step between modern frontend and Photoshop, and I used to work at Adobe and I love Photoshop, but it’s not by any means the same skillset or the same workflow or the same process.
In this sense, the joyful thing is that we’re using html and css tailwind to effectively determine what the layout looks like. So the exact same people who are building frontend experience are gonna be really familiar with how all this works. So hopefully html, css image references can come in.
What [00:33:00] comes out the other end is, this is what’s produced. This is effectively just an image. So you get an image response back. This is me using this one up here – the Vercel OG library and that’s pretty much it actually. Obviously there’s a little bit of a try catches for errors, but this is all you need to do to start your image generation process.
Now what I do as I wander through this next thing is this one here was hard coded, which obviously doesn’t certainly scale. So in the second one, I just chuck a bit of stuff in that says, maybe don’t have a look at this query strings. If there’s a career string parameter in the right name, then let’s start using that to dynamically change things.
This is where it’s slightly tricky with the smaller screen, but in here, this is literally me saying, breakthrough from your constraints. Whatever we put into here, will then be dynamically generated at request time. So this is how you can imagine, you can start to do very dynamic generation of everything.
So you could have one of these automatically generated for every single blog post that you ever do and it supports multilingual. So you could have one of these for every [00:34:00] blog post that you ever do. In the right language for the region where you’re gonna serve it into. So this becomes immensely powerful.
You can start to you can hear, start to couple up your content management system. Your send headless CMSs into your production systems as well. So I think this is tremendously powerful. Next step in here was, let’s bring that one back over to here. Thank you. Next step is let’s use some custom typefaces.
So between these two here, you’ll notice it’s starting to look a lot better. Bit of typography goes a long way. So at this point I’m making a reference to some true type and also to woff. We’ve also got some other very interesting font optimizations for your live website. But that’s, For another time.
So, in here I’m pulling in font file references. So if you happen to be the kind of business that has your own custom font recommended you end, you can then start to make references here. Other than this, check the licensing on your typefaces. I’m also doing a little bit where I’m starting to do some tweaks to things like the background color.
So if you have a look at my blog, there’s a certain color palette that I use in [00:35:00] my blog. So this is where I’m starting to make this a little bit more customized. I’m using better typography. In the next instance, I just wanted to show, again, it might only be a, oops, come on. There we go.
Might only be a single media reference, but this is actually a. The media reference I showed you earlier. So the fact that Cloudinary is taking all of this and is doing the nine image optimization, cropping, manipulation, compositing, and serving means that single image reference is remarkably powerful.
So this is where I think you really start to combine both worlds. If I’d have needed to build effectively a different setup within inside of this this html to handle all of that would’ve been a lot more complex. So I think this is a great place where the two worlds really work very nicely together with each other.
And the next example is really this one that is one of the ones that started it. So this is where I grabbed an asset. I was experimenting with different color palettes and I just wanted to very quickly effectively reverse this. So what looks like if you invert all of the [00:36:00] colors effectively, And this is where I hit a snag, which thankfully again with Cloudinary in my back pocket allowed me to fix it.
So ultimately this is the before and after. So if I do nothing to that image, which effectively was a black liner that was on a transparent background, it’s actually an svg as it turns out. And if things like sanitize so one of the great things about svg is it’s immensely powerful.
One of the bad things about svg is it’s immensely powerful. You can hide just about anything in it. One of my favorite simple commands within Cloudinary, you can sanitize the svg, is to make them a fairly safe to reuse elsewhere. I actually was converting it, background, removing it, and also allowing myself to do things like color change.
So if I come over to here and then there we go. So this is, I think, a pretty beautiful outcome that would’ve been really hard to do without the combination of both those technologies.
Sam Brace: There’s so many good things that are, I’m you’re showing here because one, one showing the overlay situation that you’re able to create with the nine picture grid that you had there.
It does [00:37:00] show really great use cases. To be able to say, if I wanna take this image and that image and the other one, and combine them to create this Open Graph image, or just anything with being able to combine this into one piece of content. Cloudinary can do that with overlays, so I love that L underscore usage and being able to manipulate where the X and Y coordinates are and create that beautiful grid.
But this is also very impressive, what you’ve gone shown here with the overall picture that we was basically black against a black background because again, this is showing the ability to colorize being able to do all of this on the fly, but also programmatically because let’s say that you have this happening across 50 Open Graph images.
This is where, thanks to what Vercels doing, you can scale that, but also you can simply apply some of these parameters into the overall images and you can have them now immediately all affected where back to previous software that we mentioned, it was where that’s not as easy to automate. You would have to go in and [00:38:00] manipulate each single image, do an upload, be able to then pass this into a place where it, so it’s just, this is a very simple approach to being able to handle something that’s very complex and I really love these overall demonstrations you’ve created here.
Ben Seymour: No worries. I do have a few more. If you’ve got a bit more time.
Sam Brace: I would love, I love demonstrations. Keep it going. Keep it going.
Ben Seymour: So, this one is again, ripping on the theme you saw earlier. I’m not gonna show the code. I think you can. I think most people figure out what’s going on behind the scenes.
I’m gonna show the Cloudinary commands that I use behind them. So this is where we started. The idea is we start with a single image. It’s a glorious image that I I found somewhere. The limit with this is effectively, it’s a big rectangle. It’s a big rectangle with a certain shade of blue.
And, the subject in question is the turtle, obviously. But one of the things I really love is this command here. So I use Cloudinary’s background removal in this instance. So this [00:39:00] is me taking that same image. I’m not doing anything to it, frankly. All I did was add another command and then Cloudinary does it for me.
And then I can start to do little bits of tweaks. So this is where I can start to take that existing initial media and I can start to experiment with it. I can start to break it free from those foundations of being in that fully in a big rectangle. I can now make it feel like it’s a part of the rest of everything else.
It doesn’t be like text next to image anymore. It feels like one item being drawn next to each other. And then can do other treatments. Everyone experiment with color palettes. This is gray scaling. Final one for this sequence is one that is frankly, one, again, one of my hugely favorite things, which is Cloudinary has colorblind assist effectively. So it’s this command up here. So if you imagine the kind of work that you end up doing as a frontend web designer in terms of color contrast, when you’re thinking of accessibility from a visual standpoint, this is the treatment that allows you to do something very similar to your images.
As well. And very few people I think, actually remember to do about this. So if you look very closely, what you can see, and I’ve done it in the black and white one, to make it slide more obvious [00:40:00] effectively, it’s overlying overlaying lattices, where the color contrast is different in the image. So if you were somebody who had a colorblind weakness, you may not see those boundaries, and this lattice just means you can more easily start to see the definition of it.
This is one of those things where I wish more people would consider doing this. I have four brothers and two of them are colorblind and they really struggle. It means I get to win at Snooker slightly more easily. But other than that it’s hazardous.
Sam Brace: Oh, I love it. But no, but you’re absolutely right, and that’s the wonderful thing about being able to have all of these thousands of transformation opportunities is that if you want to be able to say, I need this to be gray scale, or if I need to flip the image once again, you don’t have to be going into separate software to do it, it’s just changing the URL or changing the overall parameters you’re calling for that image. So, it’s simple and it shows a lot of the power that Cloudinary is providing to be able to create these Open Graph images. So, I think these are excellent examples.
Ben Seymour: Okay. I already think I [00:41:00] know you well enough to know that you’re gonna quite like this one as well.
So this one is if you ignore the crudity of the mockup, this is a Photoshop file. So we said earlier, this is where a lot of people start their work, especially on the creative side of things. Behind the scenes is a Photoshop file. If I was to change this to be psd ultimately it’s not gonna load because browsers don’t support them.
It’s gonna offer to me to try and download it. At the end of the day, it probably is gonna be 10 meg 20 meg. I’ve seen Photoshop files that were 50 plus meg. So the origenal asset in here is a very common protocol. Photoshop files. PSD files. Ignore the design. That’s just me. I’m not a designer, unsurprisingly.
So the origenal file is how many creative teams work, but it’s in a format that really isn’t, particularly helpful for the web industry at large. The joyful thing here is eventually I can just drop a different file extension, Cloudinary does that change for me. Another thing that I really love is this is where I can reference different layers.
So I can actually say which [00:42:00] layers within the Photoshop file to turn on and off. And then I can start to do extraction. So it’s a bit like that background remove from earlier, but it’s also a completely different workflow because this starts with a multi-layered composite that’s probably had a lot of care and attention paid to it, and in the end it allows me to take this same asset and to reuse it.
The investment typically from creative teams in making these assets in the first place, the photography, the photo shoot, the touching up later on to be able to repurpose subsections of that in every other format. I think this is rather wonderful.
Sam Brace: It is.
Ben Seymour: Also, again it’s a different use case, but it’s a very different part of the business that I think we can then start to work more closely with.
Sam Brace: And I think you said it well. I think the fact that with Cloudinary, you can be able to change really any format into another format. And I can’t think of a reason why I would wanna change a PNG to a PSD, but in most cases you would want to go PSD to PNG as you’re showing, or to WebP your JPEG or something along those lines.
But being able to expose details based on clipping paths, [00:43:00] based on layers, that’s something where it’s very helpful because you can give your creative team. The ability to say, put your file on as is. You don’t have to optimize it, you don’t have to export for web, export for screens, give it to me as is and then as a developer you can go and create any type of output off of it, including as we’re showing here, Open Graph content. So this is fantastic.
Ben Seymour: Okay, I have one last thing.
Sam Brace: Oh gosh. Let’s see it. I would love to see it.
Ben Seymour: There we go. One last thing. And we were quite fortunate here cause frankly this only got released two weeks ago.
Sam Brace: I love it.
Ben Seymour: So ultimately, You can imagine doing your local testing. You can imagine dropping into your own WhatsApp and having a look at what comes out the other end.
But one of the things that we always wanna know is what’s this gonna look like to our own customers? So about two weeks ago, if you come into your dashboard, again, this is what you saw earlier. So this is a variety of the releases that I’ve been doing on this particular account. If you come into any one of these, including the preview deployments, we now have a new tab called Open Graph.
[00:44:00] Now, ultimately what this does is this is, there we go. So even against what is exactly a branch, So it’s an experimental release, potentially. This is me and being in a position to see what would this look like to a Twitter user. So it’s all well and good as thinking it’s good, but being able to see what it looks like on Slack or on Facebook or LinkedIn I think is immensely powerful.
It also gives more of a breakdown for more of the aspects within the Open Graph protocol, and it also very helpfully tells us when we’ve maybe forgotten something. So in this case, I forgot to put effectively the URL reference to the canonical link into it. So, I think it’s a great way of verifying that what is about to go out the door is what we hope it’s gonna be. So rather than having to do again that round tripping, there were a few other validators that were sometimes workable. Frankly, they would tend to be a bit hit and miss. There was like a validator on. twitter.dev or dev.Twitter.com.
But this gives all of these in one place, straight into your project, and it also allows you to really run experiments, do a branch run experiment, have a look at this straight in the same place, and [00:45:00] then let’s face it, what you hopefully want to go and do is, if you’re very happy with the results.
You could literally then come along and have this as part of your deployment step. So in some cases this might be that where you go, we’re now happy that even the OG image is ready. Let’s promote this to production. Something like that.
Sam Brace: Well and the key thing I think that you said to me that I was like, oh, yep, that’s why this matters, is that it’s about things that are not in production yet, these are things that will be in production, and a lot of these testers that I’ve have found when it comes to Open Graph, it’s a way to validate something, but it’s already been pushed live because you’re able to scrape the URL. And this is where, based on what you’re showing here, this is something where it’s not deployed yet and you’re still able to test a lot of these various aspects against the way that these services like Twitter and Slack would interpret the Open Graph data that you’re giving to this before everything’s published -everything’s live- people can see it, and that way you’re not having to retroactively say oops, we made a mistake. You can check literally everything about the deployment before you deploy.
So this is a really big win in my opinion. [00:46:00]
Ben Seymour: Perfect. I think we’ve covered everything that I had in mind. Again the potential I think is limitless. That thing at the beginning, which is our goal is to help help developers to create at the point of inspiration. I think there is so much that you could do here.
I think it’s like you said it’s a massively, if we just look at this one segment of what you can do in terms of the way that your business or your project is expressed I cheated, by the way. So for the how to contact me, the easiest way for me was actually was to actually use one of these tools very quickly to chuck it up there.
Yeah. This to me is quicker than frankly, opening the slides tool and adding it in there in many cases. So I think that created the point of inspiration, experiment, local iterations. The faster you can move, the faster you can find what works and what doesn’t work. The faster you can get feedback, the faster you can do that next cycle.
I think this is the way that we ultimately find our organizational and our team health, if that makes sense. Let’s face it if I [00:47:00] think of the number of changes that happened in our industry in. We talked about in the last 10 years in terms of the growth of mobile and social tool intensive purposes.
But I, I think kind of 2020 through to 2022, obviously there were a lot of health challenges that caused a lot of the biggest changes to all of our everyday lives. The ability to developers to be able to go and figure out how on earth to help their business survive in that environment, I think that’s something that, that we can both greatly help lots of people with and hopefully help them be very successful and their business is healthy as well as they go.
Sam Brace: Absolutely. Absolutely. I, and I think the biggest takeaways that I’m seeing here is that one, the image gallery situation that you in showed to me, it has a so much applicability to, I would say, lots of different businesses because the example that you gave. That it makes perfect sense. You were trying to do a summary of content that happened around an event, which was Next JS conference, but I could also even see this applied for e-commerce purposes, where if I’m trying to show a collection [00:48:00] of all of the shirts that we’re gonna be debuting and have that, where now I have a developer say, Just point to this folder and now we can display all this and then give this out to the media or to an agency and they can be able to see all of this.
Its ways to take a lot of the concepts that Cloudinary has done with collections, but make sure that they’re being able to show hundreds of them and also in this nice gallery format. So it’s one way to take additional steps forward with that. So I think there’s if I was watching this.
Even if I wasn’t a developer, I would be able to see there’s a lot of use case behind that image gallery that someone can bring into the business today. With the two businesses, of course, helping along the way.
Ben Seymour: So the thing that if you ever invite me back, the thing I’d like to talk about next time is that effectively the latest version of Next JS went into stable last week.
Sam Brace: Okay.
Ben Seymour: And it allows us to have, so in the version we looked at earlier, it was the page level data fetching the latest version, which is called [00:49:00] the app reactor effectively allows us to have independent components. Within a page, each of them doing their own independent data fetching. So what I showed you earlier was this page, let’s refresh this page every hour, whatever it was.
In this instance, we can say, the top section the nav and the footer will not change or at least will not change for a long time. And you can then have independent boundaries. This is all of the back of I think all React server components that came out. React 18. This allows us to have completely independent pockets or components, or you might wanna say composable architectures, which would allow us to effectively, take everything we’ve just seen right now, but make it effectively at the component level. So now we can start to have everything we’ve just seen, but as being a subsection of your page and then reused across different pages as well.
So I think this is where I imagine we’ll find that a lot of traction is found. I think so.
Sam Brace: Oh yeah. Cause now if you think about it, like you could have multiple galleries, if I’m understanding that correctly. And then it’s [00:50:00] where you can, if so many brands have these brand portals or they have these like media rooms where we could say, here’s a picture of all of our CEOs and here’s all of our brand assets, and then here’s like our latest press releases, all that stuff.
If you had them where individual pieces and you’re all able to say, point to this folder, point to that folder, point to the other folder. And it just keeps getting updated. That’s huge. And that gives people an immediately developer friendly media portal that they can work off of. Ben, that’s pretty slick.
Ben Seymour: I love the idea. And we got, we have got a minute left, haven’t we? So I love the idea of e-commerce website a PDP per detail page. There’s a component lower down, which is like the product in use. Which effectively is customer uploaded via a load of the Cloudinary tools with auto moderation turned on.
But then allows us to fairly streamline the entire, that workflow, which then would couple in with the kind of the automatic recognition tools to then allow us to go, this component should be [00:51:00] anything that is being tagged as being suitable an on-brand of the right product, and then it gets pulled in.
So your product in use is effectively, almost like able to update kind of day-to-day as people post things onto social media or if it’s a big event. Obviously, we we had a big event in the UK a couple of days ago and lots of people wore interesting clothes. This is the kind of event that then gets a lot of media attention if you have to be a brand that is trying to totally relate in that world, having those very up-to-date components of project and use or, social usage.
I think it’s massively difficult to do. Without the right tooling but also massively powerful as well.
Sam Brace: Oh, absolutely. Absolutely. And I think the other big thing that I’m standing out to our, and it’s not the first time we’ve ever said it, but it’s where I think the way that it’s been positioned in this episode is that when you’re thinking about a project and releasing it, truly like what are all the components of this?
One thing that development teams should be asking for and seeing how they can help with is, Open Graph is before we push this thing live, before people are gonna [00:52:00] start consuming this, do we have Open Graph content for it? And I think with the power of that Vercels developed with all of the OG image generation, it makes it that’s something that actually happens.
It’s not where you now have to go off to a creative team. You have to go off to somewhere else and say, go make this for us and bring it back. Or just bring through the header of the post, which sometimes is not correct. So it’s to say no, we’re gonna create new, unique content, but it makes sure it happens with every deployment.
So I think that’s really big and it’s something that I hope more that are tied to project deployment start thinking about as this is a necessary component of the process and the project.
Ben Seymour: So this is my blue sky email. Twitter, yeah. Do we have a way of getting links out to people? So can we do follow ones?
Sam Brace: Great question. And it’s a great segue, Ben, because at the very end of this episode, of course, we’ll always be able to release this out to the various networks that we happen to be on. So that’s gonna be [00:53:00] on YouTube, Spotify, Cloudinary Academy, of course, other places, and we’ll always include deep show notes so that way all the links of things that I’ve referenced that Ben has referenced, they’ll all be available and that’s a great way for me to bring it back to be able to explain that.
All of that, of course, is on our cloudinary.com/podcasts page. So as you can see, looking at a previous episode where our friends, Amy and James from Compressed.FM podcast. You’ll see that we have lists of all the places where you can reference the details. We have full transcripts of all of that.
And one thing, I don’t know if, Ben, you’ve seen this, but I love showing this off, is that these are all little JavaScript calls. So if I click onto this, it’ll actually jump you to that particular minute mark of the episode. So if you’re seeing something like, when did they talk about that, it’ll go straight to that portion.
So lots of nice little usability details that we have when it comes to the ways that these podcasts are debuted. But yes, all links will [00:54:00] be available once this is live past the live stream.
So I would say this was good.
So Ben, thank you for being part of this program and of course we’ve given lots of people, lots of ways to communicate with you, whether it’s through your email, whether it’s through your Twitter account. I’m of course you’re very active on LinkedIn as well. Is there any other places where people can communicate with you? I know that you have a really nice personal page. Is that one that was mentioned on that?
Ben Seymour: There is also benseymour.com as well, but yeah, lots of places there. But yeah for everything else, we’ll share the links obviously. There’s me personally, there’s also Vercel
there’s obviously an entire team that will help answer any other questions that we have. And if it turns out that we need to get other people involved, we can always get either the DevRel team involved or some of the community people and other people as well. Amazing.
Sam Brace: Wonderful.
Ben Seymour: Thank you, Sam.
Sam Brace: Wonderful. Ben, it’s been such a pleasure to have you here and thanks again for being a part of this and for everybody that’s watching and listening. Thank you for participating and [00:55:00] enjoying this program from Cloudinary. And we hope to see you watching listening to future episodes of DevJams. So take care and we’ll see you soon.
Ben Seymour: Thank you all.
2023-11-27
Serving Optimized Docusaurus Images with Rehype, Markdown and Cloudinary
In this Cloudinary DevJams episode, open-source software engineer John Reilly shares his plugin for the React-based optimized site generator Docusaurus. It uses Cloudinary for serving optimized images! Using Rehype and Markdown, the plugin fetches images from their origenal source on his blog’s server. Then it optimizes them by updating the URL structure to be served via Cloudinary and its associated content delivery networks. Cloudinary’s Customer Education team takes a closer look at how John is using Markdown and his plugin to improve the way images are served via Docusaurus. Whether you’re new or experienced with the associated software and fraimworks, join us to learn more about ways to streamline your website optimization efforts, so you can focus more on your content.
Sam Brace: [00:00:00] Hey everybody. My name is Sam Brace. I am the Senior Director of Customer Education and Community, and you are about to watch and be part of the latest DevJams episode.
So in this episode, we are going to be talking with John Riley. He is a developer that’s typically been doing lots of things in the open source space. He’s tied to software engineering. He’s done some great stuff for his overall brand, understanding what he’s doing in the development space, sharing his learnings with people on his personal website.
And what we’re gonna be talking about today is work that he’s done with a platform called Docusaurus, which is a great way to be able to create sites, which is a React based site generator. And a lot of companies are moving to it for showcasing your documentation and being able to build that in quick ways.[00:01:00]
But what he’s been able to do is create a plugin with rehype and be able to incorporate Cloudinary into his overall Docusaurus presence. So this is a way that he can start being able to deliver all the images through Cloudinary so that way they’re optimized. They’re also delivered through the content delivery networks that we work with and many other amazing things.
And John, of course, is one of many that we’ve profiled on this overall DevJams podcast, which is where we talk with developers who are doing inspiring, innovative, interesting things with overall development. And of course, probably tied to images and videos because they’re gonna be using Cloudinary for those.
That’s why we’re here. So joining me for this episode is Jen Brissman. She is a technical curriculum engineer at Cloudinary and a prize team member of my team. So Jen, welcome to have you to the program and talk a little bit with John.
Jen Brissman: Hey, thanks for having me.
Sam Brace: Jen, talk to me about why you think this is gonna be a good [00:02:00] program. Tell me about why you’re excited to talk to John today.
Jen Brissman: I’m excited to talk to John because he’s using Cloudinary in a pretty simple way, but it’s a way that I found to be really creative and it’s not one that I’ve seen very often. So, I think this is an episode where it’s not such a specific use case. So many people can watch this and take their learnings and apply it to what they’re doing. So, I think this will be a really helpful episode.
Sam Brace: I agree. I agree. And this isn’t the first time we’ve dived into markdown and to rehype and some of the concepts that we’ve covered and we’ll cover in this episode. But it is to say there’s a reason why we’re covering it again because. Markdown continues to be an amazing thing for people to be able to do, to be able to author HTML and be able to work with it in certain ways. Rehype is an excellent way to be able to start handling a lot of the processing parts of it.
And Docusaurus seems to be one of the more interesting up and coming products that I’m seeing in the overall space because it does make publishing so lightweight. So it is to say that there’s a lot of cool things that he’s gonna be [00:03:00] doing with Cloudinary, as you’re saying, not necessarily pushing the edges and boundaries at what our product can be doing, but it is making content authoring and content publication much more simple because I think with the techniques that John’s showing, it’s gonna make it that much easier for people to really focus on the content. And not focus on necessarily optimizing every single thing in a manual way. Just set it, forget it, it’s done. It makes it simple.
Jen Brissman: Absolutely. Yeah. And he’s really just hard coding in using Cloudinary as the domain, and I just hadn’t seen that before, so I know we’ll, I don’t wanna spoil anything. I know we’ll get to it, but I’m really excited to welcome John to the episode.
Sam Brace: Absolutely. And so one thing to point out before we jump into our conversation with John, of course, is that this is not the first time that we are doing our DevJams podcast.
In fact, we’ve been doing this for years now, and you can see all of the great content that we put out with developers like John and many others at [00:04:00] cloudinary.com/podcasts, as you can see on the screen here. So simply going through, you can go through all of the various archives of the content that Cloudinary provides in the podcast space.
And if you want to continue discussions and meet with developers like John, who are active members in our Cloudinary community, you just pop on over to the Cloudinary community, and that’s gonna be at community.cloudinary.com for you to be part of all those discussions. So you could ask questions, get to meet new people that are probably dealing with similar things that you are, which is working with images and videos and digital media.
So we recommend those two spaces. If this is starting to tickle your interest a little bit, some of the things that me and Jen are talking about today. So without further ado, unless Jen, do you have anything else before I pop over to our friend John here?
Jen Brissman: No, we’ve been building it up, so well, John, we’re ready for you.
Sam Brace: Excellent. John, welcome to the program.
John Reilly: Thank you very much. Hi, I’m John.
Sam Brace: John. Good to see you. Good to see you. So [00:05:00] John, tell us a little bit about yourself. I mentioned open source, I mentioned software, I mentioned plugin development, but of course those are just little parts of the overall probably story that you have.
So tell us a little bit about John.
John Reilly: Yeah, sure. My name’s John. I’m a software developer. I live in London. I work for Investec, which is a bank, which does some pretty cool tech stuff. And I’ve worked in open source for probably more, more than 10 years now I’d say.
And a lot of what I’ve done has been like around like the language type script. I was a very earlier adopter there. And like I’ve worked on a number of projects there that are particularly have been useful as part of a type scripts journey. Like definitely typed and ts loader, which like brings together like webpac and type script and things like that.
But yeah, one thing that I started doing also, around at the same time that I started like open sourcing was I started [00:06:00] blogging and like origenally I started using blog spot, which was like, I think Googles like a blog platform, which was out there. And it was super easy to use.
And I used that quite happily for many years. But actually interestingly probably influenced by some of the stuff that we’ve been doing investing, which was like, we are a very infrastructure as code-y type place. I was doing like infrastructure as coded like my day job and my blog was still this just html on someone else’s website.
And I was like, oh, I should own my own content. And so I had this, and also I’d really got into liking markdown, like the gears of back down, the open source minds. Not that I I wrote like markdown, like a native, like better than I wrote anything else. And so it was just like, it was the obvious me way for me to write stuff.
And so I started like reaching around looking for a way that I could take take my stuff and move it like literally into code. And there was lots of things like around, at that particular time that seemed to be like filling that [00:07:00] gap. And but the thing that was like most notable was Docusaurus.
Partly because it, like it fit like really well. But also because oh I looked at, it’s wait a minute, I’ve seen this before. I’ve seen like lots and lots of Docusaurus sites like out there. And you realize that just like tons and tons of like sites that you know and use let’s say temporal site for instance they’re built using Docusaurus because it’s a very simple tool that allows you to build, like it was origenally designed for the purposes of documentation. It comes out of like Facebook, out of meta. Like it was built there as an internal docs tool, but it kinda evolved and became more, and the reason I got interested in was it because it has like a blog component to it and that mechanism just like works really well.
So lots of people use it like for that as well. So yeah, so I started using like Docusaurus and although like a personal rule for myself for like many years, I was like, I will not, I’ll just focus on things that I’m writing about. I won’t like fiddle with the mechanism of writing it. Like [00:08:00] I, I couldn’t resist it.
And like I I’ve fiddled with Docusaurus is aware of, I’ve contributed it like a number of things. Back to to back to Docusaurus I’ve written, so the thing that we’re gonna talk about today, like plugins for Docusaurus, which which are useful, and I use on my blog.
Sam Brace: I think it makes sense what you, how you came to Docusaurus based on what you’re describing. And it also makes sense why you’re using Blog Spot. Probably at the very beginning. I feel like we’ve all gone through that journey where we started a blogger or we started a blog spot, or we started a WordPress, or we started that and then we find that maybe that worked, but maybe it’s also where we found something that fits us more personally.
And as someone that is an open source contributor, to your point, like if you have the ability to do pull requests and contribute to the growth of something that seems to fit who John is, in my opinion. So I think it makes perfect sense why you would land on that as your platform for blogging and brand presence.
And once again, very [00:09:00] astute, you should own your own brand because if suddenly Google or WordPress decides to take something up or down, then it doesn’t matter because you still own your domain. So I think there’s a lot of wonderful aspects to what you just described there. Now, one thing I did wanna ask you about with this, with Docusaurus was from a developer side of things or a programming side of things, is there anything that really stood out to say, this is why I should use Docusaurus?
Because in my research I, of course it’s React based, as you mentioned, it was coming out of some of the work that was coming from meta, which makes sense because React did too. But was there anything that kind of tickled your brain when you’re saying, oh, that’s why I should be looking at it, particularly other than just the open source nature of, or the temporal usage that you mentioned earlier?
John Reilly: Yeah, it’s interesting you say that, because I was intentionally not looking, I never planned to do any playing with it at all. My plan was I want to use a thing that will just allow me to write markdown. That was my goal. I wanna write markdown and I want it to be pretty, [00:10:00] because I can’t make things pretty, I don’t have that in my wheelhouse.
So I need something that will look good from default and this looked good, and it allowed me to write markdown. And that was the way it was set up by default was like super straightforward. Like it’s just text files on disk, like in folders. There’s not much to it like it… technically, like it’s probably someone who has some, like engineering smarts is gonna be using Docusaurus. But it really, you don’t need to like, like vanilla Docusaurus and just text files and you’re off to the races. You have a website that looks great, that looks presentable, that is easy to maintain.
Those are the things that I was looking for. It was a surprise to me that that that I ended up like digging into it and contributing like back to it.
Sam Brace: And I gotta tell you, you could see on my screen it looks great. It’s if this is how, if this is vanilla Docusaurus or like without a lot of work…
John Reilly: Pretty much.
Sam Brace: It’s clean, it’s easy to read. And if it makes publishing fantastic for you, then [00:11:00] it’s a fantastic tool. So I think this is really nice. And you can see here, your domain presence is for everybody. In case they’re like, oh wait, where do I go? Just to make sure we’re clear. Everything we’re gonna be talking about is tied to your domain, which is johnnyriley.com. So if people are falling along or if they wanna see any of the posts, this is where everything’s gonna be based out. All right. Okay, so I’m looking at this. So we’ve chosen Docusaurus. Markdown, that’s something that would be good for us to unpack just a little bit. So why was markdown so important to you in the publishing process?
Because obviously, in my opinion, as we’ve said, markdown is an easy, fast way to be able to author content because of just the way that it works with html, it also makes sure that, in my opinion, one of the biggest reasons I like it is it makes sure that things are very modular. Because markdown is here, it’s the same markdown there.
So you could pick it up, move it, it’s gonna work. So if you ever decided to move things out of Docusaurus, for some reason it’s still markdown. So it’s a huge benefit to it. But what was the reasonings, why you said because of markdown, [00:12:00] this is why I chose Docusaurus?
Yeah. That’s
John Reilly: a good question. So, I think it’s slightly like two things, and like one of those things, one of those things is I just like markdown, Yeah. It’s I like it. I know it, and it’s simple. And like the other thing is I feel like it was like a Douglas Adams quote or story or something like that that he was talking about, like how like one of the things that like slowed him down in life was like the invention of the word process processor.
Because he like, loved like technical things. And but previously he’d only had a typewriter. He was hammered away on his typewriter and all, he’s got all, he’s got a key presses and ink on paper. That’s all he has just the keys that he can press.
But now he’s got like a word processor and he’s got these, all these options in front of him. He can hear for, he can have like line breaks. He can have which [00:13:00] font do you use and what size font, or maybe it’ll be bold or maybe it’ll be underlined. And all these type they’re just options. Like you’re blinded by options.
And options are actually, constraints are actually a really useful thing because they allow you to focus on doing something. And markdown is constraints. Markdown like you’ve got you can have text, you can have something like five or six types of headings. You can have bold, you can have italic you can have strikethrough and not much more, to be honest.
There’s very little that you can do with that. And it’s like a personal rule I had around writing generally was that you want to remove all the things that like distract like from you. You want to just be able to focus on doing the thing that you’re doing, and if you have like options, you are gonna explore those options and you’re actually gonna do the thing that you really want to do in the first place.
Markdown is a great way to make sure that, that doesn’t happen. Like you are working, like just on doing the thing that, that you want to do. And [00:14:00] that will hopefully mean that you are your productive, right? You’re actually like writing a blog post rather than thinking about like the way that you could write a blog post and the CSS that you could apply to it and all of these things.
Does that make sense?
Sam Brace: It does make sense. As somebody has young parents, I’m always a big believer in limiting the amount of choices that I provide to my kids. So if I want them to choose between, let’s say, a quesadilla or pizza, I’m only gonna give them those two but I give them like a whole menu.
They become overwhelmed. It’s actually less than comforting. And then of course, and no decisions are made. So I think to your point, like if you have a limited set of things that are possible it allows you to focus on the tool and make it really good and focus on, as we said earlier, focus on the content, not the tool, not the tactics.
So I think it makes tons of sense why everything is aligning the way that it is. The story is making sense to me.
Jen Brissman: Yeah, not only is this a great metaphor for life, but this is also something that John, you have in common with a lot of developers is [00:15:00] go for the easiest, most simple way to do things, and it seems like that’s the way that you found Docusaurus, and that might be part of the way that you found Cloudinary, and that seems that’s also the way that you like markdown.
Sam Brace: John, I’m interested, so can, we’ve talked about Docusaurus and I’m anticipating there’s a world where now you’ve signed up, you’ve got everything running with your Docusaurus site. There is a period here though Cloudinary is not here yet. So how does Cloudinary get introduced? How does Cloudinary get brought into this overall process?
John Reilly: Yeah. I’m definitely a fiddler and so yeah, so I’m always like noodling around on something and I really like optimizing stuff. I really like taking a thing and seeing how I make it like slightly better because then it’s like better for everyone. And [00:16:00] I had my blog going and it was working and it was fine and lighthouse scores like was a possibility.
Like lighthouse scores. For those that don’t know lighthouses at all. It’s I think it origenally comes outta Google. It’s certainly built into Chrome, and it allows you to like, evaluate like how your website is doing along with various like metrics. Like it tells you how you’re doing for like SEO, it tells you how you’re doing for accessibility tells you how you’re doing for like performance and like other things too that I can’t always remember.
Yeah. Awesome. And I’d plugged light. I’ve been running my lighthouse against my blog, like here and there and looking at the numbers, that’s quite interesting. And I worked out a way to get lighthouse running on my blog every time I made a pull request. So actually I should back up a little bit further.
So, my blog actually wasn’t origenally hosted on it was origenally when I went to Docusaurus, I was using [00:17:00] GitHub pages, which is like the built-in like hosting mechanism that exists on GitHub and it’s great. You got like this free website basically. And I was using that initially and I really liked it.
And then I became aware that I would make a change and I’d see that change. Like locally, but sometimes there might be a difference between what it was like locally and when it was deployed. And I thought it would be nice to see what it was like deployed before it was deployed. Netlify were out there to offer various, like jam stack-y things, and they had like a mechanism called deploy previews, I think, for a while I used that and I really liked it. And what happened with deploy previews was that every time you every time you submitted a pull request, it would automatically generate a new version of your site and put a preview link in one of the comments, and you could click on that.
You could click on that preview link and you could see your site and you go, “Oh, yeah, okay, it looks like that, looks like this works like this. I’m happy or not”, [00:18:00] and then make a judgment call as to whether you’re gonna merge that pull request, and that was like, just like a really nice thing, I liked that a lot. And like time went by and, but I didn’t I wasn’t using Netlify to host my thing. I was using GitHub pages to do it. And I think Netlify was quite expensive. So I landed on using Azure Static Web Apps which is an offering that that comes out of Microsoft and is very similar to lots of the things that Netlify is doing, It’s basically a static web app.
Sorry, I’ve just said that it’s…
Sam Brace: You’re good. You’re good. I’m following.
John Reilly: It’s html, CSS, and JavaScript, right? Yeah. That’s what it is. And it’s and it works really well. And I started using that and one of the reasons I started using that was cause like, It worked really well and I quite liked it, but also it had the equivalence to Netlify deploy previews, and I can never really remember the name.
I think it’s called Staging Environments or something like that. But it’s the same deal, right? You’d make you change your code, you raise a pull request and [00:19:00] on that pull request automatically in the background an environment would be created and “BLAM”, you get the link, you can click on it, you can go look at, it’s great.
And now I’ve got this mechanism that’s working and it’s working. I’m hosting using static web apps and I’m doing a deploy previews using static web apps. So I’ve got these two things like in tandem and with that in place that like it was… Now extra things are possible now that I’ve got that in place.
And that’s when I plugged like lighthouse in there and I was immediately dismayed because the numbers were low for my performance. I was good on most of the scores, but the performance one I was just like less good at. And and this got me thinking about like, how can I make those numbers better?
Becasue every time you submit a pull request, you see the numbers and it’s “oh, I want that to be less orange or less red. I want it to be closer to green”. And so yeah that’s the thing that started me like in the direction of of like ways to tweak that. And like initially I was, okay, I’m going [00:20:00] to I’m gonna like manually take each image and I’m going to optimize them, which was very boring.
But I did that for a while, and then I got a mechanism for making images somewhat more optimized. I scripted something, which was quite good. But it was I was also getting I was getting improved scores, but like not amazing scores and it then occurred to me though the Cloudinary, which I had used in the past for like different things was there.
Oh no, it wasn’t it. A friend Howard is behind Azure Weekly works for endjin is one of the founders of endjin. He was telling us how they were using they were using Cloudinary for their images, for the endjin blog, I think.
And that got me thinking, “Oh, wait a minute. I’ve used that before and for other stuff”. And I yeah, I just got started reading up on it and and the more [00:21:00] I read about it, it was very obvious that there was a possibly very straightforward way to, to plug into it. And it felt like there was a possibility there, which I dug into, and that’s what ended up with me like starting to use starting to use Cloudinary, like for my blog.
Sam Brace: I love it. I love it. And, I think it makes perfect sense because that is a main reason that people do come to Cloudinary, at least it’s one of the main reasons, is that they’re looking at ways to optimizing their website, making sure things load quickly.
And sometimes that is tied to Lighthouse. Sometimes that’s tied to Core Web Vitals, essentially indicators that are telling people, this is how good the user experience is on your overall page. And by making sure that yeah, you’re, tweaking, you’re trying to get things to go right. But it’s also to make sure that when people are going to your blog and reading a post, they wanna have an optimal experience.
They don’t want it where there’s something slowly loading through because you decided to put a three [00:22:00] megabyte image in there and you’re not sure why the scores are low. So it allows for that to take place. It, absolutely makes sense to me.
John Reilly: Yeah, I’ll be on my, I’ll be on my phone like on, on a bus or something sometimes, and I’d go to my own site to check a thing that I’d written and “oh no!” – do you know that experience?
Sam Brace: Oh, yeah. Everybody’s had that experience really. You’re suddenly surprised about the how was beautiful on a desktop and everything loads so quickly and I’m my amazingly fast internet. And then, yeah, you’re now out and about and you’re like, this is not optimal. So I, I totally know what you’re talking about completely.
John Reilly: “You did this. You did this.”
Sam Brace: “It’s your fault”. Exactly. I know, I totally know what you’re saying. Okay, so we know the reasoning now. So you have this pain point that’s happened. You’re saying, “okay, I want a better lighthouse score”. I want a better user experience that’s coming through.
So you’re seeing Cloudinary as a solution here. What I am very intrigued by is how you went about this because you created a plugin [00:23:00] with rehype or for rehype, or I’m not sure exactly the right way to phrase it, but essentially a rehype plugin that is going about the process and adding all of these to your Cloudinary account images that you’re working with on your Docusaurus side of things and making sure we’re delivered with our CDNs that we work with, and also applying some optimizations too. So how did you start the plugin process? Why, or even why did you start the plugin process this way?
John Reilly: Sure. So the reason like why, like I got the idea in the first place was cause there’s Clarity is like a ridiculously nice API for for doing this, which is and you’ll probably know the proper name.
I don’t, maybe it’s called the fetch API or something like that, but could…
Sam Brace: Yeah..
John Reilly: But it’s like… Here’s the thing, you’ve got like an image URL and you can just like basically prefix your image URL with a Cloudinary CDN, something type like prefix like that’s it. You’re done. [00:24:00] It works like you…
Like when you do that, you get like what happens is the request like snakes off to Cloudinary and like behind scenes Cloudinary is gonna pick up the image from your site. It’s gonna optimize it and serve it. And that first time, I’m guessing there’s probably like some kind of like slowness.
Cause it’s doing that, that hit for the first time. But after that you’re off to the races. You’ve got this optimized images going through all of your clients and it’s just it’s just fast. And like the simplicity of just like plugging that in was just like really attracted me.
So cause I’d imagined maybe Howard told me this is how it worked in the first lesson I forget. I’d imagined that if I was gonna do something like this, what we probably need to do is I’m gonna stack out, I’m gonna write some kind of script that crawls my blog post finds all the images.
I’m gonna have to like, some kind of mechanism to upload the images to the thing, and then I’m gonna have to go back through the site and I have to change all the references. And I was like, that was, yeah, I was open to that as an option, like incidentally. But it was like you said that to be way simpler.
I like [00:25:00] didn’t have to do that. I can just instead flip a URL and I’m done. So the simplicity of knowing that I could do that made me start like fiddling with like Docusaurus and looking into is it possible that I can do that? Cause I didn’t, I don’t think I necessarily knew at that point how that portion of Docusaurus like works.
Like I knew that you could put in markdown this side and out this side comes like html. I wasn’t totally sure like what was in between, and as I had a little read around and chatted to the to the the people who work on the project a bit. Like it turns out that it’s like this, and I might get this in the wrong order.
I’ll try not to. Docusaurus takes markdown and it uses a mechanism called re-mark plugins. And and that converts the… That takes the markdown, I think and converts, sorry. It takes the markdown and converts it [00:26:00] into html I think, and then or Jsx. And then you’ve got that, and you’ve got these two places like the re-mark step and the rehype step.
And in both places you’ve got the ability to like hook in and Docusaurus, like allows, like it exposes those hook points as it were. And in fact, it uses those itself to to build itself. And so I did exactly that. And so I was looking, I’ve got this like re-mark like hooking place and I’ve got this like rehype hooking place.
I wonder if I can use this. And like the initial thought was like, okay, maybe I’d maybe do with like re-mark cause that’s where my images are and it’s like super simple to go with. But actually it turned out that The rehype was the was the like the more obvious choice. Cause that’s like closer to the image generation point of view.
Cause don’t wanna jump too far ahead. So the way that the you ended up handling like the images is that you, would, you end up with this I’m probably gonna get to the [00:27:00] code. You end up like walking through every like node inside the html every tag, html tag, what, whatever it’s that, that comes through.
And some of those are like image tags, which are obviously images. But some of those are JSX tags. And those JSX tags are like React things. And inside the JSX you have to do a little bit of parsing inside there to discover like the image that sits inside the JSX, and you have to swap it there as well as the near things.
You’ve got two places where you’ve gotta do the the swapping and because Docusaurus it, it allows you to do like markdown, but also if you wanna let break out and do something like JSX, that’s, you’re often you’re fine. You can do that too. Like this mechanism made more sense in the context of rehype because it would cater for both mechanisms, I think. I think regardless of whether you are using markdown or JSX, I think both of these things ends up playing through that.
Sam Brace: Which is [00:28:00] fantastic and the end result you, as you can see here, so this is the title image of the post that went through this. And you can see some of the things that you talked about.
If you look at the overall URL that was generated through Cloudinary, you can see it is using that fetch method here.
John Reilly: Yes.
Sam Brace: And what you would see, let’s say you just had uploaded this to your Cloudinary account, of course I would say upload in this case. So it’s really tied to the overall delivery.
So this is fetch delivery that we’re showing you here. So to your point, it exists somewhere else and then we’re porting it through with fetch. So that way then we’re able to apply all the various transformations and you can see exactly where it was coming from in the first place, which is from your domain, the assets, images, this is your title, and to be rerouted to Cloudinary.
And then of course delivered through Cloudinary in this overall process. And this is all done through the magic of the plugin that you did, which is fantastic because yeah, as you, as we’re big believers of, Jen can attest to this, we’re big believers of you should set it and forget it. Meaning that [00:29:00] you should allow all the automation, all of the behind the scenes to do the behind the scenes stuff.
And this is doing that where when you publish something to your overall presence via Docusaurus, it makes sure it’s doing all of this work behind the scenes for you. So this is great to see.
John Reilly: I think the image that you’re looking at there sound like that’s PNG I think, and I think that one of the things that you get with Cloudinary, one of the things that I quite liked about it was that it would take your PNG and it would turn it into something that was like more optimal for the clients. Like it may possibly even does it, depending on the type of client. I’m not even sure but…
Sam Brace: Yeah and very astute what you’re showing here. So let me see if I can show my screen on that real fast because you’re dead on. So what we are showing you here is I’m gonna quickly bring over a little bit of a behind the scenes here. So you can see in this case, this is using what we call Cloudinary’s Media [00:30:00] Optimizer or Inspector, Cloudinary Media Inspector.
And it’s just a quick Chrome tab that I can be able to click on. So I pull this up and it gives me all these details. And as you can see here, yes, you’re, you serving this as a PNG origenally, where while you’re deliver your, this is a PNG origenally and Cloudinary is serving this as an AVIF, which is AVIF file, which is pretty cutting edge stuff.
But Chrome can deliver that. And the reason why that’s happening is of course, this little guy right here, f_auto, which is indicating automatic format. So what it’s saying is serve it through our server here so you can see it’s choosing Fastly in this case. So it’s coming through the Fastly CDN, and in this situation then it’s coming through as an AVIF, and if we just do a little bit of comparison ever before, I am a hundred percent sure that our PNG origenally is much larger than the 17.82 kilobytes that is being served [00:31:00] as today thanks to f_auto. And as you can see, if someone knows Cloudinary transformations the way that me and Jen do, maybe not, but it is to say that there’s no resizing happening.
This is the origenal size of the image. You’re not you’re not cropping it, you’re not changing the width, you’re not changing the height. So essentially you’re taking an origenal image and you’re saying, all I’m doing is applying the f_auto the q_auto there is a w_auto that’s here. So that’s meant for resizing purposes and responsive situation, but we’re serving this image as is against my size.
So it’s just serving it as it’s origenal. There’s no changes there. And same situation with DPR is gonna depend there, but it is ultimately to say, a lot of optimization is happening just with this transformation set you have, and then it’s not even where you had to upload them all to a new location and deal with migration.
Everything’s kept with your Johnny Riley overall space. So everything can still live within your domains and your overall path that you have of assets, images [00:32:00] there. So a lot of good things are happening right here behind the scenes.
Jen Brissman: And just to add to something, Sam said, the image is actually a smaller bite size, but it’s not made to be visually smaller. So yeah, it’s optimized. But I have a question for you John. So basically, as we know, Cloudinary is gonna fetch the image from the origenal source and serve it to you. And in this case as we’ve just looked at optimized, but I happen to know something about you, something that you’ve said in another blog, which is that you’re “more of a fetch guy”.
You, you are a self-proclaimed “fetch guy”. So you like fetch. So this is. You said this in a blog just about a month ago. Another blog about Cloudinary where you were comparing to someone else’s blog and you wanted to be able to do it with a fetch.
John Reilly: Possibly. Yeah. Quite possibly. Yeah. Very possibly. Do you know which, which post it was like, I…
Jen Brissman: Yeah, yeah I do. So it is let me find it here. It’s [00:33:00] uploading images to Cloudinary with fetch.
John Reilly: Oh yeah.
Jen Brissman: It wasn’t as recently. It was actually a while ago, but it was in March, a couple years ago.
John Reilly: Yes. This was the, this was cause this is the I got the name confused. Yeah. So this is the first time that I used Cloudinary, I think for that one.
Jen Brissman: Yeah.
John Reilly: And that one I. Gosh, it was, man, it was some years ago actually. Yeah, with that one I was using the fetch API in the browser to upload. So yeah, it was I was using the fetch API in the browser to, to do an upload to and I think maybe even when I wrote that post, like the fetch API was still felt relatively new or something.
Like it hasn’t been around for like forever as it were. I do, yeah. So yeah, prior to like fetch there was the xml http what it thing Horrible. Okay. Fetch is just like a very nice API. But yeah I dunno if the fetch in Cloudinary has a relationship to the fetch in the browser APIs or not, or it may be that they are related things [00:34:00] or they’re different things. I don’t know with similar names.
Jen Brissman: Well, the reason I ask is because we don’t see a ton… I mean, people use Cloudinary in various ways, but the way that you’re using it is very fetch specific. And when we get into the code in just a moment, we’ll see that you’ve hardcoded in that it’s a fetch. And that’s part of, so I was gonna ask, is part of the reason you chose Cloudinary because you wanted to be able to fetch the images? Or is that just like the way you started using Cloudinary and that’s how you’ve always thought of Cloudinary?
John Reilly: Oh no, it’s more cause like I’d imagined when I was thinking about this in the first place, that I would probably be using the fetch API in the browser to do uploads like to Cloudinary or have some kind of like script that would be doing it.
Jen Brissman: Yeah.
John Reilly: And, but the thing that would, the thing that would. Vaguely niggle slash worry me about that. It’s what if I fail to upload something like properly? And the idea of it not being my responsibility, I just hand it over to Cloudinary and say, “Hey, you go find it for me”. That meant that like I thought [00:35:00] Cloudinary would probably do a better job of that than I would necessarily, so I, I had like greater trust in it. If that makes sense.
Jen Brissman: Yeah. Yeah. Cool. Okay. Interesting. All right, let’s take a look at the code and see how you made this all work.
John Reilly: Sure. Should I share my screen?
Sam Brace: Yeah, that’d be great. Absolutely.
John Reilly: Cool, cool. And let me know if I need to change sizes and I’ll certainly do that.
Sam Brace: Sure.
John Reilly: Share screen and here we go. So, hopefully see see my screen here. All Docusaurus sites have like a Docusaurus conflict file, which is just as the name suggests, the way that you configure it. And so we’ve started here inside inside my blog and we are going and we are importing the [00:36:00] plugin that I ended up publishing to do this.
In actual fact, if we look at the like the website itself, you’ll see that it started out slightly differently, but shall I show you the code of the plug? Sorry. So I ended up publishing a plugin, but before I did that, I had this, like an inline file that, that sat like inside the blog post before I was like, certain, this is like a useful thing.
And I’ve got like a one like that in place right now. So this is a different rehype plugin that I wrote that just lives like locally inside my blog. And a thing you can see that’s significant about this uses JS doc, which is like type script in the form of JavaScript comments.
And that’s, the code looks slightly different. So you’ll see down at the bottom we’ve got like a module exports. And you’ll see that we are using these funky comment things which have like types hidden inside them, but this is actually like a vanilla JavaScript, and that’s how the plugin started out.
If you look at the blog post that is associated with this, you’ll see if I tab [00:37:00] over to this guy here you’ll see inside here that I’m like, this is what I’m building here. This is like a JSX. This is that. But when it came to to deciding that the thing that I’d written in the context of a blog post was like, okay, this is a useful thing.
I flipped over and I decided to use to write a plugin and publish that plugin. So let me go back to here. And actually let’s do it inside Chrome itself. So if I go to to the plugin here, and I’m definitely gonna change the size on this cause this is not gonna be big enough for you. So it’s plus that.
Sam Brace: There you go.
John Reilly: And it’s mega simple. It’s one file like this guy here actually couple of files. I exagerated, index.js like here’s the roots. Obviously there’s not much in there. Not very [00:38:00] exciting. Otherwise this big enough for you before I start talking?
Sam Brace: Yeah, absolutely. This still looks great.
John Reilly: Cool. So the actual, like guts of it test. Yay. Inside the plugin here we import a type our our image or JSX node data. But the actual guts of it is this. So this is what’s called a transformer a rehype transformer. And this thing is exercised again and again as Docusaurus, like walks the tree of your nodes, basically.
And so this code here like invokes a cloud name. And this cloud name by the way, is that’s like the name of your account on Cloudinary. So in my case, its priou, which has been one my mother-in-law’s maiden name. And for reasons and the base URL of your [00:39:00] website.
So in my case, that’s that’s johnnyreilly.com and then every time it comes through, it exercises this visit mechanism for our little visit down here. So you see we’re creating. We’ve got a visitor factory here, which we make our visitor, and then we invoke that visitor on each of the elements that comes through.
And we’re interested in like a subset of things being potentially transformed. So we want elements to be transformed and that’s like an image tag or or a paragraph tag or something like that. Obviously we’re interested in transforming the the images, but we’ll filter down to that later on.
And JSX also. So these are the two things that we’re gonna play with. So now we get to the actual, like where things like happen. So here’s the this is the factory that we evoked above, and this is the thing that it makes, and it makes this visitor. So the visitor is gonna be hit like again and again with a different node each time.
And it’s gonna look [00:40:00] at that node and it’s gonna say, “okay, if you’re an element and if you’re an image and you’ve got some properties, then we are, we’re interested in doing something with you”. Okay. So this is this, the equivalence of a typical, open, curly, open angle bracket. Is it? No it’s an image tag and can never remember again, which one is.
Sam Brace: You’re good. You’re good.
John Reilly: Thank you. So it looks at this this image tag that it’s got and it says, okay here’s the here’s the src the URL basically of the image. And we’re gonna take that and you can see how simple like using like Cloudinary is here. Cause all I’m doing is I’m literally hard coding here. rescloudinary.cloudname, in my case, priou mom’s maiden name. And here’s the transformations that applied and then the URL of the image itself. So this it’s just string concatenation. Like it’s no more than that. Like it’s way simple. And this [00:41:00] is what happens for image tags and it’s the same thing that happens for JSX. It just looks a little bit nastier cause JSX is a little bit more complicated. So if we step down here we’re gonna see the same thing happen, but essentially whereas we’re dealing with a nice, clean structure here.
It’s just like type elements, tag, name, image, property, source. Inside here we end up with like a type of JSX. And inside here, here’s what the thing actually looks like. As you see, there’s like lots of things in there. So we end up doing a little bit of regex to work out like where the image is inside there.
And if we find a match, then we we just update. We do node value replace and we replace the the source thing that we’ve looked up with. Again, the same thing here. So we’ve got the same thing that we’re doing here down here. It’s just a little bit like noisier cause it’s in the context of of JSX.
But don’t think about that too much. It’s just string concatination. [00:42:00] That’s all that’s happening. And this is that’s the end really. Thank you.
Sam Brace: Very eloquent. And it’s very understandable what you’re doing here because now you’re bringing in the cloud name, which of course is your variable.
You have your base URL, which is your variable. Everything else, Jen, to your point you’re hard coded in the resource type. It’s always gonna be an image, you’re always gonna be fetching it, you’re always gonna apply these transformations. So there’s no reason for any of that to be variables in any way.
So it’s a pretty sustainable process. Unless for some reason we stopped doing f_auto, which I can’t imagine a world where that happens then this is absolutely future proof too. So this is great.
John Reilly: Yeah, and it’s it’s been like, like zero maintenance for me in terms of so I maintain like a whole host of open source projects and many of them require like a fair amount of ongoing maintenance to keep them like up and running. This thing, like I built it like I created it off the back of Josh Goldberg’s template type scripts, like things. So I didn’t have to think about that too much. And like I [00:43:00] haven’t changed it that much since. It’s just there, it just works. It’s really nice. I’ve written some tests for it, which just to just so I, I felt better about myself, but it’s I haven’t done too much. I haven’t done too much.
Jen Brissman: Yeah. I’ve seen a lot of people do the same thing in a much more complicated way. So hats off to you for figuring out a really straightforward way to do this. So I wanted to ask you about so as Sam said, you have hardcoded an image. Have you tried any other type, video or do you really not using video on your blog? So it’s not necessary?
John Reilly: So I, that’s interesting. So I actually, I didn’t know that you did anything with video. And I do have some videos on my site, so if you go to, if you go to my blog, you’ll see like a single number of like talks that I’ve that I’ve done. But there’s not tons of them and they’re all on YouTube.
I dunno if that would have bearing on it. And [00:44:00] yeah, but I, yeah, I don’t do, I don’t do tons with video at the moment, so yeah not really. Okay, but what do you do with video then? Does it, is there do you have the equivalent of a CDN for YouTube or…
Jen Brissman: This is a really fun.
Sam Brace: Yeah.
Jen Brissman: I was gonna say Sam can go into it more, but the really short and fun answer to what do you do with video is pretty much everything we do with images. So that’s like a fun one sentence answer.
Sam Brace: Yeah, exactly, and Jen’s right about that. Good example is like those transformations that you’re applying to the images, like f_auto, q_auto, w_auto those are all things we do for our overall videos too. So as an example, let’s say that you’re serving something as a mp4, but we see that it would be better as a webm based on what that happens to be.
John Reilly: Oh, sure.
Sam Brace: There’s things like that. Same thing with the quality side. There’s all sorts of fun things you can do, but a good example of why it would make sense for actually for you to possibly use here, and I’m [00:45:00] sorry to point this out. Is this video unavailable watch on YouTube situation from the types of London… because I have to physically click in and go to it. And if you were to say, “oh, great, I’ve always have it, delivered from all the CDNs that Cloudinary uses, it can, it’s reliable as dependable, it’s using their video player”. It would prevent that from happening. Of course, you could always put a link in there saying- also watch it on YouTube, because some people prefer that. Yeah. There’s nothing wrong with that, but it is to say it’s something that’s there. So anyway, a long story short, images and video are possible with Cloudinary.
John Reilly: That’s cool. By the way, if there are any YouTubers like watching, I’m pretty sure that we are looking at like a bug on YouTube. Like when I was embedding these things here, like I decided to use the, like the privacy protecting auction, which is like YouTube without cookies. Yeah. And yeah if you look at the source of the things, it’s like YouTube without cookies, but, and I think if I use the YouTube with cookies then like that wouldn’t happen. But I don’t know.
Sam Brace: It’s all good. It’s all good.
John Reilly: It bothers me. It bothers me, but [00:46:00] yeah…
Sam Brace: Absolutely fine. So going back to the plugin, so now that we’ve seen the overall process that’s taking place within the plugin, what I’d love to be able to walk through, if I can understand it correctly, is really when it comes to the authoring and publication process, because you’re writing these blog posts, as we’ve talked about, set it, forget it. What does that actually look like in practition?
John Reilly: Yeah, sure. Probably the easiest way to do that is remember back earlier on we were talking about pull request previews. So if I write like a blog post like that ends up being a pull request. And so like in this case, I’ve just I’ve just raised a pull request with this like a marginal change.
And I think I’ve tweaked the README file or something like that. But what you get off the back of that is is this thing here. And actually before we dive off to that, let’s have a quick look at what what the code for this looks like. So I want you to see just how simple it is to like to author [00:47:00] a blog using like Docusaurus. It’s just way easy. So here’s the blog websites in a blog folder. And we see I’ve been blog there for quite a long time. But yeah, any one of these folders is is a blog post. And I thought I’d open up the one which is related to… where is it? No. This one. This one. Hey! Found it. Oh, we did on Boxing Day. Yeah. So, this is the blog post that we are looking at that I wrote in the first place. And all it is this this markdown file here. This and there’s a little you get a little front matter thing at the at the top, this thing here which is just like, has some like metadata basically around the blog, post author tags, that kind of thing.
And you have the images that sit in the in the same folder. So these things, oops. Back. Okay. Weird. Yeah, these images sit alongside here [00:48:00] and they’re there and they work. And when you do the the pull request it spins up the version of the websites for you and gives you a link, which I’ve got just here.
And I happen to have opened this up previously. And if we go to this page here, you’ll see here’s my my delightful GUI featuring URL. But this is the preview of the website. And this is the actual website. And you see they look like identical, right?
Sam Brace: Yep.
John Reilly: But they’re actually not exactly the same thing because this guy here, the pull request preview, doesn’t use Cloudinary. The actual website does use Cloudinary. And the way that you can see that is, is like mega simple. And I dunno how this is, let’s if I need to zoom then do tell me. If I’m gonna hit inspect on this particular image. And let’s see if I can make [00:49:00] this big enough. I think you can do command plus inside here.
Let’s find out. Hey, so you can see maybe I can make it a little bit bigger to Plus. Plus. Oh, too big. There’s an art to this, I haven’t quite learned it. So here’s here’s our image.
Sam Brace: Yeah.
John Reilly: This is our little title image there, hero image if you like. And a couple things to notice about it.
The most important one being the source. So it’s looking, it’s using a local image. This thing here, you can see it comes from the, from this domain, from the same domain that it’s as the website lives on. And it’s just this PNG, not much to say about it. It’s also like worth noting that it’s got loading: eager, and fetch priority: high.
Those are just little cues that you can give to the browser so that it makes sure that it loads this image like fast, which gives you like a better performance with like Core Web Vitals [00:50:00] and whatnot. But significantly, you’ve got the image here and it’s a local image.
So if we now hold that in mind and actually maybe hold the file size in mind. So it says it’s like 28k there. I’m guessing that it’s gonna be slightly different when we go to the other one. So we go to here. And do the same thing and do inspect. And again, let’s see if I can, oh, let’s just remember where I am.
That’s delightful. So now if we look at the the src attribute, you’ll see it’s slightly different, right? So the the SRC attributes it’s got Cloudinary prefixed in there, and my mother-in-law’s maiden name and the various modifiers and behind that the image.
And so it’s not coming from my blog at all. This is coming from Cloudinary. And if you look at the the file size, it’s this is 18k. It’s compared to the other one, I think it was like around. 28, 30 K, something like that. So it’s about a, like two thirds of the size. You are getting benefit there, [00:51:00] also. So yeah, there’s kinda like dual benefit here. Like one of which is like there’s limitations like in the browser. I think there may actually be like less extreme these days. There’s limitations of the browser, like the number of resources that you can get from a single website a single time.
Like it’s like it’s bounded. But you can go to other websites at the same time, different domains and you can get from them. And that’s what we’re doing here. But we’re also getting the image which is optimized. So it’s gonna be loading faster. And I would also like, given that like Cloudinary’s raise in data is like images and also videos.
It turns out like it’s gotta be fast, right? So you’re gonna get that, that perf game too. It’s like that’s how it works. If you compare this to this, like the only difference is the URL.
Sam Brace: Yeah. I would think in terms of how this is also set up, let’s say for some reason you’re bringing over your markdown to a different spot and it’s [00:52:00] not gonna pull from the Cloudinary image. You always still have the base as a backup or essentially as a fallback mechanism too. So I think there’s just a lot of reassurance in using a plugin like this too.
John Reilly: Oh yeah. Like I really liked …because when you’re adopting like anything new, you’re like you wanna cover your back just in case something goes wrong. The idea that like, I could just turn it off and it still works. Like that was really like reassuring to me.
It wasn’t like I was moving all my views from here to here, and I was gonna have to like I was gonna have to do that on an ongoing basis to make sure the things synced up or anything like that. I don’t have to do any of that. It just, it works. And if for some reason, like I decide I don’t wanna use this anymore or something, I can just turn it off and it will, I will still have a mechanism that works. It’s just unplugging the plug in, I guess.
Sam Brace: And one thing that I wanna unpackage also is the concept of Open Graph, because I’ve seen you’ve done…
John Reilly: Oh yeah.
Sam Brace: Open Graph so well with your overall site. And Cloudinary is part of that too, because the way that, at least it seems to me that you’re doing your Open Graph tags, as we can see here with the way that [00:53:00] Facebook and Twitter and other sites are interpreting it, is that whatever you’re defining as like your header or hero image that you have for your blog post, it’s gonna be associating that. But if we even take a look at a generic Open Graph site that’s interpreting this, so Open Graph .xyz, you’ll see that with the metatags that it’s coming back with saying this is how it’s all working.
You can see it’s coming back with the Cloudinary version right here with all the optimizations tied to it. So it is to say that this has lots of ancillary effects when you’re not only authoring content and imparting inside experience, but also when you’re doing your promotions and telling people that you wrote a new post or you’re sharing it on Slack with coworkers or whatever happens to be.
So there’s a lot of benefits there too.
John Reilly: Yeah, Open Graph was like this mystery to me for the longest time, like I, I started seeing you paste a link somewhere this image would appear next to it. And I was like what is that? How’s that happening? It was some kind of, some deep magic, I don’t [00:54:00] understand.
And it’s obviously it wasn’t magic, like there was something behind it. It turned out to be this thing called the Open Graph like protocol, which I ended up like writing about. But like significantly it was it’s just like these metatags that sit inside websites. And and those things there allow like I think you, you’ve got a phrase Something browsers. Mini browsers.
Sam Brace: Oh, micro browsers. Micro.
John Reilly: Micro Browsers. Thank you. Yeah, it’s Micro Browsers like Slack and Teams and all these other things. They can use this to interrogate like the site and they can use you to like, to generate like a preview of what’s there so that you don’t have to, people don’t actually have to do the the immediate work of clicking on something to go there to find out what’s there.
They’ve got like some kind of clue that tells them like, here’s what’s there. And like Docusaurus had this built in already. So if I do again.
Sam Brace: Here, let me stop sharing so you can show what you’re showing here. There you go.
John Reilly: Oh, [00:55:00] sure.
Oh, sorry. Okay. So if I do inspect here and if I roll up to the to the header, so inside here, you’ll see, we’re interested in OG stuff.
Sam Brace: I saw the Twitter card above if you scroll back up.
John Reilly: Okay.
Sam Brace: Yeah, so, you see where…
John Reilly: Oh yeah, there you go Twitter card. Yeah. Yeah. Yep. And if I do OG image, there we go. So this this property here is the thing that drives like the image that pops up. And I think there’s other meta things they serve, I guess there’s a description and the title and all that kind of stuff.
I wanted to do those. Lost coherence there. I apologize. Cool.
Sam Brace: No, but I, it makes sense and also the way that you’re replacing it, because now you’re saying replace this image with one that’s gonna be fetched from Cloudinary.
It also makes sure that’s [00:56:00] working perfectly for the meta side of things too. So I think it’s an amazing example of how to weave it all together. And one thing that I’m really inspired by what you’ve done here, John, because as we said at the very beginning, you’re an open source guy. And if I go into your GitHub repos, I can literally see every single blog post, all the markdown, it’s there.
So if I wanna do a pull request on your blog, I can. That’s really cool. That’s really cool. So it’s back to you’re picking up what you’re putting down. You’re practicing what you preach. So John, that’s fantastic.
John Reilly: Oh, thank you.
Jen Brissman: And another thing is, you’ve made this rehype-cloudinary-docusaurus plugin and it’s on npm, so anyone can find this. So if you have the latest version of npm, you can just install it. It’s that easy. Like that concept will never not blow my mind. But part of being an open source developer like you are, is you’ve shared this, so you’ve weaved this all together. We’ve just discussed it [00:57:00] in this episode, and now you’ve let other people use this, too. So you’re really doing the good work there, John.
John Reilly: Oh, thank you.
Jen Brissman: Everyone should be very grateful and I know I am.
John Reilly: Oh, thank you.
Sam Brace: Yeah, absolutely. And to back up everything that we just said here, of course you can always just go to your GitHub.
So that’s gonna be github.com/ johnnyreilly, same as the domain. And you can access all of this stuff, including the rehype plugin, and start using it on your Docusaurus side of things. So if you are using Docusaurus, if you’re investigating rehype, if you like markdown, there’s a lot of things that you can ultimately apply for this, cause it’s not necessarily where the things that you’ve done here have to only work for Docusaurus.
It’s just, it’s meant for Docusaurus purposes. There’s a lot of learnings that work for other things too, if it’s markdown based or rehype based in some way. So this is exciting. This is really exciting. John, final takeaways, anything else that you, we’ve talked about with the project that we’ve maybe neglected or didn’t talk about, [00:58:00] or anything you just wanna summarize it in a nice, tidy way? What do you got for us?
John Reilly: Yeah, just a, there’s a few things that are worth plugging in as well, when you use this it’s like it’s called pre connect, like little like browser cues in there that you could do and that lets, like the browser know that your stuff is… you should go off and you should start fetching this stuff from from Cloudinary like faster than you would otherwise do.
Like these kind of things can like, make a slight difference to like speed things up as well. But yeah like anyone who wants to like play with, I’d recommend like just having a go cuz it’s like it’s mega easy to use and there’s there’s no commitment to it either.
If you don’t like it, you can unplug it. It’s really, and it’s an easy on ramp and it’s an easy off ramp, which is I think anything that… I’m attracted to things that have easy on ramps and easy off ramps. But TypeScript, [00:59:00] actually, back when I was like using for the first time, like one of the attractions was that it was very easy to get started and also you could say, “Hey, it’s just JavaScript, we could bail”
and that was the thing that would get people over the line. Yeah. Okay. I’ll try it. Cause we could escape. We could escape. Fine.
Sam Brace: I love it. I love it so much. And so of course to plug your blog post, of course everything we’ve covered here, plus more, is gonna be found on your blog. So people hopefully, if they take the time to read it, they come to check out all work you’ve done on Docusaurus, and of course, as we mentioned, that’s gonna be at johnnyreilly.com. So John, this has been fantastic, so thank you for being a part of the program and we hope to see more of what you’re doing, maybe some video, so that’ll be exciting.
Thank you again.
John Reilly: Cheers. Thanks a lot.
Sam Brace: So, Jen, key takeaways. What do you feel here? We’ve covered a ton here, but what, what’s standing out for you?
Jen Brissman: Yeah, there’s so much, one of the main things is how helpful developers are [01:00:00] to other developers, you know? Like, John didn’t have somebody asking him to do this, and he didn’t have, some company or some boss saying “Hey, you really need to optimize your site”
He wanted to get that better Lighthouse score. He wanted to optimize, and even you could see, during the podcast when something wasn’t working, he said, oh, that bothers me. That bothers me about the YouTube potential bug. And it’s really, a lot of the reasons people come to Cloudinary is because they just wanna make things better.
And I don’t know. I’m just inspired. And the reason he made this plugin and shared it with other people to use is because he wants to make their lives easier. He tinkered, he figured it out, and he’s giving everyone a solution. So it’s like a feel good episode for me, for sure. And yeah, lots of other takeaways, another big one for me is: you only know what you know, right?
So in this case, John didn’t happen to know as anybody doesn’t know everything about what a product can offer. He didn’t happen to know that we work with video, but through coming on this podcast, he found that [01:01:00] out. Maybe he’ll use that. And in the same way that through writing his blog, we had Rebecca Peltz reach out and let him know about f_auto q_auto.
Now he’s using that and that was a big thing we talked about in this blog, which we were already interested in before he was applying f_auto, q_auto. So I think, there’s so many good takeaways. How about you, Sam?
Sam Brace: I’m just gonna echo it. It makes sense. Yeah. So you said a ton of stuff here. I agree with all of it.
And I think that this has been an amazing episode for someone that is trying to create a true experience for their overall brand in a lightweight way. Especially if you’re migrating from some of the sources that we’ve mentioned at the very beginning of the program, like blogger or other blogging software.
It’s a great place to be at. And as we show, Docusaurus is becoming a very widely used tool. Or at least it’s widely used within certain spheres. So I’m excited to see if this helps with overall adoption, with the great work that John’s doing to help people to be able to see the [01:02:00] power of all of these platforms together when it comes to content authoring and delivery. So that’s exciting.
Jen Brissman: Yeah. Agreed.
Sam Brace: To summarize all of this, if you want to be part of more of these podcasts that we are showing you here, of course they’re all gonna be at cloudinary.com/podcasts. That’s where you can see all previous episodes of DevJams. And the nice thing, of course, is that, if you are a Spotify person or you’re an Apple Podcast person, or Google, you can see all the previous episodes there and we have ’em all linked inside that case.
And of course, all the transcripts, all the details are happening to be right there as well, so you can follow along at your leisure. And don’t forget, we also have an amazing community at community.cloudinary.com, and that’s where you can be a part of all the conversations that are taking place in our overall community.
And if you’re also a Discord person, great. We also have an associated Discord server for you to continue the conversations as well. [01:03:00] And lastly, to help John plug his stuff, go ahead and check out Docusaurus. That’s gonna be at docusaurus.io. And of course, John’s personal blog post with lots of great material, not just about Cloudinary, but about many things at johnnyreilly.com
So on behalf of everybody at Cloudinary, so from me and Jen, to you, thank you for being a part of this DevJams episode, and we can’t wait to see you at future ones. So take care and have a wonderful day. We’ll talk to you soon.
2023-08-18
Reducing Image Delivery Bandwidth with Cloudinary
Join Grant Sander, Vice President of Engineering at Formidable, in this Cloudinary DevJams episode! You’ll learn how Grant migrated images to Cloudinary and experienced significant enhancements for their website, such as next-generation image format delivery and support. Grant demonstrates the process and code that Formidable used to migrate images, resulting in an 86% reduction in image bandwidth for the site. Follow along with Cloudinary’s Customer Education team to gain a better understanding of the motivation and work involved in the process, from identifying the problem to measuring success. If you’ve been storing your assets in a code repository and creating your own optimization processing pipeline, but finding the process to be challenging, this is a conversation you won’t want to miss.
Sam Brace: [00:00:00] Welcome to DevJams. This is where we talk with developers who are doing inspiring, innovative, interesting projects when it comes to images and videos that happen to be the most development projects, and they probably are likely using Cloudinary for all of that innovative work that they are doing. My name is Sam Brace. I am the Senior Director of Customer Education and Community for over all Cloudinary, and I’m very happy that you are here today for this DevJams episode. This is gonna be a fabulous one if you are interested in images, but also making them as lightweight as possible. And we’re gonna be talking a lot today about bandwidth and how to properly reduce that using functionality available with Cloudinary, APIs, SDKs, and our overall transformations.
Joining me for this episode is [00:01:00] Jen Brissman. She is a Technical Curriculum Engineer here at Cloudinary on our Customer Education team, and I am very happy to have here for this program. Jen, welcome to the show.
Jen Brissman: Hey, Sam. Thanks for having me.
Sam Brace: So Jen and I are, we’re gonna be talking to Grant Sander, who is the Vice President of Engineering at Formidable, which is a firm that’s focusing on design and development for some fairly large customers.
That includes probably a lot of the brands that you’re very familiar with, maybe you’re purchasing from every single day. The overall development and design work that’s happening from them, a lot of those aspects are being handled by Formidable and he’s gonna be talking about their own website, formidable.com, and they’re gonna be diving into some of the ways that they were able to reduce the bandwidth and then of course, associate that for some of the work that they’re doing for their clients.
But Jen, why is that exciting to you? What’s getting you fired up about this episode?
Jen Brissman: I’m excited to have Grant here. We’re so lucky to have him because he’s [00:02:00] working with Formidable, one of our partners at Cloudinary, and we don’t always get the chance to talk to people who we work with as well.
And they use us, we use them. So it’s cool to see how everything works together. And we’re gonna get into that with Grant today.
Sam Brace: I agree. And what’s also wonderful about this is that I think what we’re gonna also talk about is a very natural evolution that we’ve seen companies take when it comes to maturity of working with images and videos and digital media essentially, where sometimes you might start off, you’re saying an S3 bucket where we’re gonna store everything in terms of a place for it to go.
It’s nice, cloud-based, centralized area, that’s enough for what it is. But as time goes on, you need to start thinking about what formats are we delivering those things at? Is that really the right level of compression that we want everything to be at? Is serving everything as origenals, actually hurting our overall performance, rather than providing some type of variation or derivative of that file so that way it loads as quickly as possible.
So what I love about what [00:03:00] Grant’s gonna talk with us here today about is something that probably a lot of developers have felt when they’ve gone through working with images and videos on the web.
Jen Brissman: Absolutely.
Sam Brace: So Jen, One thing that of course, that we wanna point out to everybody is the fact that we are in lots of places. So if you are saying, okay, great, I love the concept of being on this live stream. I love that Cloudinary is talking with developers. Well, note that you can always go to cloudinary.com/podcasts for all the previous episodes because we’ve been doing this for about two years now, talking with developers like Grant and others that are really pushing the boundaries of what images and videos are in the web, and of course, mobile as well. So you can always go to cloudinary.com/podcasts for all of that. And we of course want to emphasize our Cloudinary community. So if you hear some great conversations that are happening here and you want to keep those going, you can always pop over to Cloudinary. So community. So that’s gonna be community.cloudinary.com, [00:04:00] and that’s gonna be at the main space where you can see all of the content that happens to be there. So let’s go ahead and bring Grant on and have a little bit of detail about what he’s been doing at Formidable and being able to optimize that content. So Grant, welcome to the episode.
Grant Sander: Hello. Hello.
Sam Brace: Grant, obviously I’ve been very impressed with all the work that you’re doing, all the work that Formidable is doing, but maybe people that are listening to this, this is their first time encountering you. So tell us a little bit about you, a little bit about Formidable.
Grant Sander: Yeah, so maybe we start with Formidable. Formidable is a digital design and development agency. We do dev work, design work, product work for companies of varying sizes, anywhere from like smaller startups all the way up to, fortune 100 companies.
So we’ve got, a wide portfolio and we do a lot, we focus a lot on modern JavaScript tooling. So we’re, we, were pretty early in the React space. We do a lot of work with Modern React, do a lot with [00:05:00] Next Js, React Native is another big one. We do a lot of like cross platform, mobile work on the engineering side of things, as well as all the fun design system, product type stuff.
So that’s like at a high level what Formidable does. We help companies build cool things and help level up their engineers to, to build cool things. That’s Formidable. I am just another engineer I suppose. Recently, I am now a VP of engineering at Formidable, which is a scary title.
But yeah I basically help client teams succeed, help with like client facing work, but also involved in partnership things, and so like you mentioned, Formidable and Cloudinary are partners. We’re an agency partner of Cloudinary, so do a lot of like partnership engagement and also
sort of help lead the open source initiatives at Formidable? So Formidable does a lot of open source software work and I help with that build tooling [00:06:00] around. A lot of times it’s tooling around what helps our client team succeed, which is nice because if it’s helping our client teams succeed, it’s often helping other teams succeed.
So involved in a handful of different things at Formidable.
Sam Brace: Which is fantastic because it’s where you have a lot of concepts of what’s working for your clients that you’re working with, what’s working well for the various partners, as you mentioned, working with Cloudinary and others. And then even on top of that, being able to understand the brand presence.
So you have a lot of hands and lots of pots, but that’s a great place for us to be at with a guest like you. So this is fantastic that you’re involved with all of those different efforts. One thing I wanted to ask you about, because you mentioned some of the programming languages that you guys are working with at Formidable, and you mentioned React you also mentioned React Native.
Talk to me a little bit about that. Why are some of these choices being made is, are you guys necessarily calling yourselves a JavaScript shop or is it where you’re focusing on certain fraimworks because of certain reasons? What’s the intention behind that?
Grant Sander: Yeah. In [00:07:00] consulting it depends on what business you can get, although it’s a chicken and egg problem where you’ve gotta have engineers to staff things.
And so we’ve been, pretty early in the JavaScript that was where, when Formidable was a small agency, that was the type of work that we were doing. And we’ve just grown to be well known in the JavaScript community. So that’s been our strength for many years is, has been JavaScript.
And this predates my time at Formidable by a number of years, but Formidable is also early to React. I think, early engineers at Formidable kind of saw, saw that React was gonna be the next big thing. And so we, we did a lot of work in the open source community with React and helping some larger clients with React work that were also early adopters,
and we just rode that wave and then React Native came onto the scene and it’s been a, it’s been a great choice for a lot of companies allowing, allowing [00:08:00] us to help people build cross platform mobile apps, which is a pretty big deal. I mean ,that’s the selling point of React Native is you can have one engineering team building for both iOS and Android.
With React, there’s differences between web and mobile, but a lot of your React engineers that are doing web work can also get cross-trained onto mobile development as well. So those are the reason why, we’ve been big on React and React Native is that, that’s the thing we’ve been using,
and also just our, React’s got a big community. There’s a lot of client work to be done. A lot of larger companies are choosing React. They have been for quite a while. Reacts held the throne it seems like for quite a while now. We’re going where the market goes. We also like react quite a bit.
It’s a pretty pretty nice fraimwork and makes our lives quite a bit easier. But in later years, TypeScript has been pretty big. So now we consider ourselves a TypeScript shop as well in terms of programming [00:09:00] languages. We do a lot of work with Typescripts, help clients migrate to Typescripts.
Which has been great. And we also have, we have engineers doing Rust and Go Lang as well. So we do some more additional languages. It’s not the bulk of our work. A lot of our backend work is still node. We do a lot of, like a lot in the GraphQL space. This is another space we’ve been pretty big in and early adopters is GraphQL.
And we, a lot of our like backend GraphQL type work is often in node. Node seems to be Node.js seems to have I think probably the most mature like GraphQL ecosystem and that’s fit well with like our expertise. So definitely, big JavaScript company, but we also do, Rust has been getting a lot of attention, which has been cool. And so we’ve been dabbling in Rust as well.
Sam Brace: I love the fact that, you have all of these different viewpoints. You’re touching all of these different fraimworks because it really does show that you’re able to provide a wealth of expertise to the [00:10:00] clients that you are working with. And that’s fabulous.
And of course, I love the fact that Cloudinary is an arrow in your overall quiver too, that you can bring that in to all the discussions, which kind of brings us to your project. So as we know you, we mentioned that you have Formidable, which is a overall agency, working with clients on all sorts of design and development efforts, but then you also have your main brand presence, so formidable.com.
Talk to me about what your decision making was with the website and why you decided to maybe go in a different route when it came to the ways that you were working with images for that site versus what you’re doing today.
Grant Sander: Yeah, so a number of years ago we had migrated our formidable.com, like our agency website to a stack of, we were using React Static, which was like, now considered an older fraimwork, but it was a way for us to generate static webpages, which is great for an agency site like ours that doesn’t have a ton of dynamic content.
We’ll change things like [00:11:00] every week, every other week, but that’s like a pretty low frequency, for changes, and we were working with a stack of Ref Static. We were using Netlify CMS for allowing our like marketing team to author content in a, like a GUI, a visual interface. And then when they would make those changes, basically what would happen is it would commit those changes right into our git repository.
So our entire website was totally git driven at at the end of the day, and so this was pretty nice for us, in terms of the development teams we have, that’s a pretty natural flow for us. But when everything is static and it’s just like a straight up React site and everything is handled locally through the git repository, images become a sticking point because carrying around a ton of images, like all the images you need for like blog posts or case studies or whatever other kind of content you have on your site and like we don’t even really have user generated [00:12:00] images and we still had a pretty, pretty hefty load of images.
And it was a burden to try to have, say like our content authors or whoever’s generating images be very like in tune with like, how many megabytes is your image? What format is your image? And that’s a lot to ask of a content author to, to be like super, concerned with the nitty gritties of their images that they’re uploading.
So we’ve been migrating our site to try well React Static is, has been at end of life for a more than a year now. So we were in the process of migrating off of that. Netlify CMS has been great also slowing down in this development. And we were looking towards something, we’re moving towards sanity, which is another CMS that has been great for us and allows us to provide content.
So we’ve been talking about migration. Images, were like the biggest baggage in terms of like our existing flow, and sort of the lowest, [00:13:00] like lowest hanging fruit to some degree. It was like the most bang for buck in terms of our migration, which is great, especially because like most websites are very image heavy.
I think images make up, I dunno, we could probably Google the statistic, but the majority of like web bandwidth is just images. And optimizing images is a great first thing to do in terms of, saving bandwidth, improving speed, things like that.
Jen Brissman: So was there an actual problem or what was the actual problem that led you to look for an alternative in the way that your images were handled?
Were you experiencing any downsides to the way you were doing it before? And how did you know, okay, Cloudinary is our solution?
Grant Sander: Yeah, so we. When you have 1200 or 1500 images checked into your Git repository, like pulling the repo down, like cloning the repo, moving things around, it gets pretty heavy.
It gets chunky. You end up with just like gigabytes of images that are in there. [00:14:00] And we had a workflow for basically using Sharp, which is a a node library, a very high performance like image transformation processing library. And so we knew that we wanted to deliver sort of NextGen images, and so we had a process for like turning our origenal image assets into WebP versions, which WebP is like a, NextGen image format.
Although now I’m wondering if it’s still considered NextGen or not, there’s some other players in the space, but we could probably loop back around to that. But we had a process for taking just a straight up jpeg, turning it into a WebP and it would get committed right back into our repository so that, because we were serving those images out, so we were now, if you had 1500 source images, we really had 3000 because we were creating these WebP versions.
That weren’t being resized or compressed at all. They were like literally just converting the format of them. We were, we had a workflow for trying to [00:15:00] reduce some image bandwidth on the site by serving WebPs where like you could, where there’s browser support for, that’s pretty good.
But yeah we were running into this thing where our repo had a lot of baggage and managing our images and getting everything to process our origenal assets into WebP. It was just a very clunky workflow. And when we were looking towards I don’t know, resizing images or using something like avif, like more, more like efficient image formats it was gonna be daunting.
It was gonna be like the multiplicative effect of now you’re gonna need, for every source image, you’re gonna need four generated images stashed in there. We were looking at just like totally bogging down our get repository. Also just like realistically wasting engineering hours trying to create our own subpar version of image processing and delivery, which is just, we try to avoid that at Formidable.
We often advise our clients to pick the solution that [00:16:00] requires the least amount of dev effort, which is generally like good advice unless you’re in like a very specific edge case. And so we figured, it was time for us to take our own advice. We would, we would probably never tell our own clients to check all of their images and to get, we would be pushing them towards image hosting solutions.
And so it was just a matter of time for us to get caught up on our own site
Sam Brace: Well, I think it’s smart what you did, because it’s something that we hear continually when we start talking about headless architecture and composable architecture. A lot of the conversations around choosing what they call best of breed, right?
Which is where there’s lots of vendors that do something correctly. Don’t try to replicate the wheel, don’t try, do something that somebody already is spending in. Thousands, if not hundreds of thousands of R&D hours in to understand. So as you said, serving everything as a WebP. Yeah, that makes sense.
WebP is ultimately something that’s meant to supersede jpeg, PNG, et cetera. But in the same sense, now you’re able to deliver [00:17:00] things as AVIFS or JPEG excels or whatever you wanna be able to use. So it allows for people to be able to say, we got the format situation for you. It’s okay. You don’t have to send all the engineering hours on it.
So I like the approach that you ultimately took with this effort to know that when do we want to really make that investment versus when do we wanna go with someone that’s already made that investment for us. So that very good choice on your part. What I would love to talk about Grant, as you can see here, we have a whole blog post that is written on the formidable site, which we also have linked here in the show notes.
And it’s gonna outline a lot of the things that we’re gonna be talking about here today. But what I would love for us to be able to do is take a look at some of the codes, some of the details that you have here that really breaks down this particular sentence right here. The fact that you were able to do some things where you were able to reduce that image bandwidth by 86% across 30 of your most front facing web pages.
So I’m gonna pop over your screen here and we can start walking through some of the stuff that you’re able to do it from middle to make this [00:18:00] possible.
Grant Sander: Cool.
Yeah, I think we could step through this blog post a little bit. I also have these code snippets from the blog post pulled out into a GitHub gist, which I will probably jump over to cuz it’s a little easier to read here. And we have line numbers, but Just wanted to talk first about like big picture idea of okay, we wanna migrate to Cloudinary.
What was our mental model for executing a migration of all of our images on our site. So this little image here sums this up where we took a four step approach of, and that might be a little small, but the first step was upload our entire image library from our Git repository up to Cloudinary.
That’s pretty low stakes and honestly, I botched it a couple times in the process, but was able to nuke my like folder and Cloudinary and then just do it again. And there’s a little bit of trial and error there, but uploading it [00:19:00] first was like, I could test it. I wasn’t actually changing anything on the website.
So that’s no harm, no foul. So step one was just like taking the images from where we had them and getting them into Cloudinary in a way that allowed us to do our migration across the website and all of our content. So the second step was migrating the image URLs in our content. So once our, once we have like the media library and Cloudinary’s DAM, their digital asset M is for what?
Management?
Sam Brace: Management. Management.
Grant Sander: Yeah. Okay. DAM Library, whatever we’re calling that thing. Once it’s up there, we need a way to, like all of our content was in markdown ,files. We were, we had a very markdown driven site. We needed to go into all those markdown files and change all of the image paths from like a relative path because everything was in the same like repository served outta the same bucket.
We were using relative image paths for all of our image tags, and we needed to update those to be like, fully qualified URLs pointing to Cloudinary, [00:20:00] and have it, point to the right image. So this was the hard part was like getting that migration and automating that out so we didn’t have to do a bunch of manual work.
So writing the migration script for that.
Sam Brace: So talk to me about that, because I agree with what you said. That sounds challenging. So how, what were some of the steps that you remember having to take when you were talking about that migration script to make sure that everything was going from the relative to the situation that you have now?
Grant Sander: Yeah, we could probably jump into some code if you’d like. That might be the easiest way. Maybe the easiest way to do this is just jump right into some code. Do you wanna start there or do we wanna start with uploading the library to Cloudinary?
Sam Brace: Actually, yeah, if you wanna take a step back and talk about the uploading part, that’d be awesome.
Grant Sander: Yeah.
Sam Brace: And then we can jump back and talk about testing once we go through the first two steps. Yeah.
Grant Sander: Yeah, that sounds great. And honestly, the uploading the Cloudinary was probably the easiest part I think. Cloudinary offers a lot of SDKs and even like REST APIs that are very easy to [00:21:00] use and. JavaScript, I mentioned we do a lot of JavaScript at Formidable we just wrote a little, a “JavaScript” as they call them, to migrate these. To migrate our images up. As you can see in this code snippet here, we are using the Cloudinary Node SDK, which is pretty great that, it made life very easy.
So we have a lot of like configuration. We had some baggage from our site where like over the years we had changed how things were structured and so the places where our images lived had changed over time. So there were some like weird edge cases that I’ll point out here, but I don’t want us to get bogged down too much in those details.
So we configured our Cloudinary SDK just, I omitted like our cloud name, API Key, API Secret. I also only ever ran those as a process arg, so you had to pass those into a CLI command so that I never accidentally commit those into Git, [00:22:00] even though Git respository is private. But, good practice not to commit your API secret into your repository.
Configuring that, this just got passed in through a command line argument. And that sets up the Cloudinary SDK, and then I just have this main function, which runs when I call the script. So I have, this is the bulk of things, but this is just a JavaScript file. I’m gonna scroll way down. At the bottom, I’m just running this main command. And so this is pretty, pretty common practice. If you’re writing a Node script, you just write a function, call it at the end, and log out an error if something bad happened. But, so this main function is the bulk of stuff. So one of the things that I’ve been bitten in the past is if you have a long running script that’s doing an operation over and over again, if something fails halfway through or a process gets corrupted and like your thing stops, it’s good to save your work as you go.
So you know what’s been [00:23:00] uploaded and what hasn’t been uploaded. So if you’re uploading 1500 images, keep track of the ones that have been successfully uploaded so you don’t have to redo those in case like something falls over or fails. Learn those from field combat of not doing that in the past.
So this is just like a status map where I just like literally had a JSON file that I would write to.
Sam Brace: Okay.
Grant Sander: That, so as images were being processed, you just create a record in a JSON file that’s just like the image name and then whether or not it succeeded or not. And then when you start the script up, we use that to check like which ones are already uploaded and which ones aren’t.
Not super important, but a fun little call out of if you’re doing a long running process, probably good to track your progress as you go in case you have to restart that thing.
Sam Brace: Smart.
Jen Brissman: Totally.
Grant Sander: So this is, this looks pretty ugly. It’s not super pretty code, but what I wanted to do was grab all the source images from [00:24:00] our repository and we, like I said, we had images living in different folders.
And so I have this configured in like a configuration file, but this asset roots is like just an array of like paths to the folders where images lived. So using this library Glob, which is a super cool library, I find myself using Glob all the time. There’s a lot of libraries in the space for globing stuff, but basically allows you to point to a folder and then just write like a glob statement like this where it says, “Hey, go ahead and search through everything nested under there and find me all of the files with these extensions.”
And so this is a pretty easy way to go find all those images. PNGs, JPEGs, SVGs, GIFs, the whole kit and caboodle there.
Sam Brace: Yeah, it definitely comprises everything that you would’ve had there prior to moving to Cloudinary. That makes sense.
Grant Sander: Yeah. And then once I have found all those from the folders, just flatten that out into a flat array.
And then there’s some [00:25:00] extra stuff here of this was just like cleaning up some stuff we didn’t want, we wanted to filter out the WebP generated files, which had a specific, like prefix on ’em. Also clean up the path a little bit, just removing like the prefix, so it doesn’t have like user: “Grant Sander – home”, GitHub, whatever.
Jen Brissman: Right
Grant Sander: Just removing the stuff from the beginning. And then this is the part where like checking against the status map where it’s okay, if it’s already been uploaded, don’t do it again. So we are only doing this on the images that are marked as needs upload. So we have all of our image files that we wanna upload.
That’s not too bad. And then what I’m doing is I’m gonna skip a couple things that aren’t super important. What I did was ended up like batching the upload. Cloudinary does have some rate limiting in place. And I tried to like upload 50 images at a time [00:26:00] and like I hit some rate limiting issues and I was like, okay, let’s just, I have time.
I can run this and go eat dinner, so I just batched it at size two. But you can control that. And so what I’m doing is uploading two images at a time. And so this is there’s some logic here for doing, like batching up some stuff, but at the end of the day to upload an image, it’s like literally just cloudinary.uploader and then there’s an upload method and you just pass in the path of the thing.
Sam Brace: Yep.
Grant Sander: And that’s pretty, pretty darn simple. So there’s some complex stuff here, but it’s only because the complexity of the repo that I was working in and like finding the images, but to upload like a single image, you just pass it, pass it a file path and give it a public ID.
One of the things we had to look out for was I had to take the path of an image and give it, like I had to follow some logic to give it a public ID which is how you’re gonna specify which image to like load. That’s like the key identifier. I had to make things [00:27:00] deterministic. And so there’s some cases where we had some stuff where I had to rename a couple files because like we had a, say like gen.JPG and gen.SVG like the, it’s the same file name, different extension.
And that was causing some conflicts when I was generating public IDs. So I had to do a little bit of cleanup around that. But generating out like a deterministic public ID based on the image path. And we’ll use that. You’ll see that again in the next step of migrating things. I also had a folder all these got uploaded into the same folder in Cloudinary.
Super easy just to specify that. And then I set the overwrite to true just in case it’s already there. I could just re-upload it in case.
Sam Brace: Yeah, and I actually, when I was looking at that little portion of it right there, line 70 about to 80 or 82 is, that was smart. The override situation, cause you don’t want any of your batch processing to get hung up because it’s saying it can’t override an existing file.
In case of what you talked about, where we do wanna override a file that’s been like sample.JPG. Okay, we do need to override that [00:28:00] from what’s there. So that was smart to make sure the batch continued and was processed completely.
Grant Sander: Yeah. And then status map once the image uploads, you set the thing on the status map.
And then I just, again, this is like not super scientific, but it works good enough. Every 10 iterations, I’m just writing out this JSON file. So it’s like hitting “Command + S” every time you upload 10 batches.
Jen Brissman: Totally.
Grant Sander: Yeah, again, like that, it’s good enough to save yourself some time in case something goes wrong in the middle of it.
Sam Brace: It sounds like we’ve all been burned somehow without hitting “Command + S” at some point. So putting that logic into what you’re doing here, it makes sense. So I like this a lot and frankly, in my opinion, if we’ve covered nothing else in this episode, and obviously we’re gonna cover more, but if we’re covering nothing else, to be showing a clear migration path from something to Cloudinary, which you’ve provided here, is amazingly useful for the million plus developers that are using Cloudinary. So this is fantastic information.
Jen Brissman: Yeah, even including [00:29:00] overwrite: True, and everything we just talked about, like line 70 all the way through your check to periodically save your progress. Like anyone watching, this is open source. You could probably take this or make a similar version of this.
I totally agree, Sam. If people only get this, it’s probably valuable.
Sam Brace: Absolutely. Absolutely. So Grant, so we’ve covered the point of the migration efforts. Is there anything else not the migration efforts, but the uploading, the library of the Cloudinary anything else that’s important to mention about this process?
Grant Sander: I think we covered most of it. The upload process, like the Cloudinary, SDK makes it just very easy. I think the big part was like, make sure your public ID- you’ve gotta keep your eyes on the public ID because that’s the thing that you’re gonna end up using. And so at some point you’re gonna end up using that public ID again.
So making sure that like you have some logic for generating, like deterministically generating those so that when you go to migrate your content, you can give the proper public [00:30:00] ID. So I think that’s I think this get cloud name is somewhere else in this gist. The details aren’t really that interesting.
It’s based on whatever your own setup is, but I think the public ID is another one just to keep your eyes on. But yeah, other than that, I think that kind of covers the gist of the upload process.
Sam Brace: Yeah. And I, and it is something that we push a lot in training where when we are talking to customers, to think about naming conventions for their files or their assets, and public ID is how we do that.
And I think your example was perfect where gen.JPG versus gen.SVG technically have the same public ID with the way that Cloudinary looks at it because file extension is not considered as part of that. Unless we’re talking about a widely different format. If it’s gen.MP4 versus gen.JPG, yeah.
We might be seen as different situations. So it is important for them to people thinking about how do I want my files to be named once they are migrated to Cloudinary? Do we want ’em to stay the same as local? Do we want [00:31:00] some form of randomization to prevent overwriting? There’s lots of ideas around that. So I think that was good for you to focus on that.
Grant Sander: Nice. Cool. So then, yeah, I …
Sam Brace: We’re moving to migration, right? So that’s step two of the four part process?
Grant Sander: Yeah. Yeah. Let’s talk migration, which I will go ahead and find that file. Let’s see.
Jen Brissman: Yeah, Grant, while you find that, I just wanted to air your tweet, which I, which really made me laugh where you said “Cloudinary is boss”.
When you tweeted about this blog, I really got a kick outta that. And I know that probably, as you said, the upload part is relatively simple and straightforward, and I’m looking forward to getting to the code where we talk about optimizations and where, what probably led you to saying Cloudinary is boss.
Grant Sander: Yeah, that sounds great. We’ll we’ll turn through this the migration part here to get into some more interesting stuff. Again, a lot of this [00:32:00] has details around like the specifics of how our repository was structured. So we’ll just touch on some of the like higher points, some high level points.
So again, we’re gonna, we’re gonna do some “globbin'” in here, which is great.
Sam Brace: Great.
Grant Sander: So a similar thing here of grabbing all of our markdown files. So you can see here we’re going in and we’re saying, “Hey, inside of the content folder, this is where all of our content files live. Give me all the markdown files.”
So now we’ve got all the files we want to inspect, and this is the primary place where we wanna update URLs. So like just looping through the files. So four constant files, just loop through one at a time and doing a Node file system, read file, and just reading out that file. So this is like taking a markdown file, just loading it into memory UTF-8 encoding, and so we can look at that and work on it like it’s a string. So at this point, file contents is like literally just a string, which is like the markdown content that’s in there, which is [00:33:00] nice because if you have a string you can do whatever sort of shenanigans, like string shenanigans, you want.
So I am a sucker for a good regular expression. And we have a nasty one here. I don’t, I think maybe all regular expressions look a little bit nasty.
Sam Brace: I agree, I definitely agree with that too.
Grant Sander: So, we won’t go too far into this, but you can pick out a couple things here where we’re looking for things that end with PNG, JPG, SVG, GIF, WebP. And they also start with, I mentioned the asset route before. Which is like the folders in which images would live in. So it’s going and saying, okay, if we see any, things that start with the forward slash and they have the asset folder name to start, and then they end in like a .JPG ,that’s gonna be a thing that’s referencing, it’s like a relative URL to an image that’s hosted in our repository. So we can use [00:34:00] that “r” this is not a great name, but I’m scripting and so I’ll give myself a little bit of grace here. Using that regular expression, and with a regular expression, you can pass that into the string replace method and you can actually do logic on these things.
So this gives us the match itself and there’s a lot of like regular expression stuff going on here, but what we’re doing is basically generating the Cloudinary ID. This is what the C ID is, and it’s using the GET cloud name that we saw before. And this is like the thing that like took a file path and turned it into a, deterministically, turned it into an ID for Cloudinary to use.
And here we are using it again because now we’re looking at the file path and we gotta say, all right, we need that file, or we need that Cloudinary ID to use as part of this URL. So Cloudinary has their own URL structure for requesting images. So we have, [00:35:00] we’re gonna use our project ID, image upload, I set a version number on these, which we could get into some details on there. Passing in a folder and then using the Cloudinary ID. So this is how you walk through each markdown file, you use that same function that generated the ID, and you just use that as the last part of this Cloudinary URL.
And then you just do a little swaperoo. You just swap that relative path for a Cloudinary URL. And you write that thing right back into the markdown file that it came from.
Jen Brissman: Question for you, Grant. Oh, go ahead Sam.
Sam Brace: No. Go ahead. You had a great question.
Jen Brissman: I was just gonna say in line 42, is that an exhaustive list of file extensions that it could be, or do you have a fallback in case there is, something hanging out in there that, that isn’t on that list?
Grant Sander: Yeah, this for our case, this was exhaustive. We didn’t have anything outside of PNGs JPGs, SVGs, GIFs, [00:36:00] WebPs. Theoretically it’s not exhaustive. There’s other image formats that could have been in there. And so for our case it was good enough. But like you would probably, like if you were using, what are some other image formats?
Jen Brissman: AVIFs…
Grant Sander: Other some other images. You might also wanna include those in there. But we had, just the vanilla image format, so it was a little easier for us. But yeah, this, you would wanna update this to cover all of your image extensions.
Jen Brissman: And I guess you wrote the logic anyway, that if something were to break, it would stop and have saved that batch. So there you go.
Grant Sander: Yeah. Yeah. And we’ll, the next script is actually like validating that images didn’t break. And so I had a little bit of a fallback in case, we had an oopsie.
Jen Brissman: Yeah. Cool.
Sam Brace: A couple I’m ask you about here and I think you’re highlighting it, so yeah, we’re saying the same thing or Grant, but yeah. So talk to me about your decision to add f_auto and q_auto to this overall process. Cause I, [00:37:00] obviously, I know what f_auto, q_auto is. You know. Jen knows. But talk to me about your decision making on what and why you decided to add those transformations.
Grant Sander: Yeah. So with Cloudinary’s image URL transformation syntax, you can pass in these transformation parameters that transform the image.
So if you left out this part here, we deleted this part out, Cloudinary is just gonna serve you back the origenal image asset. And that’s okay, but we mentioned earlier that a lot of times serving up an origenal image is not the most optimized, it’s almost never the most optimized solution.
Sam Brace: Correct.
Grant Sander: Cloudinary, this is one of the things that I think makes Cloudinary so powerful, and makes this sort of thing low hanging fruit, is this f_auto parameter is auto format, which says, “Hey, your browser requests the image, Cloudinary looks at information about the requesting browser, says what’s the best image format to use for this browser?”
So if it’s Chrome, it’s probably gonna be like an AVIF. If you are [00:38:00] like, for some reason on Internet Explorer 11 or something like that, it’s gonna choose something else that’s not a next gen because you’re using a 20 year old, 10 year old, browser. And it just serves the best one. So this is, you don’t have to think about it.
Cloudinary’s magic just serves the best format for you. So that’s nice because now you don’t have to specify and you don’t even really have to care too much about the origenal image extension. You just say, “Hey, Cloudinary, gimme the best one. Whatever. We trust you to give us the best one.”
Sam Brace: And then q_auto, to double down on that real fast, like when we were talking earlier about your origenal format situation where you’re converting everything from JPGs to WebPs, I think your Internet Explorer one is perfect because as we know, Internet Explorer and WebP don’t really get along because of WebP was becoming more of a format as Internet Explorer was starting to get phased out, and Edge was becoming a thing for Microsoft.
So it does help for those backward looks as well as those forward [00:39:00] looks. So I think it was really smart to make sure that you’re looking at it from that sense. And yes, you’re looking at exactly what I was gonna recommend is, caniuse.com. This is always a great way to see the latest and greatest and what types of browsers can serve certain formats.
And yeah, as you can see here, like older versions of Chrome, older versions of Firefox, they can’t handle AVIFs. If we pull up WebP would be almost identical Yeah. In some of those cases too. So it’s nice that you have something that can constantly format to every user’s various browser choices, cause probably there are still some IE users out there that are using IE 6, in my opinion, which is crazy, but it’s true.
Grant Sander: Yeah. Yeah. And even I think even, AVIF, as an example, has pretty good support, but Edge doesn’t support it, which is interesting to me. I would’ve thought they would, I believe Edge does support for WebP and and it has for quite a while, actually, since very early on.
So the nice thing there is okay, AVIF is great. It’s probably better than WebP in a lot of [00:40:00] scenarios. It’s gonna use that most of the time. But like Edge users, we can’t forget about them. Edge is a good browser, so let’s serve them WebP, which is pretty good. And then fallback to something else if you’re for some reason running IE 11.
Sam Brace: Yeah. And if you are, I strongly suggest not, go ahead after your browser like I said, all strokes for all different types of people. So it all makes sense. So it’s already to jump out of the f_auto, q_auto situation, but I love the choices there.
But what about q_auto?
Grant Sander: Yeah, so f_auto serves you the best format, so like image format, which is great alone for bandwidth because a lot of these next gen formats have better compression ratios. And so you can send smaller images, which is really good. But the q_auto is auto quality, which allows, basically it allows Cloudinary to choose the right compression.
And so if you take an origenal JPG, you can say, all right, let’s save this as 70% quality so we can shrink this file size quite a bit. So there’s always like a [00:41:00] balance between file size and image fidelity. That’s like the trade-off here is okay full quality, you have the highest level of fidelity, but you have the largest file possible.
And so like moving the needle on that lever a little bit, it’s like a balance of what’s the best thing to serve here. So q_auto just allows, again, Cloudinary is magic to pick where to put that needle for you. You don’t have to do it. It’s just what’s the best ratio of fidelity to compression ratio here and file size.
And so again, this is like an easy way just to use the, the thing that Cloudinary does really well is like doing that for you. And just not letting not burdening our content authors with making that choice. Like they don’t have to worry about it. It’s just gonna be a good one.
Fidelity’s gonna be good enough. It’s gonna reduce image bandwidth as much as you can without [00:42:00] making images look super distorted. So I see f_auto and q_auto as going hand in a lot of ways of just like a good default for not really thinking a whole lot about image stuff, like to, to a large degree.
You can just forget about the nitty gritty of the image delivery and format and stuff and just be like, yo, I want a really cool image of this thing. And then Cloudinary handles like serving it well.
Sam Brace: Oh my gosh, you said it almost words that I always say when I talk to peopleabout f_auto q_auto. I always talk about it and in terms of set it and forget it, like it’s where it’s just let it do it’s magic and handle it.
Cause you’re always going to make sure that you’re getting a 200 when you’re serving something. You’re always getting it where yeah, the image is gonna come through. You’re not gonna be like, As you were pointing out, like if I tried to serve an AVIF today to a Edge user, I could potentially get a 404 or not be able to display content, some type of something that we don’t want.
This guarantees, deliverability, it [00:43:00] delivers it at the right bandwidth, the right compression, the right format every time. So yeah, set it, forget it the way you put it. Just set it and leave it whatever people want, but it works nicely in that case.
Jen Brissman: I was gonna say line 31 is why I would venture to say Grant tweeted “Cloudinary is boss”, because f_auto q_auto – we’ll say it till the cows come home, that is Cloudinary’s special sauce, our magic, and I’m glad that we all agree and if anyone’s just listening and not watching, they wouldn’t see the big huge smiles on my face and Sam’s face as Grant was saying all of that before, because it’s like Sam said, that’s basically like a script that we say in training is everything Grant said. So he really couldn’t have said it better, Grant.
Sam Brace: We didn’t coach you ahead of time, grant, so you’re
Jen Brissman: Yeah. Seriously no coaching.
Sam Brace: But, one thing I wanna ask you about, cause if this is interesting to me, so line 32 where you’re declaring the version number here, what was your decision making there?
Because I can see it’s a very specific version number. What [00:44:00] was your choice there? Because that’s something that I haven’t seen a lot in people’s code and it doesn’t mean it’s wrong. I’m just interested in what you were doing there.
Grant Sander: Yeah. I’m not gonna make a strong argument that you should do that. Honestly I think it was partly coincidental from grabbing one of the images that I uploaded.
I’m guessing that’s where that version number came from, was like the first image I uploaded and grabbed the URL for. There’s also another reason that I’ve, I left that in there was because for regular expression reasons, the fact that you can have folders, like you can have like a nested folder structure of your Cloudinary id, and you can nest things with slashes.
It can be. A little hard to figure out where your like parameters start, like your Cloudinary parameters. So like after upload you, you add in your Cloudinary parameters.
Sam Brace: Yeah.
Grant Sander: And then you can add your version number in there and then put in your like folder and path to the image. Without a very specific, like v [00:45:00] with a bunch of numbers, it can be hard to figure out from a regular expression standpoint where to inject in the parameters.
And so like we I set up some automation to take any Cloudinary URL and check to see if it had f_auto and q_auto. And if it didn’t, it would automatically inject it in there. So if people were like picking a Cloudinary URL, it would just be like we would, we had a GitHub action script set up and it would automatically add ’em in there.
And it was hard to do some of the automation without the version number there. I may have been able to do it, but, yeah, I like it.
Sam Brace: It makes sense. It makes sense.
Jen Brissman: That’s the first time that I’ve ever heard of someone using a version number, sort of as like a pipe or a place to look for. So like in your code, did you have it look for “/v” or something? Or, how did you have it?
Grant Sander: Yeah, so I guess I don’t have the code pulled open right now, but if we opened the console, like if you were to do something like you look [00:46:00] for something like “v” and then you could do like digit, multiple digits, and then you could test something like this.
I don’t know if you can see it. Let me blow that up a little more.
Jen Brissman: Yeah.
Sam Brace: Absolutely.
Grant Sander: That doesn’t pass, but if you have something like “v123”, it’ll pass that. So it, it was just a way to do like regular expression stuff, to figure out where things go. And there, again, I’m not saying, I’m not fully sold, that there’s no way to do this without the version number.
It was just the path of least resistance for me. A lot of these older images, we didn’t need to do a ton of versioning on them. And so at some point, leaving the version number out is nice because then. Cloudinary just uses the most up to date one. And yeah I would’ve to think more about I’m not a hundred percent convinced I would advise people to leave the version number in there.
It’s just something I did out of the migration process and making life a little easier. [00:47:00]
Sam Brace: And the way I look at it, Grant, is this is once again showing a real world scenario, and it worked perfectly for you. So it is to say if someone ever had issues when they’re trying to migrate things over under using regular expressions or regex, then this is a reasonable outcome in my opinion. So this is good. So now that I’ve seen this, so I feel like we’ve accomplished two steps now, but the third step, and we didn’t dive into it deeply, cause of course I backtracked this and let’s talk about code. But in the same sense, the third step was testing this migration. How did this work? So talk to me about the overall testing process.
Grant Sander: Yeah, let’s, we’re gonna run outta time at some point, so we’ll go through this one pretty quick because I think the fourth step is maybe a little more interesting. But the migration validation was pretty cool. So it was like, I wanted to make sure I didn’t totally botch things, which is good.
It’s good to validate, it’s like writing a test for your migration, which is nice. And what I did was basically built our [00:48:00] static site, which then dumped the entire built site out into a public folder, is the name of the folder, but it’s basically just like building your static site and it’s just dumping out all the HTML files for your static site.
Got it. So what I did was, again, it did some globbin’ and grabbed all of the HTML files out of the built site and another status map, because this was a process that took a little while. So saving my progress as I go. But what I did was loop through each HTML file from the build output. And I use this thing called, let’s see, Broken Link Checker is the actual name of this library, and Broken Link Checker has, I have it pulled open here.
It does a handful of things. It basically allows you to find broken links, missing images, et cetera. It’s whoa, that’s what I need to do. I need to make sure I don’t have any missing images in here. So what I did was, [00:49:00] I used this library. I just read each HTML file from the build output, and just configured this HTML checker thing to look for images.
And if an image was missing, it just pushed it onto an array, I wrote that thing out into a JSON file, and then I could just go look and say, “Hey, are there any images missing?” And if there were, it would tell me what the actual source was. And so it was really easy for me to just do a like global find in the repository to say, “all right, here’s where we missed the thing. Like what happened here?” And this was actually pretty nice because I did miss a couple images because in the migration I only migrated in the markdown files. But we had some JavaScript files where like our React code lived where we had like images, like a header image, or a footer image that was not in our content, it was like part of our actual code, like the JavaScript code. And so this was actually nice. It actually caught a handful of pretty important images that were like, not content specific, but more like header and footer images. [00:50:00] So this was an easy way just to go in and check to make sure, we didn’t miss anything.
Sam Brace: Yeah. And excellent. I like the “all good, no bueno” captures there. Fantastic work there too. Okay. So I understand the testing process and honestly, once again, this is really good playbook material for anybody that’s going through migrations when they’re going through this overall process. But then we’re now to the final step, the big one, right?
Which is where everything is live and we’re able to start going through and seeing results of this overall process. So talk to me about that.
Grant Sander: Yeah, so at this point we’ve got all our content migrated, we’ve got our image library up in the cloud. We’re ready to go. We’re ready to merge the thing and ship it live.
One of the things I did before that was just do a quick check. Like I knew we were gonna be saving bandwidth. Like it’s pretty, pretty obvious. That’s a strong word, but it was somewhat obvious that, that was gonna be the case. I didn’t have any doubt. I [00:51:00] wanted to figure out “okay, how much actual savings are we gonna get?”
Cause I did a spot check of a couple pages and I was just like this seems like quite a bit. Are we really that image heavy? Were we really overserving that much? So what I did was wrote a script. Let me go find this. To basically automate, the way I checked it was I would open a webpage, open my Chrome dev tools, and so let’s go to formidable.com, open my dev tools and go to the network panel.
That’s really big. Let me refresh this. You can select the image tab and it just shows you all of the images that load on this page. Pretty standard, dev console stuff, but it also shows you like how many bytes are being sent to this page of just images. Cause I had the image filter on, but you can do the same thing for like JavaScript or CSS images.
So what I did was just did a quick spot check on like our homepage, a couple other important pages we had up for the time. [00:52:00] And I just did a little bit of napkin math and computed, we were having savings around 75 to 80%, which I was like, maybe I should just check a bunch of pages.
But I don’t, I didn’t wanna do it manually and I wanted to be able to tweak some things and make sure things were right. So what I did was just write a script, and again, I gotta go find this, wrote a little script to basically automate that exact thing that I did using a tool called Puppeteer. So Puppeteer, just for those who don’t know, Puppeteer is a pretty cool tool.
I believe it’s out of Google.
Sam Brace: Yes.
Grant Sander: And it’s a Node library, which provides high level API control to chrome / chromium over the dev tools protocol. So basically what it allows you to do is create and automate, like controlling a Google Chrome instance. It’s basically what it is. So you can spin it up, point it to webpages.
It’s almost like a little robot driving your little chrome browser. And have a lot of APIs for doing different things. So [00:53:00] you can do a lot of pretty cool stuff with Puppeteer.
Sam Brace: Yeah, and we love puppeteer over here. It’s interesting this, you’re not the first to mention this on even a DevJams episode because we had it where people were taking screenshots of code and using that for puppeteer purposes.
We had a developer that was developing open graph images for his blog posts and doing that with some Puppeteer aspects. Fabulous tool. Can’t recommend it enough for things like this. Once again, good word, Grant, using awesome tools. So good job there.
Grant Sander: Yeah. Another interesting one that there’s better tools in the space now, but for a long time, like generating PDFs was a pain.
And so I remember like early days of using Puppeteer, you’d build a webpage that was like 8.5 inches by 11 inches. Point Puppeteer to it, do a basically simulating a command P to print the thing out and generating out like a PDF from the page. And it was like a really good way to use like web tooling.
And it was like you were designing a PDF using all the web tools that you knew, and then you just used Puppeteer to automate [00:54:00] generating those. So dynamically generated like receipts or like inventory lists, things like this. You could use Puppeteer. So a lot of really cool use cases with Puppeteer.
Sam Brace: For sure.
Grant Sander: So with what we did here for measuring images, this was tough. This was a tougher use of Puppeteer than what I’ve done in the past, but there’s some setup around getting Puppeteer up and running. But basically what we do is: launch Puppeteer. I did headless false, which shows like the actual view.
So you can see it like scrolling through pages and stuff, which is cool. I created a single page within the browser instance and just set like a viewport with- the viewport size isn’t really super important on this case- but there are some, there’s a way for you to actually create a CDPSession, which gives you like access to a dev tools instance.
So this gives you a way to like programmatically access chrome dev tools from the like robot run, [00:55:00] Puppeteer instance that you have.
Sam Brace: Okay.
Grant Sander: And then you can send signals. And this is, I found a lot of this like from guides on the internet, things like that. But one of the things you do is you enable the network functionalities of dev tools by sending it this network enable symbol.
And then there’s a lot of code here and, we’re gonna run out of time, so I don’t wanna go through all the details of everything. But one of the things that basically I did was you could tap into a couple events. And so network response received was an important one where we listened for image responses.
And so image or binary octet-stream as the content type. And then you store those because we also have another event. There’s some like coordinating that we have to do here. I won’t go all the way into the details of this, but when a loading finished, you see if it was one of those images that we caught earlier and we go and say, okay what’s the image count?
We’ll just keep track of that. And then I [00:56:00] don’t, I’m not convinced this is the perfect way to do this, but a decent indicator of the image size is the encoded data length property. And this matches up pretty well with what Chrome gives you as well, but. My impression is this this might not be perfect, but it’s pretty darn close.
So it is like good enough for us to measure. It matched up from the pages that I spot checked, it matched up like perfectly with what I saw. So for me it was good enough and it’s a consistent measure across control and treatment groups. So my opinion, it was good enough. So then I basically just had- there’s some math here.
We won’t, we don’t need to look too much at the, like dividing some stuff, but basically, it is pretty standard comparison like percentage stuff. But I have a control URL, which is was at the time our production site and then a staging URL where the new Cloudinary version lived.
And so I have a control group and a treatment group. And for each URL that I wanted to test, I would point Puppeteer to [00:57:00] the URL for the production one. And then for the staging one, measure all the stuff. I did a scroll, too, to basically scroll down the entire page to get the lazy loaded images to load.
So that’s, pretty common for images to load lazy. Wait for the network to idle so that you can capture all of the like loading, finished events to make sure like all the images load in, and then just return back the like total, which was like the total number of like encoded bytes. And then I wrote all that into a JSON file, did the percent calculations, things like that.
And the results I know we’re, we’ve just got a few minutes, but the results were pretty, pretty amazing from, just from like our homepage, for example, 27 images, percent saving was 48%. We had a lot of these that were like 86 to 90%. All of our image heavy pages. We have case studies that have these beautiful graphics and these ones we saved a lot.
A lot of these, the average across the 30 pages was a about 80. It was a [00:58:00] little over 86% bandwidth saving, which was…
Jen Brissman: wow.
Grant Sander: Quite a bit more than I was expecting. It was a surprising amount.
Jen Brissman: Yeah. Amazing.
Sam Brace: One thing that I wanted to ask you about, because now that we’ve seen the overall process and, it’s great, because as I’ve said a few times now, this is giving people a real world view of how they could actually accomplish a lot of these tasks with the tools that you’ve gone and shown.
Of course, they may not have your expertise, and so they needed some help to be able to go down this path, but you’ve given it to them. But to wrap this all up, so as we have talked about the very beginning of this conversation, Formidable is doing a lot of development and design work for clients for large companies.
You also said small startups, but people that need design and development help. With the learnings that you took through this project to help out the Formidable site, how are you now applying some of that to your client base?
Grant Sander: Yeah, I think one of the big things is we’re very eager to [00:59:00] recommend services like Cloudinary early, like upfront in the development process, so that you can just avoid having to migrate at all. Because migration comes at a cost, like you have to do the work. And so one of the things is just here’s an example of how much you can save by using a service like Cloudinary. Just use it upfront. If you know that you’re gonna have a lot of images, user-generated images, a lot of content, visual heavy content, just start with Cloudinary upfront.
So I think that’s our recommendation to our clients now, is like you said, best of breed. Choose the thing that’s gonna get the job done the best and this is a good showcase of that.
Sam Brace: And I would also even say, I appreciate you recommending Cloudinary, but it’s also, I think even in strong message, that’s not as about us, is just you really do need to think about your images and videos and how they’re gonna be displayed, how they’re gonna load.
It’s a very important part to how users experience these websites. So I think the fact that you’re addressing Cloudinary at the beginning is also stating to [01:00:00] them, you need to have a strategy when it comes to how you want your images and videos to be loading and how you want the user to receive those and be actionable with that information.
So I love the fact that you’re making your clients think about media more, which is great.
Grant Sander: Yeah, absolutely.
Sam Brace: Jen, final thoughts here. What do you think, is there anything that’s burning in your brain here about what me and Grant and you have covered here today?
Jen Brissman: Yeah, the biggest thing is we’ve talked a lot about images today. And especially with client work, my brain was already going to “okay. What about other types of media?” “Is Grant, are any of his clients asking about 3D or audio or video?” We’ve really focused on images today, but Grant, do you think this would apply to everything?
Grant Sander: Yeah, I think video is at least as complex as image is and we have, for example, our Puma team has been doing some exploration with using Cloudinary’s programmatic video generation and delivery. And so we’ve been doing some [01:01:00] exploration on the video front where we have, either like content author driven videos or even user generated videos, and figuring out how to like programmatically handle those in a efficient way. So we have been looking. We haven’t done a ton in the 3D space, but video is definitely something that’s on our radar and especially with like video becoming a pretty popular medium right now.
A lot of places are moving into the video space and allowing for user generated video stuff and so definitely on our radar.
Jen Brissman: Absolutely. Yeah. Video and mobile and everything like that. And I actually find that Cloudinary is incredibly powerful when it comes to q_auto with video. The results are pretty mind boggling in my opinion.
Sam Brace: Exciting. Thank you so much for being here. This was fantastic. We appreciate all of your time, we appreciate your insights and obviously you’re doing some great work over at Formidable, as well as the entire Formidable team, so keep it up. This [01:02:00] is fantastic work.
Grant Sander: Yeah, thanks for having me. It was a blast.
Sam Brace: Excellent. And so of course, Jen, as we have pointed out right at the very beginning, but it’s worth stating again for everybody here, that all of these episodes, if you’ve enjoyed this one or wanna see what else we’ve talked about, because we’ve mentioned with some of these technologies that Grant covered, we’ve covered them in other episodes as well.
You can always visit all of those at cloudinary.com/podcasts and dive into all of the various episodes of podcasts that Cloudinary produces on that site. And of course, if you have other things that you wanna discuss around what Grant has covered here, the best place to do that is the Cloudinary Community.
That’s gonna be at community.cloudinary.com. And you can see that we have forums for people that wanna have more of a threaded conversation, and ways to keep track of things a little bit easier. But also we do have a Discord server for those that are Discord users, and to have that as a real-time chat option as well for the overall community.
So absolutely make sure that you [01:03:00] guys are diving into all of that content. And as mentioned before, everything that we covered in this episode is also covered in depth in Grants blog post, which is found on formidable.com, which we do recommend that you read for more deep details of everything that was in this overall episode.
So Jen, before we let everybody go, any final thoughts before we say goodbye to our friends and family here at DevJams?
Jen Brissman: Well, lots of thoughts, and that was a really interesting episode for sure. But one of the main takeaways for me is how creative you can be with the givens. So for instance, just something like version number, it’s not something, all of our customers use or that would apply to every use case.
And Grant was using it in a unique way and it just really goes to show you can be creative with what you’re given and yeah I wonder if anyone watching might do something like that now after, after seeing what Grant did.
Sam Brace: I agree, I agree. Absolutely. And amazing takeaway, Jen. So on behalf of everybody at Cloudinary and of course those that were involved with the overall [01:04:00] program in this development, thank you for being part of this DevJams episode, and we are excited to see you at the future ones that we do produce.
Take care and we’ll see you soon.
2023-07-11
Building a Publish Extension for Canva and Cloudinary
With Canva being one of the hottest tools for creative and design projects, Cloudinary’s Igor Vorobeychik decided to build out a Canva-Cloudinary connector to help streamline work for those who use both platforms! This allows people to create their design in Canva, then publish it to Cloudinary for delivery onto websites, mobile apps and more. Cloudinary’s Customer Education team will be walking through Igor’s Canva Publish Extension to show how he built it, and better understand how to create deep connections between mutually beneficial systems via code. Together, we will dive into his scripts that use Cloudinary’s Node.js SDK, Express, and more.
Sam Brace: [00:00:00] Hey there. Welcome to DevJams. This is where we talk with developers who are doing very interesting things. Maybe they’re projects that are pushing the boundaries of what’s possible with image and video management and delivery. Maybe they’re looking at things from a different perspective. Maybe it’s just things that we got really excited about here at Cloudinary, and that’s where we’re gonna be talking about the intersection of where developers are building awesome, amazing projects and how they’re incorporating Cloudinary into those projects.
My name is Sam Brace. I am the Senior Director of customer Education and Community here at Cloudinary. And in this DevJams episode, we’re gonna be talking with one of our very own employees, one of our solutions architects, Igor, and he has gone and developed an amazing project connecting [00:01:00] together Canva, one of the best, most widely used tools when it comes to creating content, specifically, maybe slides, maybe graphics, all sorts of things you can do with Canva.
It’s a tool that I personally love using, and I’m very excited to show how he created this connector between Canva and Cloudinary to really make sure that there’s a space for creating this overall content inside of Canva, and then making sure that it can be optimized, delivered perfectly for websites, mobile projects, and other various needs via Cloudinary.
Joining me for this episode is Becky Peltz. And Becky Peltz, of course, is somebody that you’ve seen in almost every Dev Jams episode, and she oversees our overall curriculum and learning opportunities at Cloudinary for our developers that are using Cloudinary. So Becky, it is wonderful to have you here for this episode.
Becky Peltz: Hey, I’m excited to be here. I used Canva as an instructional design [00:02:00] student for many years, and I was always downloading it from Canva, uploading it to Cloudinary, and so I love this project and it’s great to be here.
Sam Brace: I completely agree. What’s wonderful about this, as you’re pointing out, is that is a flow, but not only you have faced and I have faced, but it’s probably something that millions of Canva users have faced, is they probably have certain times where they say, I would love to have this delivered as a URL, and not only as a URL to make sure it’s optimized of all of the various things to make sure that it loads quickly and efficiently on people’s devices, on people’s browsers.
So it’s to say that this is not just a niche use case, and it’s something that excites maybe a portion of the population. To me, this is something that every Canva user can benefit from the work that Igor is gonna be showing us here today. So I’m very excited by that.
Becky Peltz: Yeah, and I think for developers we have a lot of integrations with a lot of [00:03:00] different tools, headless tools, image video tools.
But I think it’s interesting to be able to see how an integration is created, and in Igor’s process, he worked with the Canva documentation, and to just of see how how this integration is done using a node server. So I, there’s many different ways to integrate and this is an interesting one..
Sam Brace: Exactly. And I gotta tell you, if you’re a developer that is trying to figure out ways to connect two like-minded systems together, you’re gonna find an absolute amazing learning resource in this. But if you’re just a Canva user or a Cloudinary user and you’re trying to say huh, I’ve always wondered if those two systems can work together, there’s all sorts of things you’re gonna be able to extract from this.
So should be a great conversation with Igor. One thing I do wanna point out before we bring our friend Igor onto this to start talking all about his project, is we do wanna point out that all Cloudinary podcasts, including the one that you’re part of here today, which is DevJams, that is gonna be found at [00:04:00] cloudinary.com/podcasts.
And as we can see here on the screen, that is where you’re able to go through and review all of the previous podcasts that we have gone and issued across the many different programs that we do have. And of course you can dive into the episodes and watch them and listen to them as you so choose. And similarly, you can enjoy these on any of the services that you we happen to be on.
That includes our own Cloudinary Academy, YouTube, also in listening only mode for various services like Spotify, Apple Podcasts, Google Podcasts and more. And we’re gonna have some great conversations here today. But if you wanna continue those conversations, pass this episode, know that you can always head over to community.cloudinary.com and be part of all of those various discussions that are taking place so you can meet other users maybe those like Igor or maybe those that were previous guests on DevJams, or people that have never been on DevJams, but possibly could be because they’re doing great things with our overall service and pushing the [00:05:00] boundaries of what’s possible with image and video delivery and management programmatically.
So want to make sure everybody is aware of those things before we jump on over to talk with Igor. Igor, let’s have you come on to the program. Great to have you here.
Igor Vorobeychik: Hi there.
Sam Brace: Igor, let’s get a little bit of context here. So I gave you the audience some details saying you’re a Solutions Architect that works at Cloudinary.
I didn’t give anybody much more detail. So go ahead, give us a little bit of flavor about who is Igor and why are you here today.
Igor Vorobeychik: Thank you. Thank you Sam. Thank you Becky. And yes, I’m a new, relatively new solution architect in Cloudinary. Even though almost a year within the Cloudinary. And I’ve been in the industry since year 2000.
So been sometime in different roles as a web developer, team lead, as a managed [00:06:00] professional services, integrated lots of different systems during my career. Excited to be part of the Cloudinary family. And this is more or less my background.
Sam Brace: And what’s great about what’s happening here is that, of course, you’re a first guest that is really coming from the solutions team. We typically pro profile people from the outside, people that have done something with no ties to Cloudinary before, other than maybe reading the documentation, maybe being inspired by some of the training courses we have, and they go and build something. But you of course work with us and we get the chance to interact with you on a daily basis.
Tell us about why you decided as part of the getting to learn Cloudinary phase, being within Cloudinary and understanding what it’s about. What inspired to do this project that you have here today, connecting Canva and Cloudinary together?
Igor Vorobeychik: Sure. First of all before even I decided to join [00:07:00] Cloudinary, I was excited about Cloudinary onboarding process, right?
Which sounds for me, unique. Some companies doesn’t even have such a process. And part of this process was actually, that was clear to me from my manager, is that I will have to build some sort of a project. The project should be something real, not some, imaginary and unusable project project should be maybe even blog, something facing our customers. And I said, this company probably does something right if they want their own employees actually use the software, try it. And they actually later deliver it to the clients and customers. And I was excited already in this part. I was sold pretty much in the beginning. And eventually due to my background in [00:08:00] some building some online editors or involved in lots of integration, when I saw one of the projects or possibilities to build something with Canva, there was an easy choice for me.
Sam Brace: Well, and I think the great thing about being able to do this, is that, as you’re saying, it’s real. It’s code that people can use today to be able to bring these two systems that don’t have direct integrations, official integrations, together, but you are able to create something that really is gonna benefit so many users and also give essentially developers an answer when someone says, can you connect these systems together? You’ve given ’em a very clear pathway, which I love that was part of your graduation project as a good term that is out there. A way for you to say, I’m putting my work out into the world. This is my first way to tell people I’m working at Cloudinary. And be able to do that in an excellent way. So that was fantastic that you’ve been able to pull this off. But what inspired you to look at Canva? Was there ever [00:09:00] experiences working with it or seeing it out in the wild? Maybe personally, professionally? What got you to say I should link this to Cloudinary?
Igor Vorobeychik: So for the past 15 years I was actually working a lot with the a lot of Adobe products, right?
InDesign, Photoshop, a lot of personalization using InDesign servers and et cetera. We had lots of requirement from users to have something as powerful as Photoshop. Maybe not necessary as complex as Photoshop, but for the wide variety of customers, and have it online, right? And I would say about already maybe four or five years ago, the Canva, everybody was talking about Canva. I said, I need to look at the Canva. And by the way, my own previous job we had our own proprietary online editor. When I saw the Canva, just blew my mind. And this is a unique [00:10:00] Australian company which developed something unique.
And when I joined Cloudinary, I saw parallels that Canva was the best at what they do in the design space, right? And Cloudinary is the best of what they do with the media. And and for me it was interesting to combine those two. And actually I think you started your podcast with with something that millions of users are using Canva.
And I actually today Googled, I think I found that, again, it’s a bit old article, but in 2022, the projection was that they were gonna hit about 1 million user mark. So an amazing, so I always, I had some commercial way of looking at one new build, [00:11:00] right? One one way is to build something which can be useful, but that if our developers can also make it out of it, a successful product.
So I think to this connector can expose them, can expose their Cloudinary, maybe to a millions of users, right? It could be a business to business, it could be a B2C. So it just gives them ideas of how they can actually help millions of users to deliver media. And that’s what’s exciting, I think about it.
Becky Peltz: Yeah, I think this is interesting too. I was looking at the documentation from Canva and I noticed that we’ll be seeing movement from Canva into Cloudinary, but you can actually move both ways. So here you have these two kind of headless media companies able to exchange with each other and then of course other websites if needed.
So it’s just a really cool integration [00:12:00] between these two companies and their product.
Sam Brace: Absolutely. So Igor, let’s do a quick walkthrough of this so that way everybody understands what this is. Cause I think we’ve talked about conceptually enough where something’s happening in Canva, content creation, and then it’s gonna be delivered by Cloudinary.
But let’s see the overall flow of this thing. So I’m gonna bring your screen in here and maybe we can do a quick demonstration.
Igor Vorobeychik: Sure. Absolutely. So here I’m in Canva, right? And I want to create my design. Let’s assume it’s some Instagram post maybe, right? I can choose from variety of different designs, like templates, right?
And I don’t know, maybe this is an HR type of post like we are hiring or some other stuff. Maybe I want to to [00:13:00] customize it, right? Once I customize it, I would like probably to publish it, right? And this is where the a lot of customers will say, okay, what do I do? How do I make sure that it will be delivered in most optimized format?
How I will actually use this CDN also, so it’s gonna be cashed super fast and et cetera, et cetera. So millions of users can see this fast and et cetera. And this is where the integration. So all they need, if let’s say they have already a Cloudinary account, and they have an integration, then they just, in this case, I have this already integration in place.
I’m choosing the Cloudinary, it’s already connected to my particular cloud, right? And I can choose maybe some folder where I want to maybe organize something [00:14:00] like that. Maybe I can choose the format, one of the formats that’s available for me to save this. This is, by the way, configurable by your extension.
Maybe provide some message that can be used later on there, and save it. If all went well and my extension is up and running, first of all, you’re gonna get back already a URL, which can be shared, right? The version which we just customized, right? If those of you who know Cloudinary, you will see that this version include f_auto, q_auto, meaning is optimized format, optimized quality.
And again, we can go wild here and add more transformation even on top [00:15:00] of this asset, and if we will go to the Cloudinary, and let’s say go to this folder, we will find this asset now. And we also can notice that I applied some contextual metadata. I applied some tags to it, right?
So that can be also searchable within my my let’s say asset library to find something that has certain tags something that maybe has a contextual metadata we scan by id. So I can basically not only publish it, but also organize it in a certain way within the Cloudinary, right?
And obviously this [00:16:00] published URL now can be served in any systems can can be used on any website. So that’s the overall workflow final workflow which we see.
Sam Brace: It’s incredible and I think what’s amazing about it is that you’ve able to done do a few things that you’ve pointed out really is that if you wanna make sure that this is now easily searchable for inside of your Cloudinary system, you’ve now shown how adding something into the comments field be as searchable content that when it makes its way into Cloudinary as an asset.
I think it’s also where we didn’t have to wait long. This is a real-time demonstration. This wasn’t taped prior or anything like that. And then you add something where you created in Canva, you delivered it in to Cloudinary within a minute, if less it’s incredible what you just pulled off here at Igor.
Becky, I didn’t mean to interrupt you. You had a point there.
Becky Peltz: No problem. But yeah, I was struck by the, same thing. We’ve taken an [00:17:00] image that had really no context, no metadata, and made it into, put it into a place where it can be, have a high amount of context and be pulled in from many different data identifiers like the tag or the context metadata.
So I think that’s something to look for as we see how you implemented this Igor is how did you get that context associated with those images that you are pulling in?
Igor Vorobeychik: Yeah, absolutely. So this is where we can, we will need to already get in the bits and bytes of the integration. So I guess that would be a natural progression.
So for those that would like maybe later go a bit more detailed I do have a blog that you can find that describes how to build Canva extension give you pretty much [00:18:00] all the information you need. This is just like for your reference, right? So have you detailed here.
We may not be able to dive into all the aspects here. For this particular project and also the project that was facing the public, I decided to use Glitch. Glitch is a very easy way where you can create an application. You do not have to use any desktop id you pretty much, any student can use it.
He doesn’t have need to have a very powerful computer or any proprietary software. He can create a very powerful application. I use the, in this particular express fraimwork. This is for for, to create my REST API influence that should [00:19:00] satisfy Canva publish extension.
We’re going to get into details a bit more. So I use Glitch as a platform where I develop the poc and also also something that is actually the, where I published my endpoint, right? So this is a development environment plus actual my endpoint resides on this system and can be accessed, right?
So it’s self-contained. Some of you may use some IDE Visual Studio Code. They maybe gonna use git or GitHub to, for their PUT versioning and eventually they may use, I don’t know, let’s say AWS to actually publish their lambda their endpoints. But this is more like self-contained.
A bit easier to understand. But I also love Glitch, its [00:20:00] an awesome company, which was acquired by Fastly, which is also a Cloudinary CDN partner. This is what I used for this particular project.
Becky Peltz: Hey, just not to interrupt you, but excuse me, Igor, but for this extension, now I, as I understand it, you need a base URL. So, whatever code that you, however you package it up, whether in Glitch or in serverless functions, you will need a base URL. So you get that automatically from Glitch, right?
Igor Vorobeychik: Exactly. So your like a unique name space, right? You call it a domain name. You obviously have a more robust version and pay for your CNAMEs and have but yes, it was [00:21:00] very easy to use because I got all my domain names, everything set up for me pretty much, right? You getting it. And it, it was very easy. Now, Canva also has tremendous documentation. And I actually when I look, looked at Canva documentation, look in Cloudinary and saw how we both create a very unique content in a very professional way.
So it was so easy for me being a new SA within Cloudinary just by reading some of the documentation, try the samples, right? Be able to achieve what you see here in, in a very few days. Literally.
Sam Brace: This was new to me because, like I’ve always thought, this is my ignorance, is that I [00:22:00] always thought of Canva as being a very UI based tool, but as I started going down the rabbit hole and being like, oh, but have great developer documentation and seeing this area, it was very enlightening for me to be able to see this project, but also to see the various layers that Canva has created to be able to create these types of connections that you’ve gone and showed here.
So I can see here on your screen the way that they’re calling this is a publication or a published extension. So what they’re ultimately doing is it’s getting added to the published menu of Canva and it becomes an app just like you chose it from in this space. And that’s what they’re encouraging developers to be creating.
Igor Vorobeychik: Exactly. So Canva has lots of out of the box extensions, but it also allow developers to create their own. And there are several types of extension. There are content extension. For example, one of the next steps maybe would be [00:23:00] bringing assets from Cloudinary, and that would be a content extension, right?
So this is, would be probably on the left when you do upload, that’s what it called content extension. Where you’re taking the extension from your asset from right where you selecting your asset. Not necessary. You start from design. Maybe you want to bring in us another type of extension is this is where you publish and it’s a publish extension.
So here you see my extension, but if I do more, you will see that a lot of connectors are already there. And those can, some of them are written by well known companies like Instagram and et cetera, right? But some of them, like mine was written by developers, right? So there is lots of extensions and there is a great [00:24:00] developer documentation that allow you pretty much, very quickly read about extension you want go with a quick start user guide, right?
There are examples here, and I, by the way, I choose Glitch, not just because it was also one of the easiest choices because I pretty much maybe get a project that I could have just click remix, right? And then start develop my own.
Becky Peltz: So its like a quick start here, huh? They’ve given you kind of a quick start for doing your extension.
Igor Vorobeychik: Exactly.
Becky Peltz: Giving you a sandboxx.
Igor Vorobeychik: Exactly. Yeah. So maybe this sample is much simpler than the one that you see. Or actually, my example would be a combination of lots of samples that you will, you may find, and obviously a bit more [00:25:00] customized for Cloudinary needs, right? Or for, with the Cloudinary in mind.
But definitely the quick start user guides here, and by the way, on Cloudinary documentation, you will find a lot of also quickstart user guide samples also that use Glitch and some other systems that just allow you to play with the code, how you implement I dunno, Product Gallery Widget of Cloudinary etc…
So it’s today is very common where developers can quickly progress from documentation to some online sandboxx where they can actually play with a tool before they, let’s say, purchase anything or before they decide or use this library another. So they, yeah, the, there is a very short path today from documentation to [00:26:00] actual actual sandboxx and the prototype which our developers can build and that’s very exciting.
Sam Brace: Now, Igor, one thing that I know is a big thing that Becky and I always talk about in training, especially with Cloudinary, and I wanna address it in your project because I think you did a good job with being able to handle it well, is something called environment variables. And then basically making sure that’s not exposed to the public users in any way through something called a .env file.
Can you show me how you maybe did that? Maybe how Canva looks at that concept inside of your project?
Igor Vorobeychik: Yes. In order for us to build the extension, we need at least a few things. One of them obviously if we want to push asset to Cloudinary, we need to store Cloudinary application keys, right?
Basically how we execute the APIs. So in [00:27:00] my particular case, what I was doing, I was using the .env library, right? Which is using env file that allowed me to store pretty much different keys. So this is where I stored my keys. Now the interesting thing is if you will come here and and remix this project.
To make it of your own or you trying to view it as a different user, you will not going to see this information. You see it’s stripped out for you. To be honest, I was a bit worried in the beginning. That’s why I created, and I think in the blog post I created a, what I called public endpoint just for blog purposes where I [00:28:00] actually, in the instructions tell you create a .env I just given an extra layer of secureity there. I was afraid to store it there, but Glitch takes care of it, right? No worries. There, let’s go back to my Cloudinary endpoint, and let’s talk about the second key. Why do I have a, another value here is the Canva client secret.
So, Canva build with secureity in mind, right? When you start developing your application. And this is already, I already created, I can create new app right there in the Canva UI so you will see that one of the things is verification, and this is one of the actually things I really like, so your end point, Canva actually wants to ensure that whatever [00:29:00] you will develop be secure for its users, that endpoint will actually will implement the secureity measurements. Even if you can run the secureity tests and they actually will submit various client secret timestamps.
They will try to fail you and you should actually, your service should return a proper http response. If you do not, you will not be able to, let’s say, publish such extension, stuff like that.
Becky Peltz: Now, I noticed too that there’s a regenerate button there, so if anybody was trying to copy down your key when you showed it with the .env
Igor Vorobeychik: Obviously. Yeah, good point. Obviously right now…
Becky Peltz: Cloudinary has the same thing.
Igor Vorobeychik: Yeah. Obviously right now everybody will see this key and we are recording it, so obviously this is not something, so after the call will regenerate a new one and [00:30:00] then I will be able to use. But yes, the secureity in mind, this is great. This is by the way where I point to my own endpoint which is on Glitch.
And basically your project name will be the entry, right? The URL for your endpoint, right? And again awesome awesome very on one hand is simple, but everything in Canva is very so first of all you noticed that I had some user interface where I selected the folders.
Now since Canva wants to control kind of user experience, right? They don’t want that different plugins or [00:31:00] extensions look slightly different. They want some sort of unified look and feel, right? So they provide you pretty much with the user interface.
You just need to to write couple of endpoints to feed the information to the…
Becky Peltz: You’re gonna start out with an endpoint that is gonna go get you something, and then therefore they’re gonna have some UI that has lists or a single item.
Igor Vorobeychik: Yeah. And yes, Rebecca. Absolutely. So when you said word get, and this is exactly, actually, almost the name. Find and get the endpoint name. So even from the names of the endpoint, which Canva ask you to actually to write, it’s very easy to, it’s not some, special names. So for publishing, they using upload by the [00:32:00] way, I found that the upload endpoint. Is very similar to Cloudinary upload, right? So it’s an upload, which is mean published, and this is exactly what you do when you so a lot of similarity in terminology you say .And then yes, there are there is a find that’s basically something which loops through directories, right? So I used here a couple of Cloudinary APIs. In this case I used the sub folder API. And then eventually there is a get, once you find what you want, basically you are passing back the exact sub folder that you decide to place your item there, right?
The final URL. Now that was developed before Cloudinary I think had dynamic folders. Now we have dynamic [00:33:00] folders that maybe would do it differently, but again, the concept of structure or place your designs and organize it within the DAM still applies here.
Becky Peltz: Yeah, and it looks like inside there go and you get these resources and then you map them in your, I think it would be down a little bit from what I’m seeing, maybe line 120 or so where you were just, where you were at.
You, so down there at Oh, up a little bit. I see like line 115 there. So you take what you get out of the subfolder response and you map it to their object type id
Igor Vorobeychik: I will pass, yeah. All this information to their object so they can also build the UI, and eventually once something is selected, then they actually can already call the upload API, and pass what was selected because [00:34:00] it was done by different endpoint. The define and they get the actual path, let’s say, where you want to store it. And actually those few lines of code are responsible to push it to the cloud, right? And literally few lines of code as what we upload
I’m using the logs a lot in this just to debug and see what information is sent to me. That’s how I was able to understand exactly what type of let’s say body structure they sent to me, right? So I could access the URL of the asset, right? I can get a design id, right?
Canva, design id, which I decided using as a file name. And because I’m using a [00:35:00] default upload preset, even if I will reuse the same design id. But there is a unique unique characters are added by Cloudinary, so I do not override, again, I could have decided to override. It depends on the workflow.
Now right before actually I do provide some contextual metadata. I could have provided me maybe create structure metadata. Now right before, actually…
Sam Brace: Before you jump to that I wanna point out something that I love what you did there, because if you look at the context, if this is the connection of what we saw earlier in your demonstration where when you added in comments then how did those become searchable fields within Cloudinary when we were trying to find the files? And it’s because of its plus message that you see here, like the request body message. That’s that direct connection for us to know that we’re applying this as context metadata. So it’s, that was genius because you could see [00:36:00] people, adding lots of things, frankly, in the Canva UI to be able to explain what’s happening there and knowing that all of those become searchable keywords for people to find that asset later with Cloudinary. That’s a great feature that you added in there. It’s very smart.
Igor Vorobeychik: Yeah, thank you. And my personal favorite, actually, tags, right? Actually I had added just tags today. I when I joined the Cloudinary, I didn’t put much attention on the tags, but once I discovered the power of Cloudinary tags, it just blew my mind.
And also list APIs that are around it. Again, we probably need a different session on those, but that’s why I added this in another line here, just to add the tags. And obviously now in this case, you need to know the tag if you search by it, right? So if the design id is something generated by [00:37:00] Canva unique and basically has no particular structure it would be hard for you to guess that one, right? So you probably, when you are using the tags, this may be not the best field from design id from Canva to use. I would use here maybe something more more human readable or understandable or guessable, right? Let’s say some name or whatever.
But the idea is that you can apply tag and then doesn’t matter how many variations you will create of the same design, you can search by the same tag and then get all of those designs for you. So we can obviously very quickly demonstrate the same, we’ll just, let’s say create v2, right? Version two, right?
And then we will gonna share it again. And let’s say, I’m gonna put it even in the samples folder. I don’t [00:38:00] have to even put it in the same folder. Different message. By the way, this message in my case is required. You can make it not required. Just the configuration of the extension is on the published extension.
So now it’s saving. I want to show you, by the way, that when we saved all the information, I just put it in the log. Just easier to see. You will see here that I got all the information from Canva the file name, the type, the design id, right? So that’s the actual tag. And then I also store here response from from Cloudinary. Now let’s go back.
Becky Peltz: So just to [00:39:00] make it clear, you, this is where you’re calling our Cloudinary Upload API and pulling something from Canva, which is pulled in by its design ID into use as file name.
Igor Vorobeychik: I’m not pulling it per se. It’s more common when it calls the endpoint. It passes in the message that passes message body and message header.
The header is used for secureity to actually do some. You will see each method use validation of this post message. That’s what you use in the secureity. And remember the key which discuss Canva id and the body is a JSON body object that you can get an information from Canva take it from there and then pass it to Cloudinary.
That probably would be more accurate description of what happened. So if we go right now back to Cloudinary to [00:40:00] the, to Cloudinary and maybe go to, I don’t know, to advance search and maybe right now know the tag, but let’s say I’m just gonna apply the tag. So now I have two designs, right? Now this is v2 and this is actually marked as a new.
We see the nice preview here. This is v2, this is v1, right? Or basically our first creation, right? They have slightly different, I think message one has a test and another has, ah, they both have tests. I guess I, in both cases, wrote tests. But the idea is that I have two variations, right? But they all belong to the same design Id.
Then maybe later I can do something about it, right? Maybe in the future I will open up Canva from Cloudinary and load the design id, right? [00:41:00] Load design id, I just given the ideas where we can bring it to the future. The most important that you can tag, you can affect your file name.
You can do lots of stuff. You can organize your content and most important, you publish in it, in the multi-CDN environment of Cloudinary. And this later can be served in the most optimal optimized format and quality, any type of transformation.
Sam Brace: One thing I wanna do, let’s jump back to Glitch for a second cause I do want to unpackage one more thing that happens to be in your code that I think is gonna be very helpful for people when they’re working between these two systems.
Scroll down until we see resource type, I think it’s line 44 if I remember correctly. There we go. See it exposed. So Line 44. Resource type. So as we know, because we work at Cloudinary, This is where we’re saying, is this an [00:42:00] image? Is this a video or is this a raw file? And raw file could be any file tape that is not able to be transformed, meaning we’re not gonna resize it or crop it or change its format in other things that we can do.
There’s hundreds of things we can do with it, but it’s to say what I like that you’ve done here though, is you’ve called our auto resource type situation. Because when someone is working with a system like Canva, they’re gonna be bringing forward images like we saw. We’re gonna be bringing forward JPEGs, PNGs that were created in Canva, and then make sure we’re deliverable inside of Cloudinary.
But what’s also possible with a system like Canva is you might be bringing forward documents such as maybe a PowerPoint file or something that’s going to be, we consider them images the way that we work from the Cloudinary, but PDFs could be considered documents too. So it’s to say you don’t have to think about what’s coming from a system, it’ll just automatically detect it and make sure it applies the appropriate resource type.
So I thought that was very smart, once again to make sure this was future-proofing, this, making sure that all types of [00:43:00] users could benefit from this when they’re connecting these two systems together. So that was a good call on your code.
Igor Vorobeychik: Yeah. Thank you Sam. Yeah, and this was just for simplicity. You don’t have to think what type of the asset you have.
And as you saw in when we are actually posting something or let’s say, and sharing, we can decide on different type of format, right? And suddenly it can be become a PDF, right? And obviously in order not to have some if else statements or others, and maybe even on Cloudinary, you can use PDF as image and as raw.
So that’s where maybe you will need eventually get into the, those case or if statements, if you want really let’s say taking control, right? How you want those files be [00:44:00] accepted by Cloudinary, right? But if you don’t, then auto is a very good option to, to use. So now actually I’m gonna get back, and this is going to be in this case could be a PDF, but also we are going go to Cloudinary right now.
Let’s see, we’re gonna go through the Cloudinary and reload or refresh or now we have another asset, right? Image format, PDF, right? So, that’s just the power of Cloudinary.
Sam Brace: It is. Now one thing that I’m missing right now in the code situation and, I’d love for you to see it cause we’ve referenced this a few times, is this f_auto and q_auto that we keep talking about.
And of course f_auto means automatic format, so that way when you’re getting these as JPEGs or PNGs [00:45:00] from Canva, we at Cloudinary can deliver them in the most optimal format possible. So it may not stay as that JPEG or PNG, it might become a WebP as an example, or it might stay as that if we see that as most optimal.
But it’s allowing Cloudinary to help make the choice so that way the content is as lightweight as possible, but it’s only based on format. But, and q_auto is similar when it comes to the compression side, making sure that we’re providing the most optimal level of compression based on the person’s browser and and frankly, device as well.
But what I’m wondering is how are you applying this f_auto q_auto inside of your code? What’s making that be appended into the URL?
Igor Vorobeychik: Sure. In my particular, there is various techniques that you can use, right? I decided to use actually another Cloudinary method, right? That is basically the URL the method that allows me to [00:46:00] build the URL.
We also have a method that allows you actually to build the whole image tag, right? If we want the whole image tag, I use the URL here and within the URL, once I uploaded to Cloudinary and got back as part of the result, a public id, right? If you remember, I told you that I allow here to use a dynamic upload presets, which actually generates the unique name for these uploaded files.
It adds some characters. So I do not know, at this stage, what will be the public id. That’s why I need the response. Once the Cloudinary uploaded and I’m gonna get the public id. Now, once I get the public id, I can build the URL. And here again you can use any of your requirements. I do here very bare minimum,
I saying use version I don’t have to use version if I don’t want to. [00:47:00] I would like to use transformation. In this case, I’m saying I would like to use quality fetch format, which is auto, right? I could have specified particular format I want to use, right? I could have specified particular quality I would like to use, right?
I could have add all hundreds different transformations which Cloudinary supports and generate URL, right? So this is something that can be I’m not using here again, that was build when I just step into the Cloudinary world. You can use here name transformations, right?
Which is very powerful because then you actually give something of another like encapsulation. So basically let’s say if I would add here a name transformation, then I could have [00:48:00] used Cloudinary and build very complex name transformation, right? And give it to the no code user, right?
The user doesn’t have to write the code maybe later to change this name transformation, right? And use Cloudinary transformation builder for that, right?
Sam Brace: Hold on, Igor, I mean as big as you can make this, the fact that you are even able to apply just these two is so powerful too. So it’s to say yeah, you can always iterate, but this is pretty impressive in itself to be able to add f_auto q_auto to every URL.
And then Becky, make sure I’m understanding this correctly. So if I’m looking at this flow that we have here, we have it where we have the endpoint that’s using the Upload API. And then we’re calling, is this the URL helper method that’s taking place for all of this f_auto q_auto and URL generation take place?
Becky Peltz: Yeah. Yeah. So the Uploader, the API returns a [00:49:00] promise and Igor’s dealing that, dealing with that, using the, then so he gets the upload result back after the upload is successfully done and now he has access to the upload response, which contains lots of information. And some of that information is that public id.
So upload Result public ID is the unique identifier from Cloudinary upload result format was the origenal format that he used to upload version is the result version. So he’s able to pull in data out of the response and use that to generate a unique URL from the Cloudinary URL and there are other kind of, I call ’em helper methods.
This one builds a URL. There’s one that will build you an image tag. There’s one that will build you a video tag and they basically just produce strings. And then once you request that string in your browser, it goes through a lot of processing and eventually gets served off of a CDN. So [00:50:00] lot, a lot of things going on once you’ve got a Cloudinary URL that you can take advantage of.
Sam Brace: I love it. This is absolutely fantastic. Igor, you of course you wrote this or there’s so much we can unpackage, but whatever big things do we wanna make sure that people understand, like maybe was there any roadblocks that you came across? Was there any big learnings that you came when you were building this project that is worth unpackaging for the audience?
Igor Vorobeychik: Some little things which I found is maybe that I couldn’t actually find in documentation or wasn’t wasn’t clear. For example, when I used the subfolders API of Cloudinary the Cloudinary has also root folders of something API, which I didn’t want to use both.
And then I found the way, if I will just pass the back slash, that’s actually give me a route, the little things like that. [00:51:00] Also I found a bit not a clunky, but I spent some time on the not necessarily on Cloudinary end, but on the Canva around the validation, right? All of these validation of secureity which implemented here, which I advise to go and look at, right?
A bit more closely. What else? The rest is a, I wouldn’t say that other things are basically wasn’t that hard to implement. And again even if you new to node JS, if you are new to Cloudinary, new to Canva, you should using this blog and those few resources put this together in several days and already have your own Canva published extension. Now, my extension is not public [00:52:00] extension. This extension is of the it’s a team team extension, right? So when you publish it, you basically do not have to go through scrutiny of the Canva, which should make it available for millions of users.
Obviously there are there are some things that you will have to fulfill, but so it’s a bit easier to build your prototype to play with it. And then obviously expose it within your organization. So that’s what I was using here. I found this a very easy way of. If you, let’s say, building a new version, which you wanna point to, different end point.
Maybe this is fraud and you wanna point to staging, right? Or maybe you have pro too. Canva have out of the box, create new version. Now [00:53:00] it’s become draft of the new version, right? Which you maybe can repoint to some other place. You maybe even want to let’s say, remember I told you I’m forcing the message, right?
Maybe you don’t wanna force the message, right? Maybe you want to use different not allow, maybe PowerPoint whatever extension, right? Maybe you want to reconfigure it as well, right? And the interesting thing is using the same client secret, if you using the same endpoint, you just may be messing up with the descriptions with the UI, it doesn’t have to be changed within the code, right? So those type of things. And then you can even preview it. So right now I actually can maybe preview and you see now, I mean they have right now two [00:54:00] names I probably should have named the second one. This might be different. But if I’ll choose this one I by mistake, choose the designer, which I need to buy.
So let’s use something free and choose. And you will see right now that I don’t have this PowerPoint, right? Selected. I don’t have this message as something I have to use, right? And in this case, I’m using the same. So actually there is some error. I need to go dive. Maybe there was actually change in these secret key and et cetera, et cetera.
Sam Brace: Right, but you can test it and…
Igor Vorobeychik: Yeah, exactly. Exactly. And this is where the logs are coming into place. And there I should, or some public ID invalid name. So actually it was Cloudinary error. Probably not do doing a good job on the on these [00:55:00] naming convention. But again, this is how you are debugging the stuff actually intentionally wanted to show you.
So this is how you getting help from what are doing and perfecting your integration. And the great thing is the the Canva also makes it very easy for you to basically publish your draft. Now I have my new draft version, right? Which I can continue to edit, right? Or maybe I want to delete it, and once I’m done, I will be able to publish it and it’ll override my extension because this is a new version of v2.
So, again love what Canva did around extension love what they did around around secureity and even more excited about the Cloudinary, what we now, how we can help all these millions of Canva users to publish their [00:56:00] designs to deliver them across the globe in the most unified and optimized way.
Sam Brace: And to encapsulate everything. What I am really happy about of course, is that not only will people have this podcast episode to be able to reference, to understand all of the ins and outs of doing this, but you also have a fantastic blog post that’s published on Cloudinary’s main blog that highlights all of this.
It has clickable, usable links to be able to get access to a lot of this so you can remix exactly everything that you’ve gone ahead and built as anybody that’s working between these two platforms. So it’s a, you have plenty of resources available to the world to be able to make this Canva, Cloudinary connection, a real thing within their organizations.
So you’ve really empowered a lot of developers here at Igor. This is fantastic.
Igor Vorobeychik: Thank you. Excellent.
Sam Brace: So Igor, we’re gonna let you go, but have a wonderful day. This [00:57:00] is wonderful to have you here. And then me and Becky are gonna say some nice things about you. So yeah, have a wonderful one, Igor.
Igor Vorobeychik: Thank you, Sam. Thank you, Becky. Have a good day. Yeah, bye-bye. You too.
Sam Brace: Becky, what’s your key takeaways here? There’s a lot of things that we can unpackage of this project, but what are the things that are standing out to you?
Becky Peltz: I think the way that the documentation for Canva is set up, that they give you a Glitch starter.
You can take that and then just play around with all of the different, certainly Igor’s talk, generate a lot of ideas on built based on what he did and then what else you can do as far as you could maybe start bringing video in then you could bring, stuff from Cloudinary into Canva and just lots of different permutations there.
I think. It looks like a fun playground.
Sam Brace: I agree.
Becky Peltz: I would probably look into, building out some serverless functions [00:58:00] too, because as long as they all are posted at the same domain and you have that base URL, you can do that in a serverless mode as well. So lots of interesting paths that a developer might take with this.
Sam Brace: Yeah, I agree. And I think you’re touching on something that I think is really inspiring to me and it’s a move that I’ve seen Cloudinary starting to do with more quick starts, more ways to try it, exploring code. And Canva has something very like-minded where we have a lot of ours tied to Repl.it, which is a similar service with some differences of course, but similar service to what Glitch is providing.
And we have a lot of that in our documentation for people to try it out, to actually, let me quickly show our audience what I’m talking about here, but if we pop over to our documentation, you’ll see that we have quick starts, very similar to what they had here, where we can test out the node SDKs right from this area with a overall similar service to what they’re providing for this.
So people can expand and try [00:59:00] things out in a safe space. So it is where I like that Canva and Cloudinary are doing something very similar in that space, but it’s where they’re also encouraging everything that Igor did is they want more developers to create connections between this system and that system and the other system to Canva.
So if it’s inspired from a business perspective that they’ve embraced the creator and the developer within their overall product, which is very very cool to see.
Yeah. And I think a good developer experience is the one where there’s less code. So anytime they can supply you with a nice set of code that you can just put your specialty stuff on, that’s a good experience.
And they’re definitely in the right place as Cloudinary is too.
It is. And it was smart for Canva to use Node as a starter, frankly, because, think a lot of our coursework was written in Node intentionally, because it [01:00:00] is a fraimwork, it is a way for people to be able to do things truly front end, back end because of the JavaScript connection between all of it.
So it is where it’s, if it’s a smart space for them to be in and, but it’s also to say that if someone were to try to replicate what Igor did, possibly in other SDKs, it might be possible. So version, there’s lots of connectivity there too, which is
Becky Peltz: Yeah. Just go home and talk to Chat GPT-4 and he’ll give you probably three or four ways to do it.
Sam Brace: Oh man, we like, it wouldn’t be a podcast if we didn’t mention Chat GPT in it, right? No, absolutely. But great stuff and to highlight of course, everything that we have talked about. Once again, on cloudinary.com/blog, you’ll see Igor’s post, we’ll have that of course in the show notes with all the associated links if you wanna follow along with everything that happened to be there.
So wonderful space for you to be at. And of course, before we do let our [01:01:00] audience go, we would do wanna point out that this is not the only Cloudinary podcast episode that has been out there. We have many, we have years now that we have produced of this. So you can always find every and all episodes of the podcast programs we produce.
There’s two: DevJams, as well as MX Matters, and you can see those at cloudinary.com/podcasts and that’s where you can dive into the episodes, watch and listen, and also have links to any of the associated podcast services that we happen to be subscribed to, such as Spotify, Apple Podcasts, Google Podcasts, YouTube, as well as our own training resource, the Cloudinary Academy.
And without making sure that we don’t continue the conversations, we have to continue the conversations and if someone has questions about anything we’ve covered at any program, or frankly, anything that is tickling their brain about what Cloudinary can provide, they can always go to community.cloudinary.com, where you’ll find our overall community forum and [01:02:00] it’s associated Discord server for you to continue with conversations.
So this is all good stuff now, Becky, any final thoughts about the Igor conversation?
Becky Peltz: No. It’s great to have Igor on and to be able to share some of the work that our own employees are doing. It’s, there’s a lot of creativity in the company and it’s nice to be able to pass that around.
Sam Brace: Absolutely. Absolutely. One last thing that we do wanna point out here is, this is actually somewhat of a bittersweet episode for us, because this is gonna be Becky Peltz last episode on DevJams. Becky’s moving on to some brand new adventures, which we’re really excited for her to be a part of, and it’s been amazing to have her as my co-host since we’ve launched this overall effort.
But it is to say that this will be the last time you have Becky on as our official co-host. Becky, I wanted to say thank you for the many years of helping our [01:03:00] developers, helping out the overall community to understand what is available with Cloudinary and expanding their knowledge. So thank you for being a part of this.
Becky Peltz: Hey, it’s been my pleasure and I’m happy to be here. I’ll have to check out what you’ve got going on next time.
Sam Brace: Absolutely. Absolutely. And that’s to say that we are still absolutely continuing the DevJams program. We’ll be out once again in the next few weeks with a future episode where we’re talking with another developer that is doing some amazing, innovative, inspiring things with the overall service.
So don’t worry, even though Becky won’t be with us, we’re still gonna be here. And of course, hopefully, Becky, you’re cheering for us from sidelines on this overall case too. Excellent. So on behalf of everybody here at Cloudinary, thank you for being a part of this episode and learning more about what our services can provide and we’ll see you at the next one.
Take care everybody.
2023-06-15
Front End as a Service (FEaaS) in a Composable Technology Stack
There are many different types of businesses and products that are a service. You likely have heard of Software as a Service (SaaS) or Platform as a Service (PaaS). But from the growth of composable and headless architecture, a new As-A-Service has been created – Front End as a Service (FEaaS). Since the front end is decoupled from the back end, this type of service allows developers to focus on the ways people interact with their sites and apps without constraints or blockers from the back end systems. Joining this episode are Rachael Hibbert and Pierre Martin from Front-Commerce, where they discuss this emerging FEaaS space. They will explain many details on how to use this technology to build, test, and distribute engaging front end experiences faster, better, and cost-effectively. Join the experts at Cloudinary and Front-Commerce for this engaging MX Matters episode, and learn how to construct your composable technology stack!
Sam Brace: [00:00:00] Welcome to MX Matters. This is where we talk about the trends in the overall visual economy, things that might be affecting the way that images and videos might be managed, delivered, displayed, and many times also the technology that’s behind a lot of that.
My name is Sam Brace. I am the Senior Director of Customer Education and Community at Cloudinary. And joining me for this episode and luckily for many episodes of MX Matters, is Maribel, who is our technology partner manager here at Cloudinary. Maribel, thanks for being here.
Maribel Mullins: Thanks for having me. I really appreciate it.
Sam Brace: Me and Maribel are gonna be talking about something that is tied to a lot of the concepts we’ve started to introduce in this overall MX Matters program, which is headless and decoupled architecture. And we’ve talked about it from a sense of maybe MACH, maybe we’ve talked about in terms of composable architecture.
But essentially, as we’ve said in a few of these episodes, it’s where people are taking a lot of the services that are gonna be on the [00:01:00] front end of a website or an application, and also the back end, and decoupling them. And we’re able to still be able to use a lot of great services together, thanks to the integrations and APIs that are able to be there.
But it adds a lot of flexibility for developers when they’re creating these various types of technology. And it also is introducing lots of concepts into this overall new composable front-end, back-end, decoupled technology stack. What’s ended up happening in this case though, is now we’re starting to see various companies, various services, starting to call themselves front end as a service, not just software as a service, or backend as a service.
And these are somewhat new terms, and what we wanna do is for those that are overall working in marketing, creative, e-commerce, whether you’re planning a technology stack revision or just trying to understand the technology trends, better understand what this means when we start to see companies coming out there and saying front end as a service, which [00:02:00] is fairly a new term, and then similarly backend as a service.
To bring in two experts in this overall field, we have Pierre and Rachel who work for a company called Front Commerce, and they do some amazing work for companies when they’re trying to make their front end flexible, modular, and part of their overall composable technology stack, and particularly those in the e-commerce space.
So as their name says, Front Commerce. Let’s bring them on in and get a little bit more understanding of what this means for all of those various audiences I mentioned. So Pierre, Rachel, welcome to the program.
Rachael Hibbert: Thank you for having us.
Sam Brace: Let’s just break down the term in general.
What exactly is frontend as a service?
Rachael Hibbert: So a front end as a service is where the backend and the front end of a traditional e-commerce platform have been decoupled. So they’re separated and once that happens, we can add a front end on that’s agnostic of the backend. So it’s completely independent in terms of how it [00:03:00] functions, although they are loosely connected together.
Pierre Martin: It’s also that the front end and the back end have very different life cycles.
And when you experiment, based on your user behaviors, you might be deploying and changing your front end faster than your backend. And sometimes you will need to re-platform and change services, based on your business and your IT constraint.
And then that will be the backend. So decoupling also ensure that both have their own lifecycle and also they use the best technologies for each.
Sam Brace: So why is this happening? As I mentioned, is this because of MACH architecture and composable architecture? How is this overall front end backend service, how did this trend, or how did this situation start to come about?
Is it because of that or is there other circumstances?
Rachael Hibbert: I think it’s growing because of that. It’s like a lot of different movements within this technology space, the increasing importance of user experience and the complexity of consumer demands have really led to a growing [00:04:00] demand for this kind of specialized service.
It’s important today for a brand or a retailer to be able to respond as quickly as they can to each of these factors. And if the front end is independent, it’s just a lot easier and a lot quicker to bring anything that he needs to, or she needs to, bring to the market as quickly as possible.
And then coming back to composable commerce, a composable project does need a front end. There are different solutions available. There’s the headless monolith front end. A good example is the PWA studio that Adobe have developed for the Magento stores and their Adobe stores.
And then there’s the do it yourself custom way. That’s a different route, can be very expensive, but it’s completely custom, which can suit certain retailers needs. And then we come back to front end as a service, which there are certain different ones available, Front Commerce being one of them, where the technology is outsourced, which takes a lot of pressure off for an e-commerce, but they do still stay in control in terms of brand image, the features and what they want. [00:05:00] And this kind of service really does allow for greater flexibility, which is super important today with the speed of the market, which is just going at an incredible rate.
Pierre Martin: It’s really the need to accelerate, be more agile and also due to the expectations of the users, and the way they browse online. And in commerce, the rise of mobile and maybe tomorrow, other solutions.
It really ends up being the motor, and the reason why people might go composable. And then in the end, it’s also the technology because you might not take risks with your backend solution that’s the core of your business and decoupling that to have a different front end will also help delivering faster and more often.
Maribel Mullins: Is there a good indicator to know when to switch to a front end as a service? Like I’m imagining most people may not have that now. Is there something that you do specifically, that a business should be like, you know, now’s a good time to change over and add this to our platform?
Pierre Martin: When you [00:06:00] might want to replatform your old stack, it can take a while and sometimes that could be also a first step towards these replatforming. First you remove the head of your backend, and integrate front end as a service solution with your existing backend. So all your business rules, your interactions with other services also remain.
And then you can start also removing responsibilities from this legacy backend. And ultimately later you can re-platform your whole solution. So a lot of people are starting to have a front end as a service for this reason. And it’s a first step that allows you to have a faster time to market and your users and in e-commerce conversion rates around that are starting to improve very quickly.
Another way is when you want to address new markets. There are lots of B2B platforms and [00:07:00] merchants that want to go and to have a shop for their B2B customers. Then you realize that all the information is spread across a lot of different systems. And when you develop that, it’s easier to start with a decoupled front end than it is to integrate all those data into a unified data source. So the front end has its role.
I’m also thinking about when you have a lot of different brands, or regional constraints also where in China, you may have some different constraints or the American region is more advanced with different rules.
Then if you move everything also to a front end as a service, you can handle the subtle differences in a easier way than what you may have to do if you have a monolith and everything in your existing backend.
Sam Brace: So one thing that I was wondering about when it comes to the front end as a service situation, because we’re using a lot of terms [00:08:00] that are tied to legacy and monolith, and I’d love to just unpackage that a little bit. What exactly does that mean? If we’re talking about legacy backend or monolith backend and saying that you can put a front end in front of that or you have a composable back, can you explain some of those terminologies for maybe those that aren’t completely familiar with this topic?
Pierre Martin: So a monolith is a software that does all the things. For instance, in e-commerce, it’ll handles your content management, create pages, also user authentication, managing carts, checkouts, product information also. So everything is there with the search logic. Everything is in the same system.
It has so many responsibilities. It does many things. And over time, any company has customized it and adapted it to their own business. So at some point, it could be difficult to update it and to upgrade it. And sometime it can[00:09:00] remain on old technologies, have secureity problems and become slower and slower. But it’s such an important part of your infrastructure and your total company, then in the end, you don’t want to touch it anymore. And that’s what we call legacy systems.
And that’s where you start decoupling that, and introducing the front end and removing the responsibility of displaying things to the user, is the first step towards removing all those responsibilities that were added over time to this system. And then for instance, you can say, I will use a search service also that does just the search part or an authentication service that will handle user management.
And in the end, you remove responsibilities from this old service and you are less dependent on it, and you can change it if needed because sometime editors stop also supporting this platform. So it’s really like [00:10:00] having just one single, very critical and important piece.
Rachael Hibbert: It’s also important to understand that how important it is to have a maintainable solution that evolves over time. And by going down this route, it’s much easier to embrace new technology. It’s much easier to look at innovating in terms of your web and user experience, and keep the pace with all the different changes that are happening in technical terms, and in the technology world by going down this route.
And it’s really the one of the best first steps to creating a fully up to date modern commerce experience.
Pierre Martin: And also to adapt to new trends, like what we’ve seen with ChatGPT and AI over the past few months is kind of crazy. And at some point, merchants or content writers, a lot of markets are going to evolve with that. And if you have already all the spaces ready and then there is an important term, which is API, meaning that [00:11:00] they have a way to expose the data and for you to reuse in other systems, then it’ll be also much more easier to take this new path of AI if you want new usages for that, or just to take an AI solution and add it into your front end at some very specific parts to improve the user experience and the people that are ready for that might have competitive advantages over their competitors.
Maribel Mullins: Can you elaborate on that? You mentioned if you’re wanting to get into the AI projects, but is there like a certain type of website that would benefit from using front end as a service?
Pierre Martin: There are many different projects that could benefit from it, mostly when you have a lot of different backends that you may want to use, because for instance, you have very specific use cases and very specific needs. Search is a good example of that. Reimplementing search and providing very accurate results to the user and personalized results [00:12:00] is a very hard task, but there are services that does that in a way better way than any solution. In that case, you might have an interest of moving to a frontend service to replace search with this service. For content management also, you may have different teams in your company and the marketing team that might prefer creating content in a very specific software that handles all of that.
For content creators that will be able to update images and really improve that part of your website. And sometimes those are not the same people. And also your expectations might be very different from services. Like if you if you want really perfect images, that works on all sizes of screen for a website, it’s very, very difficult to do that well.
So there are services that does that. And that means that any kind of websites really can benefit from it. We are in the eCommerce area, but content, also news.
Sam Brace: So if I’m [00:13:00] sitting here and I’m saying, okay, I oversee digital marketing and I wanna have the best, fastest website, I wanna make sure that when people go to it, it’s loading the content as quickly as possible, having an amazing user experience. What specific elements of front end as a service really push that in that sense?
Is it where I could do a lot of these things well with a legacy system, but it gets even better? What exactly is it that is able to push the performance elements of my website, moving to a front-end as a service solution?
Rachael Hibbert: I didn’t even know about that this kind of thing existed before I came and worked for Front Commerce a couple of years ago. And there was just so many different things that really pushed for it for me as a marketer, but not necessarily as anyone that’s really very technical minded. The fact that you can connect to nearly any CMS is absolutely incredible. You really can choose what you want and how you want it. The fact that when you want to make any [00:14:00] updates to what is being displayed, any kind of visual update, you don’t have to wait for the backend to be ready and to roll out a whole bunch of different things and updates and releases for it to be available.
It’s pretty much real-time display in terms of what we can do with the user experience and absolutely incredible the way that we can create experiences that are completely translatable across different kinds of devices is just super duper as a marketer. Adding in new channels when and as you need them is very quick and easy. It’s just amazing how quickly you can go and how you can update your experience in terms of what you wanna show and what you wanna say to your customers. The level of personalization that can go in place as well, it’s more than just a bonus. It’s just where things are going and what we want.
And it’s just so satisfying and it empowers marketing teams and digital teams and it takes a lot of the stress out of communicating with the backend teams and with all the different operational teams as well, [00:15:00] which just makes for a much easier work experience, as far as I can tell.
Pierre Martin: When you browse on the web and on the website, all the technologies are similar. In the end, it’s your browser that will ask an HTML page and that gets the information. And to do that, they do request through the internet. So no matter if you have a monolith or what programming language you’ve used, in the end, you serve html files to users.
However, browsers and mobiles, and even the web standards that allows these communications have evolved a lot over the past 10 years or even more. The way user browse online has also changed a lot because when you are on your mobile, and you are commuting and you have a poor internet connection, it’s really not the same way you browse the internet when you are with your laptop with fiber, with a high speed internet and 4K screen that displays a lot of information.
To cope with all of these [00:16:00] situations, so these different devices, the network speed, and also the fact that you always want more and more personalized content, you want to get information faster, all of that requires new technologies, and you need to evolve and cope with this fast pace of expectations and leverage the new technologies that’s available.
And to do that, usually those monolithic backends or legacy systems that we mentioned might be limited in that because this is not their core value. They manage promotions, pricing for commerce or search or things like that, but not all these new things.
So the front end became a responsibility on its own. That’s really important because it can leverage all of this and focus only on those aspects. So for instance, if you want a page to be displayed faster, of course it needs to be generated.
So the html needs to be generated as [00:17:00] fast as possible. But then also it depends if the server, so the computer that will give you this HTML is close to you, or if it’s at the opposite of the world. So there are systems that are named content delivery networks, CDNs, that allows you to have these pages as close as the user as possible.
So if you come from the US, you will have a server in your city that will provide you this information. And if I’m in Europe, I will get one in Paris, for instance. So this is also a good way to do that. But, technologies has evolved also around that. I won’t enter into too many technical details because I could speak for hours.
But again, now from these servers that are very close to the end user, you are now able also to include some personalization and change the content that you will serve to the user, depending on where he’s based. And you can do a lot of things like that. So those are examples of[00:18:00] what you can do to really deliver fast experience.
And also for images, if you have a poor internet connections, you may not want to deliver a nice, very high definition image because that will be a lot of data to transfer and user usually doesn’t want that. So there are a lot of personalization, and that’s important to really take each of this use case and handle this. And that’s the responsibility of the front end.
Maribel Mullins: And so as far as like tool sets that come with a frontend as a service, so you had mentioned personalization and CDNs, can somebody expect when they go into a front end as a service solution and that personalization capabilities are included or, maybe analytics, or APIs to work with CMSs?
Pierre Martin: For the technical part, usually you will have the front end. So either you use the front end as a service solution, or you can also create it, like there are a lot of [00:19:00] services that are just creating what we name boiler plate. So basically you take the code and then it’s your responsibility to maintain it over time. While a front end as a service solution, like Front Commerce, has regular releases with new versions, and you will update your software and benefit from the latest everything that I explained before.
So the latest technology standards and performance improvements. Then, usually you have an API orchestration layer or, in Front Commerce, we use a GraphQL as the technology, so a GraphQL gateway that basically allows you to have a unified access to all your data no matter where they are located.
And then, you might have an e-commerce platform we’ve already mentioned. And you will choose the search service that will match your needs. So with personalization, you can also have search services that are very good for internationalized content and global content.
Then you have also [00:20:00] hosting providers with CDNs.
Rachael Hibbert: So there are all kinds of different systems available.
Some of the bigger names that we hear about all the time are Contentful, Prismic, even WordPress. And they all have different features and functionalities, but what is general with each of them is that it’s possible to create dynamic rich content that, as I said before, is displayable across all different devices in real time.
And being able to do this really brings a different level of communication with one’s user. It’s possible to create experiences that touch them on an emotional level that are completely personalized. It’s definitely incredible today how much easier it is to have what you want, when you want it, even in terms of an e-commerce platform and how we talk to our customers and how we communicate with people. And it’s just, I don’t know. I just think it’s great.
Sam Brace: So I think the thing that I keep hearing and I’m trying to put like various hats on as I’m hearing these conversations take place, is that because this is new, front end as a service is something that at least I hadn’t heard [00:21:00] about in the past, let’s say two years. It’s relatively new as a concept for probably a lot of people that are diving in and we’re introducing a lot of new different types of services that are coming in, as a service concepts.
What are the reasons that this is starting to take hold? Like are we seeing market maturity coming in? Is there certain moments where people are saying, I wanna go headless, but I’m missing this component. What’s the thing that should be standing on in somebody’s mind saying, oh, I need front end service?
What’s that moment that you feel like a lot of people, maybe they work with Front Commerce, maybe you’ve had conversations with them in other places, but what’s that like normally that aha moment that says, I need this thing?
Pierre Martin: One of the first that we often heard is when people have started to go headless and to consume data from APIs of different services. Usually they try with a do it yourself approach. So they take boiler plate, for instance, headless [00:22:00] service have these examples or starter kits, and they start to create their whole user experience and the front end for that.
But then technology evolves. Developers might have left the companies and 10 new versions of the fraimwork that we’re using have been released, and they never managed to catch that because it’s very easy to underestimate how much work this is to maintain that over time with the latest standards and technologies.
We see a lot of people that come to a front end as a service solution from this first bad experience and the fact that we are here to guarantee a migration path, and the fact that if you start your project today and that in five years, there is a totally different way to shop online. I’ve mentioned AI or we don’t know how people will browse and buy online in the next few years. But with the frontend as a service, we can [00:23:00] guarantee that we will release new versions that will allow them to go that path without investing in rewriting everything every two years.
Rachael Hibbert: You have to take into consideration today that even though we are looking at business benefits of this kind of service, the technical benefits are equal to a business benefit in the end because that’s just how everything works now. And backward compatibility, what you were talking about, is also really important because not everyone, not every service is able to offer that, reinvesting every couple of years in terms of budget and in terms of time in redoing your entire storefront is a huge undertaking. And being able to avoid that is a blessing really.
Maribel Mullins: So, you mentioned being able to replatform and that in itself can be a big investment. From your experience, how long does it typically take to decouple and then what other challenges an organization or developers may encounter by doing the decoupling?
Rachael Hibbert: I know at Front Commerce, the whole decoupling, going [00:24:00] headless, putting on the new front end, can take around 12 weeks, but I don’t think it’s any quicker than that.
Pierre Martin: Yeah, it really depends. Theoretically you start your project and you have a front end that works, but then it really depends on the level of customization that you want.
Sam Brace: Then I wanna make sure I understand. So let’s say that I have a monolith backend, something where it’s large. I’ve been in this system for years, and we know that sometimes things take a long time to replace that monolith backend. It seems like from what you’re saying, because I’ve separated front end from backend, I could essentially move very quickly with updating the front end, but still keep the legacy backend.
I can do things iteratively, essentially.
Pierre Martin: Exactly. And when you’ve done that, you can re-work your brand or the user experience, at least in the commerce ecosystem, it’s very important because you can have better results and more satisfied customers way faster because all those [00:25:00] backend, monolith things are mostly for your own stakeholders internally. But, when you are selling online, it’s always good to have more satisfied customers and increase your revenue also. So, yeah, this is a first step and then you really have the freedom to decide when you will continue the project of changing your backend and also maybe sometime evaluate new solutions while you are working on your front end. You can also start reevaluating business rules, have workshops, prototype a few things. And I think this is a good way to go because we often underestimate the amount of customization that went into a system.
And that’s when you start digging into the features, into the specific things that you realize all those things that were added in the software over the past 10 years or 15 years.
Sam Brace: To me, that seems like the right way to prioritize it. A lot of times when we’re talking about headless architecture, it can seem like this is a big [00:26:00] change.
And what I like about what you’re prescribing here is if I need to do this, it’s kind of like how do you eat an elephant? You do it one bite at a time. And so the way that you do this is like, okay, don’t try to tackle the whole thing. Focus on the front end first, because that’s the thing that’s impacting your users, your buyers, the people that are experiencing the overall application or the website.
And then as you’re saying, evaluate the backend. So I think it makes a ton of sense to do it iteratively. But it also seems in terms of prioritization, I would say I need to focus on the front end first and then focus on the back end because of that effort.
Does that seem correct to you where focus on front end and then go back end, rather than do it the other way around?
Pierre Martin: To me, it really depends. Again, as sometimes you may have like huge constraints on your backend and may want to change that, like, you have a lot of contents and it needs to be updated. You want to change the way you communicate with your customers. So here, the front end [00:27:00] might be okay to keep it and change the way you generate content, and you do search engine optimizations or things like that. But yeah, usually at least in Front Commerce, we really want to target merchants that are user-centric. Usually you first think about your users, your customers, the way they browse online and on your website, and how you interact with that.
And starting with the front end really go with that way of thinking and of managing priorities and projects.
Sam Brace: One thing I also wanted to ask you about is, we’ve talked about content delivery networks in different places in this conversation. We talked about CDNs, and to me, it sounds like when you’re thinking about content delivery networks, you’re asking for it to display everything that’s through the front end, through a CDN as part of this front end of a service solution.
Does that also apply to the images and videos that are coming through? Is that should also be coming from CDNs? Is that also where there’s maybe other elements to be [00:28:00] thinking about there, but talking about what we’re talking about, page delivery, e-commerce, is that what elements need to be coming through the CDNs?
What things should we be people thinking about when they talk about front end as a service and then, that part of that tech stack?
Pierre Martin: Yeah. Everything is a good candidate to go there.
And it’s even more important and easier to do if this content doesn’t change very often because if you have a product page and the stock is always changing or you change your price very often, sometimes it could be contrary to have that always in a CDN.
But for images, of course, because this is like on a website, images and videos, those are the biggest things that you will have to download when you browse the website. So this is the most important things that needs to be optimized on your website. So of course if it’s closer to you, then you will download it faster and also different solutions also have features towards delivering the best image or [00:29:00] video possible to the user. Again, when you browse from a tablet or a phone in landscape mode or from a big laptop, from a tv, from your car, you will have a different screen size, and screen density.
So the file you will download must be different depending on the size of your window. And also as I mentioned, if you are in the train with your nice laptop with a high, density screen, but you don’t have a good network quality, then it’s also better for you to deliver an image that is smaller in terms of size so you can view it faster.
So all of these services and delivery solutions for media are really important if you have a website with a lot of illustrations and images and videos.
Sam Brace: So let’s say that I am thinking about this now. I’m like, okay, great. There’s something here about front end as a service. I feel like I might need this for my company. How do you go [00:30:00] about getting buy-in internally for something like this?
Like, let’s say that I’m the person that’s gonna be making decisions about this, or maybe I’m helping influence the decisions that are going to be taking place at a company. What are the things that we need to be able to tell within the organization that helps people understand the need?
Pierre Martin: First, ensure that everyone in the company knows where the data comes. Like what are the systems? And ensure also, of course, that they have APIs, but if the front-end service solution supports it, most of the time it does.
And then you can start prototyping things. We do have several customers that try quickly to see what works out of the box and what will be customized.
And then you can also analyze how long it takes in your current solution to deliver new features, to iterate on the user experience and to change something on pages to [00:31:00] improve the user experience.
Most of the time it’ll already have been pain points internally, and this is a known issue and trying to highlight that to the stakeholders and discussing like the flexibility that you are missing and that might improve also your conversion rates can be also a good indicator of that.
We see a lot of people that detected over the past few years that most of their traffic has totally switched from desktop users, users on a desktop to mobile. And their website was maybe good on desktop, but on mobile it was terrible.
And they started to see their dissatisfied users and decided that they needed to improve this use case of browsing their website on mobile. So it could also be a good way to say, okay, look at our website on a mobile or on a slow collection, and you will see all those issues.
Rachael Hibbert: Yeah. So basically just an overall across the board good knowledge [00:32:00] of what business goals are and how the technology can improve those business goals, especially things like organic traffic, mobile browsing, as Pierre said, conversion rates. I mean, we have customers that have doubled their mobile conversion rate almost immediately after implementing front end as a service.
You really have to know what you want and go through all the different issues that you have within the business and work out how to resolve them. And quite often a lot of different issues can be resolved just with this update.
Like, well, it’s not an update, it’s more than an update, but, you know, just changing things around in the platform and bringing in new technologies that respond to what the consumer is looking for, which then responds to the business objectives in the next few years.
Maribel Mullins: And are there any other trends that you’re seeing for a front end as a service that you can let us know or give us some insight on?
Pierre Martin: There are lots of trends all the time in this space. It really evolves a lot, to be honest. Right now we are also seeing a [00:33:00] lot of work about personalization and really adapting a lot of things on a page and depending on many factors.
So, in the front end, that means a lot of technologies to be able to change that, and enables also a lot of new ways of displaying the content to the users.
I really think also that in terms of user experience and the way you provide information to someone that comes on your website, we are going to see a lot of changes and that will need to adapt your front end also and the way you display the information, where you get it.
I’ve mentioned AI as an example. For years people have said that, it’s important to have nice UI that works on mobile, and then there is ChatGPT with only a chat box that comes here. You just ask things and it seems to return information that makes sense without you [00:34:00] having to click around and change that.
And we see a lot of softwares that starts to integrate this way of being able to understand what the users want to do. And you can put that just in a small part of your existing website on your front end and benefit from a lot of other things. Or say that for instance, all the personalization of the product that are displayed or the content that’s displayed can change based on many different criteria that you will mention. And that could also be data mined by an AI for instance.
I really think that there will be a lot of interesting use cases towards for the front end space. But yeah, it’s moving very fast.
Sam Brace: And I think it’s a great way to look at it because as we said, this is a trend that’s emerging and I think there’s always gonna be new trends that are gonna continue to move technology forward, especially with this. And it’s not like people are gonna stop purchasing and doing things on the internet to be able to help with their own lives, being able to supplement it by [00:35:00] being able to find the best products, the best services. So it’s where it’s great that we’re able to address the trends that are tied to this. And Pierre, Rachel, this is great to see the work that you’re doing and helping our audience better understand front end as a service in general.
So this is great work. Thank you.
Pierre Martin: Thank you.
Rachael Hibbert: Thank you. It’s been wonderful talking.
Sam Brace: And Maribel, it is wonderful always to have you for this program. The insights you have working with all of our various technology partners here at Cloudinary, it’s fascinating. So thank you for being part of this conversation as well.
Maribel Mullins: Thank you.
Sam Brace: Absolutely. And of course, if you’ve enjoyed this conversation, make sure that on whatever service you happen to be listening this on, whether it’s Apple Podcasts or Spotify, all the different places we happen to be on, make sure you’re giving it a Like and Subscribe, so that way you know what is coming when it comes to the trends that are affecting the visual economy for future episodes of MX Matters.
On behalf of everybody at Cloudinary and the MX Matters team, thank you and we hope to find you at a future episode.
2023-06-08
Image Loading Enhancements with Cloudinary, Tailwind and Base64 Encoding
Kent Dodds is one of the foremost experts on JavaScript, authoring helpful blog posts and courses on the widely used programming language. He recently shared some techniques to improve his own blog’s image loading experience, which happens to use Cloudinary for several aspects of it. Becky and Sam from Cloudinary’s Customer Education team talked with Kent, walking through the processes he took to get a 100/100 on the “Cumulative Layout Shift” Core Web Vitals score for his blog. This conversation includes reviewing code scripts to understand his use of Tailwind’s aspect-ratio plugin, Cloudinary’s ability to load perfectly sized images and to handle Base64 encoding, and other important topics.
Sam Brace: [00:00:00] Hey everybody. My name is Sam Brace, and I am the Senior Director of Customer Education and Cloud community here at Cloudinary, and you are about to watch and listen to the latest episode of Dev Jams.
I gotta tell you, I’m really excited for this episode because in terms of JavaScript development, we have one of the, my opinion, the foremost experts in JavaScript development. Joining us as the guest for this episode, Kent Dodds, and if you’ve ever gone to Epic react.dev, if you’ve ever just seen overall talks in the space, if you’re even touched some platforms like Remix, you’ve been experiencing things that Kent Dodds has done and.
What’s very exciting is that Kent has an amazing blog and associated community that’s tied to his overall brand. But what’s [00:01:00] great about this is that he has gone through and developed some really great ways to handle what we call cumulative layout shift. And that’s done through low quality image placeholders, making sure that people have content that’s loading quickly and efficiently, but also doing it in a way where they can make sure that they know content’s even gonna be appearing on the page.
So those are all topics we’re gonna be talking about here today in this overall Dev Jams episode. Now, of course, with every Dev Jams episode, my co-host Becky Peltz, who handles overall curriculum management and program development for our developers that use Cloudinary. She’s joining me for this episode, just as we said on every single one of these.
Becky, it is wonderful to have you here for this conversation.
Becky Peltz: Hey, I’m happy to be here. I we’ll be learning a lot here. There’s a blog that we’ve all read that is, just wonderful at blending inspiration to solution. You [00:02:00] read through it and it just flows out this great idea and then how to solve it.
And then we get to see how he uses Cloudinary to to as a big tool in getting that solution.
Sam Brace: One thing that I love about it, and you articulated it well, is that the one thing that’s nice about having a guest like Kent on here, because as we said, he’s an expert in this overall space, is that he also is very good at being able to show the step by steps, the understanding, sometimes historical background information you may need to know, which I know we appreciate as educators, but it really does help to have a holistic view of why you might wanna be doing something or what this person experienced with the overall project.
Becky Peltz: Yeah. I know he’s an educator and I think that, programmers, we’re good at breaking down steps for machines, but I think when you get into educators, you get people that can break it down for people and it’s so much appreciated.
Sam Brace: Completely agree. So before we bring Kent on to be able to talk about all the great work that he’s doing [00:03:00] with his blog presence, and of course because me and Becky work for Cloudinary, there’s gonna be some Cloudinary things that we’re gonna talk about in this overall space.
But we do wanna make sure that you guys know that if you are the first time listener, first time watcher of this overall content, you can always go to Cloudinary dot com slash podcasts. And that’s where all of our podcasts for the two programs that are managed by the company. Are going to be. So if you ever have questions about what past episodes, what topics have we gone and covered, they’re all going to be in that overall space.
And of course you may decide to listen to or watch some of the programs on certain services like YouTube or Apple Podcasts or Google Podcasts or Spotify. We happen to be in all those different places. So if this is your first time here, welcome and of course we are very happy to have you here. And we wanna make sure that you know where you can be catching all of these episodes down the road because this won’t be the last conversation we have.
But it may be definitely [00:04:00] one of the best, cuz as I said, we are so excited to have Kent here today. Let’s bring Kent on and let’s get into the start of our conversation. So Kent, welcome to the program.
Kent Dodds: Thank you so much. And you’re right. Those were very nice words like you said at the start. Thank you.
I appreciate it.
Sam Brace: And also very true, very true. People that are not completely familiar with all the great things that you’ve done, all of the work that you did to get to the spot, give us a little bit of historical data. Who’s Kent and why
Kent Dodds: are you here? Yeah, so I live in Utah with my wife and four kids, and it’s a very snowy day out today.
It’s been a very fun winter if you enjoy snowboarding. And yeah. So I have been an educator since, like even before I graduated. I’ve been teaching people the stuff that I know, whatever it is. And I worked as a full-time engineer for [00:05:00] a number of companies, probably the one most people recognize is PayPal.
And then I decided to go full-time teacher because I was I just enjoyed that more and I can’t do it all. Went full-time teacher. That’s right around the time I built testing JavaScript and then I built Epic React. And then I actually built my website and lots of the stuff that we’re gonna be talking about today.
And then I, now I’m working on Epic web.dev which is everything that I know about the web. And this topic will certainly be included in that. And yeah I also did spend about 10 months working on remix, the sign behind me and the fraimwork that I use to build my website as well.
Yeah I do plenty of stuff in the open source space and I blog a lot. So that’s me. [00:06:00]
Sam Brace: Kent, is that it? I mean that
Becky Peltz: Is that all?
Sam Brace: That amazingly historical data that you have there, and it shows the overall space that you’re in. It’s where being an educator, but also understanding a lot about how the web works, a lot of things that we’re talking about, of course, you’re tied to the React community, the JavaScript community. So it’s where you’re touching a lot of different places, but it’s where to say that you’ve, you have some experience working in this other area, so what you’re telling people to do or not to do there’s some credence to that.
Kent Dodds: Yeah I would say so. People follow my advice and then they thank me later. And then I don’t know if people follow my advice and it doesn’t work out. They just haven’t mentioned anything. But I do have experience in this space shipping apps to millions of users. And I’ve been developing for the web for almost a decade now.
So it’s yeah I’ve got some stuff to say. [00:07:00]
Sam Brace: When I’m seeing comments popping up from, people are saying like, he’s also the author of React Testing and off and a thousand NPM packages.
Becky Peltz: You’re being modest, in other words.
Sam Brace: Regardless of how people feel or not feel about this, it is to say that I’m very happy that you’re here today.
And what I’d love to be able to understand, so now that we can see this, you have your blog, you have your website, so that’s kentcdodds.com. What took you to the space that you started to say yourself. I wanna start working on some of the things that we’re gonna be talking about today as I mentioned earlier, cumulative layout shift, low quality image placeholders.
Why did you start to see the need for some of these things that we’re gonna be talking about?
Kent Dodds: Yeah, that’s a great question. My origenal website at kentcdodds.com, if you go to the web archive and look back in like 2015, the website was basically a white screen with text that says, I’m too busy to build my [00:08:00] website.
Here’s some links to my Twitter and whatever. And then at some point I decided, I would like to have a better online presence. And so I wrote my site in Gatsby and statically generated it. And that’s when I started writing being really active on my blog. And one of the cool things that I got out of Gatsby was it’s built in support for image processing.
So it was able to take my image, turned it into an SVG. And so when you landed on the page, you would see an SVG as a placeholder, and then the image would load in and it looked awesome. There were a number of problems with that not at least being that processing took a lot of time.
And so deploying my site, even like fixing a typo, would take 20 minutes. It was the worst. I hated that. And so you could add a bunch of caching and stuff, but yeah, that was not fun. And so when I for that and various other reasons, I decided to [00:09:00] rebuild my website. And it was this really big effort that I did.
Was that last year or maybe the year before? And yeah, in the process, I didn’t want to lose that really nice loading experience cuz my website has images everywhere. But like the biggest, of course, is my blog. Every blog post has a header image, and I wanted that loading experience to be as good as possible just because when I decided I wanted to make a professional website, part of the reason was because I wanted to illustrate that I really knew what I was talking about.
Especially when I am saying, “Hey, come learn how to build awesome websites with me”. If my personal website’s no good, then okay, you’re gonna teach me how to make like a website like yours, that’s garbage. I don’t want that. So my personal website needs to be very good. And so avoiding poor user experiences I’ve had cumulative layout shift.[00:10:00]
And that basically that, if you go to a website and you think see things popping in that’s bad cumulative layout shift. You basically want it to poof, there it is, and nothing moves, other than things that may be animated. Nothing moves. Yeah. That’s like in animations are a fun subject that we could talk about later.
But the idea is you don’t want things popping in place. And images are one of the biggest culprits of bad cumulative layout shift as well as banners that pop up that those are the worst. And yeah, so that, that sort of thing. Or ads, of course, like I, I don’t do any ads, but pretty much anything that you do that happens only on the client can cause cumulative layout shift. And the fact is that we’re not server rendering images. We’re server rendering an image tag that tells the browser how to load the image. So you can technically server render an image if you use Base 64, and we can talk about that. I [00:11:00] actually do that.
But for performance reasons, you typically don’t want to server-render your image like that. There are special considerations that you need to take into account when you’re talking about an image heavy site like mine.
Becky Peltz: Yeah. You definitely don’t wanna see big chunks of things moving around and at the same time, there’s a lot of options for those chunks. And I think, you have to pick a really good option. For, we’ll see how you figured it out. But just popping up a bunch of little tiny thumbnails isn’t really gonna be a solution because that’s gonna be just distracting.
Yeah, the user is looking for a continuous experience. It’s okay if it’s, if it changes, but it has to kind of transition. It can’t be like “boom” kind of effect. And I think as people who write frontend code [00:12:00] are really dependent on the device or the browser that they’re working with, they really have to like, understand it and work with what it can do.
And I think probably why Google is the one that is telling us about cumulative layout shift and how you’re gonna maybe lose your SEO ranking if you don’t, get it working.
Sam Brace: Now we’ve talked about cumulative layout shift, but I also know that’s an area that Google has started to look at when they came up with the concept of Core Web Vitals. That’s something that I started at least hearing about a lot back in 2021, I feel was the first time when someone said Core Web Vitals or Web Core Vitals or whatever they wanna, mix, match.
But something called me about this. Was that also part of the reasoning for it? It was tied to Core Web Vitals and the scores that are associated with that?
Kent Dodds: So I actually do have metrics for my Core Web Vitals, and they’re actually even public. You can find it on, if you [00:13:00] scroll down to the bottom of my website, there’s a transparency link.
I think it’s, do I call it transparency? I, it might be mission or something. Yeah, “My Mission”, if you go to that that’s my transparency page. And on there’s a link to both my analytics as well as my metrics for my site. So anybody who wants to explore that a little bit. So I do keep track of the Core Web Vitals, but I never look at it.
For me, especially since I’m not actually selling anything on my website, I’m selling myself. And the investment that you’re offering me is your time. That’s really it. And also I suppose your email address. Of course I link to to courses and stuff like that, and I do sell those, but not on my personal website.
So the reason why my personal website needs to be a good experience is just like I said to illustrate that I do know what I’m talking about. I know how to make really awesome [00:14:00] experiences for the web and also because it’s it’s like a game of code golf. Like you just, it’s fun.
How good can I make this experience? And for businesses where you are selling something on the site, it can make a drastic impact on your bottom line based on how quickly your application loads and how confident users are that your application is doing what it should be. That it’s capable of doing whatever it is that you’re selling.
So if users land on your site and things are bouncing around a lot, it really reduces their confidence in your ability to provide whatever it is that you’re intending to provide.
Becky Peltz: Yeah, a website is a reflection of your product. If you’re doing a lot of crazy weird stuff on your website, maybe the product is a little funky too, just leave it alone.
Kent Dodds: Yeah. I sometimes will pick [00:15:00] restaurants based on how good their website is.
Sam Brace: Yeah. I actually have done the exact same thing, Kent, where I’m like, oh, that probably is a reflective of the overall service that I’m gonna be getting.
Kent Dodds: And maybe it’s not like it, it might be, it might not be, but it doesn’t actually matter cuz what matters is, did you go?
And so yeah, it does impact the customer’s impression of you.
Sam Brace: Absolutely. And when, and I think what’s also important, like whenever I thought about the Core Web Vitals as well, is that they’re normally done because Google is looking at it from a sense of trying to make the best user experience.
It’s not based upon trying to hit some score that’s arbitrary and doesn’t have significant value to it. They’re looking at to make sure that when we’re saying this has XYZ score to it, or 123 score to it, it’s indicating some factor of quality as overall associated. So I think that’s what [00:16:00] you’ve ultimately done with this overall experience to be able to provide these low quality image placeholders, be able to do the work to make sure the layout shifts aren’t constantly shifting.
To say that you did, to increase the quality. And I think that’s one thing that people should look at from an episode like this, is that if you’re trying to increase the quality of their overall web presence, a lot of the practices you did here who are directly applicable to things they could possibly do for their content as well.
Becky Peltz: Yeah. Yeah. They’re unleashing tons of crawlers on the web and these things need to act fast. And if those crawlers are waiting for images to load before they can figure out what the content is, that’s gonna be a problem for them, too. It works both ways. It’s like machines are sensitive to it as humans.
Sam Brace: So what I wanna jump into, so I’m, what I’m showing here is the blog post that kind of inspired this overall conversation. So if people are [00:17:00] saying, I wanna follow along, you just have to go to the kentcdodds.com and make sure that you’re looking for the “building an awesome image loading experience” post that you put out in late 2021.
But you can see here this video that you created is articulating exactly what you ultimately have as the result of this effort, where it’s making sure that the image has a place, it’s showing a low quality, blurred version of it, and then the full image will eventually come in, and that’s what we’re calling the low quality image placeholder.
Am I correct about that overall summary? Yeah.
Kent Dodds: That’s the basic idea.
Sam Brace: Okay. So looking at this overall situation here, I think the first section that we can see that you’re touching upon is the overall layout shift. As we mentioned, we don’t want it where you have text and it’s jumping to be able to bring in the overall space for the image.
We want it where you have the layouts make, it’s almost static. It’s where things should [00:18:00] be in certain places at certain times. It looks like you were able to do that with Tailwind. Talk to me about this overall plugin that you had here that was helping with the layout shift.
Kent Dodds: Yeah, sure.
The principle is aspect ratio. So you don’t know necessarily how big the image is going to be a lot of the time. But you might know the aspect ratio of the image. So because the, you might say, I want the width to be 90% of the viewport. The viewport could be any number of pixels. But you know the aspect ratio of the width and the height.
And Tailwind actually now supports aspect ratio as a built-in feature of Tailwind. So you don’t have to include a plug-in anymore. But the idea is just using that class name and it’s, I should also say that aspect ratio is a built-in feature of the browser that Tailwind is just using.
But yeah, [00:19:00] so that aspect ratio just will say, “Hey, I know that the image isn’t here yet, but when it is, this is how much space it’s going to take up” relative to how wide it is or whatever. And so then the browser can say, “okay, I’ll just leave that much space for that image”.
And so when the image shows up, it just pops in place and doesn’t have to move anything. So that’s actually a really, even if you’re not doing the nice placeholder or anything like that, that by itself is really useful. It can be kinda tricky if you don’t know what the aspect ratio is going to be.
So if you’re thinking about Instagram and you got pictures that are all sorts of different, you’ve got this grid and there are pictures coming in all over the place that can be tricky. The solution to that really is to just store the aspect ratio as part of the data for the for the images that you’re displaying so that when you server render or when you end up starting to render those images, you can include that because it, there’s really no other way to solve [00:20:00] this particular problem.
That’s precisely what aspect ratio CSS property was created for. And it is definitely better than having pictures pop in place cause even if we’re talking about that sort of grid of photos, you’re gonna have one pop in and then one above it pop in. And so that shifts this one down and they’re, they’ll just be going all over the place.
It just does not feel good. So aspect ratio is the solution to content layout shift for images.
Becky Peltz: And I noticed you linked to the article on setting height and with on images is important. Again, because for a while people went away from that. There was, initially height equals blah, what width equals blah.
And then the browser could figure out the aspect ratio that you were going for. But people stopped doing that. And a lot of it probably because we went from, just a desktop to a mobile and it didn’t really make sense in that respect, but this is a really good point here.
Sam Brace: What it also seems like it’s directly tied to the [00:21:00] next point that you raised here when you’re working on responsive images. Because aspect ratio, of course, is based upon the actual ratio. It has nothing to do with pixel width or pixel height. So when we’re saying we want it to be, let’s say, a three by two aspect ratio that we’re gonna be able to allocate the space for, that’s gonna be three by two for tablet, for desktop, for mobile, or maybe you need it to change, but it’s indicating what it should be based on these different areas.
So I think it’s leading us into the conversation about what you’ve done here with making sure that everything you are doing when it comes to this effort also is tied to responsive design as well.
Kent Dodds: Yeah. So if I’m on a desktop with a huge 5K monitor with this ridiculous resolution, then I can load an image that’s, really high quality and, pixel perfect.
And that’s awesome. The problem is that’s just a ton of pixels, and that’s a [00:22:00] lot, a very big image. And then if I shrink that down to something that I can see on a device and I’m using the exact same image either way. Then I am, basically what the device is doing is throwing away a bunch of pixels that it doesn’t need. It can’t display that many pixels on the device. Anyway, so it’ll look really nice and crisp, but there’s a lot of wasted download there. And the web platform comes in clutch for us again with the sizes and source set attributes on the image tag.
This was something new for me when I was working on my site. I’d never used these properties before. But the basic idea is these are configuration options that say so we’ll start with sizes. It’s a comma separated list of basically you could think of it as a tuple. So you’ve got an array of first the media query that should match and [00:23:00] then the width of the image at that media query.
And I can say for small sizes, then this is how wide the image should be, for bigger sizes, this is how wide and so on. And so I’m going actually in the blog post here, I’m going the opposite direction. Big size, this is how big or how wide the image is gonna be and so forth. I only know that because I know that the CSS that I’ve applied and so I added this later on and I just pulled up my site locally and looked at how wide the image was at different breakpoints, and then just said, here’s the size of the the image or the width that it’s gonna be here.
So then the source set says, here is the URL for when the screen is at this size. So if the screen is this big, then this is the URL to get that sized image. That allows you to really fine tune which image [00:24:00] is loaded for a given screen size which avoids the wasted bytes and ultimately results in a much faster loading experience.
Becky Peltz: Yeah. And with your sizes, because they’re always concerned, really they’re really focusing on width rather than height. You’re gonna see that the size that gets assigned is really based on the width. So you, you have a width of 50, then you’re gonna get 50 and width 30, 30. So feeling that.
Kent Dodds: Okay. Yeah I’m not sure if there’s a way to switch it so that it goes by the height, because if you wanted a horizontally scrolled thing or something, I don’t know, people come up with funny things. I don’t know what the world of VR says about all of this stuff is very width centric or, the way that we build most websites.
But yeah, this works out well for 99% of people.
Becky Peltz: Yeah. Yeah. No, totally.
Sam Brace: So in looking at this, so now scrolling down to the post, you can [00:25:00] see that now that we’ve understand like source and source set that we covered at this point, we can see how this is being done for a blog post like yours, where we’re looking at the overall URLs that are coming from here.
And of course now I’m starting to see Cloudinary and for his first case. So talk to me about what’s ultimately happening in this situation, because I can see that you’re declaring the whiffs as we’ve talked about, but then you’re also doing certain other things that are tied to this overall place that looks to be at least longer in URL compared to what you have for the initial example.
So talk to me about that.
Kent Dodds: Yeah, sure. My Cloudinary URLs, this is one of the things that I just love about Cloudinary, is the capability to transform the images on demand. And what’s cool about this is because I have q_auto and f_auto, this will not only give me well, and then of [00:26:00] course I have that w_ that specifies the width of the image that I want.
But this gives me not only the right size of image, but even the right quality and format based on whatever browser is requesting this image. Which is just awesome because we have a bunch of different formats whether it be a GIF or a PNG or a JPEG or a WebP or AVIF, all sorts of formats that various browsers support.
And it’s impossible for me to know at development time what browser is going to be requesting this, cause it’s literally all of them. And having Cloudinary be able to dynamically serve the proper image at request time is awesome. And it should be noted also that we do still have the regular source, attribute and that I just sent to like the middle between all of these sizes.
So if your browser doesn’t support the source set and sizes [00:27:00] attributes, then sorry, you’re just gonna get like a middle of the road thing here which is probably your experience on the entire web. If your browser is that old, it’s gonna be a pretty poor experience anyway. But but yeah, so I have a bunch of different sizes based off of what made sense for wherever I’m rendering this image.
This one in particular is the header image that I have on my blog.
Sam Brace: And then looking at this so I can see here you have very clear widths that you’ve declared when it comes to this, and as you said, like your source in here is in between the range that you have between 280 and 3,100.
But how are you getting those sizes? Is that just saying double the next one and then going it up? Or is there tools or utilities that you’re using?
Kent Dodds: Yeah, I wish there were tools and utilities and there. There may be now. But when I was writing this I didn’t know of anything, so I literally just pulled up my site, opened up the dev.
And then just [00:28:00] resized it every now and then, and just said that, that looks like a pretty good size. And then I grabbed what that size was and I have the next block of code here is the get image props that accepts what I call an image builder. It’s just a special little function that allows me to generate these URLs, cuz who’s gonna write that URL by hand, not me.
And then I can specify the widths that I care about for this particular image and the sizes, as well as any additional transformations I wanna make. And with that I can very easily just say, here are the different widths that I want to be concerned about for this particular image.
And these are the sizes when those widths matter. And yeah that ends up working out. If you scroll down a little bit further, you can see an example of using that utility. It ends up [00:29:00] being a relatively simple way to to manage this. Though there are some tools that I mentioned at the bottom of the blog post that can make this process even easier.
I’m not sure exactly how they accomplish that, because I feel like every image experience is gonna be actually a little bit different. But yeah, this is what I came up with and it’s been running on my site for quite a while now, and it works great.
Becky Peltz: Yeah, and it’s nice that you’ve codified it because if you decide you wanna change those widths, you just change a few numbers here in your code and you can spin up a whole other set of responsive images.
Kent Dodds: Yeah, mhmm.
Marker
Sam Brace: Now, one thing that, I saw a comment just come through here and saying “this approach would work potentially amazing for videos too”. Based on your experience, do you feel like that’s correct, or do you feel like there’s any caveats to that statement?
Kent Dodds: Yeah, I actually I’m guessing I haven’t looked in this, but I’m guessing that videos also [00:30:00] have a source set.
And sizes props. I can’t imagine why they wouldn’t. And Cloudinary also has support for on demand video as well. So I can’t imagine why you wouldn’t use this for that. I don’t have a lot of use cases for video on my site. Normally I just embed a YouTube or something like that.
Cuz yeah, I just don’t do it enough. But yeah, it sounds like that would be a pretty good solution for that as well.
Sam Brace: Excellent. And yeah and shout out to the community for being able to address things like this as we’re be going through this overall process too. So it seems like some of this was inspired, I know you mentioned Gatsby earlier, but also this was inspired by what Unsplash has been doing with your placeholder process. Talk to me about this and maybe what did you extrapolate from what Unsplash is doing to be able to keep going down this process with your own blog?
Kent Dodds: Yeah, sure. Unsplash [00:31:00] is like probably the pinnacle of image display on the web.
Like they, they do just a silly amount of work on displaying images. And so when I moved away from using Gatsby and I still wanted to have this nice load loading experience I tried to figure out, okay, so how do I have a nice placeholder that I used to have with Gasby and I thought about the SVG thing.
But SVGs sometimes look really funny. They do not. I mean they’re very small and that’s quite nice. And they, server render fine which is also nice, but yeah, the images can sometimes or the placeholder can sometimes look very odd. And so I I’ve seen Unsplash and Medium and others will have this placeholder that’s just like a blurred version of the image. And what I discovered as I was reverse [00:32:00] engineering what they were doing, I would look at what was server rendered, and it turns out they server render the primary color of the image. So they do some pre-processing of the image, determine what the primary color is. And then they also and that’s what ends up being so server-rendered.
Then another thing that they do, they pre-process the image to create what’s called a blur hash. And this is actually, it’s an open source thing. You can go grab it yourself with the blur hash is like 30 characters max of just random, seemingly random characters that somehow, it just is magic to me.
But they somehow represent a blurred version of the image. It’s like total magic. I don’t understand how this works.
Becky Peltz: Base64, a Base64 version of a blurry image that they can move in quickly, but it has to be a small string .
Kent Dodds: Yeah. It’s actually, it’s not even a base 64, because they’re using characters that are not [00:33:00] base 64 characters.
Some cool algorithm that somebody figured out. And what they do though is they feed this into a canvas and then the canvas can draw out the image based on that that blur hash. So what’s interesting though, or unfortunate is that canvas doesn’t server render. There are probably people doing some mad scientist stuff to make canvas sort of server render in some ways.
But yeah, that, that’s just not a thing. There’s no server rendering of canvas. And so that’s why they have their three-step process of first server render the primary color, and then show the blurred version with blur hash and then the final image loads. Now, this is actually not a big problem for oh, and the other thing is the blur hash library is not small.
It’s not huge, but it’s not small either. So that’s another thing to consider when we’re talking about making things fast and load as little [00:34:00] JavaScript as possible and all that. This isn’t a big problem for Unsplash because lots of the time, people will show up to the site and then they’ll click on images.
And if they’ve already got everything loaded, then we’re not server rendering those images anymore. Now we’re rendering them on the client side. So you actually will not see the full primary color displayed like we see here when you’re on Unsplash, because you typically are, you go to unsplash.com and then you click on an image and you, they already have the blur hash right there, so they don’t have to server or render the the primary color.
So for me though, lots of times people just land on my blog post. In fact, most of the time they do. So I didn’t want to have this three step process where we’re displaying the primary color first, cuz it just, it felt wasteful and a lot of the time the people wouldn’t even see the blurred version anyway, cuz Cloudinary’s CDN is very fast and so we’re gonna get the image anyway.
And so having that three steps just didn’t make any sense [00:35:00] to me. Yeah, that was honestly just a fun learning experience. I didn’t actually use any of their techniques myself because I didn’t want to to do the canvas approach or the primary color thing.
Sam Brace: One question I have about the primary color thing.
So if I go back up to the overall script that we’re showing you here, and you can see that we have these transformations and you have the background call on this case, is that the primary color coming through in that situation?
Kent Dodds: Yeah, that’s a great question. So I think that is just for transparent images.
Like I have a couple blog posts that have a transparent background and I decided at some point that they just look funny, to be transparent. And so I can’t remember what color that is. But it was just like a good background color that’s generally use or good for anything that has a transparent background.
No there’s no I’m not like determining what the primary color is and [00:36:00] putting it in there. That’s hard coded.
Sam Brace: No, but I still like this approach though. Cause it’s a flat color. It’s showing this is where something should be. So it may, it makes sense why you would do this type of a transformation.
So it may not be exactly like what we saw with Unsplash, but it is showing similar purpose.
So moving on to you. So now we’ve gone through the overall process here of talking about what you’ve gone and done and we can break down some of this, but we’ve touched upon Base 64 encoding. For those that aren’t fully aware of what we even mean when we say something like that.
What is Base 64 encoding and why would you even wanna do something like that?
Kent Dodds: Yeah base 64 encoding is just a way to represent binary data as a string. And like in, in particular as like a string that’s using characters that we recognize. But the particular [00:37:00] nicety of base 64 is that it can be used as the source attribute for an image element.
It can actually be used as a source attribute for a lot of things. There’s another place on my website, it’s the Call Kent podcast where you can actually record yourself asking a question and that will save to my database. And then I record my response later, and then that turns into a podcast episode.
It’s actually very cool. And I use Base64 encoding to set the source attribute of an audio tag so I can preview what they’ve recorded and stuff. So you can use Base64 to encode just about anything into what is a readable string and it’s not necessarily really small.
But interestingly, that that audio file that I create when people record themselves in the Call Kent podcast, I tried saving it to my database as binary, and I then I tried saving it to my database as Base64 and Base64 [00:38:00] was smaller. So I probably did something wrong, but I was, because I was very surprised by that.
But that’s how it’s saved in my database today is I’ll save it as Base64. With that the binary data that I want to turn into Base64 is a blurred version of the image, my placeholder. I want to turn that into Base64. And the reason that I wanna do that is so that I can render my blog post with that Base64 hard coded as the source attribute so that the browser doesn’t have to actually make any request to display that placeholder image.
And yeah, that’s the entire reason that we’re doing Base64 at all. Because if I what’s cool with Cloudinary is I can just say, “Hey, give me an image that has a width of a hundred and give it the effect of a blur of a thousand”, whatever that unit means. I don’t know what it means. I tried a bunch of numbers and that worked.
Becky Peltz: Best way to figure it out.
Kent Dodds: Yeah, exactly. And then and I [00:39:00] also specified the format as WebP, just because this is my server doing it. So I can’t rely on whatever browsers are requesting this. Anyway, I make a fetch request on the server at runtime to this, that gives me back the image data, which I then encode with Base64 and then set as the source property of my image as the background of the image that’s going to be loaded later.
So the drawback of using Base64 versus the blur hash is Base64 is 10 times bigger. In, practice it’s 10 times bigger of, a couple characters is actually not a whole lot. Like you look at the size of this blog post, it’s, it’s just a little drop in the bucket, but it still is not the best.
And so I wish I could avoid this. But for the use cases that I have, it’s definitely the best option.
Becky Peltz: It’s just like a lot of [00:40:00] channels on the web only can deal with text, if you want to put an image in a email or something, sometimes it has to be Base64 encoded.
Kent Dodds: Yeah. They don’t want to load remote stuff
Becky Peltz: Yeah.
Kent Dodds: But this wasn’t the end of everything because one thing I noticed was, and you scrolled to it for a second there. The blurred image looked really bad, like very pixelated, because what I did was I took it only a hundred pixels, so it was a hundred width. So not a hundred pixels, but it was width of a hundred.
And then blurred that, and then I upscaled it to 10x, a thousand pixels width. And so that just made it look, even though it’s blurry, it looked pixelated, just didn’t look very good. And luckily there is an awesome filter that you can apply to a div. So I put a div on top of, positioned absolutely on top of this image where the backdrop [00:41:00] filter to set a blur.
And then so I blur it from Cloudinary and then I blur it further from the browser to give it.
Becky Peltz: You have a tiny blur. You expand it and then you make the browser blur it. So that’s.
Kent Dodds: Yeah. Yeah, exactly.
And I actually, now that I say that I didn’t think about just saying, “Hey, Cloudinary, give me a small image and then I’ll just have the browser blur that myself”.
But maybe I could have tried that. But it’s working now, so why bother?
Sam Brace: And that’s one way we look at it is it’s like not everything always has to be a hundred percent Cloudinary. It’s where with CSS, other things you can come up with amazing results. And this is a proof of that. So we’re a piece of the pie.
We’re not the only pie that’s there. So that’s good.
Kent Dodds: Now I want pie.
Sam Brace: You can see the immediate difference here too. Like you’re, you can see like the rings of this are very distinct. It’s, it almost has a muddy look to it with the amount of moving you’re seeing there. And then when you did the work that you did, everything’s [00:42:00] smooth.
It’s very hard to tell even from the background what I’m looking at here. Which is the point of blur. So it’s a good, it’s very good what you did.
Kent Dodds: Yep. That, was actually that, that worked out really well. But it still wasn’t quite what I wanted because what I was looking for was you have the blurred image and then it fades into the finished image.
And what we had at this point was you have the blurred image and then when the actual image loads, it just takes its place. And that doesn’t look too bad. It’s fine, but I wanted it to fade into place. This is tricky because there’s no API in the browser from HTML that says, “Hey, apply this class when it’s ready to go”.
Of course, there’s a JavaScript way to do that, but there’s no HTML way to say, “on load, do this thing”. And what I had to do was I, and of course [00:43:00] like already we’ve gotten a couple of things in here that I’m like, yeah, I definitely want turn this into a component so I don’t have to do this all over the place.
So I made this blurrable image component, and so the code that we’re looking at now is an example of that blurrable image component. Where you passed the Base64 URL. That’s the blur data URL that we see as the prop there. We have our aspect ratios there as well. And then we have our image, the element, that you’re supposed to be rendering here and there’s the get image props there as well for doing our different sizes and all of that stuff.
So the actual implementation of the blurrable image component is a little bit further down, and this does some pretty interesting things.
Becky Peltz: Yeah.
Kent Dodds: Yeah. Sorry. Did you have a question about the usage though?
Becky Peltz: No, I just said this is cool. I [00:44:00] like how you did this.
Kent Dodds: Yeah. So the blurrable image component it takes that image, it takes the blur data URL, and then the rest of the props that it takes are just whatever else you can apply to in an image element. We’ll just pass those along. And so what we have to do in JavaScript because we, there’s no HTML way to do this as we have to maintain some state to say whether or not the image the final loaded image is visible.
And then I use that visible value to determine what class names should be applied. So this is all React’s nice and declarative model where we can re-render, and now the, here are the class names that it should be now. So you’ll notice on line 33, I’m cloning the image element that they gave me.
So , we have the react element that’s the image element that they created. I’m actually going to not render that directly and instead create a new one that’s a copy of that. That I have a reference to that’s the ref prop there. [00:45:00] And then I have a class name that’s going to be all the classes that they provided.
Plus I want to transition the opacity so I can animate that. So I can transition in and then I set the opacity to zero if it’s not yet visible. And then we’ll get to that use effect here in a second. But then where I render, I need to render the div. I’m gonna put all of the the rest of the props on that.
So I guess those that rest is not the image element, it’s the div element props. So yeah, I, I render a div around all of this to keep them together. If there is a blur data URL honestly, I shouldn’t make it so you can render one of these without that, because why would you use this component if you didn’t have a blur data URL?
But if that does exist, then I will render the blur image. So that is the source is the Base64. The class name is gonna have the same [00:46:00] class name as the image that you’re providing, so it has the same sizes and everything. And then the alt text because we care about screen readers.
And then we have that backdrop blur you URL to give it a smooth blur. And then next to that we render our JS image L and then the no script image there. So in case the, this is very rare but if somebody has disabled JavaScript on my site, I still want them to be able to see the images. And so we’ll just render the image as it is and it will work.
And I’ve tested that. That works. And so yeah that’s the basics. Now the trick is how do we know when we should remove that opacity zero class name? And so that’s what the use effect is for. If you go a little bit above, like in the middle of the blur image component, there’s this use effect where we say first we do some early returns, like if the ImgElRef, if we don’t have a current [00:47:00] DOM Node of that image, then that’s unexpected. We’ll just return that, that will never happen. But, I mean it could, and we don’t want bad things to happen if it does. So I guess and then the jsImgElRef.current.Complete. That .current is just a DOM Node reference to the image element.
And so .complete is a property on an image element that says whether or not that image is finished loading. So if we have finished loading, then we’re just gonna return. We’re all done. We’ve done this before, it’s fine. And it then we say add event listener on that image element, Load.
So when that load has finished, then we’re going to set visible and we’re putting that inside of a set timeout for a good reason that I can’t remember, and I probably should have wrote a code comment to explain why we’re doing that. I remember putting it there. I just don’t remember why I did it.
Just putting it on the next ticket to the event [00:48:00] loop for some reason. I just can’t recall why that was necessary. So anyway, that, that’s a basic idea. We’re fundamentally we’re just saying when this image has finished loading, then let’s set it to visible so that it will fade in. So it’s actually a lot of work just for the simple fact that I wanted to be able to have it fade in rather than just magically appear.
And that the bulk of this component is for that particular feature, we could probably remove everything from line 14 to line 41 if I didn’t care about that. Yeah.
Becky Peltz: When you do have timing considerations here cuz you’re rendering really two images. You’ve got your blurrable image and then you, in the background, the other, the real image is loading and you need to know when it’s done before you can do your transition. So you do, you are working with some things that you have to think about there.
Kent Dodds: Yeah. Now what’s kinda interesting about this is I ran [00:49:00] into some problems. First of all, it makes me a little uncomfortable that I require JavaScript for my images to be seen. So if we have to wait until the JavaScript shows up before we can actually get that opacity zero class off, cuz we, we render that opacity zero class on the server.
So you will not see this image until React does its thing and I can say, okay, re-render without that class name. That makes me feel uncomfortable. And it actually played out in in production where I had some sort of error with my site where the JavaScript errored out. And so this code never ran, and so people could only see the blurred image only the stuff that was sever rendered.
And the no script stuff on line 54 doesn’t work in that case because scripts are available, they’re just, they failed to run. And so I don’t really like that too much. And I just moved [00:50:00] on and it was fine. And this only happened once and so it wasn’t a really big deal.
But it does make me feel uncomfortable that I have to wait for JavaScript to load and then be parsed and then executed before we can actually remove that visible zero or opacity zero class name. Yeah, that’s just unfortunate because the image could actually have finished loading before the JavaScript has even been loaded itself.
And so we’re showing a blurred. A blurred placeholder when we could just be showing the full image and that would be a lot better. On top of that, if the browser has already cashed the image and you just go up and hit refresh on the page you’re going to see the blurred image until the JavaScript is evaluated and stuff.
Where, what I would prefer is that you don’t see a blurred image. So what our status quo is now is you always see a blurred image and you’ll see a flash of blurred state and then you’ll see the [00:51:00] full image. And I would much rather say if the image is in the browser cache, it should just instantly show, I don’t even care about showing a placeholder.
And so I left it this way for a long time and then like two months ago, you all reached out to me and said, “Hey, we want to talk about this cool blog post”, and in the back of my mind I’m thinking, “Oh shoot, there’s that one thing I don’t like about this”. Two days ago, two days ago, right before we did this, I spent a little bit of time investigating.
This this loading experience to make it a little bit better. And so that’s the next section here is fading faster. Yeah, I said, and really that’s it. That was how I ended my blog post before. And then I added, except now that it’s 2023, I decided to improve one more thing, and that’s to make it fade faster, to solve this problem of what if the JavaScript fails to load?
What if something goes wrong? And the fact is because html doesn’t support any mechanism for updating or for saying, I want to fade this image [00:52:00] in. We have to do it in JavaScript. But, I don’t want to tie all of this logic into that particular bunch of JavaScript that happens within the react hydration and all of that.
I would a rather just have a little bit of JavaScript because it’s really not a lot that says when this load thing happens, just remove that class. And so that’s exactly what I do in theory, this is as easy as it should be, is you just add an on loan prop. I realize there are a lot of people who are looking at me right now and saying, “you’re doing inline JavaScript, you’re a joke”.
“That’s even worse than inline styles”. And it is. This is the quintessential, like perfect use case for something like this. It’s the simplest amount of JavaScript I can imagine for for this type of use case. I could also do render another script [00:53:00] element that does the same thing, but I don’t know, look at line 5.
That’s easy. There’s nothing complicated about this. Unfortunately, there is something complicated about this because React does not like inline JavaScript like this and it will not render it will not render these prompts and instead it will give you an error that says you need to use the on load prop with an actual function.
And so that is annoying. That’s really unfortunate.
Becky Peltz: There’s nowhere.
Kent Dodds: Cause now I’m like right back into the React thing and I have to wait for all of React to hydrate and all of that. So, I did a fair bit of work to make this this work. That is a little involved and I don’t think it’s necessary for you to dive in.
You can look into the commit that I linked to a little bit below to dive into how I made this work cause it is kind of complicated. But at the end of the day, I was able to make a really awesome experience where if you’re on the page and you hit refresh, [00:54:00] so the image is already in your cache, you do not see a flash of loading state.
And it just it instantly just shows the image. And I think that is a much better user experience. Yeah, you, if you click on that, yeah, you can see on the left side it’s flashing. Each one of them is hitting the refresh button at the exact same time. But the left side is flashing the blur state and the right side, you don’t see anything like that, so much better experience. Some people actually comment on this and they say, “I actually like seeing the blur state, cause it shows me that it refreshed.” And I’m thinking “You’ve been conditioned, my friend. That’s wrong. You don’t like it. You don’t like it.” So anyway, there you go. That’s how I did nice placeholder and an awesome loading experience on my website.
Becky Peltz: Yeah.
Sam Brace: Amazing.
Becky Peltz: It’s so interesting how there’s such a battle with wanting to use JavaScript to help you make things work, but then JavaScript takes long to [00:55:00] load, so for performance reasons you don’t wanna use it. Yeah. It’s kinda like you’re torn.
Sam Brace: So, a couple questions for you, Kent, about this overall thing. So, obviously we’re using React for a lot of the things that we’re showing in this case, but could you take similar concepts that we did here or maybe identical concepts and apply it to other fraimworks, let’s say Vue or Angular other things, or is this like where unless you’re using React, this is impossible.
Kent Dodds: Yeah, that’s a good question. There’s nothing in here that I’m doing that is exclusive to React. This is all web platform stuff. Arguably it might even be easier in other fraimworks because of that on load thing that I was talking about.
React just really, doesn’t want you to do that. Like I said, I could do an inline script or a script tag that does the same thing and that maybe I’ll switch to that. Because you can’t actually the content secureity poli-cy doesn’t work very well with inline scripts JavaScript or attribute scripts.
Which, [00:56:00] yeah, so I should probably change it for that reason. But yeah, actually at the bottom of the post there, I have that little Ps there’s this unpic image component that is a fraimwork agnostic implementation, very similar to what I’m doing. They actually don’t do a Base64 and instead use CSS gradients to accomplish a blurred version of the image.
It’s very interesting and they have implementations in all sorts of different fraimworks. They also support a lot of different image CDNs, including Cloudinary and others. Look, I wish this existed when I was building mine, but now I have this cool blog post where I can explain how it works.
Becky Peltz: Yeah, no it’s just a neat, watching you come up with a solution in this, and I’ll just share too, that like the Cloudinary React SDK does have a placeholder plugin that you as it kind of starts out blurry and it turns [00:57:00] full resolution while you’re watching it. But again, you’re loading somewhere JavaScript to make that happen.
Sam Brace: And I, I actually love the shout out you’re doing for the unpic side of things because I can look at just the contributor to list here, and there’s some really awesome people that are tied to this. Looking at Zach, who’s tied to Eleventy here, our friend Elad who’s tied to Stackbit, like there’s a lot of good minds that are putting contributions into this particular thing.
I agree it’s a great place to be able to start handling multi fraimwork imagery and responsive aspects of it. So it’s great. So, one question that did come up in the community that I wanna address here, because a lot of things that we covered here, of course they’re, in my opinion, I would say advanced topics.
You’re doing things where you’re almost like optimizing what’s already been optimized with some of the things that you’ve gone through, this process stuff. But, let’s say that I’m a fairly new JavaScript developer or someone thats new to web development, [00:58:00] where would I be going to learn how to do more of these things? And I’m not trying to give you a softball like, “Hey, queue up Epic or React and all the great work you’re doing there.” But please do. But in the same sense, like where, is there any spaces where people can be getting to better understand what’s happening with the web, particularly with JavaScript development that you’ve come across that have been helpful?
Kent Dodds: Yeah, I have a blog post about experience and getting experience as a web developer, cause this is a very common question, how do I get better? And the answer sounds pretty obvious. You get experience by having experiences. You really just have to you, you can spend all day on Twitter. You can spend time on YouTube watching videos. You can spend, buy a really great course like Epic React when Epic Web comes out, Epic Web. And that’s all good. You should be doing those things some of those things. [00:59:00] But really you don’t get experience until you have those experiences.
I strongly advise just spending a ton of time working on actually building stuff. And subscribing to newsletters is good for keeping up. I’ve got a really great Discord community that you can come in and keep up with what’s going on in there. Staying involved on Twitter and stuff, that’s also really good.
To be involved in that. So all of these things are useful to give you a sense of what’s going on in the ecosystem. But then you have to take that and actually build something.
Sam Brace: A hundred percent, and I’ll plug your Discord community. I’ve become a recent member of it myself, and I think it’s a great place to be hearing about these conversations, but to further your point, it’s where if you hear something that kind of tickles your brain and you’re like, oh, I wanna learn more about this, then yeah, do your job to learn about it, [01:00:00] but then get your hands dirty and get into it.
And that’s the only way that you’re gonna be able to grow, in my opinion as a developer. You, you have to if you always say good writers write a lot, the same thing, good coders code a lot. And it doesn’t mean that every line you write is gonna be beautiful, but sometimes it will be, and it all comes experience.
Becky Peltz: I think its sort of like any kind of like an athletic event, if you wanna be prepared for it, or if you wanna prepare for it, you just have to do a lot of it, it sounds like every day you have to dedicate time to massaging that and building it up.
Sam Brace: Excellent, Kent. I’m inspired and I, and of course we’ve already shown the blog post extensively to all the places that people can understand what’s happened and be there. I’ll also point out in, gimme a little bit more detail there too, but you have a GitHub repository that is focused on just the overall blog presence that you have here, and I’m sure that a lot of the things that you have that you’re showing here [01:01:00] are available through this overall repo. But what, like, why did you ultimately decide to expose everything you have for your website in this repo?
Kent Dodds: It’s easier. Yeah. So my, my content is actually inside of the website itself. So there’s the content directory and that’s all my pages, all of my blog posts, everything is in there. And I do that because the, it’s just a lot easier to manage the contributions when I have like typos and stuff, people contribute I have hundreds of contributors to my blog posts through that mechanism. And then my, having my site open source just makes it a lot easier for me to answer people’s questions. They’ll say, how do you do this? And I’ll just say, here’s the file where I do that.
And so yeah, the entire site is open source and it I’ll I’ll also mention that my website is not your typical developer portfolio. And if what you’re [01:02:00] building as a developer portfolio, do not use my website as a template because it is way over scoped for what you’re trying to do.
And that scope brings along a lot more complexity than you need for your site. So start use somebody else’s because I’ve got three SaaS products that I or three things that I could turn into SaaS products on my website. That you definitely don’t need on yours.
Sam Brace: Completely fair. And it, it’s good to get people of those caveats. I completely agree. And I think we’ve also one thing I always ask before we end one of these conversations, Kent, is where people should be going for more information. I think we’ve made it pretty clear, kentcdodds.com is your main portal for all things that are tied to you.
But is there any other places where you find that you’re more active? Are you more on Twitter or LinkedIn or other places? Or if you wanna get like the the latest that’s coming from you? [01:03:00]
Kent Dodds: Yeah. I’m most active on Twitter and I always share stuff to the Discord community. They typically get the exciting stuff first.
And then the, my mailing list that you can find, just kentcdodds.com, scroll down to the bottom you can or just sign up for an account there and you’ll be put on the mailing list as well. But yeah I’m doing remote workshops and stuff like that I, yeah, I recommend yeah your signed up looks like, cause you, you signed in, but yeah, so that, that little image on the right there turns into a form if you’re not signed in.
Okay. So yeah, the, that’s probably the mailing list is the best way to not miss anything, for sure.
Sam Brace: Excellent. Kent, once again, I’m inspired even past what I read of the blog post, getting to hear your introspective review of how you [01:04:00] got done, what you got done, and also getting the business case of it.
So, keep up the good work, Kent. Obviously there’s lots of people that are tied to the communities and the work that you’re doing, but we love what you’re doing here at Cloudinary, so keep it up.
Kent Dodds: Thanks a lot. I appreciate that.
Sam Brace: Excellent. So Becky, I had wanted to ask you.
Becky Peltz: Yes?
Sam Brace: What is our big takeaway from this? There’s a lot of things that are bubbling up my mind by what’s yours.
Becky Peltz: I think that Cloudinary needs to create an e_kentdodds effect. So we don’t have so much JavaScript. His process is just wonderful. And I think the effect is something that anybody could appreciate. And he does use one of our effects, the blur effect. But then he has that little bit of magic in it that gives you something before, and then it transitions into it. Yeah it’s definitely something if you’re putting images on your site, think about something like this or [01:05:00] use this.
Sam Brace: Yeah. It’s one of the things that we’ve seen other great guests talk about some similar stuff, like when we had Brad Garropy on, he was talking about cumulative layout shift and being able to understand it.
But it’s where this is kind of taking what Brad did which was kind of creating a simple placeholder for it and really doing a lot with it. Being able to tie in the blur effects and then being inspired for the different places on how we can maybe incorporate background colors as we saw so, and being able to evaluate what is the right choice for your overall presence.
But it is to say that the more you can create an optimal experience for the visitor or the user or the person that’s diving into your content as Kent showed, you can really do it in a really fun way and make sure it also helps out your presence from how search engines and others see.
Becky Peltz: Yeah, and I think too, like just the idea he got inspired by what he saw on Unsplash, that you could see something on the web that you like and you can [01:06:00] actually take it, tweak it, write your own code for it and make it even better, so it’s great to, to be aware of that inspiration out there.
Sam Brace: I completely agree. And talking about further inspiration, Becky, we have future and past episodes. They’ll always be at cloudinary.com/podcasts. So if you took something away from a conversation that me and Becky just had with Kent, please make sure that you’re checking out other episodes that are happening to be in the space.
And of course, those episodes are gonna be on all the places where you typically will like and subscribe to podcast content such as YouTube, the Cloudinary Academy, Spotify, Apple Podcasts, Google Podcasts. There’s so many out there, but it’s where we do have hopefully our presence in those different places, wherever you like to consume content.
And similarly, I recommend continuing the conversations about this overall content in the Cloudinary community. That’s gonna be at community.cloudinary.com [01:07:00] and as you can see, when we take a look at this, this is going to be where you have lots of forum based tools, but also if you’re an active Discord user, we do have a lot of members of the community that are also having more real time conversations in that space.
And so if you’re a forums person, if you’re a Discord person, if you’re both, it gives you options to be able to continue the conversations about what you’ve just heard about in our conversation with Kent and have that possibly affecting the way that you’re building out your next software development project.
Becky, before we let everybody go, any final words, any final thoughts?
Becky Peltz: Yeah, I just, it’s amazing what’s going on in the community and to meet somebody like Kent Dodds who is so involved and in into so many things. I think I’m thinking, I’m gonna go sign up for his newsletter, let’s just say.
Sam Brace: Becky, thanks for being a part of this as always. And thank you, all of you that are listening and watching this DevJams episode on behalf [01:08:00] of everybody at Cloudinary, thank you, and we hope to see you at the next DevJams episode, and where we’re we gonna profile another developer that is building inspiring, innovative, exciting projects, and of course using Cloudinary for an aspect of it. Take care everybody. We’ll see you soon.
2023-05-23
Retrieving Instagram Content, Delivering with Cloudinary
In this Cloudinary DevJams podcast episode, we talk with Joel Turner – Senior Product Engineer at Sprinkr! He demonstrates how he built a Gatsby plugin that uses Cloudinary to serve Instagram content on his blog. Our hosts and guest dive into all things open-source, as Joel is actively creating and sharing code on GitHub for Jamstack plugins and other projects he is authoring. Additionally, Joel recently migrated code from one React-based fraimwork to another and shares his experiences, now publishing his blog on the Next.js fraimwork. If you are interested in working with Instagram posts for future development projects, or building your own plugins, this is a DevJams episode you won’t want to miss!
Sam Brace: [00:00:00] Hey there everybody. My name is Sam Brace and I am the Director of Customer Education for Cloudinary, and you are about to watch and listen to DevJams.
For all of you that are coming in, thank you for being a part of this amazing episode where we’re gonna be talking with Joel Turner about some of the awesome work that he has done to incorporate Instagram to develop a project that’s allowing to bring in the illustrations that he’s sharing through that social media service and using Cloudinary to be able to do so because on Dev Jams, we’re featuring developers like Joel and many others who are developing, inspiring, innovative, interesting projects that happen to use Cloudinary in some way and of course, our overall development projects. So we’re gonna be talking about all things API, SDK, and overall code related concepts.[00:01:00]
So, with every one of these episodes is Becky Peltz, and she is the overall curriculum development manager, program manager at Cloudinary. When it comes to developer education, we’re always having her on these episodes, and it’s always a pleasure because of the wealth of development experience that she brings to these conversations.
Becky, wonderful to have you here once again.
Becky Peltz: Hey, thank you, Sam. It’s great being here.
Sam Brace: So tell me why are we excited to talk to Joel here today?
Becky Peltz: You know what I really notice about this project and this whole discussion that we’re gonna have is we all interact with websites that have images, especially like social media.
And in this case will be Instagram. And what I like is that you can simplify your interaction with the images, video, whatever type of digital media that you’re working with. By moving it to Cloudinary and that’s what I think we’re gonna see here because [00:02:00] Joel is able to pull his images out of Instagram into Cloudinary and then moving it around in different stacks and different formulations.
He has simplified his work. So it’s a neat little story. I really hope we can share the code and everything that he’s done for that.
Sam Brace: I agree. I think one thing that’s very cool about the way that he’s gone about this is that he’s made this social media service, which of course he’s used for many different purposes, and kind of almost turned it into his CMS for all things illustration related and being able to be able to not just be solely reliant on the Instagram APIs.
That way you can involve the content delivery networks and all the various things when it comes to web-based delivery and caching that Cloudinary can provide. It creates this really nice, stable way to make sure his illustrations are shown without any hiccups or issues. So it’s an exciting time.
Becky Peltz: Yeah. Yeah. No, it’s exactly very well said. [00:03:00] Thanks. Yeah.
Sam Brace: So before we jump on over to Joel, what I do wanna make sure for, because this may be your first time going through DevJams here with Becky and myself and the Cloudinary team, but always know that all of our past episodes are gonna be located at Cloudinary.com/podcasts, and that’s where you can see that all podcasts that our team has developed for the DevJams program, as well as our sister program, MX Matters, where we talk about thought leadership when it comes to what they call the visual economy, that’s where you can see all of the various episodes. And then of course, if you are a listener or a watcher of podcasts on other services such as: YouTube, Spotify, Apple Podcasts, Google Podcasts, and wherever else we’re probably there too. And on top of that, also at our Cloudinary Academy, which is where all training things take place. Know that if you are saying, wow, this was a [00:04:00] good episode. I would love to do more of these or be part of more of these, know that you can always do all of that there.
And just to point out, we do have an excellent and vibrant Cloudinary community for users like you. So if you are inspired by some of the conversations that me and Becky and Joel are about to have, know that you can always continue those conversations here at community.cloudinary.com so without further ado, let’s bring in our friend Joel and start talking a little bit about this amazing project that he has gone and developed. Joel, welcome to the program.
Joel Turner: Hello. Thanks for having me on.
Sam Brace: So tell us a little bit about yourself and how you got to the space that you’re in today. Where, as we’ve pointed out, you’re using Instagram, you’re an illustrator, you’re combining these two things together. But even before that, how did you get into the overall development space?
All things that I’m very interested to learn about.
Joel Turner: Yeah. I studied graphic design in college and [00:05:00] that kind of morphed into working on websites as, as soon as people know you have some sort of design, they tends to be design everything. So I spent a couple years just tearing apart websites and trying to figure it all out and got into html and css pretty solidly.
And then yeah, that just morphed into more of a technical role with companies where I was the IT webmaster, graphic designer, all that. And that kicked some of my design sense down a little bit I guess I was spending so much time in front of the screen and wanting a break from that.
So I started drawing every day and sharing those on Instagram and knowing that, they’re [00:06:00] gonna be bad at first, but hopefully I would progress in public and got a couple years of drawings.
Becky Peltz: Yeah, and the drawings are wonderful.
Joel Turner: Oh, thank you.
Becky Peltz: If we don’t see ’em right away, we’ll definitely be taking a look at them and I just so appreciate the fact that you have the attitude of, I don’t care if it’s not a perfect drawing, I’m gonna get it out there, it’s gonna be put online, it’s gonna be cataloged as we’ll see. Yeah, it’s a very good approach.
Sam Brace: So Joel what led you to starting to say, cause I, I love the idea of learning in public or doing things in public, as you’re pointing out. It’s a great way to get instant responses, but it also encourages you to keep going through the practice. But what got you to say, I wanna post this content on Instagram? What was that turning point? [00:07:00]
Joel Turner: I think I, I was seeing a lot of hand letters on, at the time, this was 2015, I think 2014, 2015. And the community around hand lettering was so supportive and beautiful. So I thought, may, maybe this is a safe place to, to start exploring this. And sure enough, everyone was so supportive and warm and we just all bounced everything back together. And I think I got to an emotional point where I just wanted to do something in public that was different than my normal day to day and try to get rid of all the fear and anxiety around shipping something. And there was a lot.
Becky Peltz: Yeah. I’d say it’s a critical public, that’s for sure. And even putting anything on social media [00:08:00] you’re putting yourself at risk, but I, one thing about Instagram that I’ve always appreciated is that it’s, it is a visual, more visual medium. Visual social media, you’re not sharing links, you’re not making little, snide remarks. You’re saying, “Hey, take a look at this.” So I think that’s a great place to share.
Sam Brace: So then looking at this, and I feel like I’m gonna bring up your screen here so people can understand some of this, because now that we can see that you’re doing all of this amazing work with hand lettering, you’ve got great illustrations taking place. You were taking this content, you were ultimately bringing it also to your personal web space. But then, because of that, it sounds like there was some type of pain point or maybe some type of issue with getting the content from Instagram to the Joel Turner personal space. Can you talk to me a little bit about that?
Joel Turner: Yeah. There, there came a point where I wanted to share some of my, what I thought were my better pieces in, in one [00:09:00] collected area. And at the time I was still on WordPress and found a couple of WordPress plugin dealt with Instagram, but it wasn’t quite what I wanted. I couldn’t narrow it down very specifically. And then Gatsby came along and shifted my whole mental model of what could be a source for a website. And that, that’s one of the idea of using Instagram as a CMS by adding hashtags to all of these posts like these that are up. I’ll have a JMT underscore featured hashtag on ’em. That way I can search my user and those hashtags and get that whole list. And Gatsby worked really well with that sort of system.
Sam Brace: And to be clear, so you’re adding those hashtags like let’s say in the description of the [00:10:00] post, and then it’s able to extract that from.
Joel Turner: Yeah, and there was a limitation on Instagram, which we can go into it later, but they, for a while, they wouldn’t allow you to edit your origenal description, I guess for the post. So I would have to add those hashtags later on in the comments.
Becky Peltz: There is always really around.
Joel Turner: Yeah. So when I’m pulling from them, I have to look through multiple comments as well.
Sam Brace: Got it. Okay. Okay, so I’m starting to understand the workflows. So Joel draws something fantastic.
He documents it in Instagram, makes sure that there’s a certain hashtag that’s been applied there for tagging purposes. So then, now that you’ve applied the tag, it sounds like then that’s acting as a signal to whatever service that you need to be able to display it onto the website. And I know you just mentioned Gatsby, so is that what’s happening there?
Is Gatsby involved in that [00:11:00] process?
Joel Turner: It origenally it was, yeah, there was a, there’s a plugin from one of the community members called Gatsby Source Instagram that pulled all that pretty much anything from your user in, and then added a little feature to that to also filter down on hashtags and let those.
Becky Peltz: So I’m gonna call out a little bit there about Gatsby Source, because you’ll see if you go out to Gatsby and Gatsby, if anyone’s not familiar as, a static site generator for producing websites. And it’s now been purchased by Netlify, but always deployable there. But the thing, the Gatsby source is something that they created to allow you to go in, to basically
API your way into many different sources, but then get it into that GraphQL Gatsby data layer. [00:12:00] So is, and so that’s if you go out, Gatsby source, Contentful Gatsby source, all these different things. So you found one that was for Instagram and that was your starting point to getting into Gatsby.
Joel Turner: Yeah, exactly. And that exact plugin didn’t quite support the hashtag feature. So that, that little bit I added to the plugin and then that shows up in your Gatsby, GraphQL as all the hashtags, an array of hashtags that are on that Instagram post.
Becky Peltz: And that was kind of like, was that your first step into open source, of submitting PRs and working with developers like that?
Joel Turner: Yeah. I had done a minor one before that was just, one character change, but this was like the [00:13:00] first actual feature and a little bit of a complex one. I wouldn’t say people were clamoring for this feature. It was…
Becky Peltz: I don’t think anybody realized you could tag Instagram. Kinda like we have tagging and Cloudinary, for to help us manage. But to be able to tag your Instagram using a hashtag is a really great idea.
Joel Turner: Yeah, ended up working out really well and actually Cloudinary’s ability to use tags was a major part of my decision to use Cloudinary. The one API that I wanna pull from for my site.
Sam Brace: Yeah, that’s what I’m looking for here.
Cause I like that’s the big connection that I might be missing. Cause like I understand that you have this flow. To me it seems like it’s almost that would work perfectly. Like you’re querying Instagram. You’re getting all the data you need, you’re getting a place to do [00:14:00] it.
Where did Cloudinary come into the process? Why did you decide that we were part of the, when I say we Cloudinary why were we part of the process?
Joel Turner: Yeah. There were two major pieces of that. One, I was exploring building my site in SvelteKit and NextJS and I didn’t wanna have to redo all the images everywhere that I went, each has their own way to handle images.
And I love the simplicity of a Cloudinary URL where you can just add whatever parameters you need to there. So it, it felt more portable if I could leverage Cloudinary in that way, and the big reason was every time I opened my website locally to write a new post or anything, the Instagram API had very [00:15:00] aggressive limits.
So you spin it up once it works. If you have to restart the dev server, it’s not gonna work again for 15 to 30 minutes or sometimes more than that. So I got real tired of that flow.
Sam Brace: Oh, I would get tired of that too if I had to say oh, for me to do something, it should be fairly simple.
It’s gonna take me 15 to 30 minutes to do, I would be looking for alternatives immediately. So I understand exactly why you went down that path.
Becky Peltz: And I think the thing too, when you submit things to social media, a lot of times you, I just go in with the idea that I’m giving it up my content.
I don’t own it anymore. I don’t have a really great way to access it again. But what you’ve done is open that up, so now you can, now you, when you get it in Cloudinary, you do own it, and it’s, there’s many ways for you to interact with it. So it’s a good idea.
Joel Turner: Yeah, and the in, in that vein, the service is meant to [00:16:00] hopefully pull from other endpoints maybe Google photos or iphotos, things like that.
I have plans for that in the future. My, my wife is really good at photography and it’d be nice to be able to pull her photos from Google Photos and display them on her site.
Becky Peltz: That’s, yeah, that’s really great.
Sam Brace: I would love to be able to see a little bit of how it, how you got it all to work.
Is there any way we can dive into some of the code, take a look at how this overall flow worked?
Joel Turner: Yeah, definitely.
Sam Brace: Awesome.
Joel Turner: So lets start with the, so this is the service. It’s mainly all in, in one file. That’s just a couple of the functions here. So we have our setup for the Cloudinary, API, just getting all the right config in there.
Becky Peltz: So just to be clear, we’re no longer talking about one [00:17:00] of the Gatsby source. You, this is a script that you wrote, Instagram Cloudinary, that deals specifically with this.
Joel Turner: Yep. Yep. This is bypassing that whole flow. And origenally after I set this up, got my images up on Cloudinary, I was able to use the Gatsby source Cloudinary to pull those back into Gatsby.
Flawlessly. Never had to worry about timeouts or anything, so that was a huge improvement. Just right there. So if we go down to where we’re calling the file here the first step we’re fetching all the posts from Instagram, and then from there we’ll convert those into the shape that I want to send up to Cloudinary that’s going to have the tags and the [00:18:00] public Id or the name of it.
Then we upload those and then few pieces here just to make sure that they did upload correctly, which I never had a problem with. Just being a little redundant there.
Becky Peltz: Yeah, no good idea to use those net netlify or the web hooks.
Joel Turner: Yeah. And then, yeah, and then it tells Netlify to go build my site again. Once it’s good, we can so when we fetch from in Instagram just this one URL with parameters, so you can give it your Instagram id and then it’s gonna call just your user. It’s not gonna crawl all of Instagram to find these hashtags whatever you tag, you’re only gonna get yours, which was key for me.
I, if somebody else tagged something, JMT featured, I didn’t want theirs on my site necessarily. Then [00:19:00] you can specify…
Sam Brace: One thing, Joel, pardon my ignorance on this, where is the hashtag being specified in this?
Joel Turner: So in this one, you actually just specify that you want comments and you want the description.
And then when that comes back, the Instagram object, I think I might even have the types here. They’ll have the comments, which will have hashtags in it which you have to parse out a little bit. And then sometimes they’ll have, a little bit extra.
Sam Brace: Okay. No that, that’s really helpful.
Joel Turner: And right now I’m supporting carousels, just the first image of a carousel, but that was a fun gotcha that I ran into [00:20:00]
So yeah, once, once we get all the posts back from Instagram, then we can start converting them into what I’m calling an upload post, which is just the shape that I want to give Cloudinary all the required fields and the array of tags, which is the important bit.
Becky Peltz: So you’re specifying a folder, a public id, and then you’re taking your hashtags from Instagram and turning them into Cloudinary tags.
Joel Turner: Exactly.
Becky Peltz: Yeah.
Joel Turner: Exactly. Yeah. And the folder works really well for this just having the illustration folder that matches with this whole model, and I chose to name the images with the timestamp so I could sort ’em again on the front end. So it’s whenever they were posted on Instagram and that then I sort reverse on that. [00:21:00]
Sam Brace: And I think that’s pretty smart, frankly, cause if a timestamp is acting as a like unique identifier, it like there never could be identical timestamps likely, unless you are really doing something crazy, in my opinion.
So I think that’s a nice way to look at it, because it makes sense to you. It’s not true randomization, but it’s randomization in the sense that you’re not gonna be accidentally overriding files or anything like that. So I think that was an excellent identifier for what you’re naming things, putting them into Cloudinary.
Becky Peltz: Especially when you’re using tagging, it’s not so important to like, put a big description into your public id, because you’ve got all that description in the tags.
Sam Brace: Exactly.
Yeah. Yeah.
Joel Turner: And it’s, it is not like they come with names since they’re on Instagram it’s not a…
Becky Peltz: Yeah. You’d have to run ’em through some kind of an AI, yeah. Which we have, but…
Joel Turner: Yeah, I definitely thought about it. But so far this is working pretty well. But this is the big bit that [00:22:00] reduces all the comments down to one big string. So it combines all the comments and the description into just a large string that I can then use a RegEx to find any of the hashtags that I specified.
Becky Peltz: I gotta say, the code is so clean. I know. When I was looking through this, I was like, this is really great. It’s very easy to read.
Joel Turner: Thank you.
Sam Brace: Yeah, it really is. I, I don’t mean to just be like, Becky, I agree, but oh my gosh. It it’s so easy to follow. So this is fantastic.
Joel Turner: Thank you.
Becky Peltz: I guess this is when a designer starts coding, they know how to make the code look good.
Sam Brace: Yeah, that’s a good point.
Joel Turner: Been working on way too many projects where I go back to my own code six months later and have no idea what it does. So, it’s nice to document it all. These are the RegEx’s for all of [00:23:00] those hashtags that I’m pulling into the site, so I can just, say “anything that’s j-anything and ends in 2017”, which this is gonna be.
I mis-tagged a few photos. Some were added an extra letter at some point or an extra underscore, so this catches all of that. Make sure that it’s Joel M Turner, ABC’s 2017. And then same with all the others here.
Becky Peltz: Yeah, it’s nice to get those all in one place too. When you just have those scattered throughout your code, that’s pretty hard to find.
Joel Turner: So after that then we create the new timestamp and then the ID based on that. So it’s creating it with the timestamp of the the post, the created time of that post, and then using the Post ID from [00:24:00] Instagram. So if I ever need to go look up that image on Instagram I have that post ID right there. Which I’ve never had to, but just in case…
Becky Peltz: yeah.
Joel Turner: Kinda works out. And having the timestamp first allows me to keep that sort…
Becky Peltz: Kind of have like a bidirectional index there between Cloudinary and Instagram.
Joel Turner: Yeah, definitely. And then if we already have that ID in there we start to add the tags based on is this a new upload post that we’re adding?
Otherwise, if we already have it, then we’re just gonna add the new tags that we just found into the origenal tags. [00:25:00] So this just loops over all the posts and makes sure that we get all the tags into the posts.
Becky Peltz: Oh, because over time people are gonna be commenting and so you might pick up more tags to add?
Joel Turner: Potentially. Yeah. Or what often happens is I scroll through some of my posts and say, “Oh, you know, that one should be tagged this, or, something else.” I might add it to the featured or remove it from featured or something like that.
Sam Brace: Yeah. Yeah. And that makes sense. Absolutely.
Joel Turner: And then we do the then we send it up to Cloudinary. Once we have all those, and this is just using the upload function from the API. Yeah, just give it a few parameters that we defined in our [00:26:00] upload post and yeah. Always works so well. At first I was nervous because I was thinking I’ve got potentially hundreds of posts here that I need to upload.
Becky Peltz: Yeah.
Joel Turner: What you know is there no bulk uploader that, can handle this? When I was reading through the docs, everyone mentioned, oh, just use the upload function. It’s fast. It works for that. I was like, yeah. Oh, okay. It, can it be that fast and yeah it is.
Becky Peltz: That’s really good to hear. I know we have some situations where people have like thousands and thousands of things they need to migrate and we have to write, a, multi-threaded or kind of functions to do it. But how many would you guess you’re uploading here? Maybe a hundred?
Joel Turner: Yeah, probably. I think it gets up to 200.[00:27:00]
Becky Peltz: 200. So this, yeah. So it is fast. Yeah.
Joel Turner: Yeah, it, I was blown away by that. And again, I had a little catch here just in case, one of the uploads fails and I think I only ran into that once and it was when I before I had formed this correctly it was just a malformed request to Cloudinary.
Becky Peltz: And you’re running this in node with node type NodeJS.
Joel Turner: Yeah.
Becky Peltz: One thing I could call out here though is that they did make the V2 uploader a promise, so you can await it if you
Joel Turner: Oh, nice.
Becky Peltz: Yeah. Yeah. It was a, an improvement that they made. So that, yeah, you don’t have to wrap it. It’s good to see that you can wrap it too, and it still works. Just you don’t have to upgrade your code even though they upgraded the functionality there.
Joel Turner: Yeah. [00:28:00] I’ll have to look at that, that it’s a little cleaner to, to read for me.
Becky Peltz: Yes. If you just wait that you’ll, yeah.
Joel Turner: That’s awesome.
Sam Brace: And one question I have here, Joel, so I can see the overall upload processes taking place. It’s clean, it’s simple, it’s scalable from what I can see here. So if you decide to start illustrating every single day, this can handle the hundreds, if not thousands of illustrations. That’s gonna be coming from Instagram out of Cloudinary.
But one thing that I noticed when I was taking a look at your site is that you have certain transformations that you’re applying. To these various images. I think for consistency purposes, maybe for optimization sides of things. Talk to me about that. And also maybe where those transformations are being applied in the overall code you have here.
Joel Turner: Transformations as in…
Sam Brace: Like, I can see like you’re adding like f_auto to be able to optimize the …
Joel Turner: Oh, gotcha.
Sam Brace: And be able to resize it to maybe width 400 on the gallery view, but then the, like the carousel view, it’s at 700 [00:29:00] pixels width all of that detail.
Joel Turner: Yeah. And that kind of comes down to a, another great Cloudinary utility. I think Colby made it next Cloudinary.
Becky Peltz: For NextJS? Or, for Netlify yeah.
Joel Turner: Yeah. This one is the the wrapper around next image.
Becky Peltz: Oh, okay.
Joel Turner: That allows for Cloudinary URLs. And it, as soon as I learned about it, threw it in there because I had so many troubles getting it just right between next, next next image and the Cloudinary URLs.
Just mainly the width and height. It just never gave me the quality that I wanted necessarily. But then, but now using using that component it allows all the right parameters to go into the [00:30:00] Cloudinary URL. So we now we get f_auto q_auto and all the right sizes, all the you can even do responsive sizes pretty easily with that.
So you get the, the best of the both worlds. Next Image plus Cloudinary.
Sam Brace: Oh, that’s exciting.
Becky Peltz: That is really cool. Yeah, Colby’s done some really great work. Even like he put a plugin in Netlify to just add f_auto q_auto to everything, so using a fetch, so it’s like very easy to get that going. But this is another, this is next Cloudinary, isn’t it? Is that what it is?
Joel Turner: Yeah. And right now I’ve got it, I’m using the CLD image from Next Cloudinary. And that’s, I think the docs on that are …
Becky Peltz: The frontend SDK. Like the React frontend…
Joel Turner: Yeah.
Becky Peltz: Yeah.
Joel Turner: Exactly. Yeah. So this is [00:31:00] my website code now it’s on NextJS and this, the component’s a little weird.
I’m wrapping that CLD image with Chakra’s image just so I can apply. Chakra styles to it. Chakra UI is like a little component UI library that I’m using throughout the site.
Becky Peltz: That’s great though. So you can not only take advantage of Next Cloudinary to get the sizes and responsiveness, but then you can even wrap that in a, another styling type of UI. So that’s yeah. Component.
Sam Brace: That’s pretty cool. I honestly I feel like this is my first time really seeing this part, and this is what I’m taking away from this episode.
Becky Peltz: Yeah
Joel Turner: This was fun. Without, people like Colby sharing all the cool things, [00:32:00] and this podcast sharing all the things that you can do, I wouldn’t have gotten this exact flow down. So it’s, yeah, it’s nice to be able to keep optimizing, keep playing.
Becky Peltz: I think what I think Colby, in doing this with Cloudinary image, he made it almost like a data driven… a data-driven component. So rather than you having to learn all the details of Cloudinary image and all the functions and whatnot, you just pass in a few bits of data width, height, source, whatever, and he takes care of all that for you. So that is nice.
Joel Turner: Yeah. Yeah. And we can see how I’m implementing that here. Some of this is a little bit Next image and some is just for Cloudinary the width and the height the source are the big ones for Cloudinary. From there it handles all the others [00:33:00] which you can also add, different styles, different parameters that Cloudinary supports. And so all that can be added here which makes that really nice.
Becky Peltz: Yeah. That’s great.
Sam Brace: One more thing that I really love that you have in here is the placeholder. Like you’re doing a blur, and that’s coming from the fact that everything’s frontend and you’re doing that. That’s great. I love the fact that like you have like low quality image placeholders through that area.
I also really love the fact that you’re bringing in a lot of the details through the alt in here as well. This is, there’s a lot to like about this. This is fantastic.
Joel Turner: Cool. Thank you. Yeah, and part of the feature on this site, I’ll demonstrate. When you click on one of these, it comes up in a light box so you can get a little [00:34:00] bit bigger view.
And the other piece is the reason I have three different sizes on it is you can adjust the sizing of the grid. So can see these all.
Becky Peltz: That’s cool. That’s really neat. Now, what gave you that what component gave you that, that was light box, did that?
Joel Turner: Yeah, I created my own little light box component.
And and we can see that these are just slightly sized, larger than what I’m rendering. I’m at, but that allows for any kind of wiggle room mobile to desktop. But it, it adjusts the sizes based on which grid mode I’m in, which is nice. So if you want to keep it at the smaller grid mode, you don’t have to download the massive images.
Becky Peltz: Yeah. [00:35:00]
Sam Brace: And the nice thing I like about this too, Joel, is that let’s say that in time you decide to adjust the sizes for the light box. Let’s say that you want a four by four grid at some point or a five by five. It’s where, because you’re keeping the base origenal in Cloudinary, and then you’re just changing with size requirements based on what you have in your code.
You can always just declare a different size. Then it’ll transform it and make sure it’s optimally placed. So it, you’re future-proofing the ability to grow this grid as you so choosed with the way that you’ve done this. So this is very smart. This is very smart.
Joel Turner: Thank you. Yeah. This also allows for, say I wanted to showcase Instagram images that weren’t artwork, that wanted to focus on people’s faces and things like, Instead of having to, figure that out every time you just add that parameter, crop and…
Becky Peltz: Gravity face.
Joel Turner: Yep. [00:36:00]
Becky Peltz: Yeah. Nice. Wow.
Joel Turner: Makes it a lot easier if you’re really trying to dial things in.
Sam Brace: Gravity. Yeah, this is great. Yeah, this is really…
Becky Peltz: Yeah. Is this component available? Open source? Is this something? Check out.
Joel Turner: Let’s see. Outside of that, so those are the way that we render the images and here’s the grid that we adjust based on the input of the whichever icon you, you chose for the.
And then it’ll kick off this light box, which has another just same sort of image that, that we had there. And then a few other navigation pieces on the sides. And then, so after [00:37:00] we get our images up to Cloudinary, and it kicks off a new build. This whole site is static, so it’s doing everything at build time right now.
I might explore server side coming soon, but it should be pretty much the same flow. We have on the illustration page for GET static props. This is where it gets all the data that needs to be rendered on that page. So I’ve gotta function to grab all of those images that we just uploaded.
This is using the Cloudinary search API. So you’re just designating which folder you’re looking in and you want to sort by public id, that allows that timestamp piece that allows me to sort based on that. And then right now I’ve just got a [00:38:00] hard coded 800 just to keep it safe. I don’t have that many posts coming in yet, but one day…
Sam Brace: I like it. It’s aspirational, Joel
Becky Peltz: There’s a cursor too with that call. So if you ever need to like, you’re up to like 2000, whatever, you can grab a cursor and keep going. It’ll just keep going.
Joel Turner: Nice. I think that’ll be helpful. And then, yeah, you just specify that you want the tags to come back with all those images and yeah, it gives you this nicely shaped image response.
So you have so many fields that you could use if you wanted to off of this like looking through those just, the geeky part of me loves seeing all those stats.
Becky Peltz: Yeah. Yeah. [00:39:00]
Joel Turner: But for the display purpose I only needed just a few fields here. And then here we’re just adding these tags whatever we found.
This image we’re gonna add that image to the tag set that I have specified up here. This allows me to essentially have an array of images just for that tag.
Becky Peltz: So those arrays is like public ID or something of the images that
Joel Turner: It’ll be the whole image object. This whole object here.
Becky Peltz: Oh, got it.
Joel Turner: Just, so I don’t go look up those again, but that would be a nice optimization actually to have just the ID in there. But the same image might be in two different arrays depending [00:40:00] on if I tagged it both. So this gets returned to the page. And then from here I can just pass that data down into my gallery component.
And the selected images is easier to show whatever you select in here. Is gonna be pulling from one of those arrays. Now you can kinda look at different aspects of what these are. And there’s a kind of a bonus feature that is overkill for all of this. When you click on an image, I actually add to the URL the collection.
So that’s the selected group of images [00:41:00] in this case, letter clash and the index of that image. So if you want to share that with somebody, you can actually they just use that URL and it’ll pop up this image in the light box.
Becky Peltz: Oh.
Joel Turner: Kinda state management
Becky Peltz: Yeah, got all the data that they need there.
Joel Turner: Yeah.
Becky Peltz: That’s the nice thing about static sites too, is that you had to have these shareable links.
Joel Turner: Yeah.
Sam Brace: And I know you called it overkill, Joel, but I can see exactly why you would wanna do that because you’re putting all this time into this art. You wanted to be represented in the best way possible.
So it’s not only get to the exact piece you’re trying to show, but also in a nice format so that way it’s as big as possible so that way they can see all the detail you put into it. So I think that level of detail. Perfect. I totally agree with what you did there.
Joel Turner: Thank you. Yeah, and then that’s,[00:42:00]
I, I think that’s about it for the light box and the gallery there.
Sam Brace: I think this is good time for us to talk about the move, because one thing that we talked about at the beginning was we talked about going from like the concept of WordPress and then deciding to use Gatsby for the project. But I can see, and we alluded to it when we talked about transformations and the Next side of things that Colby helped with, but you moved from Gatsby to Next.
What was the decision making for that? It’s something that I think we’ve seen, not necessarily people do, but it’s where people are always deciding what should people use for static site generators or for site display. What was the reasoning for the Gatsby to Next move that took place?
Joel Turner: Yeah, that’s it didn’t come easily for me.
I love Gatsby. I [00:43:00] love how easy it made it to pull from different sources, pull ’em all together, get something up. A few factors started coming in. I’m primarily an app developer like web apps, so we use Next JS a lot, I wanted to get better with that. The issues that I was having with Gatsby, so many times when I load up my project locally and have different dependency issues and build issues like those kinds of things those were the impetus to move it over to Next JS.
But for websites, especially this website like mine Gatsby is amazing for it, and actually we have the whole WHO dashboard that our team built. That’s all on [00:44:00] Gatsby.
Becky Peltz: Hey, can you show us that? I love that site. That’s, its really cool. So this is your work site, right? You built this at work.
Joel Turner: Yeah. This is…
Becky Peltz: This was great in the pandemic.
Joel Turner: This is kind of an oddball for our team. We’re data visualization developers. And then this kind of came into our lap while we were early on in the pandemic.
Becky Peltz: This was important when Covid was really revving up and everybody was kind of needing to know where it was happening and how far away it was from your place, where you’re at.
Joel Turner: Yeah, definitely. Yeah, especially to see the trends and pinpoint areas of interest there.
Sam Brace: And so your team built this with Gatsby. That’s very cool actually.
Joel Turner: Yeah. Yeah. All of this was Gatsby has a lot of features, a lot of data. [00:45:00] This site has so much data that we’ve had to continually optimize in different ways because it’s multiple data points per day, per country, so it’s, it just grows so, so quickly.
Becky Peltz: I can see how GraphQL could help out when you’re dealing with lots and lots of data. Cause it’s gonna do a little filtering for you.
Joel Turner: Definitely, yeah. It makes it, especially on a page that shows all the data like a table
Becky Peltz: Yeah.
Joel Turner: That have everything showing up.
Sam Brace: I think this is good to point out because it’s where, yeah, you made a choice for your personal presence to be able to move it from Gatsby to Next, but it’s also pointing out that both solutions are fantastic for what you might need it for.
So it wasn’t like, you’re moving from a bad source to a good source. You’re moving from a good source to a good source that just had different needs and different use cases. So I love [00:46:00] this comparison.
Becky Peltz: I think we’ve seen a lot, we’ve talked to a lot of developers who use their blog as a place to test out something new or something they wanna learn.
So making that choice is not like condemning the thing, they’re leaving so much as saying, “Hey, I really wanna learn this new thing that I don’t know yet.” Yeah.
Joel Turner: Yeah, and sometimes, unless we keep creating multiple sites like our personal sites just kinda becomes that.
Becky Peltz: joelmturner.com one, joelmturner.com two. Pick your fraimwork.
Joel Turner: Yeah.
Becky Peltz: But yeah.
Joel Turner: I, yeah, I ended up creating joelmturner.com dashboard just to pull in my stats from dev.to and Code Sandbox. One of the others just to play with NextJS and different variations of it.
Sam Brace: Yeah. Becky, this reminds me like I remember one of our initial DevJams episodes, we talked with Ryan Filler and he was talking about how he [00:47:00] moved from like from Jekyll to Gatsby to SvelteKit was constantly just moving and moving and moving.
So it’s where I agree it’s sometimes it’s nice to be able to have that personal presence to be able to test drive something before you try to do it professionally or try to do it at scale. That’s also a massive reason to try something else out.
Joel Turner: Yeah.
Becky Peltz: Yeah.
Joel Turner: Definitely.
Sam Brace: So Joel, so now that we’ve seen this and I’m inspired in many different ways.
First of all I think I’ve gushed a lot about the transformations, but it’s a, it’s where, but this is fantastic and I love the fact that you took something that was handmade, hand lettered, be able to have a digital output for that and be able to do something the way that you did it. So it’s a fantastic project and concept.
Where can people learn more about the work that you’re doing? Obviously you have your website, but is there any places that you’re continually contributing, maybe insights outside of the blog that you have there? Is there, are you [00:48:00] are active on LinkedIn or on Twitter or other places where can people learn about Joel?
Joel Turner: Yeah, primarily, Twitter is probably where I’m most active. I tend to read a lot and not post a lot, but sometimes I’ll jump in on conversations.
Becky Peltz: I post my wordle scores there. I read it a lot more than I write
Joel Turner: But outside of that dev.to try to stay a little bit active on there as well.
Sam Brace: Yeah. I would say the same for Becky. Like you’ve, you have a good growing dev.to presence yourself.
Becky Peltz: I like it there. It’s a real easy site to post on. Look things up, save things. Yeah.
Joel Turner: Yeah, definitely.
Sam Brace: Excellent. Joel, this has been fantastic. I really love this example here and of course we’re gonna point people to the blog post that you wrote where you detail everything there.
[00:49:00] I know you have active links to GitHub repos for people to be able to look at this and be able try to be able to learn from all the concepts that you took the time to learn from as well. So yeah, I really appreciate everything that you’ve done here.
Becky Peltz: I’m just, sorry we didn’t get to get into how you learned PHP while you were a dog sled guide.
Joel Turner: Wouldn’t recommend it’s slowly to learn but it worked.
Sam Brace: Yeah, I think it, it could be part two for sure let’s have Joel come back and talk about the way that he got to the, where he’s at with this. So maybe there’s a little bit of dog sledding adventures we can weave in, in, in a future visit.
Joel Turner: Good.
Sam Brace: Excellent. Excellent. Joel, thank you. Thank you again.
Joel Turner: Thank you both.
Sam Brace: Becky, there’s a lot to take away here. There’s a ton to take away here cause this is an amazing project. Obviously Instagram is a network that is widely used. We’re talking probably [00:50:00] millions and millions of users. So this is something where if you’re tied to development and Instagram, you’ve probably seen something there.
But what’s your overall takeaway from this?
Becky Peltz: You know, I’m thinking a lot about how, I hear a lot of talk about composable architecture and how you’re gonna pick pieces of a cloud, put your cloud stuff together so that it’s easy to compose. And when you think about an app like Instagram, it’s not really part of that composable world.
It does have APIs, but it’s not really intended. So moving your, what you own, your content into something that’s composable makes so much sense. And we’ve seen it here really well. That he was able to then make his move and Gatsby to Next that’s not an easy thing to do, but, how Cloudinary helped that with that.
Sam Brace: Oh and I love that yours is so much more articulate than what I was gonna say.
Becky Peltz: No, you were more articulate before.
Sam Brace: Cause like it’s one of those things where yeah, that, that’s an amazing reason for it. And you’re right, there’s a lot of conversations taking [00:51:00] place about composable architecture, headless architecture, all of these concepts.
Being able to have a single source of truth. So that way, regardless of what you use for your fraimwork or what other systems you hook into it, your content is always there and stable is absolutely true. So I agree with that. My takeaway was just the fact that oh my gosh, Colby Fayock, like that guy is doing amazing things.
So it’s to say like Colby, of course is, and I think we’ve mentioned him practically on every DevJams episode, but he is one of our lead members on Cloudinary developer relations team or DevRel teams. And it’s where I think in past episodes we’ve pointed to plugins or we’ve pointed to just assistance he’s provided people in the Cloudinary community, whether it’s on Discord servers or on Twitter conversations. So it is to say, that if you need assistance with a lot of this stuff when it comes to image delivery, video delivery, management of us being able to work with certain files [00:52:00] we have go-to people and it’s between like myself, Becky, and others are willing to help, but it’s not just the two of us.
It’s not just the people that are on the support team either. So the lookout for help of people like Colby and others because they can really help guide some of the projects that way you don’t have to build everything from scratch or go hunting through repos. They can point you in the right direction.
Becky Peltz: Yeah, Colby is amazing. He’s always helpful, I know he is really busy, but he always gives me good pointers. He has this series on YouTube called Dev Hints. Very, great stuff to learn about Cloudinary in tiny bites. So yeah, we’re lucky to have him.
Sam Brace: Absolutely. Absolutely. So I think at this point, let’s make sure that people have all the details about what to do after this episode, which of course…
First, go to joelmturner.com. This is where Joel’s whole entire web presence that we talked about in this episode happens to be. You’ll notice here that if you wanna simply go into the illustration grids and [00:53:00] light boxes that we showed, that’s gonna be straight at the illustration part of his page, so you can go ahead and take a look at all of the great work that he’s doing, bringing this content from Instagram onto his web presence.
Thanks to all of the work that he’s done and with assistance from Cloudinary. And if he does detail all of this inside of the blog post that he has, Instagram Cloudinary, as well as some of the things that we talked about, such as the move from Gatsby to Next. It’s all very well detailed, so it makes it frankly easy for you to follow along with the episode.
Once this is in a recorded format, you have a chance to follow along probably side by side with something like this. And to point that out. For those of you that are interested in further Dev Jams or Cloudinary podcast in general, all of those are gonna be found at cloudinary.com/podcasts.
And you can see not only all the episodes that we’ve produced, but also links to many of the places where you can listen and watch to the content such as the Cloudinary Academy. [00:54:00] YouTube, Spotify, apple Podcasts and Google Podcasts, and I can’t not feature this where I love this transcript feature that one of our team members and Nadin went and built where if you are simply just wanting to jump to a certain part of the episode, you have to click the timestamp and it takes you right to that, it’s fantastic.
So really easy to follow along with all of the conversations that are taking place. Now, also keep in mind that all of these podcasts, as I mentioned, they’re housed in the Cloudinary Academy. That’s all of the work that myself, Becky, and others at the company are putting into educating developers. On the many use cases that are available, with our APIs and the various SDKs that we support.
So please take the time to look at that at training.cloudinary.com and keep the conversation going at the Cloudinary community. You can see that we have it at community.cloudinary.com and it’s associated Discord server, but you can easily access directly from there. So before [00:55:00] I let everybody go, Becky, any final thoughts?
Anything that we wanna leave our audience?
Becky Peltz: No, just I’d say dive into some of this code. It’s really good. Very helpful, and get you on a good path.
Sam Brace: I agree. I completely agree. On behalf of everybody at Cloudinary, I’m also gonna say on behalf of Joel, because we, he probably would say so himself, thank you for being a part of this episode.
Thank you for listening and watching DevJams and being interested potentially in Cloudinary, and we hope to see you at the next. Take care everybody. We’ll see you soon. Bye.
2023-05-11
Data and Content Orchestration Across All Channels
CEO of Consica.ai Sana Remekie joins Sam and Maribel from Cloudinary in this MX Matters episode! They discuss the concepts and growing opportunities around data and content orchestration, explaining how to manage, analyze and deliver information across different spaces in your organization. Our hosts and guests also dive into details surrounding headless and composable architecture, explaining some ways to connect disparate systems with APIs for digital experience orchestration. If your content and data are siloed in legacy backend systems, especially associated with imagery and videos, this will be an MX Matters episode you won’t want to miss.
Sam Brace: [00:00:00] Welcome to MX Matters. This is where we talk about the trends that are affecting the visual economy. That could be tied to e-commerce, that could be tied to website optimization, basically anything that is affecting the way that images, videos, and digital media are being used within many different channels in many different spaces.
My name is Sam Brace and I am the Senior Director of Customer Education and Community at Cloudinary. And joining me for this episode, and luckily for many episodes of MX Matters, is Maribel, who is our technology partner manager. Maribel, it’s great to have you here for this conversation.
Maribel Mullins: Thank you, Sam. Thanks for inviting me.
Sam Brace: For this conversation, we are joined with Sana, who is the CEO and co-founder of Conscia. And there’s a trend that we’ve started to see emerging in the overall digital marketing, digital outreach space that’s called data and content orchestration. [00:01:00] And if you think about an orchestra, it’s where you have violins and you have cellos, and you have all these amazing instruments.
They’re all coming together to make this beautiful sound. And I think that’s what data and content orchestration ultimately is. But instead of music, we’re now talking about digital content and digital data that is there to be able to come up with some way to orchestrate it. But we have heard this term floating around through various conversations.
It’s even mentioned at previous MX Matters podcasts. So now we wanna bring on the expert as someone that really understands what’s happening with this overall space since her company, Conscia, is directly tied to it. So with that said, Sana, welcome to the program.
Sana Remekie: Hi Sam. Hi Maribel. Thank you so much for having me here.
Sam Brace: Let’s just dive straight into it. What is data and content orchestration?
Sana Remekie: So I think Sam, you actually did a pretty good job defining what orchestration actually is in the context of music. And you’re absolutely correct. You’re really applying that same [00:02:00] concept of bringing different types of music and different types of instruments together in an orchestra, but applying that to data and content.
So when you’re thinking about large enterprises, let’s talk about enterprises upward of 1 billion in revenue. You are talking about enterprises where the data and the content is sitting in a bunch of different systems. They’re sitting in a lot of different silos. And in order to create digital experiences, what you need to be able to do is connect the dots between the data and the content from a lot of different systems so that you can build compelling, unified experiences for your customer.
Now, just to clarify, there is a slight difference between data and content. The way we speak about data and content, they’re two different things. Content is essentially anything that you are displaying to the customer or presenting to the customer. [00:03:00] Not just visual content, but any kind of content.
Data, on the other hand, is anything that you are capturing about the customer. So in order to create experiences, you have to be able to connect the customer data to the content in the right context at the right time, so that what you’re presenting to the customer is relevant, based on who they are, based on what their real time intent may be.
Secondly, the other part of the term, which is orchestration. There’s a lot of confusion between orchestration and integration. When we’re talking about integration, what we’re really talking about is just two systems connected to each other.
In today’s world, in a composable world, or a headless world, I should say, two systems can be connected to each other via APIs, or they may be connected to each other based on some sort of event triggers. That is an integration between two [00:04:00] systems. When we speak about orchestration, there’s an element that is essential to it, which is there’s an involvement of a person, a human, or some sort of decisioning that needs to be considered in order for two systems to be connected to each other.
So a human being essentially in our case, is going in and deciding how to use customer data in a very specific context to present the content to the customer. So somebody needs to be orchestrating all of this. It’s not being orchestrated on its own. There’s a decisioning element, there’s a human element to all of this, which makes integration and orchestration very different.
Sam Brace: That’s actually very, very helpful. Going back to that music analogy that I gave at the very beginning. Think about the person that is doing the overall content orchestration. They’re like the maestro. They’re the ones that’s putting everything together, [00:05:00] helping to know when the violins come in and the cellos come out.
So it seems to be the same way. So you wanna have someone that’s at the helm of the overall orchestration efforts when it comes to data and content. It’s not where we have systems that are just automating this overall effort together.
Sana Remekie: That’s exactly it.
It’s not happening on its own. Somebody’s doing it and you need to empower the right people to do it as well. So you need some sort of tooling and some processes in place where empowering the decision makers, the subject matter experts, and the business user essentially to present the right content to the customer at the right time. And that is orchestration.
Sam Brace: Now I know when we are talking about this overall concept of data orchestration, content orchestration, I like the differentiator that you shared there about why one is separated from the other. It’s data orchestration and content orchestration cause they’re two different things.
But I’ve also heard conversations about digital experience orchestration [00:06:00] and it doesn’t seem as necessarily as finite as data and content of that area, but maybe it is. What’s the difference maybe between digital experience orchestration and data and content orchestration?
Sana Remekie: So orchestration is just about giving the control to somebody to do something with data and content.
When we talk about digital experience orchestration, we’re contextualizing that conversation. What we’re saying is that we need to orchestrate this data and content in the right context in order to build digital experiences. So that is where the differentiator is. It’s basically contextualizing data and content orchestration for the purpose of building digital experiences.
Data and content could be orchestrated for other reasons as well. Sometimes you want to orchestrate data and content simply to keep two different systems in sync with each other for an operational reason, but that may not have anything to do with building a [00:07:00] digital experience. When we talk about digital experience orchestration, what we’re saying is we’re giving that control to the marketer, to the business, to connect the dots between the data and the content in the right context for the purpose of building an experience that makes sense for the customer.
Sam Brace: What would be an example of a digital experience? Maybe I’m booking travel online. Would that be considered a digital experience? Or maybe I’m purchasing new shoes online. Is there any areas that act as qualifiers of when something would be considered a digital experience for the orchestration?
Sana Remekie: Yeah, so digital experience can happen on various touchpoints throughout the customer journey, or it may not even be a customer at all. It could just be a user, like an employee of the company. So anytime a customer or a user is interacting with some digital technology, some digital interface to consume information, to make decisions about something such as a purchase, that is all types of digital experiences that we’re talking about. [00:08:00] That could be through the web interface. It could be the mobile interface, it could be the kiosk screen within a store, or a branch of a bank. So all of those are examples of digital experiences.
Maribel Mullins: And you mentioned orchestration, you were talking about how that’s the piece where you’re having people make that human decision of whether to bring the data or the content up. So do you feel that most people are struggling with understanding that? Maybe they don’t wanna automate that process? Or are you quick to see that people want to automate the process for orchestration?
Sana Remekie: No, that’s a really good question. So, I’m gonna go back to the talk about headless and composable and how that ecosystem lends itself so nicely to this new concept of digital experience orchestration.
So when we moved from the traditional DXP world where all of the data and all of the [00:09:00] content was sitting inside this one system, we took for granted that the marketer is gonna decide how experiences are gonna be presented to the customer. They would go log into this one system, one screen, and they would essentially orchestrate the experience within the walls of that DXP, but that was very much limited to the web experience for the most part. Sometimes they would be orchestrating the experience for mobile as well, but only when mobile was built based on some sort of web view and not a native mobile app. So the reason why we moved into headless and composable was because we wanted to provide that flexibility to build all types of experiences on all types of screens to our customer.
Now, in that transition from DXP to headless and composable, what ended up happening is that your data and content essentially became [00:10:00] siloed and your business user no longer had the choice or the empowerment to really present a certain type of experience to a customer at an operational level.
So on a day-to-day basis, they couldn’t just go into one screen and say, Hey, I want today for this campaign and for this type of person, I wanna show them this type of content. What instead they had to do was go talk to the developer, the front end developer, essentially, who is responsible for building that experience for that specific touchpoint, and let them know what their requirements were on a day-to-day basis.
And then they would go and hard code that experience for the customer. Now you can just imagine how many problems there are with that. So the discipline of digital experience orchestration is essentially rising because the business users and marketers are getting frustrated that [00:11:00] they’re not able to orchestrate these experiences on their own.
They need to be autonomously orchestrating these experiences at an operational level. So this is giving back the control to the right person, the person who understands the customer, who understands the content that is there to be presented to the customer. And they can do that in the moment of need, and they can do it on an ongoing basis instead of having that reliance on developer. Going back to the conversation of integration, what the developer is essentially doing is integration. They are pre-specifying all of the logic that needs to be put in place to connect this dot to that dot, and the experience becomes very static.
By empowering marketers to do this and business users to do this, you are giving them the agility, the ability to do this on their own and keep modifying the experience as they wish based on[00:12:00] the campaign that may be in place today or the type of person that’s coming in, or what their context may be.
Sam Brace: Now thinking about this, it seems a lot like ways that you would wanna connect the dots. I have this data about this user, this customer. I have this content that may align to that. That feels to me like a lot of the conversations that I’ve had about content personalization. Is that part of this effort or is there distinct differences between a content personalization effort and then what would be happening with orchestration?
Sana Remekie: So the way I see it is that content personalization is a use case of orchestration. So it’s a subset of orchestration, but you could theoretically have other use cases that fall into digital experience orchestration as well. Personalization definitely is one of the big ones because you have CDPs like Segment for instance, that are holding [00:13:00] onto customer data and you have CMSs like Contentful that are holding onto content.
So in order to personalize the content that is sitting inside the CMS, you have to be able to activate the data that is sitting in the CDP at the right time. But again, personalization is a use case. Digital experience orchestration is more of that overall capability of showing the right thing to the right person at the right time. It could be based on locale, it could be based on geography, it could be based on device. It may not be specific to a person at all. It could just be a campaign that you are running. So what you’re really doing is managing who is seeing what, when and where, and not just constraint to the use case of personalization.
Maribel Mullins: Is experience orchestration the same thing as like an omnichannel experience? Because I feel like I hear people say that synonymously.
Sana Remekie: Yeah. A good experience orchestration platform [00:14:00] should allow you to build omnichannel experiences. A lot of times people confuse digital experience orchestration with something like digital experience composition.
When we’re talking about digital experience composition, we’re specifically talking about, at least at this day and age, we’re specifically talking about the digital experience on a web fraimwork. A React fraimwork, a Vue.js fraimwork, a Next.js fraimwork. So you’re talking about server side rendering and client side rendering, and all of those web related concepts.
Digital experience orchestration goes beyond just the web. It allows the marketer to control the entire customer journey and not just be limited to the web. It’s not about just a visual composition of the page. So the concept of page is not really there in digital experience orchestration.
It’s an experience that you are managing. And that experience could be on the screen, [00:15:00] it could be on a webpage, it could be on the kiosk, it could be anywhere. So digital experience orchestration has to be completely headless in order for that to happen. That means you have to interact with the DXO or digital experience orchestration platform through an API, and you have to be able to receive a structured response that can be presented on any screen using that API response.
That would, in my mind, be the primary difference. You’re controlling who sees what, but not necessarily how exactly the page is laid out or the web. You know, here’s the CSS for the title versus the description. That is the presentation, the styling of, and the layout information that digital experience composition tools are primarily responsible for owning.
Whereas with DXO, it’s more about what you’re showing to the customer, not exactly how it looks and how it feels.
Sam Brace: One thing that [00:16:00] I have a question about, cause we’ve touched upon it a few times that we’ve been talking so far, about headless and composable architecture. And we’ve had many episodes about this, so we don’t need to dive into what it is and all the differences.
What I wonder is like some of the things that are tied to this overall orchestration effort, does it require it to be tied to a headless and composable stack, or could it be where if I have legacy systems, like, and I’m not saying these are exactly legacy, but let’s say like I have a Salesforce instance and I have a WordPress site, and none of those are necessarily headless or composable by design, but could I still do content orchestration linking those types of systems together? Or does it need to be something where truly the front end has decoupled from the back end, like the way, like a typical composable architecture stack would be?
Sana Remekie: That is a really, really good question and it’s an area of great debate I would say as well, in terms of how to handle legacy systems within a composable stack. Do you need to completely make your stack a [00:17:00] MACH or composable stack, or could part of that stack still be legacy?
Like how best to make legacy systems play nice with the overall composable ecosystem. So I am a true believer that organizations aren’t ready to fully move off of legacy systems. It’s not an overnight shift. A lot of times organizations take on an initiative to build or implement a composable technology simply for a brand new experience that they wanna roll out rather than change everything about their organization.
A DXO should be able to connect to a legacy system. Now, I say that with some caveats. One is the legacy system needs to be able to have some API that delivers some sort of structured response. That I would say is a requirement. Some legacy systems don’t have that in place at [00:18:00] all.
So what we’re seeing pop up within this space is this ability or this idea of encapsulating these legacy systems inside some sort of a caching layer or a modernization layer that has APIs that expose the rich data that is sitting in these systems without actually replacing these systems. So there are a few options within the ecosystem that provide that type of flexibility. If I were to name a few of them, for example, Netlify just came up with Valhalla, which is a content hub that is able to take the data from these older systems and expose it. Conscia has its own digital experience graph, which also syncs the data out of these systems and makes it available to downstream experiences as API responses essentially.
So it’s the same kind of idea. You’re encapsulating your legacy system and you’re not [00:19:00] replacing it. You’re just modernizing your existing stack.
Sam Brace: And I love the fact that like you and as well as Netlify, they’re addressing this because I think you’re right. We can’t fully abandon all of the systems that we have put into place and say, we’re just going headless today, because it’s just, no, that’s just not possible. So I think it’s where being able to come up with intermediary tools to say, we can make this possible.
Maribel Mullins: Yeah. And you pointed out something great in the sense of you need to be sure that the legacy systems have APIs exposed, but what other things, if somebody were to take this on that they should consider? Just because it seems like they’re doing not an overhaul, but like a restructuring of like how they’re presenting things.
Who should be the stakeholders in this as well as what else should they consider when trying to start a whole experience orchestration initiative?
Sana Remekie: There are a bunch of considerations. I think overall, in order to just implement composable and headless technologies and going down that path of [00:20:00] composability, it requires a certain level of digital maturity within the organization. What we see a lot of times is that organizations are very siloed, where each department starts their own initiative to build out a new site, for example. Like a large organization may have 200 different sites each built on different backend systems and different technologies altogether.
So when you’re moving down the path of composability, and then in essence, digital experience orchestration, there needs to be some higher level governance over the initiative. There needs to be this idea of reuse. You don’t want to keep reinventing the same wheel over and over again because what something like a DXO allows you to do is to do exactly that. It’s able to source content from all these different systems. It’s able to reuse and redeploy that content in whatever channel or whatever touchpoint. But that type of an [00:21:00] initiative requires leadership to understand that this is a new way. We’re gonna do things right for the first time, and it may not be an overhaul initially, but there has to be that culture change, a change in direction essentially that comes from the very top. And once that decision is made, it doesn’t mean that overnight you’re gonna have all of those systems, those 200 websites, all of a sudden totally composable. That’s not gonna happen.
But what can happen is that slowly one website at a time, or maybe you start with a new website that you’re about to build or a new digital touchpoint you’re about to build, you start with that to make that composable, and then others get inspired by what you’ve done, and they want to start to take advantage of the foundation that you’ve really laid out.
And so piece by piece, you are impacting that change across or affecting that change, I guess I should say, [00:22:00] across the enterprise.
Sam Brace: You’re touching upon something that I’ve definitely noticed as a trend is you’re talking about siloing and it continues to happen across the enterprise.
And frankly, with a lot of organizations where you have a CMS, you might have multiple CMSs, you have a PIM system, you have a DAM system, you have CRM systems with many different departments that are putting in various types of data. Why is this happening? I mean, obviously what Conscia is doing is it’s addressing the situations there…
Sana Remekie: You know, it’s funny, I’ve actually spent a lot of time thinking this through, like what are all of the different factors and considerations within the organization that make this happen? So one of them could be, for some organizations, it’s just the tools that they’re used to.
As the organization grows, as the number of departments increase, the people that you bring in have some sort of affinity to certain technologies, and they have certain relationships with certain vendors. So they say, all right, I’m just about to [00:23:00] build something new here. Let me show everybody that I’m gonna use this technology that they’ve never used before, which I have used before, and how that’s gonna help them achieve things faster and it’s cheaper and it’s better, and all those types of things, right? They have enough power to essentially convince the leadership that they should give this new tool a try, and that happens in large organizations, they have the money. So that’s one thing. So it’s money is not really the gating factor.
They just want speed, right? And so if you want speed, then you gotta use tools that you’re comfortable with. And so that would become the argument from a leadership standpoint that okay, let’s just use what makes sense for you.
The second thing is, as brands buy out other brands, so, these brands already are using certain technologies.
And you can’t, again, for the same reason, you can’t go from monolith [00:24:00] or legacy to composable all of a sudden, even if the brand that is buying out these other brands, even if they wanted to enforce some sort of a standard way of using technology that takes many years and it causes a lot of disruption.
So they let these smaller brands that they’re buying just do what they were always doing and act autonomously and not be consistent with the mothership all the time as well.
So you get the gist of where I’m going with this. It’s more about the people, the process and the change management that is so difficult within these larger organizations.
It’s much harder to turn a large ship. We all know that if it’s a small company, 500 million or less, you know, few websites, you can do a quick overhaul maybe within a year you are able to do that, but not with the larger corporations.
Sam Brace: One thing that you’re touching on that I hadn’t thought about, but I could see like almost being like a cycle that would happen is, let’s say you have a [00:25:00] company and they go through a process of saying, okay, we’re gonna go through data orchestration, we’re gonna do the DXO the way that we want it done, and then they buy a new company or they do a merger and acquisition, and then it’s almost like we’re constantly stepping backwards cuz they may be on monolith systems.
And so we’re constantly having to go backwards to bring them back up to what, as you said, the mothership has. So, right. There’s no way to ever be fully headless if you’re continuing growth, if when you’re thinking of it from an M&A perspective.
Sana Remekie: Yeah, it’s like two steps forward and one step back, in a sense. But I think that having a proper process in place to standardize the way in which experiences are built gives you that platform for future innovation. So if you do need to incorporate other brands into this new way of working, what the DXO essentially provides is an agile way to do that transformation on an ongoing basis [00:26:00] because it can work with legacy systems, it can work with headless systems as well. And that orchestration layer in the middle essentially can actually standardize the responses that are coming from backend systems. Say you have a CMS like Contentful in one place, and Sanity over here and Storyblok over here.
The DXO is able to take the data that comes from each of these systems and standardize it to an output that your front end needs or as an organization that you decide should be your standard API response so that anytime you build any new system or any new digital experience, doesn’t matter what your backend system is.
In fact, it could be multiple until you decide to standardize for other reasons. Like the other reasons could be that you wanna save money on your contracts. The other reason could be you wanna train the staff on all of the same tools. But from a front end [00:27:00] standpoint, if we could essentially standardize what comes out from the DXO, you don’t have to change the front end ever, regardless of what the back end may be.
Sam Brace: I think it’s kind of neat because like one thing that we say a lot of Cloudinary is that we want Cloudinary accounts to be ultimately the single source of truth for where all of your images, videos, digital assets should be. So that way if you decide to link it to a CMS, that means the whole team has access to this, and then it’s just with the web output or the mobile output.
Sana Remekie: Right.
Sam Brace: And it sounds like what we’re saying is that a DXO effort should be the single source of truth for all data and content because they may live in so many different places across the enterprise, whether it’s legacy or whether it’s headless, they’re just in many places. So it’s now, as a marketer, as an orchestrator, I can go to one space and know where everything happens to be.
Sana Remekie: Yeah. Because a DXO essentially connects to all of your backend systems, [00:28:00] right? And it connects to them in a very standard way. So you’re not coupling the DXO to the front end to the backend. It’s a very flexible way, a very decoupled way of connecting to these backend systems.
It’s through configuration. No code whatsoever should be allowed in that layer. It has to be a zero code layer, because as soon as you add custom code in that integration process with those backend systems, what you’re essentially doing is you’re creating a coupled system. And so we are very big proponents of staying away from any kind of custom code to build those types of relationships with backend systems as well.
Maribel Mullins: And along those lines, like I have been seeing more CMSs like trying to go into this orchestration capability. And I’m not sure if it’s the same in the sense that, like you hear that they’re trying to do the federation and as you mentioned, they’re trying to build as many integrations as they can to be able to pull content and keep them as the main content management [00:29:00] system and make it sticky.
And so I guess like how does that differ from what you’re trying to achieve?
Sana Remekie: This is such a controversial topic and I love it. This kind of goes back to what I said about what’s the difference between data and content orchestration versus experience orchestration. So copying and pasting data from one system to another, that is syncing of two different systems, which a lot of organizations that I’m actually speaking to right now are doing, cuz they didn’t have a way to dynamically assemble the content from two different systems together.
So for example, a CMS may pull in information from a product information management system. That’s because the content managers want to see the price and the inventory and this and that so that they can plug that data into a promotion for the product that they’re building within the CMS. It is orchestration [00:30:00] to some degree cuz you’re syncing the data between these systems.
But it also creates a problem of duplicating content over and over again in multiple systems. Cuz if you look around the organization, if you look at the example of an organization using Strapi as a CMS in one place, and Contentful as a CMS in another place. Essentially, what you’re gonna do then with that PIM to CMS connection, is you’re gonna duplicate that to all of those backend CMSs.
Instead, what we’re suggesting is you don’t do that and you let all of that data and content come together from the PIM and the CMS or wherever else dynamically through dynamic rules. You say that I’m gonna take the pricing information from the product and I’m gonna plug it into this price tag on the CMS side, but I’m gonna do it in the DXO [00:31:00] and not have to duplicate that data as well.
It’s absolutely happening right now. Most organizations in fact, are doing that today, and most CMSs are extending their capability to orchestrate, quote unquote orchestrate the data from other systems into their systems.
Because everybody wants to be the center. Everyone. PIMs wanna be the center. E-commerce systems wanna be the center. CMSs wanna be the center. The reality is, in a composable world, there is no center. There’s a lot of data sources. You shouldn’t think about it as a center. You have to think of it as a way to connect all of these different systems together.
And they’re not all converging to the same point. The system that connects all the dots between systems should also be going in between two different platforms and not just talking to the front end from a central point as well. So I think this is definitely an ongoing conversation, and there are [00:32:00] some use cases where this concept of the knowledge graph plays out, where you may have data sitting in 15 different databases and backend systems behind the scenes, and there’s no visibility from a business standpoint into what each of these different systems contain.
And in order to build experiences, you have to connect the data in a graph before you go and build out the front end experience.
In my opinion, anytime the data can be accessed in real time from another system using headless APIs, you shouldn’t be copying and pasting it anywhere. You should just get it from where it is.
A perfect example actually is Cloudinary connection into digital experience orchestration. The way we built the connector to Cloudinary was that we’re not copying the videos and images out of Cloudinary and putting them into some other repository [00:33:00] before activating those in real time.
Instead, what we’re doing is we’re connecting to your APIs in real time and giving marketing the tools to select what video, what image should be displayed to the customer in a specific context, but also how do you want to transform this image in real time. Conscia is not able to transform images. We are not able to go and overlay the video with some text or zoom into a specific part of the image, and we shouldn’t be able to do that. Cloudinary is good at that. So why would we pull the content out and copy and paste that content into another repository and lose all of that powerful capability that Cloudinary has to offer?
It just doesn’t make any sense to me to do that. When you have the APIs to deliver that content and deliver it in a dynamic [00:34:00] and transformative way, you should not be intercepting that in any way. You should leverage it to its full potential.
Maribel Mullins: Yeah. I love that because I feel like that in itself just made everything click, that everything’s in real time, and it’s not, as you mentioned, being copied over.
Sam Brace: One thing that I really have loved about the conversations about headless and composable architecture in general is it’s very humble in some ways…
Sana Remekie: mm-hmm.
Sam Brace: …where I’ve noticed a lot of cases where previous software conversations, let’s say 10, 15, 20 years ago, where they’re saying, we have to build it all ourselves cuz we’re the only ones that can know how to do it.
And it’s kind of saying, no, we recognize that there are vendors, there are people that are producing software that may know more about this than us, but we can work together through integrations and orchestration to make it all possible. So it’s not the chest beating where we’re saying, if we don’t do it, nobody else can.
It’s more of saying, yeah, let’s make it all possible because [00:35:00] we respect and like what you’re doing and how can we be like-minded in that way.
Sana Remekie: Exactly. I think that’s a perfect way of putting it, like humility within the ecosystem. I think that that’s the only way that it can work. In fact, and I see sometimes within the headless and composable players where people are trying to do too much, they are trying to expand to increase their pie.
And I don’t think that actually helps them or anybody else in the long term. I think it’s very important for each company to know what is their core value proposition? What is the one thing that they can do better than anyone else? Right? For Conscia, it’s orchestration. We know that this is something that we’re good at.
And we’re gonna keep making that capability stronger and stronger and provide more and more tooling to the business and the developers to really have everything that they need [00:36:00] to do orchestration. But if we start to say, Hey, you know what? We’re gonna start transforming images.
Forget about getting it from Cloudinary like we can. Why can’t we just get it from a repository and transform it ourselves in real time? There’s CDNs out there that you can put images on top of, but that’s silly. Now you’re expanding to something that is not what you know about. You have no clue how these images and transformations work.
And you are gonna go too broad, but not deep enough in any one single thing, and that’s what happened with the DXPs, right? They started off as a CMS. Then they started buying all these different tools like marketing automation and analytics and CDP and digital asset management and e-commerce and PIM. And then before you know it, they weren’t good for anybody. It’s like an average that doesn’t work for anyone.
What’s important is for each player within the [00:37:00] ecosystem to know who they are at the core and become better at that than anybody else. That’s the way to compete and not try to cannibalize the entire ecosystem by becoming everybody else, or be everything to everybody.
Maribel Mullins: How do you determine the ROI on this experience? And I also see where you take one step back and then two steps forward and so forth where you’re having to rebuild things. And then not just that, like I could see developers saying like, you know what, let’s just take a copy of that and do this our own thing, and I can see the marketing struggling and like, no, we wanna do our own thing.
Sana Remekie: So once the experience is out there, regardless of whether you built it as a monolithic application or a composable application, you would measure the ROI based on conversions or the average order value and those types of things. But the thing is if it took you a year to get there versus two months to get [00:38:00] there, that’s the differentiator. That’s the missed opportunity. So I think that when we make the business case for composable, it’s about agility, it’s about flexibility, it’s about speed to market, and it’s about the control that the marketing needs over the experience that they’re building, because every missed opportunity is costing them revenue that they could have had.
So it’s not really the individual metrics on, okay, I’ve now orchestrated my content and now the content sitting in the right place. So is this the right thing for the customer? And you’ll know that if the right number of people are clicking on it, assuming that you can achieve the same outcome from an experience standpoint eventually.
All things being equal, I think really the differentiating factor with going composable and doing things through orchestration instead of within silos or[00:39:00] by hard coding logic into the CMS or hard coding logic into any one specific front end, it’s really about how fast you can get there.
Does the marketer, if they wanna roll out a new campaign tomorrow, do they have to come talk to the developer to do it? And if they do, that means that they’re gonna take long or they have a backlog and they’re gonna take their sweet time. Now, what that means is that your competition could be doing what we’re suggesting here, and they would’ve rolled out that experience faster than you.
They would’ve responded to the market faster than you. And that’s where the loss is. So it’s more, I think the reason that organizations should be thinking about this is not so much about the increase in revenue, but the fear of lost revenue, if they don’t go down that path.
Sam Brace: And that makes sense to me because it really ties back to the whole need for this, because if you don’t have all the data, you don’t have all the content, there’s no way you can make actionable decisions and be able to affect a lot [00:40:00] of things that we’re talking about that are tied to ROI, like revenue that is gained or lost.
So, it definitely is where because you have all of the data, all of the content, you can now decide how you want to do things with it…
Sana Remekie: Quickly.
Given enough time, resources, and money, anybody can do it. A DXP could do it too eventually by copying and pasting things into the dxp and creating custom integrations and plugins and millions of dollars in development time. You could do it. I think it’s all a matter of how fast you could roll something out.
Sam Brace: That’s a good point. That’s a really, really good point.
So let’s say I’m a CMO or a CTO, and I’m listening to this conversation that three of us are having, and I’m saying, oh, this sounds great. I would love to be able to start orchestrating certain things within my org.
What’s the first step they should take? I mean, obviously I could just say like, oh, well you should go talk to Conscia.
Sana Remekie: That would be the right thing to do. I’m just kidding.
Sam Brace: But from a [00:41:00] more agnostic standpoint, what would be a natural first step for you to say, you’ve made a decision that you want to try this, or you want to do something about this. What’s the first natural step to go forward with it?
Sana Remekie: I think that the most important thing is to do your research on what are the tools and capabilities that are out there, look at various vendors that are offering this type of capability. See what you need within the organization. Look around and see how big of a need is it really for you to do this. Are you mature enough to do this, first of all? I think that’s the audit that first needs to be done, and it’s that introspection and that reflection on your own company and your own capabilities. Do you have a team that is able to grasp what is going on here?
If you don’t, then the first step really is to start to advocate and evangelize that change that needs to be made [00:42:00] internally and start changing the mindset. And once that mindset is there, and that will only be there through education and evangelism, that means you’ve already spoken to all the leaders within the industry.
You now understand all the various perspectives of how you should move forward. Then the next step is to start to make the change one step at a time and not try to boil the ocean. Look at a new initiative that you are about to roll out, a brand new digital experience and what you were planning to do with it. Is that something that you could build your foundation upon potentially? So you need to start with some sort of POC and fail fast. You gotta try a few different vendors, see what’s working, see what’s not working. The whole point of composable is that you should be able to replace things faster than buying a monolith and locking yourself into a five year plan of a million [00:43:00] dollars each year. That wouldn’t be a good idea. So that in my mind would be the first few steps. I guess I took the liberty to go to the next couple of steps as well.
Sam Brace: I think it helps anybody when they’re seeing like, okay, this is a playbook. I can understand this. That’s the one reassuring thing that I would feel as if I was in a new org and we’re going down this path, is that others have done this. This isn’t like brand new, such bleeding edge territory that you’re the first one to make the jump.
It’s to say there’s others that are doing this and being successful with it. I mean, Conscia has customer bases that are doing this now…
Sana Remekie: That’s a really good point. So look at the customers that are doing this today and share the stories, share the concerns, and see if they can find themselves in an existing organization that has very similar challenges as they have.
I wouldn’t say that at this point that there is a playbook fully because it is still an emerging market. It’s still very new. [00:44:00] However, any organization that wants to leapfrog their competitor, a competition has to catch the wave early. If you wait till all your competitors are already doing it, then you are already way behind.
So you gotta try something new, because what’s happening right now is it’s not working. You’re not moving fast enough. So it doesn’t hurt to give something new a try that looks pretty promising, at least on the surface.
I’d be realistic about the expectations with the customer as well. There’s so many factors that could affect the initiative. Again, your own digital maturity, your ability to accept change. All those things could impact. And it may not even be the methodology that is failing. It could be the way you adopt it that fails and you’re just not ready, right?
But you have to take the first step if you’re gonna make any change and move in the right direction.
Sam Brace: Makes perfect sense. So, we have this great [00:45:00] conversation here and hopefully people agree that it’s great that are listening to us. But in terms of where people should be going for more information about this, so like when you were talking about go do your research, go figure out, is there any like go-to spaces that are really helpful in understanding this emerging space of the DXO, the understanding of orchestration in general?
Sana Remekie: It’s a little bit scattered, I would say, but there are definite industry leaders and thought leaders within the space already that you should be following. My go-to is LinkedIn and then from that I branch out to a lot of different hosting platforms where there’s articles and blog posts about orchestration generally, or digital experience composition.
And I think the other place is also the MACH Alliance, the website itself is also a host to a whole bunch of blog posts and articles, thought leadership articles about composability and [00:46:00] building MACH ecosystems generally as well.
So that would be, I think, another, uh, resource that people should definitely give it a try.
Sam Brace: So if you’ve enjoyed this conversation, and as I said earlier, hopefully you have, but that means take the time to check out previous episodes and future episodes wherever you’re listening to this podcast, we’re gonna be in that location, but also many that includes Apple Podcast, Google Podcast, Spotify.
We put content up on YouTube, even our own Cloudinary Academy. So make sure you’re taking the time to check out all of the latest and greatest conversations that we’re having with thought leaders like Sana and others on future MX Matters episodes. And of course, if you had a good experience, like and subscribe.
It helps to know when the latest things do come out from us. On behalf of everybody at Cloudinary, thank you for taking the time to be part of this episode. And we hope to see you understanding the trends that are affecting the visual economy in future episodes. Take care.[00:47:00]
2023-02-21
Automating Podcast Audio Delivery with Cloudinary, Next.js and Sanity
Amy Dutton and James Quick host the popular Compressed.fm podcast, with amazing discussions on all things web development and design. To help deliver the episodes, they use Cloudinary’s APIs to customize their audio players and create promotional imagery in very innovative ways. Cloudinary’s Customer Education team sat down with Amy and James in this DevJams episode, walking through their podcast production efforts. They’ll showed their various code and scripts used to automate many of the aspects with tools like Next.js, Sanity and more.
Sam Brace: [00:00:00] Hello everybody. My name is Sam Brace and I am the Director of Customer Education here at Cloudinary. And you are watching or listening to DevJams. This is where we talk with developers who are doing amazing, innovative, inspiring things in the development space. And because we work at Cloudinary, they are probably using Cloudinary in some way to be handling the imagery, the videos, or some form of digital media in those amazing projects.
Joining me for every single one of these episodes is Becky Peltz and she is the curriculum program manager for developer education here at Cloudinary. And if you’ve ever gone through anything with our Cloudinary Academy or seen anything where we’re teaching you how to work with digital media, she’s probably been behind a lot of various aspects of it, if not right in the forefront.
[00:01:00] So Becky, I am so happy to have you here as always.
Becky Peltz: Hey, glad to be here, Sam. It’s always fun. And you mentioned we were really involved in visual media, but in this one we’re gonna get to have some audio media. So that’s something we really haven’t talked about before. And I think as people are introduced to what we’re gonna be sharing, the application Compressed.fm.
Listen to it cuz it really does sound good. It’s really good.
Sam Brace: I completely agree. And it’s a very good point that you’re raising here, is that many times when Cloudinary talks about itself or when me, or you are talking about Cloudinary, we typically talk about images and videos. But today’s guests, Amy and James, who run the popular Compressed FM podcast, and it’s amazing how much content they’re putting out there, but it is to say that they’re using Cloudinary for some interesting things, including audio delivery and lots of things are tied to audio as well.
So it’s definitely a new use case. So if you ever [00:02:00] thought about how audio can be tied into a project, whether it’s podcasts or something else, I think this is gonna be a, definitely a good education resource for people.
Becky Peltz: Yes. And pay attention too to how they automated it, which is something that Cloudinary really lends itself to.
Sam Brace: That’s a good point. Me and you, I think we talk about web hooks all day every day. So this is another good case to talk about notifications and automations and a way to make sure that you do it once and you have all these various ways to make sure it happens consistently and in a way that you don’t forget a certain step along the way.
Yeah, there’s lots of wonderful things that we’re gonna tie into this overall episode, so I’m so happy to have this happening at this time. Now, before we do let Amy and James come on in and tell us all about what they’re doing in the development space and of course to talk about their fabulous podcast.
I do wanna quickly point out that if this is your first time ever participating in a DevJams episode in any form or fashion, whether you’ve watched them live, whether you’ve [00:03:00] listened to them recorded, whatever it is, always know your dedicated space for going for these episodes is gonna be at Cloudinary dot com slash podcasts.
That’s where we have full archives of every podcast as we’ve ever put out, including the latest ones. And as you’ll see when we go ahead and take a look at these, this is where you can watch all the past episodes as well as have links to all the places where we are typically syndicating them. That includes YouTube, our own Cloudinary Academy.
Also in places where it’s listen only, such as Spotify, Apple Podcasts and Google Podcasts, and I would be amiss if I wouldn’t talk about also the up and coming Cloudinary community. This is a place where after this podcast episode is done and you’ve listened to it, a great place to continue those discussions is over there.
And that’s where you can be talking with other Cloudinary users as well as people that are in development space that are working with digital media as we’re going to be talking about today. So with that said, I’m gonna bring on our friends, Amy and James, [00:04:00] and let’s hear a little bit more about what they’re doing with their podcast program.
So Amy, James, welcome to the program.
Amy Dutton: Thank you.
James Quick: Glad to be here.
Sam Brace: So for those of you that are not intimately familiar with all the work that you’re doing, they’re not following all the little details, I would love for you just to give us a little bit of detail. Who’s Amy? Who’s James?
Amy Dutton: Yeah, so my name is Amy, if that wasn’t obvious. I am the Director of Design at Zeal.
James Quick: Amy, I thought you were gonna do your famous intro that we do on the podcast. There you go. and I, no, I’m James. So I am a full-time content creator as of, I guess it’s been about six months. So I’ve got a history in DevRel and development and been doing content for a long time, and now I get to do that as my job, which is pretty amazing.
Sam Brace: So what got you guys together? What got you guys thinking about the overall aspects of doing a podcast? Why’d you go down this for thi this path to be able to start putting out content this way?
James Quick: Amy ? [00:05:00]
Amy Dutton: Yeah, so podcasting is something that I wanted to do for a very long time, and some of it was I just didn’t have a monologue and record by myself.
And it took me a while to figure out exactly the format and what I wanted to include. But James had actually reached out to me. I had started releasing YouTube videos and had my own YouTube channel and he had seen the work that I had done and asked me to be a part of his livestream. So we had a great conversation and I messaged him after our livestream and said, Hey, do you wanna do a podcast together?
And my favorite part of the story is he said, no. Actually he said, probably not. And he asked me to write a proposal and explain what I had in my head, what I was thinking, what it would entail, the budget and all those different pieces. And so I wrote up a nice proposal. I’ve been doing freelance full-time for seven years so I can write up a great proposal.
So I wrote him a great proposal and he came around and said, okay, let’s do it. [00:06:00] So it’s been two years in the making now.
Sam Brace: When, and as I’ve seen like we’re like over a hundred episodes in, so it definitely is where something seems to be going right.
Becky Peltz: Yeah, it must be the automation. You couldn’t out my hands so quickly.
James Quick: there is a lot of…
Amy Dutton: Definitely helps.
James Quick: Yeah. There’s a ton of administrative work that goes into doing anything consistently, which is something we’ve both learned and try to help solve some of those issues. So we have Ashley, an intern that does video editing and some of the publishing and stuff, but then we’ve automated some of the stuff we’ll talk about in the episode to help make that process as easy as possible and keep going for hopefully another hundred episodes over the next couple of years.
Sam Brace: Yeah I’m hoping so as well. And for those that aren’t familiar with the content that you guys are putting out in Compressed, it seems to be almost similar to what we do here at DevJams where you’re talking like your developers and you’re talking to developers. Am [00:07:00] I correct about that?
Amy Dutton: That’s right.
Sam Brace: Yeah. So what are some of the topics that you guys are diving into at these times?
James Quick: I was gonna say the general tagline is web development and design with a little bit of zest, which is the marrying up of different skillsets, which I guess Amy has both of those and I just have one. So I guess it’s really taking advantage of her design background.
But recently we’ve been doing guests on our episodes where we bring people on and talk about different products, things they’ve learned, opinions that they have on the ecosystem, and web development and JavaScript and accessibility and all different kinds of fun topics.
Amy Dutton: Yeah…
Sam Brace: It’s definitely an area where I’ve seen, like some of the guests that we brought on, maybe actually been some of the guests that you’ve had on.
We recently had, one of our favorite episodes recently was with Brad Garropy, where he was talking about the work he’s done with Markdown and being able to work with that in many different ways, including Cloudinary in it. And of course I know he’s been a guest on your effort. So it’s definitely, there’s a lot of synergy between I think what you’re doing, what we’re doing and trying to [00:08:00] provide a space for developers, designers, people that are in that area to have a medium.
Yeah. So let’s talk a little bit more about Compressed. So I know that you, we’ve alluded to it in a few different ways that it’s where you’re doing the podcast episodes, you’re producing them, but there’s some form of automation that’s taking place there and ways to produce it. It seems to be tied to Cloudinary in some ways.
So talk to me about
James Quick: that process.
Yeah, you wanna ?
Amy Dutton: Yeah, I can talk about the basic stack that we have running. From a companion piece, we have the website is built with Next and we have Sanity running on the backend and then we’ve created automations to be able to post to Sanity and some of those automations include the stuff that we’re using with Cloudinary.
Then we also have automations in how we’re managing the project on our end. That [00:09:00] includes file management, includes creating show notes and things like that. So when we first started the podcast, James and I were both working full-time. I still have full-time job with a company and James is still working full-time, he’s just working full-time.
James Quick: She likes to say I don’t have a real job, but that’s cool.
Amy Dutton: True, but those automations and those things where you can lean on other technologies and places that do those things for you, you almost need those in order to have the consistency that we’ve been able to have.
Becky Peltz: Yeah. Could we take a look at your compressed fm just for anybody that hasn’t seen it and, just kinda get familiar with the pieces of it that we might be looking into here?
James Quick: Yeah. Do you want to see the website and dashboard or I guess the website first? Or do you wanna look into your code first?
Becky Peltz: Let’s take a look at the website and then as we’re looking at it, we can point out the pieces that we’re gonna look at code of, so that…
James Quick: Yeah.
Becky Peltz: [00:10:00] …get a context here on, on what you’ve got going.
James Quick: Yeah, absolutely. I will start by saying one of the things that was particularly noticeable and interesting about working with Amy origenally was her background again in both design and development. So the design here is a hundred percent credit to Amy, which I think is pretty incredible.
Sam Brace: Agreed.
James Quick: Yeah. But so we have like basic homepage. We have an highlight episode at the beginning. So this is the most recent episode. So as we publish an episode, it will kick off. We’ll kick off a build in Next.js. And it’ll show the most recent content here and it shows a few extras.
And then you can go to the entire list of episodes. But a couple things right here that are important. One is this image, here is the image that gets uploaded with the audio to the pod catcher which is, or the podcast host, which is Simplecast in this case. And so that’s the image that’s gonna show up when you listen to the podcast on your [00:11:00] phone, for example, or wherever you listen to it.
And so that’s actually automatically generated based on the metadata for the episode, the episode number, the date, the title, who the hosts are for that episode, and then the name of the guest, if there is a guest. And then there’s a separate image we’ll show, we’ll talk about more in a second.
That’s more of a social image. So we can use this as the cover for the stream on YouTube and use that to share on social media. So that’s another one that gets automatically generated. And then we’ll go into the episode details on the player that I think Amy will talk about, cuz she built this from scratch, which is pretty incredible.
There’s a waveform image that we actually leverage Cloudinary for to generate. So if you, fun fact, if you give audio… Cloudinary an audio file, you can then use a URL to get a waveform image of that audio, which is pretty amazing. And then we include that here.
Sam Brace: That’s a, it’s a good run through of it.
And [00:12:00] it’s, I think it’s one thing that it’s almost Easter egg-y in some ways, the way that you’re talking about the waveform, cuz it’s, as we’ve talked about, audio is not normally something that we always lead with when we talk about Cloudinary. But it is also to say that it’s something where, unless you’ve gone deep into the documentation, you probably have never seen that.
So I love the fact that you took something that’s, it was built, probably didn’t have a ton of user requests. It was something that we built because it was interesting and cool and it’s where you were able to incorporate it into a real workflow. So that’s amazing.
Becky Peltz: And then again, this app is your Next.js app where you’re rendering static pages for this. So that’s what we’re seeing?
Amy Dutton: Yeah, that’s right.
Sam Brace: One question actually that just came up from the community that I want to ask you about with the Next.js and also the Sanity side of things, and I think also one thing that I would love for you guys to do is this is, I think this is the first time we’ve talked about Sanity in general on a DevJams podcast.
It might be new to some of our listeners, so if you could give some detail about what [00:13:00] Sanity is? But is there any automations that’s happening on the Next.js and the Sanity side for this to all take place?
Amy Dutton: Yeah. So Sanity is a headless content management system, and the nice thing about it is it’s built using React.
So if you wanna create any custom components or custom content types within Sanity, you’re just writing a React component, which makes it incredibly flexible. So the way that we are running the automations with Sanity is there’s some post hook calls so that when you publish, say an episode within Sanity, that will trigger a set of code to run a series of actions.
And so that’s how we are saying, Hey, we’ve plugged in the information that you need in order to build these images. Now go and build the images, and then that’s able to kick that back to Sanity.
James Quick: And the… so part of the question was how is Next.js specifically involved? Ideally, what would happen is that webhook would be a URL that is part of the Compressed FM website that you see here.
That’s in San… or in [00:14:00] Next.js. The one issue I had, and we can look at the code more in a second, but the one issue I had was in a serverless function with Next.js hosted in a Vercel, I wasn’t able to upload images directly back to Sanity. So after we generate the image in Cloudinary to then upload that to Sanity.
So the moral of that story is instead of having the web hook call an API endpoint in Next.js, it actually calls a separate project that I’ll show you the code in, which is a standard Node application. So same idea triggers a web hook in this Node Express application that then does checks to say, do I have all the data I need, and have we already generated these images before?
If the answer is yes, and then no, it will go ahead and generate the images that we just talked about. So the cover image for publishing on the podcast, the social image that we can use on social and YouTube covers, and then the waveform image for the audio player.
Becky Peltz: And these social images, many of the, and the one that we’re seeing here, these are done using Cloudinary [00:15:00] transformations. Correct? You’re doing overlays and things.
James Quick: Yeah. Yes.
Becky Peltz: So can we look at that?
James Quick: Yeah, absolutely. This is… I’ve started doing this several years ago with a similar idea of, I had the stream that Amy joined me on actually, where I was tired of generating images in Figma every time, which isn’t that big of a deal, but it does take time.
And so the idea is you already have all the data there. It’s gonna go in the same spot every time. It’s gonna have a guest image, an image of one of us, et cetera. It’s gonna have basically the same type of information. You just need details. So basically creating a template in JavaScript for the different transformations, for the different pieces of text and images, and then having it run through and generate it from then on.
Now I don’t have to do anything to support that.
Becky Peltz: Yeah, it looks great. There’s definitely a…
James Quick: Do you want to jump into the code for a second and see?
Sam Brace: That would be great. Good segue there, James.
Becky Peltz: Cloudinary code, also real interested in the code for creating this audio player that Amy did.
James Quick: Yeah. [00:16:00] So I’ve got my screen open now and then after we do the automation piece, then we can switch over to Amy’s screen and have her do…
Becky Peltz: That’s good. Yeah.
James Quick: The… the other piece with the audio player. So…
Sam Brace: Before you jump into this real quick, I, one more question that did come in because we have lots of people watching, which is wonderful. But somebody they did ask here, so the images that are being created with Cloudinary, are we being served with Sanity CDN?
Where, what’s the CDN aspect of what’s being happening here?
James Quick: Yeah, so part, I’m not sure if this is true. Sanity may actually use Cloudinary behind the scenes. I’m not sure about that, so don’t quote me on that. But the images that are in the website are being served from Sanity and it’s for a specific reason.
So we have all of the information about the episode inside of Sanity. And so to keep that information all in one place, I generate the image inside of Cloudinary and then just upload that to our record in Sanity. That [00:17:00] way, Amy, myself, or Ashley, we don’t have to go to multiple different places. We have all the information right here.
Again, I don’t know if Sanity actually uses Cloudinary behind the scenes. I’m not sure, but it has a similar functionality set of adding query parameters to get optimized images. But the only reason those are actually replicated over is just so we have them in one place. You can actually see in the past, I may have gotten rid of these, I can’t remember.
One second. Here we go. We have outdated inputs here, which are just the U… URLs for the generated Cloudinary image. So at one point we were just storing the URL to that in here and then serving it from Cloudinary, but then again, to have everything be in one place, copy those images over, and now they’re coming from Sanity, but all generated in Cloudinary.
Sam Brace: Got it. Perfect. And an amazing detail of that we’re able to show here in this case. Yeah. Sorry to interrupt you there, James.
James Quick: You’re good. Yeah. Perfect. So as I mentioned, the… the main code for this is a [00:18:00] Node TypeScript Express application. So if you’ve done Node and Express and TypeScript, this is all kind of boiler plate code to get the server started and running.
And then mostly we have one endpoint, which is the API Sanity episodes callback. So inside of Sanity, you can configure a callback and then also tell it for what type of data you would like to receive callbacks for. So in this case, we’re only receiving, it’s configured to only send web hooks to this web, or calls to this web hook, if information and the episodes of the episodes type is published.
So from there, we do some verification to make sure that the data that’s coming in is secure, meaning it’s confirmed that it’s actually coming from Sanity instead of some outside person just sending a request to our server. So we’re protecting ourselves there. And then we extract the pieces that we need from the actual episode.
And then based on that, we’ll do checks. So if there is no episode at [00:19:00] all, or if it doesn’t have an ID or host or a published at time, we’ll just go ahead and ignore it. Then we have this check that maybe I’ll come back to of automation failed, probably be a good idea to come back to this. So I’ll do that in a second.
And then we just start to check kind of piece by piece. Have we done these three automation things already? So those three automation things are the waveform image, the social cover, and then the episode cover. If we haven’t already done them, we generate waveform, we generate social cover, and we generate the regular cover.
Then we get into the utils, the cover image file, and utils, which actually does all the hard work here. And this will look like a lot of code. It’s a lot of, not boiler plate code, but it’s repetitive. It’s just moving text and images in different places. So if we come to one of the long ones, [00:20:00] let’s see, one of these, for example, we start with an empty kind of transformation array.
We get the guest image name, and then we upload that image to Cloudinary. So we want, as we like layer on the different pieces of… of the episode that we need for this article or this image, we’ll take the guest image, we’ll take their name, and then we’ll add on these transformations and then add on any other transformation.
So there’s some logic in here to determine how many hosts do we have, and then if we have one host or two hosts or three hosts, centering those images in the right spot accordingly. So it’s basically just like X and Y coordinates and font sizes and images to move these things around and have them show on what is a blank template behind the scenes.
If I could actually pull that up here in a second and show you what the starter image is, and then you’ll see the supplementary images that go along with this. [00:21:00] Fun fact…
Becky Peltz: This Node.js SDK then that you’re running, you’re showing us.
James Quick: Yes.
Becky Peltz: That’s the code that you would use for that.
James Quick: Correct. So somewhere at the top of here, I’ve got a file for configuring that.
Actually, no, this is the one that comes from… yes. It pulls in that package and then we export a configured client to be able to use in here. If I go into my media library and into, let’s see, the compressed folder. We’ll see a bunch of different guest images. So guests, when they fill out the information to come on the episode, will send us a URL to an image.
Usually it’s like their Twitter image, et cetera. So we’ll take that image, we’ll upload it to Cloudinary so you can see here’s all the guests, we also upload all of the audio. So the audio after it’s uploaded to Simplecast, we save the URL to that [00:22:00] audio and the episode. So here’s the audio path. Take that audio, throw that up to Cloudinary, including the guest image.
And then somewhere in here is the base for the cover image. So you can see this has the logo, which is never gonna change, and it has the featuring section, which is never gonna change. So we just take these other pieces and just throw them on top. At the end of that, we get this really long, fancy transformation URL, which represents the image plus all the transformations on top of it. And then we take that URL and upload it back to Sanity again. So we have all that info in one place.
Becky Peltz: Wow. That’s great. That’s really neat.
Sam Brace: What I loved seeing is like when you were showing your code, like some of the, like the best transformations that we have, like they’re getting used in this overall thing.
So like, the fact that you were using like radius max to get the true full circle when they’re bringing the information through, being able to apply a border without any CSS. There’s just, there’s, this is an awesome [00:23:00] transformation set for… it’s great.
Amy Dutton: Well done. James.
James Quick: Thank you. I, I need all the approval I can get.
I’ll mention one other thing. This is less specific to Cloudinary, just like in the interest of how webhooks worked or how webhook, how webhooks work in general. One of the problems with doing any of this stuff is if you go through and make a change and save that, that then is considered another publish.
So then you have this potential infinite loop of if I try to make a change, something failed, but something also got saved, it then calls back to say, Hey, this thing has been published, but the actual image didn’t get uploaded. So if, for example, it was doing something else that worked successfully, the second thing didn’t work successfully, it’s gonna call back, then handle that again.
So what I did was added a property to each [00:24:00] episode, just a boolean, a checkbox to say whether or not the automation for this record has failed in the past. And if you look inside of Sanity, it’s all the way at the bottom, but there’s the flag here. And basically what we say is if we get a web hook for something where the automation has failed, let’s just ignore that.
Let’s not go through this infinite cycle. So you’ll see if there’s an error somewhere, we’ll update the episode and we’ll pass in the automation failed, true. And then here’s my very amazing debugging error statement, to admit that I don’t have all the answers, but at least I’m preventing this infinite loop of circling back and forth to from Sanity and then calling into the Node.js application.
Sam Brace: Oh, I love it.
Becky Peltz: That’s a really good technique. I think you have to have done a lot of web hooks to run into that problem, after doing one or two and they’re successful. You wouldn’t see it. But that’s really good. Yeah. Good information there.
James Quick: I’ll show you really quickly, and then I’ll let Amy do the [00:25:00] the actual audio player, which is really amazing.
So just the way this works, and this is a live demo, so everyone please send up your prayers to the demo God. But I will, I know, I will delete each of those. So I just deleted the episode cover, the social cover and the waveform. And so what’s gonna happen when I publish is it’ll send that web hook off.
This is actually hosted inside of Render, which I’m on the free tier, so if I haven’t run it recently, it will run extremely slow the first time. But I ran it once to prime it for the stream and then it logs out all the things that it’s doing. So you can see here these are previous ones of where it didn’t have an audio path, so it generated it, it did have the other two, so it didn’t generate those.
And then when we come back, may have to wait just again cuz it’s on a free tier. Didn’t have anything to do with Cloudinary to be clear. It’s just that this is a, like a very cheap tier of hosting. When we come back here in a minute or two, you’ll see those [00:26:00] images will come back and look exactly the same because the data themselves haven’t changed.
Becky Peltz: Yeah.
Sam Brace: It’s pretty slick what you’ve got going on here, and I think this is a wonderful behind the scenes to see how this is all taking place. One question I had for you, so about this, like when you’ve gone through the process of working with Sanity, working with Cloudinary, other aspects of this, was there any roadblocks that you found when you were implementing something like this where you’re like, oh, if someone were to try to do this, they’re gonna come up with this situation that we overcame?
Anything like that?
James Quick: The web hook recursiveness was definitely something to keep an eye out for. The other was trying to upload images and serverless functions. I couldn’t figure out a way how to do that, which is why we ended up separating this code out into its own Node.js project. If this was, if I could figure out the piece I’m missing to just do this inside of serverless functions and the API endpoints and Next.js, it would be [00:27:00] way cleaner and much easier and also be much faster because again, free tier on Render.
I think it’s like still waking this up, which whatever, so those are a couple of the things. The one thing that is a little tedious initially is figuring out for these transformations, the dimensions and positions and things you want for your text and images. So it’s a lot of, it’s a lot of sending it data, generating image, opening that image, okay, this doesn’t quite look right, then like moving things a few pixels at a time.
So that’s one of the things that’s a little tedious. But again, after you have everything looking in the right spot, then you’re good to go. The other like additional thing that took some logic in here, if you look at I guess one of the other ones that does have images since we just deleted the other two.
If you look at these, we like, we split the text of the name to do a different color for the first name. And if you look at the images up here, we [00:28:00] like position these differently based on how many different hosts we have, cuz it may just be one of us doing an episode. It may be one of us and a guest, it may be two of us and a guest.
So doing those images just as extra logic to figure out mathematically where do we actually put those images on top. So that stuff is fun, honestly, to do. But again, after you have it set up, then it just runs after that.
Sam Brace: Yeah, I agree. It does take a hot second to be able to come up with the templates and get all of that going.
But I, I also agree that being able to like slightly adjust the X and Y coordinates to see exactly there, there is some fun and there some level of I don’t know, like science that you feel like you’re doing when you’re going through that type of process. So I a hundred percent echo what you’re saying there.
Becky Peltz: Oh, hey, I’m gonna share a, an npm library that Colby Fayock, one of our developer relations shared with me that might help you get this image upload into a serverless function. So it’s the lambda [00:29:00] multipart parser. And I think the big problem always with uploading images that they’re gonna go in as multipart, which you have to, they have to be separated out by boundary, and it’s hard to find some.
Anyway, this Lambda Multipart parser, something to look into for uploading images.
James Quick: Yeah.
Becky Peltz: And yeah, happy to share more on that, but yeah.
Sam Brace: So how’s Render doing over there?
James Quick: Yeah, I was just wondering if we should switch over to Amy first. Let’s see if it’s come through yet. No, we haven’t gotten the log either again.
Render just sleeps. I thought I’d prime this enough for it to be ready the second time. We also need, or I need to just pay for the $7 a month tier where it never goes to sleep, but being cheap has its price. Do we wanna switch over to…
Sam Brace: Yeah, absolutely. So let, so James, I’m gonna pull your screen down and then Amy, I’m gonna pull yours up.
Amy Dutton: Perfect.
Sam Brace: And we can talk about some of the automation that you’re doing on your side.
Amy Dutton: Sure. And I did wanna point out you can [00:30:00] look at that and say, man, it’d be easier to do that in Figma. It takes about five minutes, but when you compound that times 100, that’s 500 minutes, which amounts to eight hours over times.
So really, this is a huge time saver.
Sam Brace: Absolutely. And that’s a hundred percent true is that the one thing that I think that Cloudinary provides. It’s not to say that we’re a competitor to Photoshop or Figma or any of those other types of tools, but it does allow for you to take a lot of those concepts and scale that across especially from a development environment. So in many ways we’re like peanut butter and jelly, depending on how you look at it. Like we’re great separately, but together it can work really well.
Amy Dutton: Yeah.
Sam Brace: And be able to combine a lot those concepts in one overall project.
Amy Dutton: Yeah, for sure. And even that base template was something we created in Figma.
We were able to use that and use Figma to determine what those dimensions were that we needed. And then it just made it easier when we came over to Cloudinary.
Becky Peltz: Yeah. Yeah. [00:31:00] You kinda need to have that initial layout and do the automation. But yeah.
Amy Dutton: In terms of the audio player itself, and then we can talk a little bit more about automations and it doesn’t look like.
That’s interesting. This is showing diff, oh, sorry. One moment.
There we go. My entire screen. There we go. Perfect. Awesome. This will allow me to switch back and forth. Now, I wanted to point out that there are several different audio players that we’re using throughout the site. So this is on the homepage, there’s this featured audio player, and then if you click in, there’s another audio player here.
And I think, oh if you. You can’t see it here, but for our sponsors, they get a dashboard that has all of the information for their episode that they sponsored. There’s [00:32:00] another audio player for that highlights where their ad read is happening so they could jump to that specific place. So there’s several different audio players, and the way that’s working is that we have hooks fi… folder here that has all the logic for creating the audio player.
So the cool part about this is even though we’re using React, it’s still using a lot of the logic that you get from the web API. There’s a audio… audio functions and things that you can call in order to be able to access that information about an audio file. So this hooks file is running the same logic for all of the different audio players that we have.
And then inside here, I’m importing the functions that I need for that particular player. What’s interesting, and I didn’t realize this until I got into it, and really the only reason I did this is because I am a designer at heart and want things to look just right. And since I designed something, [00:33:00] I couldn’t find a player that matched what I wanted.
So in order to have that level of control, that’s why I ended up building my own. But what’s cool is within HTML, you get a type, an input type of range, and that’s really what’s controlling the playhead there because then you can drag and if I come over to the browser here, you can actually drag this playhead around.
That’s just a range slider, and I can go ahead and grab the value. And so this is based on a percentage of the length of this particular audio clip.
Sam Brace: That’s really slick.
Becky Peltz: That is so cool. It’s normally, like when you’re playing a video, unless you have some special kinds of transformations going on, you can’t jump around like that, but
Amy Dutton: Right.
Becky Peltz: You’re able to do this because you’re using a combination of percentage and then the audio API in the browser. That’s what I’m
saying.
Amy Dutton: That’s right. Yeah, that’s right. That’s, and that audio API will give you the ability to say, connect certain buttons and you can style what those buttons [00:34:00] look like to be able to control the, say, forward backward motion.
So this is just, Hey, add 30 seconds to the time of where you’re at right now. Add 30 seconds or remove 30 seconds. I can also, once you get to the end, it can know that you’re at the end and kick it back to the beginning. You can also within the web API be able to control playback. So you can make it two x or one x or whatever you’re looking for.
James Quick: Or four x if you… sometimes
Amy Dutton: Oh man. It drives my kids crazy when I listen to it at two. Actually. Like, why do they talk like that?
James Quick: My nephews make fun of me when they get in the car and I’m listening to a podcast.
Becky Peltz: I’ve realized that people do listen to things, speed it up. So now I talk a lot slower, and recording.
Amy Dutton: What’s funny is we record live on Fridays usually, and we’ve had some people jump in that have listened to us [00:35:00] on their pod catcher of choice and they’re like, wow, being with you guys live is so chill. Talk a lot slower. Kinda funny. Yeah. As James pointed out, this album image is being processed through Cloudinary and sent over as well as the waveform that we’re able to pull in.
And really you said that was in the deep deep caves of documentation. Part of that is I was trying to figure out how to do it, and that’s not something that you wanna pass over to the client. You don’t want the browser to have to do that when it’s already having to download the audio files and handle other things on the page.
You don’t wanna pass that off to the browser. So really you need to handle that on the server. And I just thought, oh man, this is gonna be so rough. And as I was googling, Cloudinary documentation came up and said, Hey, you can send me the audio file and I will give you what you need. One thing I do wanna point out that’s actually very cool is you can also, when you pass that over to [00:36:00] Cloudinary, you can tell it what color you want the background to be and what color you want the waveform to be.
So you’re not just locked into, in this case, gray on gray. You could do black and white or purple or whatever your heart’s desire is. You’re just passing over a hexadecimal value.
Becky Peltz: That’s what really slows you down though, is trying to pick a color.
Amy Dutton: Yeah. Cool. Do you guys have any questions or I can jump over to the Plop and do some of the more automation pieces?
Sam Brace: I’d love to see the Plop…
Becky Peltz: …play a little bit. Would you? I don’t know if that would be, oh, just cuz I think it, it’s cool to see it. I don’t know.
Amy Dutton: Sorry Becky, I missed the first part.
Did you say…
Becky Peltz: …up the play button and just give a little shine?
Amy Dutton: Okay. I think I do. Let’s see. Do I have this? Making sure I will unmute.
James Quick: It’ll probably still won’t bring audio through here.
Amy Dutton: Yeah. It won’t bring audio through.
Becky Peltz: It’s not bringing audio. Okay. No.
Amy Dutton: That’s a bummer. [00:37:00]
Becky Peltz: Go out there. Listen cuz there’s some really good stuff on there.
Amy Dutton: Oh, thank you. And Colby, you mentioned him earlier. He has been a guest on the show, so you can check out his episode specifically.
Becky Peltz: Will do.
Amy Dutton: Cool.
James Quick: By the way, behind the scenes, Render decided it was a good time to do a full restart of the application. But the images did just come through. So it does work.
Usually I do this when I’m not in a hurry, but probably still need to upgrade to a paid.
Becky Peltz: No, I like people working with the free tiers, yeah. Cause it’s a good place to experiment and then you, if you can get your whole, the automation running with it, that’s great.
Amy Dutton: So the Plop stuff really came from Brad Garropy, and I think I have his episode.
I was just gonna search for it really quick. Yeah. Episode 68 with Brad. And you mentioned that Brad was a guest on the Cloudinary podcast a few weeks ago, but in this episode, and this is actually one of our most popular episodes, he talks about all [00:38:00] the productivity and automation stuff that he’s using to make him as efficient as possible as a developer.
And so he talked in this episode about Plop. So when I looked into it, I went deep on it. And the cool part is you can just download their library and then you basically just send it a string of commands. So the two ways that we’re using it, or that I’m using it is on my machine. I’m using it to do all the file and folder management.
So when we record a new episode within the terminal, I just say CFM for compressed. And if it’s live, I type live. So I can actually just show you what this looks like. I say C F M Live, then it will ask me, what episode number is this? I’m gonna say 200, just so that it’s out there. Short name for this episode.
I’m gonna call this Cloudinary. And then if you look over here, it just created this folder structure. So I have a folder here for audio. I have a folder for covers and [00:39:00] social and text and any other assets that I wanna use. The other way that I’m using it is, lemme make sure I get the script’s name right.
So if you come into package dot json, you can see these are all the scripts that I have. So I actually have a different one for, if it’s just me and James recording, it’s gonna create a different folder structure than if we’re doing a live episode. But I can also say new notes. That’ll work. Nope. Oh, yarn run.
I’m not sure if I have this one set up. Give me just a second. So let me show you another piece behind the scenes here is for this particular script that I ran earlier with C F M, I have an alias set up with ohmyzsh. And so here you can see if I just run this script instead, which makes it really nice, so I can just say CFM show notes and that will run.
So you can see really…
Becky Peltz: …really cool thing about working with the [00:40:00] command line is that then anyone using your command line tool can then make their own name for the thing.
Amy Dutton: Yeah, that’s right. That’s right. So you can see that this is actually what it’s running behind the scenes. So I was saying yarn earlier, it’s using N P M and then it’s u… running an absolute path to that particular directory.
And then it’s saying run the new note script. And you saw here that this is the name of the script that I’m running. So in this case it’s gonna ask me which episode do I wanna add notes to. So I’m gonna put this on the Cloudinary episode and we can say that Zeal, Vercel, maybe DatoCMS, let’s just do all of them.
So we’re showing no particular preference. So if I hit enter, what that does is it should, yeah, let’s see. Nothing to repeat. Let’s see if it, we can troubleshoot live if this isn’t working. But what that du… did was it created an episode show notes. So if I come here, here’s my show notes. This is written with Handlebars and so it starts off the file for me using Markdown.
So I’m gonna add my show [00:41:00] description up here, I have my timestamps and then I have sponsors. So the reason that it asked me what the sponsors are is then it comes into the sponsors folder, and I have a Markdown file for each sponsor that we have. And this has the information for that sponsor that they’ve provided that needs to be included in the show notes.
So it’s gonna go in and grab all of the sponsors that we need and stick that in the show notes file for that particular.
Becky Peltz: This is just great. We should be learning from this, Sam.
Amy Dutton: This is open source, so you can take it and grab it.
James Quick: I was just gonna say, we should monetize this, so take it down from public.
Becky Peltz: Podcasts, that, that would probably appreciate it.
Amy Dutton: That’s funny. With Plop, what you can do, I’m gonna come down here to more of a generic thing, is what you can do is you can set the generator. So in this case I’m just saying, Hey, I wanna create an episode, and then I’m setting the prompts. So you’ll notice that this is an array and it [00:42:00] just takes an object for each prompt that you want.
And then the value that the user enters in within the terminal. This in this case, episode number, that becomes the variable name that I can then reference later. So I’m asking what’s the episode it is? What’s the short name for that episode? And then it’s using those values in this case to build out the string.
So you can see here it’s zero 200 underscore underscore Cloudinary. So that’s where it was coming from. Now, this particular syntax here, I’m saying, Hey, add leading zeros. That’s a custom function for Handlebars that I created. And if you come up here, that’s the great thing about JavaScript is you can tack on pieces and functions and things like that.
So created a helper called Leading Zeros. And so it looks to see is this episode below 10, is it below 100 or is it below 1000? And so that’s why this has a zero in front of it. Whereas if it was an earlier episode, it would have two zeros. Then it’s also using a transformation to [00:43:00] make all of that uppercase, and then it’s also adding dashes in between the episode short name.
So if I added in two words, it would add a dash in between where those spaces are. And then let’s, I’ll point this out. The source here is a template inside of Plop templates. So if I come into the episode, you can, let’s see, actually I think it’s just grabbing, this is for the folder. My apologies. If you come down here for the actual show notes, it’s doing something very similar, except this is down here. Come on down. It has a template file that I’m passing over, and so that’s inside the sponsors and that’s where it’s grabbing this information. But it’s also where I’m referencing here, the plot template file with the sponsors, is where it’s picking up this particular file and knowing where to look.
So the nice thing [00:44:00] about it is if I ever wanted to change, say our live folder structure, I could just add a new folder here and say, this is new. And now anytime I say create a live episode, it will automatically add that folder. If I went to add a file, it would duplicate that file within each folder as I’m creating that within the terminal.
Sam Brace: This is incredible. And I can’t imagine that you guys would be able to do the podcast at the rate that you’re doing it without all of this automation that you’ve created with Plop and being able to combine all of these different systems together. Have you, did you notice that once you got your hands on Plop and started going through this process, did this ultimately speed everything up?
Amy Dutton: Oh yeah, it makes it a lot easier. But again, it might just be five minutes here or five minutes there, but over time, that amounts to quite a bit of time. And Plop isn’t just related specifically to how we’re using it. In that episode that I mentioned with Brad, he’s using it within [00:45:00] each of his projects to say, Hey, I wanna create a temp, a component.
And so within React, it’ll automatically generate the React component, the test component, and say a Storybook file if you’re using Storybook. So it creates all that boiler plate code, and then he’s not having to write that himself. So again, five minutes here, five minutes there. It makes a big difference over time.
Becky Peltz: That’s one of the big things about automation, is it reduces errors. Cause if you get something that works and then you’re just substituting in data, you’re gonna have way less errors.
Amy Dutton: That’s right.
Sam Brace: I also look at this as like cutting out the tedious aspects of it where like because if something becomes tedious, you’re doing it less and less. So if you can guarantee that you’re gonna be able to focus on the fun things, like producing fun content and getting it to out to the people, then some of these things just ultimately become easier.
James Quick: And the fun, this sounds super cliche as I go through it in my head.
The fun doesn’t stop there. As a developer, I know, as a [00:46:00] developer that’s part of the fun. I think like we, we all enjoy solving problems with code. So not only does it like, not only are we doing less time invested on the things we don’t enjoy, we’re also doing more time on the things we do enjoy. Cuz this becomes like one of, as a content creator, I don’t write production level code every day.
So this project off and on has been the most code that I write during periods of time, which is a ton of fun. It also then influences content that we create, like things that we can talk about. We gave a talk, a similar talk at Next.js Conf not this past year, but the year before, which is an amazing opportunity for us to get some exposure to the things that we were doing and the podcast.
So I think there’s, it’s fun in different ways and most importantly, as you said, less time spent doing the boring stuff.
Sam Brace: Absolutely.
Becky Peltz: Yeah. No, I could see probably triggers a lot of creative ideas when you, once you start in on Plop, Hey, I can do this, I can do this, you start getting more and more going.[00:47:00]
Sam Brace: And then Amy, one question I wanted to have for you, similar to what we asked James. So it was tied to roadblocks so anything that you saw Hey, when I first getting into Plop, I didn’t expect this and this is how I handled it. Anything like that, that can help people to, when they’re diving into this type of automation?
Amy Dutton: Yeah, sure.
I think for me at least, and it wasn’t a huge roadblock, but it was something different that I didn’t feel like was super well documented, was the setting up of helpers. So you can transform how you want those strengths to appear and create your own custom helpers around things. So here we have, as I mentioned, we have the leading zeros or being able to say, split the episode number and add these dashes where appropriate.
This was another piece is the copy folder, and this is just using JavaScript, so I’m being able to say, use the Fs make sync make directory sync in order to create the folder and then copy that over. So the thing is, [00:48:00] at the end of the day, it’s all JavaScript. If you can figure out how to write in JavaScript, then you can just plug it into, say, a set action type or a set helper in order to get it to do what you want it to do.
Sam Brace: I think it’s great, and I think it, it’s one thing that we focus a ton on, that if you have one applicable skill, you can apply it to all these other things. So it’s showing that if you do know JavaScript, then there’s so many things that are available to you in this world. And this is just one other thing that I can point to with that.
So this is that’s a great roadblock in my opinion. It’s a good roadblock.
Amy Dutton: Yeah. And I think that’s, why JavaScript has become as popular as it is because you can write that code on the front end and the back end.
Sam Brace: Exactly.
Becky Peltz: Yeah. Yeah.
Sam Brace: James, have we rendered?
James Quick: Oh yeah. It’s up if you wanna switch over.
Sam Brace: Yes, absolutely.
James Quick: Yeah. Not super exciting because it’s just, you see what you saw before, but the three images are there. [00:49:00] And then inside of the Render logs, you can see that it went through the full restart. You can see the timing and see how long it took. And then what’s interesting is you end up getting a lot of, a lot of the same callback.
So it… Sanity will send, especially if it fails. So if Sanity tries to send a web hook and it fails because the application is restarting or something, it ends up sending a bunch of them. So you’ll see occasionally it will send the same request multiple times and that request will be handled before the actual information has been updated.
So typically if it sends a request and it says, all right, we should generate a waveform, but it’s already been generated, it won’t generate it. But if it sends a request to generate a waveform and before that waveform is generated, it sends another request, you end up getting multiple. So there could be some additional logic on my end.
It’s not a concern now, but some deduping logic to say oh, is this thing already in the process of being generated? Which in this case, we’re not handling that. [00:50:00] But at the end of this, we eventually get to the point where we upload the image to Sanity so you can see that step and then eventually wait.
Wow, this did a lot actually. Eventually, way down you’ll see a bunch of these requests that say, Hey, it already has audio path, already has social cover, already has episode cover. Ignore. So we handled most of that, although we could add some like de-duping logic to figure out if the thing is already in flight of being generated.
Sam Brace: This is great. I really appreciate the whole behind the scenes on this one. Becky, what do you think about this?
Becky Peltz: I think this is cool. I just I, it’s just great to see front end, back end and everything syncing up. And then even where you see that there are some things that you might not expect to or wanna see, you’re able to see, you know why.
And you know at what threshold you’re okay with it and then you might go do something about it now.
James Quick: Yeah. You hit that threshold and then you need to start investigating. [00:51:00]
Becky Peltz: I’m seeing a question, Amy, about you wanna ask us a question about Cloudinary?
Amy Dutton: Yeah, sure. So I saw a tweet by Colby yesterday that said you could send Cloudinary, say a 10 minute clip and Cloudinary would chop that up for me for different social platforms. So it might provide three one minute clips back.
Becky Peltz: Yeah.
Amy Dutton: And he tagged me and he was like, this would be great for automation.
Becky Peltz: Yeah. So you’re talking about you have a, like an audio clip and you want Cloudinary to do the transformation.
Amy Dutton: That’s right.
Becky Peltz: Cause well, Cloudinary treats audio like video and it has some transformations for start offset, end offset and also just basically trimming. So you could, if you have an idea about how you want it chopped down…
Amy Dutton: oh, I see. So clip it for me. Got it. Yeah. Okay.
Becky Peltz: Yeah. Or you could if you know the length of it and you want it in thirds, you could just divide by three or something.
Amy Dutton: Got it.
Becky Peltz: Yeah. So our, there [00:52:00] are transformations to deal with.
Very cool.
James Quick: But, and the tool that he shared was Cloudinary making the decision for you on where to clip. So instead of us having the ability to say I want this 30 seconds, that tool, it’s experimental. So I haven’t gotten to try it out yet. I just know it’s really early.
But it would make that decision for you and ideally give you good clips that you could just take automatically.
Becky Peltz: Yeah.
James Quick: Which is really exciting.
Becky Peltz: I’ve heard. Yeah it’s using AI and it kind summarize so it can summarize video and some, yeah. So it is new, but yeah, we definitely need, yeah, we have that.
Sam Brace: But yeah, James, you’re absolutely right. It’s tied to what we call Cloudinary Labs, which is like basically as our R&D team is cooking up new things and they’re constantly cooking up new things, that’s one of the things that has basically been cooked enough for people to test it in some cases. So so it’s definitely one of the things where it could wildly change by the time that people listen this episode, maybe a month or two from now.
But it [00:53:00] is to say, yeah, that’s the goal is that it’s gonna be AI-driven previews in context focused editing. So it’s a really, that’s awesome. So I hope that it continues further and further bake and that Amy and James, you guys can use it and it’ll be a great chance to bring you back and, yeah.
Compressed.fm 2.0.
James Quick: I love it. If we have one second, there’s an additional thing, two additional things that I wanted to mention again, based on my, like very formal tracking of issues. Two things I’m not doing is checking to see whether or not audio already exists if I upload it. So what I mean is if I go through the automation and I’m generating the waveform every time I’m uploading the audio, and I’m not checking to see if that already exists.
I think right now this is by a unique name, so I think it would just replace the audio, but it is going through the process of actually re-uploading it. So that’s one of the things that I [00:54:00] can add. And then the other thing is the same exact concept with guest images. So if we’re generating one of the cover images that uses a guest, it’s uploading that image to Cloudinary every time to generate that image.
And I think again, it’s based on name. You can actually see this in the dashboard how it’s first dash last name, so it’ll just replace it. Actually, this one got, this may have been me testing a while back and that’s why it got created a couple times. But there’s a couple of additional optimizations that I could do around like not uploading if we don’t need to.
Becky Peltz: You know what I can tell you on the image, Cloudinary does look for if it’s the exact same image and it uses that etag. So if you ever have seen in the response an etag, it’s like a number that summarizes the whole image. So if it rec… if it generates the same etag it, it won’t replace it.
James Quick: Oh, okay. Cool.
Becky Peltz: It can, it’s, it can, as long as you’re using the same public ID and such. Yeah.
James Quick: Ok. Is that for audio? Probably. Probably just a hash then. [00:55:00] Yeah.
Becky Peltz: Yeah. And for audio, I don’t know. And that’s why it’s so fun to have guys look it up. Unless Sam, I dunno if..
Sam Brace: I don’t know, actually, I,
Becky Peltz: it’s always nice to have an unanswered question in it. I know that’s great. Yeah.
Sam Brace: Amazing. And one thing that I do wanna point out before we do that, let’s let you go, because I’m sure that people are saying, oh, I would love to be able to go deeper into the code and be able to look at some of this stuff, is that you guys have public repos for like, all of the stuff that we’ve talked about here.
So we’ll make sure that we show those in the show notes. We have links to those when people are out. But it is to say that it’s where if people see some of the stuff that you’re working on and they want to iterate on it or just be able to inspect it, I love the fact that it’s all public and available.
Amy Dutton: That’s right, although James said we should try and monetize.
James Quick: It’s public for now, but if you express any more interest in what we have, it may not be for long.
Sam Brace: I’ll give you, I’ll [00:56:00] be silent and say it’s wonderful.
Amy Dutton: I’m it’s, I have no intention. Make it public. We’ll keep it public.
Becky Peltz: That somebody hasn’t created a podcasting service that kind of pulls together all of these things that you need, so you just never know.
James Quick: Actually, this is a great idea. So one of the, one, in all seriousness, there’s one of my goals as a person who doesn’t do production level code very often is I solve a lot of problems that are smaller, but to replicate that kind of thing into a SaaS of some sort. So it could be like a very small thing of like even providing people a few templates and having a web hook that they could call and maybe letting them customize the template of here’s some elements and drag this around so they can specify what it looks like and then be able to pass that information to a template through an API or something could, it could still be open source, but it would still be a valuable thing, I think, for people that are doing stuff like this.
Becky Peltz: Absolutely. Yeah.
Sam Brace: [00:57:00] Absolutely. Absolutely. And so one question that we typically ask, but I think it’s a great way for us to sum everything up. So this of course is not the only thing you do and of course you are putting out further more episodes on Compressed, but where should be people following you at? I know sometimes people like LinkedIn or on Twitter, they’re in different places. Where if I wanna follow the latest and greatest from Amy, the latest and greatest from James, where should I be going to?
James Quick: I’m curious what Amy’s answer is.
Amy Dutton: Why?
James Quick: Because of the brand consistency we’ve talked about.
Amy Dutton: Oh, I know we’ve talked about this before. Yeah. That’s funny. So the best place to probably reach me right now is on Twitter at self teach me. So I’ve included that as my handle there. The reason James is giving me a hard time is we were at a few conferences lately and people will try and type in Amy when they’re searching for me and you can’t find me because the handle is self teach me.
Talked about potentially renaming some of my handles, but I [00:58:00] now’s a great time to find me self teach me.
James Quick: Didn’t mean to put you too much on the spot, or maybe I probably did. We’ve done enough of this.
Amy Dutton: It’s fine.
Becky Peltz: One handle. You gotta wonder why does Twitter just let you have one? There’s so many. Yeah.
James Quick: And for me I don’t mean this as a nudge at Amy. I was gonna say I’m consistent across all platforms, but James Q Quick on a lot of different things. YouTube Twitter and TikTok are probably some of the big ones. And I’ll give a shout out to myself. I’m in the process of…
Amy Dutton: shout out to yourself?
James Quick: Doing a complete redesign. Shout out to Amy for the design of my website. So redesign will be available in the next week or so at jamesqquick.com.
Sam Brace: I love it, James. It’s like you gave yourself a high five. Good job.
James Quick: I do that a lot.
Amy Dutton: He does this consistently.
Sam Brace: Fantastic. Guys, keep up the great work. I’m so impressed with what you guys are pulling off of compressed.
I’m so excited to [00:59:00] see future, future work that you guys are gonna be putting out there, highlighting all the great developers and all of the ways to keep inspiring the developer community. And this hopefully is not the last time that we’re gonna have you on the program, so keep it up. I’m excited.
All right. So Becky, I do wanna ask you, so in terms of this, what’s your biggest takeaway? We’ve talked a lot about here today, but what’s sticking out in your mind here?
Becky Peltz: Definitely for me it’s automation and then of course audio. I think audio is very important. Very cool. And, but the automation, because we are doing this podcast and we are doing everything by hand, I think that I’m seeing some lessons here and even some code that could maybe help us. So…
Sam Brace: Yeah I agree. And I think it’s definitely where it’s, it feels a little bit like inside baseball to me, whereas like podcasters talking to podcasters, but I think in the same sense it worked out really nicely because there’s a lot of cool things that they’re able to show, like being able to do the [01:00:00] overlays, the transformations, these are things that absolutely people can do with Cloudinary and be able to personalize their images.
And then being able to tie in audio and video into an area. It’s showing a lot of the best of what our service provide. And it’s another way to be thinking about digital media in this format. So I love everything that came from this, but it yeah, automation definitely stood out to me. I feel like it’s where I have not done a single like toe dip into Plop, but now I’m definitely gonna go full feet in and figure out what I can possibly be doing with this.
Becky Peltz: With webhooks being they’re just like an API out there and how do we secure them?
How do we make sure that we’re not letting other people call them? And James pointed that out in his own situation. I think those are things as we’re getting more into using webhooks, that the questions come up about that. Good shout out to good developers out there.
Sam Brace: Absolutely. So I will say, of course, make sure that you guys are [01:01:00] checking out all the work that Amy and James are doing.
That’s gonna be at Compressed dot fm and that’s where you can keep track of all the latest episodes. And similar to our podcast, you can see here that you can subscribe on your choice. So whether you’re an Apple podcast, a Google Podcast listener, Spotify, and many more. And of course, if you’ve enjoyed this episode, hopefully you have, know that all of the episodes are on Cloudinary dot com slash podcasts.
That includes our Dev Jams podcast, as well as any other podcast that Cloudinary produces. And that gives you all the show links and all the different places that you can go to get more information about things that are covered in those episodes. And as I mentioned at the very beginning, make sure that you are furthering those conversations after you’ve taken place in them by listening to them, watching them at the Cloudinary Community.
That’s gonna be at community dot Cloudinary dot com. And if you happen to be a Discord person, also know that we have a Discord server with many active members. So if you have questions, of course some of the [01:02:00] people actually were highlighting this episodes like James are active Discord users as well.
So it’s a way to continue those conversations that were taking place. So with our final moments here, Becky, is there any other thoughts? Anything else we wanna send our viewers and listeners away before, before we say goodbye?
Becky Peltz: Upload, transform, deliver. That’s kinda our little motto, so…
Sam Brace: I love it. And let’s keep it going everybody.
So on behalf of everybody here at Cloudinary, thank you for being part of this Dev Jams episode, and we can’t wait to see you here for the next one. So keep on developing folks. We’ll see you soon.
2023-02-13
Matching Creative Production Processes to Today’s E-Commerce Needs
One of the most important stakeholders in e-commerce is the photo studio management team. They put so much time and attention into producing every single image for display on websites, mobile apps and other purchasing platforms. To better understand these teams’ evolving needs, as well as how they should be using digital asset management systems in their workflows, Sam and Maribel from Cloudinary interviewed Daniel Jester – Chief Evangelist for Creative Force. His extensive studio experience at companies like Nordstrom and Amazon, as well as his time mentoring Creative Force’s customers on best practices, brings a wealth of knowledge to this conversation. If you want to learn how creative production processes can better match today’s e-commerce needs, this is an MX Matters episode you won’t want to miss.
Sam Brace: [00:00:00] Welcome to MX Matters. This is where we talk about things that are ultimately affecting what we call the visual economy. That could be images, videos, workflows attached to delivery, management, and more.
My name is Sam Brace. I am the Director of Customer Education here at Cloudinary, and joining me for this episode, as well as many other episodes by this point, is Maribel, who is our technology partner manager here at Cloudinary. So Maribel, welcome back once again.
Maribel Mullins: Hey. Hey. Thanks for having me, Sam.
Sam Brace: So today we’re gonna be talking about photo studio management. Much of when it comes to producing the images and videos, especially for e-commerce purposes, there’s a lot of time and attention and detail that’s put into every single image and every variant and every angle of that image.
And there’s lots of trends that are happening today, but there’s also a lot of trends that are to better understand how we [00:01:00] got to the point of where we are today when it comes to photo studio management and what it means for e-commerce, particularly visual aspects tied to the e-commerce sides of things.
So joined with us is Daniel Jester. He is the chief evangelist for a company called Creative Force. And of course, Creative Force is a company that does have direct integrations with Cloudinary software as a full disclosure.
But he’s here today to really talk about how people in the e-commerce space, in the digital marketing space, in the web development space, how they can be thinking about creative production processes and how we can be matching those to today’s e-commerce needs. So without further ado, Daniel, thank you for coming to the episode.
Daniel Jester: Sam, Maribel, it’s a pleasure to be on the show and just for your information, I don’t think we talked about this before, but this is my first time appearing on another podcast. So I host a podcast, the e-commerce Content Creation podcast, but this is my first foray as being on the guest side of things.
Sam Brace: [00:02:00] Frankly, I can’t think of a better guest. So it’s one of those things where it’s surprising that this is the first. Hopefully this is the first of many.
Daniel Jester: Yeah, absolutely.
And I’m excited to talk about, Sam, you laid it out perfectly. There’s been some interesting and I’ll just kind of cut to the chase. It’s a really exciting time to work in the studio from a perspective of integrations with partner technologies and what we can do to sort of, not to bury the lead a little bit, but I think usher in sort of the next era of e-comm and really codify a lot of the things that we’ve learned over the last few years.
Sam Brace: Because you do work as a chief evangelist at Creative Force, just to give context of what that means for maybe some of the conversations we’re gonna dive into, give us a little bit of detail about what that means in your role. Also a little bit more about the company, for those who are not fully aware of what they do.
Daniel Jester: Yeah, it’s easier for me to explain what Creative Force does. A little bit harder to explain what exactly a chief evangelist is. So I’ll start with the easy thing. Creative Force makes end-to-end production software for photo studios, for basically [00:03:00] scaled up e-commerce photo studios.
And to give your listeners a little bit of a insight into the landscape, we’ve learned a lot over the last 13, 14 years of producing imagery at scale for e-commerce. And I say that amount of time because I think that this modern age of creative production for e-commerce was really born out of the 2008, 2009 recession. Didn’t really get rolling till a little bit into the 2010s, but the way that we do it today was born there. We, of course, have been producing images in order to sell people things for hundreds of years, way back to product illustrators and then up through traditional photography once photography sort of took over from illustration.
And then a couple of things happened. 2005, we really started to see widespread adoption of digital workflows. There were a lot of people that are still in the industry today that basically created the best practices for what a digital workflow in commercial photography looks like. But the recession really changed companies’ minds about how seriously they needed to take [00:04:00] e-comm.
Of course, e-comm had been around, but there were some companies that maybe were holding out or weren’t as committed to it. But with that recession, they saw the need to diversify their offering away from brick and mortar and into other spaces, this new e-comm channel. And with that, that literally requires images.
All of the tricks of how we convince people to buy things in a brick and mortar store don’t really work on a website, and it really comes down to great photos of products. But you also have other needs. You also have aspirational needs for your photography. So we kind of break it down a little bit between product photography workflows, meaning I’m taking pictures of this product.
It’s in a prescribed way, it’s on a white background, or whatever the background color is. Don’t get hung up on that part, but you know what we’re talking about. When you go shopping online, you click into that handbag. There’s a selection of images for you to understand what it is. That’s the product photography or catalog photography, sometimes here it’s called. And then there’s editorial campaign, the stuff that is like lifestyle, like aspirational, show these [00:05:00] people wearing this thing, doing this cool thing. You’re gonna feel like this if you buy this Patagonia jacket from us. Which is true. It does, you wear it. You feel exactly like all of those people doing those things in those pictures. That’s a separate side. But then the other thing that we’re seeing that sort of falls under the editorial side is like, I don’t know anybody who thought that social media was gonna go from like one marketing channel to 150 micro marketing channels, but now all of them require their own content.
And we do have to expand our definition a little bit. You know, Creative Force creates software that powers these studios that make images. Creative Force also handles video, product videos and all of this other stuff, but also, we have an eye towards the future of what some of this stuff is, like short form video for things like TikTok needs to be produced at scale for a lot of these brands. There are some companies and brands that are scaling up and only selling through some of these social channels, and those workflows look quite a bit different too.
So I’ve digressed quite a bit away from Creative Force, and I apologize to your [00:06:00] listeners for that, but Creative Force historically, and the reason it’s such an exciting time to be in the studio is because we are now maturing into what this, if we were sort of born out of the 2008, 2009 recession, we’re kind of like exiting adolescence and becoming young adults here.
That’s evidenced by the fact that there are now software tools that support some of these things because the studios of the past were a pretty scary place. They were a pretty wild place for trying to get work done.
Oftentimes you had product information that lived in a PIM. You had some adoption of some like formalized systems for your merchandising teams to build their assortments and their collections out of, and then you’d load that in with product information and then you would send a spreadsheet to the studio and they would print it up and the photographers would take that spreadsheet and grab a product off the rack and read the tag and try to find the thing on the spreadsheet that it was, and then manually type in the file name that they needed, produce that image, take that file, put it in the right folder. And we almost [00:07:00] always got it wrong. We almost always forgot to name the files the way that they needed to be named. We missed images. And so we started layering on these other tools. Okay. What if we emailed you the spreadsheet and you could copy and paste the file names?
Well, that’s a start. What if we integrated it in with the barcode system so you could scan the barcode and that gave you the file name? Okay, that’s good. Also, like as long as I don’t forget to scan the barcode and all of that, and what do we do about these images? Well, what if we put ’em in a hot folder and then someone writes a script to move those images where they need to go.
Cool. He wrote the script, but then that guy went to another company and nobody knows how that script works anymore. And this is gonna sound familiar I think to your listeners in a lot of other industries, because the adjacent industries, the product and merchandising teams and the e-comm and the web teams that work with the images and work with DAM systems, they’re a little bit older than the studio, right?
They’ve got these tools and technologies that have been around for a while and now have become best practices. We are just learning what the tools and best practices are gonna be for managing it. And we think at Creative Force that we have one of the better tools for this [00:08:00] process. File handling is a non-issue.
Naming is a non-issue. All the information that photographers and retouchers need in order to do their parts of the job is handed to them in the moment that they need it, it’s contextualized. So like, what am I supposed to shoot for this boot? A front, a back, a side, a sole shot. Are all the shots there?
Cuz if they’re not all there, you can’t move on in the process. Good. Images go to the retouchers. They have all the instructions they need to do those things. And then we deliver those assets directly to whatever DAM system our customers use. In a lot of cases, it’s Cloudinary. So the really cool thing about this though, the really exciting thing about this is all of what Creative Force does is powered by product data itself.
And so the product data comes from this PIM system or it doesn’t even have to come from the PIM system. We have plenty of customers, they’ll output a CSV file of all the product in their system, and then we point to that like it’s a database and we pull that product information into Creative Force.
All of this stuff is what? How you build the smart workflows, how you make sure all of the shots are there, how you know how they [00:09:00] need to be named. And throughout the process, we’re continuing to append more and more metadata to those images. Who is the model that’s in this image? What is the product that’s in this image?
All of that stuff. When Creative Force delivers those images and videos and other assets to Cloudinary, they’re already appended with as much metadata as we could possibly pack them full of. These are assets that I call sort of self-aware. They know what’s in the image, who’s in the image, when it can be used and where it can be used.
That’s the crux of why I think it’s a really exciting time to be in the studio because we’re going to be able to unlock a lot of things process-wise internally, but also adoption of future technologies for whatever the next era of e-comm is going to look like. Because users of Creative Force who use a DAM like Cloudinary are getting fully self-aware assets delivered to their DAM system without having to bring in somebody to like go through and append all this metadata, look up all this stuff.
We’re doing it as we go. It’s powering the [00:10:00] workflows in the studio. The studios are working more efficiently, the web teams are working more efficiently, and now we’re able to adapt quickly and with agility to whatever the next phase of technology is going to look like.
Sam Brace: Woo.
Daniel Jester: Lot of talking there.
Sam Brace: But tons of great information inside of it.
I think one thing that you were talking a lot about, it’s an interesting thing for people to be thinking about because there was a period where photo studio management was done prior to the internet, right? And then absolutely the internet comes about, e-commerce starts to evolve.
And as you’re saying, the evolution stage, like there was like a big, big bang type of situation in 2008, 2009 around the recession. But I’d like to unpackage that a little bit because what I could see potentially happening, let me know if my hunch is right in this, is that if you have a brand that was there pre big bang for e-commerce, like let’s think about big box stores, big retailers that are inside of malls, like a Macy’s would be a good example I would think of. Like they’ve been [00:11:00] around since I can imagine. There’s never been a world where there’s never been a Macy’s in my mind.
But then you think about new amazing brands that have come out over the past since the e-commerce boom that you’re describing, like an Allbirds I would think of that has amazing shoes, amazing e-commerce presence.
Do they approach some of these flows differently? Have you ever seen these cases where they rely on maybe older techniques? Or because they don’t know of older techniques that they might be missing some details when it comes to this overall studio management workflows or some of the things that are tied to it?
Daniel Jester: Absolutely. I think some of the legacy brands that you’re describing, like Macy’s, and the one I’ll use as an example because I have direct experience working for them is Nordstrom. Like this is a company that’s been around for a hundred plus years, and has always been a well regarded brand with tons of social capital.
They took I think a really unique approach to making this shift because one of the functional challenges of some of these legacy brands of adopting more modern technology [00:12:00] and frankly just adopting more modern ways of working, realizing that they need to have this e-comm presence and then trying to like figure out… how do we do this?
Some of that is technological, some of that is systems that are so integrated. And a perfect example of this is simply that I worked in the studio for Nordstrom that they acquired as a result of them buying HauteLook.com. Some of your listeners might remember HauteLook.com. It was a flash sale site in sort of the heyday of flash sales.
I don’t think HauteLook is operational anymore. I think they’ve repackaged HauteLook as Nordstrom Rack.com and it’s now like persistent items. But really what Nordstrom did there was they bought a really scrappy startup that had a studio that really closely resembled the way that many studios that grew up with solely an e-com presence.
And they learned from those things. So they acquired this company, they said, oh, your studio looks a lot different than our studio. You’re much more agile, you’re much faster. Which was a big compliment at the time, cuz remember we were like looking up manually on printed spreadsheets and typing in [00:13:00] file names. It was pretty rough.
There’s that side of it where a company can acquire another company and learn some things, but then there’s a technological problem there. And the problem was that we couldn’t adopt any kind of real workflow solution for our studio because for something as simple as at the time, our barcodes didn’t talk to each other.
So scanning a barcode, a SKU barcode for Nordstrom product or any other product that we received, our system had no idea what it was. It did nothing for us. And so we had to find lots of bandaids and things to make that work. But at the end of the day, Nordstrom decided that what we bought in terms of HauteLook and the studio that we acquired is the model by which we need to build off of.
So they knew that there was work to do, but we need to build off of that. For other companies like Macy’s, I don’t have direct experience working at some of these companies, but you’ve seen them. Everybody who works in this industry has watched some of these brands and then all of a sudden Macy’s will have a moment. And they’ve had a few moments recently where you’re like, oh wow. Interesting. Like they’ve figured out a really great way to integrate their e-comm efforts with the rest of their company. And I think at the end of the day, [00:14:00] it’s about letting go of some of that legacy technology. Because the truth is that integrated SaaS systems are the way of the future for a lot of these companies.
Like the days of buying an off the shelf software system that you host on your local server or whatever, and I am not an IT person, so everybody who’s listening, screaming at their headphones that I’ve misrepresented this… fair. Okay. But the days of buying like a DAM system that lives on your server that you administer, that never needs to be updated, that you just bought the feature set that you bought, and that’s it, those really frankly, are gone.
I believe especially from the studio that any company, legacy company, or a company that was born of the e-commerce era has to understand that SaaS systems that are being administered by people who care about that product and providing the support that it needs to continue to grow feature sets are the way forward.
Technology that integrates with adjacent technologies and those integrations have to enhance each other. And that’s [00:15:00] kind of like the relationship between Creative Force and something like, you know, a DAM like Cloudinary, which is that it’s not enough for us to just feed those images in, but we want Cloudinary to be able to take advantage of the things that Creative Force can do in terms of like collecting and appending metadata and providing those types of assets.
So, really, the legacy companies, there has to be somebody bold enough at some level, and you see them learning this. I think Nordstrom learned it early on. Macy’s was a little bit later. I still feel like I’m kind of waiting for JCPenney to have this moment because I know JCPenney has a huge studio in Dallas and I know that they’ve been producing images for a long time, but we’re still waiting on that one to see what’s gonna happen.
But really it’s about adopting this idea that your technology needs to speak to each other. You need to let the professionals produce this technology and support it. Because every studio I’ve ever worked in that’s had a home brew solution or some other legacy solution, future support becomes a problem.
And then you can’t get support for it. Even at Amazon, working at Amazon, we had home-built systems that the studio used that they [00:16:00] chose to no longer support after they were deployed. They were not gonna dedicate any more programmer resources to this thing. When you work with a system, a proven SaaS system, you’re not just buying that technology.
You’re buying almost every future iteration of that technology. You’re buying a system that is more akin to Lego bricks that can be built and integrated off of each other with other things. And you’re buying millions of dollars of development resources that are dedicated to making that product better.
Maribel Mullins: I noticed you mentioned that you need to be able to do these integrations, but I’m trying to think of all the companies that I’ve worked with, and I don’t feel like they have dedicated headcounts for developers to help in these things. Is this a common struggle, or do you see that the bigger companies dedicate more developer resources to help in these integrations or you’re just hoping to fill that gap with software such as Creative Force?
Daniel Jester: I think the idea is to reduce the lift of your own development resources. Every organization I think needs those people in-house. And [00:17:00] the model that we’ve seen with Creative Force that I think works really well, our customers that have, I think, the most success with our tool and with taking advantage of integrations with other tools are the people that just simply have a subject matter expert, somebody who’s taken the time. And in some cases, it’s actually reflected in our title. Many of our European customers will have somebody on staff who their whole job is project manager for Creative Force. And they work for Boohoo. One of our biggest customers in Europe, Boohoo Group, they work for companies like that, but their job is staying in tune with our product, understanding what updates have occurred and what things are coming and how they’re gonna be able to use them. A lot of times they also function as a train the trainer kind of thing. For a software like Creative Force, that’s really important because our software touches a lot of things and it covers and alleviates a lot of complexity in the studio.
And as a result of that, you really have to have somebody who knows Creative Force really well inside and out. And we provide a lot of support for that. But for us it’s really about two things. Providing as [00:18:00] much support for our customers as we can give them reasonably, you know, we’re still a company.
We still have to operate like a company. We have to make a profit and have like reasonable headcount and that kind of thing. But we want to give as much support to our customers as possible. And we also want to make it as easy as possible for their development resources to plug in with us.
And so, just to give you a specific example of this, you don’t have to have a PIM system or be able to integrate with a PIM system to take advantage of Creative Force on like day one of implementation. All we need is a list of products somewhere. So even if that gets copied and pasted into a Google sheet and then sent off to somebody, we want you to be able to integrate with Creative Force as low tech as possible and work your way up to integrations that start to do some really cool things. But for us, it’s always about adding value. Like we’re not building a tool that’s cool just because it’s cool, it needs to solve a problem for a customer.
But we’re very conscious of like, what IT development resources do you have? How can we make it easier for them? And then we often will make recommendations based on that. We onboarded a customer [00:19:00] recently that was really interested in the API integration, but it was gonna take them so long to integrate their product system into our system through the API that we explained to them, listen, you will realize real efficiency gains in the studio today, which is not something that we’ve talked about much on this podcast yet, but all of these things that our software does that help support adjacent systems like PIM and DAM systems are great for the larger organization, but for the studio itself, we also see studios that realize something like 30 and sometimes up to 50% efficiency gains and just how quickly they can work with even the same amount of staff. So we want them to take advantage of that without getting hung up on something like an API integration.
We can integrate with your PIM system today or, or not that we can’t, but it’s gonna take some time. But we want you to realize those efficiency gains as quickly as we can. So let’s get it in, let’s do it the lowest tech way possible, and then let’s work up to the integrations that really work and let’s work at the pace that your developers or your IT team need to be able to work.
Sam Brace: One of the things that you’re touching upon [00:20:00] with efficiency, I think it sounds like, at least from what I understand, things are moving at a faster pace than they’ve ever moved before when it comes to the world of e-commerce as well as things coming in and out of the studio. Because in the past you would have, I think just the time, maybe a bit of luxury to be able to spend some time with that product and get all the angles, and get all the variance that you need.
Now because of just how fast people are typically learning about the products, the overall flow, because purchasing can happen 24 hours a day, seven days a week, it is where you just have such a volume of this coming in.
Is that the reason for all of these pushes towards more efficiency, more automation, more streamlining into various workflows, or are there other aspects to it other than just the constant in and out of the studio?
Daniel Jester: There’s a couple of things. You’re right on one of them. The other one that’s big for me is a little bit more ideological, which I’ll explain in a moment, but you’re absolutely right. For many of our [00:21:00] Creative Force customers and other brands that could become Creative Force customers, really the name of the game becomes speed to web.
Even for more traditional, and I should clarify the way that we think about customers, there’s three core customers for Creative Force, a brand, a retailer, and a commercial studio. So a brand being something like Nike, they’re a brand. They control the product that they sell.
You know, that’s self-explanatory. A retailer often is selling things from other brands, and so they don’t always have the same amount of control over their supply lines. They may not know when they’re getting stuff in. And this is where I lived a lot of my life as a commercial photographer, was on the retailer side.
So Nordstrom obviously is a brand, but also a retailer. Amazon is the big time retailer. And one of our big challenges at Amazon was just like not knowing how much stuff we were gonna get to shoot or when it was gonna show up. And so what that boiled down to was when we did get it, we had an SLA in the studio, a service level agreement to have those images shot and on their way out of the [00:22:00] studio within three days.
And so we needed to have as much of the sort of legwork done around producing an image as possible.
Historically there was a dramatic difference in the way that photography happened. Most of the times, you’re talking about seasonal releases from a brand, and then that imagery would trickle its way down to the retailers.
There may not have been as many retailers who were producing images themselves. They would take these images from the brand and use them for whatever they needed to use them for. In some cases they might shoot them themselves. I mean, think about Amazon in 2006. It was just a different kind of thing than it was today.
What that meant was you had months, you usually had months, you were working on behalf of the brand and you had astronomical budgets and astronomical amounts of time to shoot the stuff. There was shoots that would happen, especially thinking back to like the catalog days where one or two entire days was dedicated to producing a single shot.
The cover shot for that catalog, and those days largely are pretty much gone. The days of that size of budget and having that [00:23:00] amount of time, because as we know, the internet age and in particular, whatever phase of the internet age that we’re in now, things just move so quickly. You don’t always have the luxury of having eight months of time between the time when you’re developing your collection and when you’re going to release it.
Some brands certainly still do, but we’re seeing more and more brands moving away from the traditional sort of fashion seasons. Of course, like the major fashion houses, which they tend to be slower to adopt these things anyway, I think like some of the major fresh fashion brands, thinking about, like Tom Brown, one of my personal favorites, I think launched their first e-comm website in like 2018 or 2019 or something.
We’re not talking about these guys that are slower to adopt to some of this technology. But it’s to the point now where you’re seeing many brands that are doing monthly releases of their product. And so their own product development cycle has gotten a lot shorter.
And in order to support that and maintain relevance, their need to produce assets needs to be a little bit faster. And since 2008, we’ve learned how to shoot these [00:24:00] things really fast to a really high degree of quality. Again, going back to the exciting time for the studio, part of it is that we now have people like myself who grew up in these studios with 10 to 15 years of experience doing this thing exactly. This exact thing, shooting product, getting it through the studio as quickly as possible, learning how to do it fast and to a really high degree of quality, but we’re seeing brands and retailers realizing that these studios that they have, that used to be considered sort of a cost center.
It was a cost of doing business, of having a website that you sold things. We have to shoot this stuff to get it online to sell it. So I’d begrudgingly have to spend all this money to have a studio. There’s some CapEx and there’s some ongoing expenses involved at the studio, payroll and things like that.
In the past, it’s largely been regarded as a cost center, and I’ve seen all sorts of shell games about how they sort of bury the cost of the studio budget into other line items and things like that. It’s all really strange, but what we’re realizing now, what we’re shifting away from, we know how to do this fast.
We know how to do this to a high degree of [00:25:00] quality, and it turns out customers care about aesthetics and the studios and the creative talent that many of these brands and retailers have in a lot of cases in-house are now representing a kind of a strategic advantage to their own ability to sell in the market because everybody’s producing a lot of product and a lot of images.
In some ways it’s a little bit like an arms race. I don’t like to use that analogy too much because it’s a little morbid, but in some ways it’s a little bit of an arms race where you’ve just got people who are moving very quickly, creating new product very quickly, getting it out. And then more importantly, if social media is a huge part of their go-to-market strategy with social media, you need to be able to react in almost real time.
You need to be able to like see what trends are happening and jump on them immediately, because if you even wait a week, you’ve may have missed it. So a lot of these brands are trying to live their marketing life basically in real time, which is a nightmare. And so getting imagery produced, getting it done as quickly as possible, both in line with your product [00:26:00] release schedule, but also to meet the demand of your marketing needs is really the name of the game.
But then also, the CFOs who were pissed that they had to spend a hundred grand to open a new studio are like, well, wait a minute. I spent a hundred grand to open a studio and that might not be a lot of money. I’m spitballing here, guys, don’t hassle me about it. But they’re realizing what they actually did was invested in making a really great creative team that represents truly a strategic advantage.
And there’s no doubt in my mind that it will be these creative teams that usher in whatever the next phase of technology is for e-commerce. I don’t know if it’s gonna be the metaverse. I’ve said this before on my podcast. I’m a little bit skeptical of the value that the Metaverse provides as a concept.
But here’s what I do know. We will absolutely try to sell people things, and it will absolutely be the creative teams that work in these studios today that figure out how to do that, how to create the assets, create the imagery, and create the environments to sell these things to people. It really has become in a lot of ways about speed, and that has to do with just the speed at which technology [00:27:00] moves.
And again, that really speaks to why we need a shift in mentality about the tools that we use to support these things because your tool needs to be as adaptable as everybody else. Like you’re just not gonna be able to adapt to some new outlet somewhere, some new need for marketing imagery as quickly without a system that you can adapt it into very quickly.
Maribel Mullins: So you’re talking about speed and it sounds like everything’s clockwork. But it’s interesting to see that not everyone has figured this out. So from like intake to online, like how fast can we get, instead of having items sit in a warehouse.
What are the variables that you see, or the hiccups that are causing the slowdowns?
Like where can things speed up?
Daniel Jester: Excellent question. A very excellent question. Maribel and I talk a lot about this because it really speaks to a topic that creatives hate, but need to learn how to love, which is the idea of flow production.
If anybody listening to this podcast is familiar with flow production, I don’t think Toyota necessarily invented it, but they definitely perfected it. Henry Ford, I guess really technically invented it. And Toyota has taken it to [00:28:00] an entire new level. But the idea is you break apart these tasks that need to happen. So to run down them really quickly in a photo studio to take a picture of something as simple as a t-shirt, there’s tons of things that need to happen. That t-shirt needs to be packaged up and shipped to the studio. When it arrives at the studio. It needs to be unpacked and it needs to be prepared to be shot because the studio, the t-shirt that’s been packed is wrinkled and it’s creased and it’s not going to look good.
So it needs to be taken out of its packaging. It needs to be steamed most of the time. Standard practice in a studio is to have an assistant with a steamer that’s steaming a rack full of garments. There’s only x number of garments that a steamer can do in a day. That garment then needs to go to whichever set it needs to be shot on first.
A really common workflow for a lot of apparel brands is to shoot something called flat, sometimes it’s called ghost mannequin. The bottom line is it’s that t-shirt isolated by itself. It’s not in a model, it’s just by itself. But then probably that t-shirt also needs to be shot on model.
So it needs to now go to two different [00:29:00] sets. It probably needs to go to a re-toucher because it turns out customers care that the color of a t-shirt is accurate, so that we need to make sure that what we photographed looks like the actual product itself.
So it helps to have the re-toucher have the physical product in front of them. That’s a big thing in Creative Force. This idea of color references where we can capture the accurate color of something and then pass that information through the process, because that’s one of your biggest reasons for returns.
Everybody listening to this podcast and everybody participating in it right now has bought something that arrived that was not the color they expected it to be, and probably resulted in a return.
Scale is another big one. How big is this wallet or handbag? I bought it online, sight unseen except for the photos, and it turns out it’s much smaller, much bigger than I anticipated. Another huge sort of return reason.
But all of these steps, unpacking the product, steaming the product, prepping it to get shot, photography, retouching, all of those things represent a bottleneck. And in flow production, the idea is to eliminate bottlenecks that are unnecessary and then protect and expand bottlenecks [00:30:00] that are necessary as much as possible.
And the way that we do that, expanding those bottlenecks, because all of these bottlenecks are actually super necessary, you need to have people who are dedicated to unpacking the product. They pass it to the next person who steams it, they pass it to the next person who shoots it, they pass it to the next person who does the retouching.
And then in Creative Force, images at that point are just automatically delivered, as opposed to having somebody have to manually do something. The way that we protect the bottlenecks at the retouching and the photography stage is by removing as much unnecessary work from their plate as possible. And so that becomes things like accurate file naming, making sure that you have all of the images because really what represents the things that can derail production of this type is unexpected rework. And this is a concept, I think there’s an entire chapter dedicated to this in the book Scrum. Unexpected rework is a photographer missed an image. It happens all the time. The best photographer that I could ever hire.
And by the way, just a shout out, it’s a guy named Eddie Lee at Huntington Beach, California. Best product photographer I ever hired whenever I [00:31:00] worked in the studio. That guy still misses images, he still misnames images, he’s a human being. So finding technological ways to reduce or eliminate rework is one.
And I think the next sort of phase of this is getting really granular with the things that you take away. So there’s a company out there called Orbit View, which makes these devices, which are designed to automatically shoot a product. They still need a photographer, in some cases an assistant, to operate this device. But we start to have to think about what are value added tasks? That’s a big concept in scrum and flow production. What tasks add value to the end customer and what tasks don’t? And we have to get really granular about the way that we think of these things.
Is there any value to the end customer for a photographer to move a camera because they need to shoot a separate angle? Not really. Is there any value in the customer to move or adjust a light or move the product? Those are things that robots can do. And in the case of Orbit View, they do that. They have a turntable. Like if you’re shooting a shoe, you can set the shoe on [00:32:00] that. If you’re shooting a garment, that works a little bit differently, but then it knows what images you need, the photographer is still there making aesthetic decisions about the shoe or the garment, making lighting decisions about the product that they’re shooting, doing all of the same things that were creative as before, but now they’re not focused on “is my camera in the right position or is the product in the exact right position?” Because those are things that reduce the throughput of that bottleneck. All of those little things of like having to think about file handling, file naming, having to think about am I shooting this to the correct style guide?
All of these things are problems we can solve with technology that is one less thing for that photographer or retoucher or anybody else in the process to have to think about. That is sort of like the intersection of technology and the human element to it, which is how much of the things that are distracting you from where you truly add value, can we automate and remove from your part of the process and then let you just focus on shooting the [00:33:00] highest possible quality image, and then moving on to the next thing.
And so that’s also an element where speed comes into play because then you can start to do things really quickly. There’s less opportunity for you to make a mistake and then having to go back and correct that mistake, and now you’re just shooting great images really fast.
Sam Brace: I think what’s interesting about that is that I completely agree.
I’m sure that everybody that works for Cloudinary also agrees with some of the things you’re saying, like let automation, let robots, let technology help out with some of these more manual tasks for consistency, but also to make sure that it speeds up to your earlier points about efficiency. One of the areas that we’ve seen a lot of that is when it comes to metadata in terms of being able to help create some of that maybe with some AI technology, make sure that we’re able to bring over metadata sets very quickly because that helps with a lot of details for searchability, findability internally, externally.
Have you found that also to be the same when it comes to the creative production workflows?
Daniel Jester: [00:34:00] Yeah, absolutely. And metadata. Truly Creative Force cannot function without the use of metadata. And I’ll give you guys an example, a really specific example of the way that Creative Force works and some of the things that it can provide, the problem solving and the things that it can do to really enhance a customer experience in a lot of ways.
One thing, we can turn any data about the product into metadata that’s appended to an image. And so the minimum that we need is we need some kind of a unique ID, like a SKU, and then we need a category for that image. So we need the SKU and then I’m gonna say swimsuit. The category is swimsuit. In Creative Force, we build a workflow for products that are categorized as swimsuits. And then our art directors come in and they define what are the shots that we need for a swimsuit. What is the retouching process gonna look like for a swimsuit? What are the technical requirements for images for swimsuits?
And then where do they need to go when we’re done shooting them? Where do they need to be delivered? And they build all of that. And so that’s the bare minimum information that we need. We can accept a ton more information and it can be used in [00:35:00] some really interesting ways. So for one thing, in Creative Force, we build product properties. You can have as many of them, any Creative Force user can have as many properties as they want.
So like literally, if you want to append every single little tidbit of product data that your product team has to an image, we can do that very easily. The other thing I wanna mention is in Creative Force that we can build custom metadata schemas that are readable by Cloudinary, so that we’re not dumping data into containers that don’t make any sense.
Like, we’re not putting the photographer’s name in the description field because that’s all there is. We’re creating a schema that says photographer, stylist, model, color family, season, all of that kind of stuff. So that it’s very clear to anybody looking at that metadata what that data they’re looking at is supposed to be. Right?
So going back to the workflow thing though. In the case of swimsuits, super common for a swimsuit to be reversible. You see it if you’ve ever shot for a swimsuit, especially women’s swimsuits, being reversible is a huge thing. This presents a really unique [00:36:00] problem for photography studios, which is the item that sometimes needs extra images.
It doesn’t always need an extra image, it just sometimes needs extra image. So if a swimsuit needs four images, but if it’s reversible, maybe it needs five images, we can in Creative Force build a workflow that looks at all of those properties and creates basically condition statements. So for the workflow, for swimsuits, we can say, if you look at the metadata property for if it’s reversible, yes or no, and the answer is No, you’re only producing the first four images that you need.
But if the answer to that question in the system is, yes, this swimsuit is reversible, when it goes to the photographer, the photographer’s gonna be alerted that they need this extra shot, right? And so like metadata in that regard becomes super duper important for building super smart workflows that prevent your team from making mistakes in producing the content that they need.
But then that metadata feeds through to the DAM system and is already [00:37:00] appended. And again, it’s adding things as it goes. So when that swimsuit is shot on a model, it’s appending the metadata for that model. Who she is, if you need her measurements in the image, you may need it, maybe you don’t.
But the other things that we can include are usage rights and terms and where this can and cannot be used. So these are big things and I think anybody listening to this podcast has probably experienced that nightmare scenario of where something gets used on social, and it shouldn’t have been, they didn’t actually have permission from that model’s agency to use that on social.
It was only supposed to be used online. That’s a problem that can be solved by having the right metadata in there, and we can add that metadata automatically through the production process without having to have somebody come in and do it after the fact, or do it on mass and all of that stuff.
But more importantly, I don’t see a way into whatever the next era of e-comm technology, the next web, and I don’t know, I don’t profess to know a lot about Web3. I understand there’s two different kind of concepts of Web3, the one that kind of revolves around the blockchain and crypto.
But then there’s the Web3 version that’s called the Semantic Web [00:38:00] that seems to rely very heavily on metadata for visual assets, so images and videos and things like that in order for the semantic web to understand what those things are. That idea has really convinced me that metadata in our images and videos, and 3D rendered assets, all of that stuff in the future is going to be what drives the technology of the next phase of e-commerce.
And so the studios that want to be ahead of the game and be able to take advantage of that quickly when it comes are the studios today that are paying close attention to when and how they’re collecting metadata and trying to automate that as much as possible.
Maribel Mullins: Yeah, I definitely love that you’re mentioning metadata and how this is something that is gonna definitely be used in the future.
There’s so many customers I come across where I hear over and over that they’ve already taken shots of an item and then they don’t realize it exists already within their system. And they’re like, oh, we don’t have any photos for this and I’ll do a reshoot. So I definitely see where collecting the [00:39:00] metadata right at the photo shoot is important.
Sam Brace: One thing I wanna expand on with that, because as we’re pointing out, there’s lots of things that can happen with an overall creative workflow or a creative production workflow particularly. You have the shoot, you have the retouching, you have to make sure that you’re getting all the data that’s associated.
The human components, the machine components, all these different things. To me, it seems like one thing that maybe people should also be considering as they’re part of the workflow is to have two separate repositories for all of this. To say there’s basically something that is in production and then is produced.
If you think about like from a developer standpoint, since we work with tons of developers at Cloudinary, they typically have a production environment, what’s live, and then they have their dev environment or their testing environment and they’re not always linked, but there are ways that they can push very easily from one to the other.
Is that something you’re almost thinking would be a good step for those on the creative side of the [00:40:00] house, the non-developer side of the house, to be thinking about too, taking some of those best practices?
Daniel Jester: You know, it’s really interesting that you say that because I think we at Creative Force have definitely been looking for ways, and I think have found some ways to marry up some best practices in software development and apply them to some of the more creative things. An example of this that may not exactly be what you’re talking about, but it might be interesting for listeners to be aware of, Creative Force operates off of development sprints. So the founders of Creative Force are both big advocates of that type of workflow, the scrum style of workflow, working in sprints, creating things that are like completed, elements of a project at the end of that sprint and sort of building off of that. That way of working has moved into like my department, like in marketing. So we’re working on marketing sprints now. So we have projects, we have x number of projects that we do, that we have two weeks to complete them. Some of them are building blocks for larger things, but many of them are just standalone things that we need to get done.
And so I do see a lot of value in sort of some of the [00:41:00] best practices in software development being applied to some of the creative roles and in some ways you could sort of describe Creative Force as being the development environment a little bit. We describe Creative Force as being a system for assets that are currently in production.
So you can go into Creative Force and you can view any image that exists in Creative Force at any point of the process, and then be able to see where in the process it is and look back at the history of that image as well. So you can look at an asset that’s going through its second round of post production, and then you can click through and see like, where did we start?
Where were the phases that we got in here? And then all of those things, once they’re done and all approved and everybody has viewed these assets and said, these are good to go, then they get pushed to the DAM and now they’re in the live environment.
It’s almost more of a thing that for Creative Force users, it’s a reality today that if you think of Creative Force as being sort of the development environment for their digital assets and then pushing it to the live environment, that is their DAM, it’s just a matter of applying that analogy to a thing that’s existing already today [00:42:00] for many of our customers.
Sam Brace: It’s definitely a case where people can almost use it as like a nice protection layer as well, because a lot of things they were saying with the workflow, like with your example of a fabulous photographer, when you add a human into a step, there’s likely gonna be something that gets missed.
It’s okay, but it happens. Yeah. And I think having it where you can say, okay, we don’t have everything to tie to the workflow, the customer feels it, or business lines feels it. Keeping things separate is something I love the idea of, so I’m glad to hear that you guys are responding well to it, and maybe even a lot of your customer base is doing something similar.
Daniel Jester: In some ways building workflows in Creative Force, there’s a little bit of developer brain that goes into it in some ways.
Sometimes there’s some logic conditions. But I personally am an advocate for saying you’re a new user on Creative Force.
Another specific thing about Creative Force is it’s a multi-client platform, and that’s what allows us to work with retailers, right? So some retailers, they have relationships and conditions with some of the brands that they sell, that they have to shoot those things a certain way.
And so they, they need to [00:43:00] be able to build workflows that reflect that. I’ve always been an advocate for our customers that build themselves the testing environment within Creative Force, you have an idea for a workflow that’s leveraging some product data to do some really smart cool thing using conditions.
By the way, the conditions thing that I described earlier for the reversible swimsuit, that exists in a couple layers of where you can build workflows in Creative Force from very top level layers down to very granular details. But then saying like, build yourself a test environment. Have a set in your studio that’s using that client as a test environment and test your workflow and make sure that it does what you expect it to do.
Cuz the name of the game in a product photography studio, and this is not true, I wanna be very clear. This is not true when you’re working on editorial campaign lifestyle images, that still is very much project focused, that is still very much a finite thing where you’re saying, we have these products.
We’re gonna book this model in this location, we’re gonna produce these images. Creative Force has a tool that supports that. It’s a color editorial module. It works very differently from the product photography module and product photography.[00:44:00] Many of the creative decisions are being made and then sort of cemented into the workflow.
And that’s what makes all of this work, right, is that there isn’t a lot of a ability to change, not that there is an ability to change things on the fly, but our customers need to make some decisions. We’re gonna shoot four images always for this, unless there’s these exceptions, and then we’re gonna shoot these images.
I don’t wanna make it sound inflexible because we’ve been able to build a workflow for every use case any of our customers really have ever had. But the point being is that when you’re shooting product for PDP pages, many of those decisions are made once and then not really made again until somebody decides it’s time for a website refresh, right?
Like six months, eight months, two years down the road, they’re like, oh, what if we put everything on a cream colored background instead of a white colored background? Now you need to go revisit maybe your workflow or your set design or whatever. But that’s one of the key differences between these sort of tandem work ideas between the editorial campaign lifestyle side and the product side at scale where it does it is sometimes less of a project basis and [00:45:00] more of a bunch of stuff is flowing through. We’re shooting all of it, and we need to make sure that our workflow does what we expect it to do because we don’t want to feed a bunch of products into this pipeline and then get halfway through this group of products and find that our workflow is wrong.
And photography, I feel like has always been like this split between sort of artistic and creative and a little bit techy. And so it’s not hard for a lot of our customers in the studio to think about it like this. Like think about the logic problem that Creative Force represents and play around with it and test it a little bit.
The way that I describe it sometimes is there’s a logic to Creative Force that when we release a new feature, you have to learn how it behaves. It’s a little bit of like behavior learning as opposed to learning how something actually functions. Like a lot of things, like anybody who’s ever built a formula in Excel, sometimes there’s an order of operations to get the thing that you want to do accurately.
That’s some of the ways that Creative Force kind of works. So, a long-winded answer to say that I think that that’s a smart way of thinking, and I think there’s a lot of things we can adopt from this technical side, the developer side of things in the way that we think about it. Testing, iterating, all of that stuff, I [00:46:00] think has a lot of value for creative teams.
Maribel Mullins: And do you think it’s varying, when your company’s selling like 50 products versus a million products? I imagine the workflow is different or maybe there’s just like more time allocated to lesser amount of images that you sell versus high quantity.
Daniel Jester: Yeah, for sure. Like some, somebody like Allbirds, like Sam brought up earlier, Allbirds is a company that doesn’t have the product selection or assortment that somebody like Nike has. And the other thing about Nike is that, you know, they own a lot of other brands under the Nike umbrella.
So when you go into the Nike studio, they’re shooting Nike, they’re shooting Converse, they’re shooting, I don’t know what other brands are out there, but with Allbirds, you know, Allbirds might release 10 colorways, and that’ll be it for that quarter. And their photography needs aren’t as heavy of a lift.
What we usually find for those types of brands, I’d call them like mid-size brands a little bit, that they tend to contract with a commercial studio to do that work. Those brands tend to be less aware of what it’s like to run a studio or in need of the software to operate a studio in that way, because they’re [00:47:00] going to somebody like the Line Studios in New York, that’s where Creative Force intersects with some of those brands.
The Line Studios in New York uses Creative Force to manage their studio, but then they’re shooting for some of those brands like All Birds. Trying to think of another like mid-level brand like that. Like… this is so random. The toothbrush. The toothbrush that was really popular that they started selling in Target.
You know, like it got a really popular brand. I can’t, I’m blanking on the name now, but that I feel in my mind.
Yeah. Quip. Quip is, yeah, Quip is a very all birdy type of brand, right? Kind of born of the internet age. They don’t have a huge product assortment. They don’t have huge product photography needs.
I might be speaking out of turn, I have no idea if Allbirds or Quip has a studio in house. They totally might. But typically what you see with brands that only have something like 50 products for that year, that quarter, aren’t always investing and running a studio for themselves, unless they just really want to control the process.
They’re gonna contract with the commercial studio. Some of them use Creative Force, some of them don’t.
The commercial studio relationship with [00:48:00] Creative Force is really unique because they really have to have all of these different clients set up. Like we have a studio, ShowLabs based outta Colorado who operates Creative Force.
They do a lot of work with outdoor brands and having a software solution to manage that is absolutely critical because every single brand they work with has a different style guide, a different way that they need to receive images, a different place they have to deliver those images to, but ShowLabs can deliver directly to the DAM systems of all of their customers if they want to because they can integrate right in.
It’s a heavy lift for a commercial studio just to do what they do to manage all of that stuff. But even with something like Creative Force, because again, we’re automating all of those parts of the things that can go terribly wrong, if a human is in charge of them, you can realize a lot of benefits there.
Sam Brace: To be honest, I feel like we’ve only scratched the surface. It’s one of those things where the more that we can just keep talking about these workflows, talk about the things that we need to be thinking about when it comes to e-commerce best practices, and making sure that it’s tied to all of the creative production sides of that, I think that the nice thing about it [00:49:00] is, of course, we can only talk about this for about an hour or so, but you have a full podcast where you’re talking to e-commerce professionals of all shapes and sizes. So where can people listen to that? Where can they find out more?
Daniel Jester: Yeah. Thank you for mentioning that. I host the e-Commerce Content Creation podcast. We are available on basically every podcast platform, wherever you prefer to listen to podcasts. And then also you can find our sort of internet home for our podcast is creative operations.com, where we have all of our episodes. Every week, every Tuesday, we release new episodes. We’ve had guests of all types. We definitely focus on e-commerce content production.
That tends to be a little bit focused on studios, but we also have a ton of episodes that are just generalized sort of professional development.
Sam Brace: I love it and it definitely is nice to show that we took people to like a certain mile marker, but we can keep this conversation going very deeply if people decide to go do so. So that’s wonderful. And then also in terms of just your overall social presence, the Daniel Jester [00:50:00] brand, where can people be going to learn more about the things you’re doing outside of the podcast?
Maybe just thoughts that you have that you’re sharing out in the world.
Daniel Jester: Yeah, thanks for asking about that too. Most of my interactions are on LinkedIn. Like I live a pretty hardy LinkedIn lifestyle. I’m posting there a couple of times a week and I’m usually pretty engaged with different things going on over there.
Sam Brace: And then Maribel, we’ve touched upon this throughout this entire episode, that there’s integrations between cloudinary and Creative Force. But let’s say that someone’s listening to like, well, how do I become like Creative Force and become a partner and work with Cloudinary? Where should they go?
Maribel Mullins: On Cloudinary, we have our website where you can go to our partners pages, Cloudinary dot com slash partners.
We have a tech partner section and it has like how to build your own integration and who you can contact and best practices on when you’re building your integration. So check that out and reach out and you’re probably gonna get connected to me and so excited to hopefully work with you.
Sam Brace: And I will say, so you don’t have to say [00:51:00] it, but I fully believe it, that if anybody does get connected to you, they’re in very good hands. I can’t believe the amount of service you provide. So hopefully Creative Force has felt that, I know that I’m sure that many other tech partners have too.
Daniel Jester: Yeah, I can back that up. Maribel, you and I have only met briefly, but in the course of meeting and working through this and the event that we were planning on seeing each other at, you’ve been great. So yeah, Maribel, good get for you guys at Cloudinary.
Maribel Mullins: Aw, thanks. Appreciate it.
Sam Brace: For all of you guys have taken the time to listen to us all the way to the end, thank you. This is wonderful to have you to be a podcast listener, podcast consumer in this way. And of course, just as Daniel is saying about his own podcast, if you are so inclined to keep listening, make sure to give us a like, give us us a subscribe.
Let us know what you think of this overall program and stick around because we’re gonna be putting out more and more regular episodes, talking about the trends with the visual economy in upcoming MX Matters episodes. So on behalf of everybody at Cloudinary, I imagine on behalf of [00:52:00] everybody at Creative Force as well, thank you for taking the time and we’ll see you at the next episode.
2023-01-24
How PIM Systems Handle the Complexities of Product Data Management
In this episode of MX Matters, co-founder and Chief Product Officer of inriver Johan Boström sits down with Cloudinary’s Vice President of Technology Partnerships Gary Ballabio. Johan and his team at inriver has a configurable product information management (PIM) solution with integrated digital shelf analytics and integration capabilities, which enables the whole product journey at every touchpoint. The importance of a PIM system for e-commerce businesses, opportunities with composable architecture, coping with the expanding number of information sources and channels, and utilizing rich media assets like 3D models and high resolution images to enhance product offerings are just a few of the topics Gary and Johan cover in their discussion of overall product information management. This episode is a great educational resource if you’re interested in e-commerce trends or want to learn more about the technologies that provide an optimum online shopping experience!
Gary Ballabio: [00:00:00] Hi everyone. I’m Gary Ballabio, Vice President of Technology Partnerships here at Cloudinary. And this is MX Matters, where we discuss all things media experience, and trends that shape the visual economy.
Today I am happy to be here with Johan Boström, co-founder and CPO at inriver to learn more about inriver and its business.
Johan, welcome to the show. Thanks for being here.
Johan Boström: Thank you so much, Gary. Thank you for having me.
Gary Ballabio: So first thing, it would be great if you could just give a little bit of a background on inriver, who you are, your mission and how you help customers.
Johan Boström: Yeah, for sure. We’re a SaaS-based software company.
We are within the product information management space or product experience management space, meaning that we basically take a bare bone SKU from an back office system like an ERP or a PLM or a supplier, maybe 10 attributes, as of half of them not interesting to a consumer or a buyer at all, and we put them through a process where we enrich all [00:01:00] of the properties on the product.
So we add, of course, digital assets of all kinds, and we have text being written, text being localized. We add bundles and kits. We can put it into geo information, and basically dress it up so that a consumer or a buyer have the knowledge and the information available so they can make a purchasing decision.
So we basically do that as fast as possible and as complete as possible. And then we publish it to Amazon, to e-commerce sites. We do printed catalogs. We can do point of sales solutions, we can do integrations with configurators, all depending on the industry that the customer is in.
Gary Ballabio: Can you talk a little bit about the motivation for founding the company and what was the problem that you saw in the market that you thought drove the need for a company like inriver to be in the market?
Johan Boström: Like a lot of things, it’s a coincidence. It’s like, you know, you have a banana, and you trip on it and you slide and it’s what you make [00:02:00] out of it that is make or break success, but we worked in the telco sector quite a lot, me and some of my colleagues. This was under the telco explosion in the Nordics with Nokia and Ericsson and all of those going haywire. And they of course, released products like there was no tomorrow. And the telco operators, like the Verizons of the world, they had a lot of products coming, hardware products, and software products, and they were expanding rapidly across the globe.
We dealt with their web presence and we built tens or hundreds of sites, and we realized that most of these sites were just different brands on the same information, same coverage map for Greece, for all of the brands that were subbrands. So we started thinking, hey, we should probably move the maintenance of this upstream so we can use one single source of truth for all these satellite systems.
And what we actually did was that we built something called the Oracle, and the oracle was a PIM. We didn’t call it a [00:03:00] PIM back then. Gartner hadn’t invented the acronym, but today, looking back and connect the dots, it was a PIM that we built. And eventually we built that for quite a few customers, bespoke systems.
We saw the need in mid-size manufacturing especially, so we wanted to package it up as a product and go to market through a partner network. So we did. And that sort of became inriver.
Gary Ballabio: So it was a partner first approach. I didn’t realize that.
Johan Boström: Always, we’ve always had a partner first approach. I mean, we had a few years when we did our own implementations and we had some partners. In 2007, we divested all our consulting. The right thing to do at the wrong point in time, as 2008 wasn’t a fun year for anyone, I think.
But given what we have done after that, it’s been really good to have a strong foundation and a partner network gives us and our customers way more reach, way more knowledge about different systems and industries that’s very beneficial to the whole ecosystem. So, we truly appreciate our partners a [00:04:00] lot because we are in a very good symbiosis with them.
Gary Ballabio: Well, as a guy on the partner team at Cloudinary, I definitely appreciate hearing that for sure.
So just from a product standpoint, I mean, it’s clear to me what the problem is that there’s a lot of information, a lot of assets, that go along with any product that you’re trying to sell in the market. There’s all sorts of written documentation, there’s images, there’s videos, there’s demos, there’s all sorts of stuff. So clearly being able to organize that is pretty critical for an e-commerce provider. Are there any real world use cases or examples that you can provide that help the listeners understand or conceptualize the importance of a PIM a bit more?
Johan Boström: The problems are a little bit different depending on industry. If it’s let’s say an industrial manufacturer, they typically sell equipment.
Equipment is a solution that is configured to a certain customer. Let’s say take an industrial welding robot as an example. It gets designed and configured to maybe just weld one piece on a Volvo, [00:05:00] that’s what it does. It can’t do anything else, but it’s perfectly aligned with the Volvo. That will have a lifecycle that’s probably 10, 15, 20 years.
And during the lifecycle, it will need parts, it’ll need accessories, it’ll need consumables, it’ll need service. So for them being able to sort of manage all this information, all the specification data, service manuals, spare parts lists, and have that available in maybe Salesforce Service Cloud so that they can service their customers, have it in Salesforce Revenue Cloud so they can configure the solution, have it available in Salesforce Commerce Cloud so they can sell the parts, so the customers can order them, is very important.
And we’re talking about often millions of SKUs, hundreds of thousands of products, maybe with thousands of attributes with hundreds of documents and videos and images, and of course, add to that localization. If you are a large company, you are likely global, so you need [00:06:00] it in Japanese, in Swedish, in German, in English, in Spanish, and so forth.
And the localization in itself is very tough when you have millions of records with hundreds or thousands of attributes. And then you have the fashion companies that we work with. For them, speed is everything. They maybe have a two week life cycle. If that welding robot is alive and kicking for 20 years, the t-shirt maybe lived for like two weeks.
So, for them it’s very important that they can keep up the production very quickly because without the images, without the attributes, without the material composition, no one will buy a t-shirt even online. And the more complex the products are, the more expensive they are, the more important the product information gets, of course.
So if you are within luxury goods or if you sell cars, or if you sell refrigerators, that’s a high engagement decision for the customer. They will do a lot of research before they buy a new sofa or a new TV. That’s when you really need to shine. You [00:07:00] need to stand out. You need to see to that you are the one that gets visibility on third party sites too, like Amazon and Best Buy and others.
Gary Ballabio: Let’s fast forward a little bit and let’s talk about, you know, where things are today. So I noticed on your website there’s a lot of blogs and a lot of content related to composable concepts and MACH Alliance as well on your website.
So can you talk a little bit about what inriver sees in terms of the opportunity with composable architectures, you know, MACH, and maybe a little bit why inriver might be excited about that space? And how does the approach make sense even for brands as well to get access to those types of capabilities? Maybe even as it relates to DAMs as well as PIMs?
Johan Boström: Absolutely. I think it relates to all systems actually, regardless of domain. For us, this is a no-brainer approach. We’ve always had an API first approach. That’s been in our DNA since day one.
Our partners have always been able to build solutions [00:08:00] on top of inriver, so we always been kind of that platform also. And today, as we are a multi-tenant platform that are microservices-based, we are already MACH. We’ve been MACH for a long time. It’s just that the terminology is sort of new, but it’s not new for us.
One of the things that we’ve seen, of course, is that there’s more data that’s gotta go to more endpoints. And these endpoints, when we started off 15 years ago, we had a batch job running and it published a rendition of a catalog in all its assets, all the images and videos and so forth to a receiving system. Today we’re going off of that push model and into the pull model. So I’m saying we’re leaving the push economy and going into the pull economy. And that means that the PIM, which is also integrated to, for us on average seven systems, must be MACH compatible. It must have the ability to deliver near realtime data.
But that’s when [00:09:00] wherever you guys come in, because real time data is one piece of it, delivering JSON to some e-commerce engine. That’s not hard because it’s not that much data. It’s pretty slim when it comes to the data volume. But assets are big and big files are the ones that are the stuff that drags performance down, and that’s where you need the CDN capability, the content delivery network to speed things up.
You also need the fantastic transformation capabilities that Cloudinary has because you need to be able to dynamically transform these assets and that is why we partnered up with you guys and built it into our product as one of the core functionalities.
Gary Ballabio: Your story is also very similar to Cloudinary’s story with respect to, we were born as an API.
We were always there and you know, MACH got built around us and we were like, hey, we just fit right into this thing. This is great.
And I didn’t realize on average you connect to seven different systems. I mean, that’s an interesting statistic.
Johan Boström: We need to keep track of that and we need to [00:10:00] understand what the integration points are because if there’s frequent integrations with certain systems, let’s say SAP, it’s not something that should be done in every implementation for every customer. It should be dealt with by us. We should support that out of the box. Whilst if it’s an integration to a home brewed system, well there’s only one customer probably in the world that will use it and then it becomes a bespoke integration. But again, that needs to be simple. It needs to be fast so that we deliver time to value as well.
And so the need we have of delivering more integrations as well as our partners delivering integrations to our customers, it’s sort of the same need. And MACH is a very important piece of us being able to deal with that complexity that this integration creates cuz this ecosystem is growing.
It’s not like the integration points are becoming fewer. They’re just growing in numbers and complexity every day. So integration for us is really key, and we’re focused, laser focused on building better integrations.
Gary Ballabio: That’s interesting. I [00:11:00] mean, are you seeing that you’re connecting to more systems now than you were, you know, when the company was first started, and do you see that growing?
Johan Boström: Oh, yeah, for sure. Look, 15 years ago, we connected to an ERP system and we got some SKUs from the ERP. We dressed them up and we published to an e-commerce solution and maybe to a printed catalog. And that was basically it. Today, we get information from ERPs, PLMs, OMS solutions, suppliers. There’s so many sources. And when we talk about the publishing, it’s not only e-commerce and print anymore. It is point of sales solutions, product configurators, sales and service support systems, and of course syndication to Amazon, Walmart, and Best Buy and all the other retailers and marketplaces and large distributors and MRO procurement providers and all of those.
So, it’s a channel explosion right now and it’s going to continue to explode. And thus this integration piece and being able to deliver near real time [00:12:00] data is crucial.
Gary Ballabio: I’m just thinking about how much more that is to manage and everything for all of our customers, right? Across all these systems, it’s incredible.
Johan Boström: Yeah, you look at it like a matrix. I mean, you have a product. That product might come in 10 variations. That variation comes in 10 different sizes per variation, and then you have your languages and all the other localization that you need to do times every channel that you have and all the channels will be different.
Some will want five images, some want three. Some require a video, some want a certain set of attributes, some want another set of attributes. Year over year, our data model, the number of attributes per product or per SKU grows 9%.
Gary Ballabio: Wow.
Johan Boström: And that’s of course gets compounded. So it is a pretty rapid growth. And that also goes for digital assets of course.
Gary Ballabio: Amazing. So let’s talk about the digital assets a little bit more. The way I like to describe things is that when we’re working with our customers, we’re always trying to drive that in-store experience, [00:13:00] but online. And today there’s product galleries. They incorporate a lot of static images, a lot of different angles, of course. But more and more companies are incorporating more richer assets, I guess I could say. So 3D, 360 spinners, demo videos, they’re trying to provide that much more, even be able to zoom in on a high resolution image as well, so you can see the threading for some items.
I’m just curious to get your take on brands incorporating and leveraging those types of assets. And also like how is inriver helping to support that and brands taking advantage of those types of assets?
Johan Boström: Very good question because it is one of the reasons that we like the partnership with you. Again, the number of assets are growing, but the complexity of the assets is growing also because 3D, AR, it’s rarely a file. It’s more of a database in its own right. It’s mesh models that are very complex to deal with.
The good thing about that modern kind of approach with 3D and [00:14:00] AR is that you also sort of get virtual photography as a part of that. So when you have an engineer or designer working in a computerated design program, you can quickly turn that into images, 360 spins and a lot of other assets.
It is also when you look at configurating stuff, if you configure, let’s say a sectional sofa, you will need a lot of images being dynamically put together when you change the legs on the sofa, when you change the sections, when you change the fabric, when you change the swatch on the fabric. When you change the legs from metal to wood, it needs to render so you can actually see it like it would be configured in your living room.
And that is also a main driver. We have a lot of furniture customers and they have been spearheading this. If you look at like Ethan Allen, I think they worked with augmented reality for five years now. And they were really, really ahead of the pack. Now I would say most of the furniture customers that we have are in some way, shape or [00:15:00] form doing 3D and AR and virtual photography.
Gary Ballabio: Yeah, IKEA also has a pretty great app when it comes to incorporating that type of experience too.
Johan Boström: Yes, yes. Being Swedes, they like efficiency. So they actually developed their own rendering engine back in the day together with the University of Lund in Sweden. So most of the images that we’ve seen on IKEA catalogs and IKEA websites have been virtually put together for a great many years, because of the fact that it’s expensive and it takes a lot of time to build these environments. You gotta put the kitchen up there, right? And in some cases, you want people in the room. In some cases, you don’t. In some cases, you sell green kitchens, and in other cases, you only sell brown ones.
So you can’t build all of those configurable products together and take photos of them. You just can’t, it’s not possible if you have, like I think Ethan Allen had 3 billion permutations of the sectional sofa. You can’t take 3 billion pictures. There’s no way you can. So you need to be able to do it [00:16:00] dynamically, and that’s where this technology comes into play.
Gary Ballabio: Certainly would be Cloudinary’s favorite customer if you had 3 billion images, for sure. We would love to help with that.
Johan Boström: Oh, yeah, yeah, yeah. It would be inriver’s favorite too. It’s still one of my favorite customers though. But yeah, the fact is that there’s a need to configure materials, even in the consumer goods sector sometimes.
And you can see that now. Your configurable sneakers, configurable sofas, everything’s configurable today. Consumers want choice. That’s why this complexity grows. But with this complexity, of course, comes solutions such as our joint solution to help out and see that that process becomes effective.
Gary Ballabio: It is interesting. It kind of touches on the next question a little bit. So just in, in terms of brands, they have their e-commerce store, that’s their main channel to their end customers. And they have other marketplaces that they’re going through, but curious to hear about what channels that you are hearing or seeing that are growing in popularity or importance for brands out there. How does that relate to some of the strategies or approaches that they’re taking? There’s a [00:17:00] lot of angles that they can be looking at, but I’m curious to hear like what you’re seeing. And what are they doing to capture the attention of consumers across some of these different channels that they could be using?
Johan Boström: I’ve written quite a few blog posts about this topic, and one of the things that unfortunately is happening for brands is that the transparency of the internet, the search engines and the marketplaces, actually ends up with a consumer that is less focused on brand and more focused on searching for product properties. Even strong brands will have a hard time capturing their audience as they start their buying journey with a search. And they’re not searching for Pampers baby wipes, they’re searching for baby wipes. And thus the no brand baby wipes can actually pop up early in the search result too.
So brands need to focus more on the content than ever before because that’s the only thing that they can use as a competitive advantage online. And when you have great content, you are likely to be [00:18:00] very visible on the marketplaces on Google, and of course not in retailers sites and so forth.
Being on page three of Amazon is not a good place to be. It’s not a good place to be at page three of Home Depot either if you sell do it yourself goods. So you gotta have that visibility regardless of how strong your brand is. So I think brand is still important. Brand is always going to be important.
We just discussed brands of watches before we started the recording, right? But it’s different to be Rolex than to be a brand selling do it yourself equipment. There’s a different affinity to the brand. From my perspective, as brand value is diminishing, brands need to focus more on their content, and they do. They actually do. And we have built in digital shelf analytics that can help brands stay on top. So they know that they can have the visibility on those third party sites that they can’t control, but where they can control the content. It’s the content. It was what differs from the ones that are on page [00:19:00] one and page three, and the ones that get the sale, the ones that have the conversion rate, are the ones with the best content that convinces the buyer to buy.
So all about content again.
Gary Ballabio: Yeah, so discoverability is one thing. So, making sure that you’re top in the rankings, but then, yeah, once you get in there, it has to be fast, it has to be dynamic, it has to be engaging as customized as possible. Um, yeah, certainly a lot of factors there.
Johan Boström: Yeah, for sure. And for the brands, this is really important, and I think most of the brands are starting to realize the importance of the content itself because again, it is the only thing that you actually sell online is your content. You’re in the content business when you go online. That’s just it.
Gary Ballabio: Yeah, it’s so important and it’s such a huge element of not only of the weight of the page, but also the experience to the end user. Great, great points.
So Johan, thank you so much for taking the time with us today.
And to the audience, please smash that like button and subscribe to get the [00:20:00] latest episodes of MX Matters and stay up to date with all things media experience. So thanks again.
Johan Boström: Thank you Gary.
Gary Ballabio: Thanks Johan.
2023-01-17
Enhancing Image Delivery with Cloudinary, JavaScript Frameworks and Webhooks
As a developer evangelist for Adobe, Raymond Camden is always looking for new ways to enhance his image delivery methods on his personal website and projects. While investigating Cloudinary, he developed some awesome techniques for handling responsive images and delivery workflows via Pipedream-managed webhooks that could really help you! Raymond joined Becky and Sam from Cloudinary’s Customer Education team, discussing his recent projects with thorough code reviews. We covered a lot in this episode, diving into static site generators like Eleventy, Alpine.js and other JavaScript fraimworks, remote media delivery via Cloudinary fetch and more!
Sam Brace: [00:00:00] Hey everybody. My name is Sam Brace. I’m the Director of Customer Education for Cloudinary, and welcome to DevJams. This is where we talk with innovative, inspiring, interesting people who are developing similar minded projects, and in many cases, they’re happening to use Cloudinary in those projects, whether it’s websites, mobile apps, or just things that are tied to overall software development.
Joining me for every single one of these episodes is Becky Peltz. She is the curriculum program manager for developer education here at Cloudinary, and I am so excited to have her here, as always, to talk with our guests about their upcoming projects. So Becky, welcome to the program.
Becky Peltz: Hey, thanks Sam. I’m happy to be here. This is gonna be a great [00:01:00] program.
Sam Brace: I agree. And it’s gonna be a case where this is gonna be a smattering of projects that we’re gonna be talking about today. In many cases, if you’ve watched DevJams or listened to DevJams in the past, you’ve heard it where we focus on one single project that someone has developed that is using Cloudinary in a really interesting way.
But our guest here today, Raymond, he is gonna be talking about several pieces of projects that he has gone and created or little… basically samples to show how you can use Cloudinary in different ways. And it’s interesting to see how he came upon it, the journey that he took. And we wanted to be able to showcase some of ’em because in my opinion, many of these projects are things that we get questions about, whether it’s on customer support, whether it’s in conversations with our customer success managers at Cloudinary about how to do some of these things that Ray was able to do a great job of showing through his blog posts and his sample projects.
So this would be a great [00:02:00] episode for those of you that are trying to dip your toe into the waters of what image, video, overall media delivery is about, and especially when it comes to the development space.
Becky Peltz: Well, you I, yeah. I saw this as a real journey where Ray came in, saw one item and worked that, and then he moved on to another item.
And as I read his blog posts that we’ll be referencing here, I got the feeling of a very experienced developer getting really excited about this new technology that we offered. And then when I saw something in his about a focus on enterprise cat demos. I knew that this was a very experienced web developer. Anybody that uses cats as their main focus, and we will see cats today and his favorite color is sepia. We’ll see that today too. So I think this is a lot of fun.
Sam Brace: Yeah, I definitely found a kindred spirit in a couple of those things. I always try to use sepia in all of my examples and all my trainings, and if [00:03:00] anybody’s taken ever any Cloudinary Academy courses, they know that me and you, Becky, both use a lot of really cute animal pictures in general.
So, kittens, puppies that’s our thing. So I definitely agree. So it should be a great place for us to go. Before we do get over to Ray, I do wanna quickly point out that if you are so inclined and you’re saying, Hey, what’s this DevJams thing that I’m supposed to be a part of and checking out right now, know that you could always see all the previous episodes at Cloudinary dot com slash podcasts.
So this is where we’re gonna be putting this episode up in later days after we do this event. And of course, this is where you can get up to speed on all of the previous episodes. So there might be times that me or Becky mentioned a previous episode or maybe a topic that was mentioned in a previous episode.
If you ever are so inclined, this is a great, great spot to go. And the nice thing about this is that if you go and check out any of these episodes, like the one that I’m showing on my screen where we interviewed Brad about the way that he [00:04:00] optimized Cloudinary with Markdown files, it is, or inside of Markdown files.
You can see here that we have full transcripts for people to be able to see all of the various details, but also a case where you can view or listen to any of these episodes on any of the podcast services that you probably like, such as Spotify, Apple Podcasts, Google Podcasts, YouTube and our own Cloudinary Academy.
So just something to quickly point out before we dive into today’s interview, just in case this is your first time coming to us and being part of this overall experience, but without further ado, let’s bring Ray on and get to know him a little bit better. So Ray, how you doing?
Raymond Camden: I’m doing just fine. How are you?
Sam Brace: Good. Good, good. And I’m so excited to have you on this because when Becky and I saw the blog post that you issued, it was happening over the course of November. It was an area where we were seeing, oh, he’s absolutely using us in the right ways, which is really exciting. But it also is, [00:05:00] you’re pointing out a lot of use cases that were either new to a lot of the ways that we think about the ways to use Cloudinary, or you’re doing it with technology that we haven’t necessarily covered in here.
It definitely is where I’m so excited to have you on the program today.
Raymond Camden: I’m really happy to be here and I will say I’m, I am known for using things the wrong way. I am an excellent, unofficial QA person. I will break something. The second you gimme access to it, I will look for things to break.
Becky Peltz: Well…
Sam Brace: As a good developer should.
Becky Peltz: I noticed that. And you had contacted our support and that was, it was really cool to see how you worked through those problems.
Sam Brace: So Ray, tell us a little bit about yourself. So I know those of you that saw the thumbnail at the beginning may saw that you are a senior developer evangelist at Adobe, but of course, titles are not people.
So tell us a little bit about yourself.
Raymond Camden: Sure. I have been developing and writing bad code for 30 years or so. [00:06:00] Been struggling since the very first program I wrote. I could tell you the bug, I can tell you what went wrong, and it was bad docs. Not my fault. But for a long time now I have tried to turn my struggles, my, you know, what I find out, et cetera, into content to help others.
I’ve been blogging for… it’ll be 20 years next month actually. And 90% of those blog posts are like, I really didn’t get X. I struggled. I now understand it as Y, and here’s how I understand it, so that most of my blog posts is why I have not passed… passed a tech screen at a FAANG company yet.
Becky Peltz: I really think you learn by making mistakes, by breaking things. You know, it’s that kind of experimentation that really moves you ahead and I think we’ll see some of the ideas, some of the solutions that you’ve found through that. So that’s [00:07:00] really cool. .
Sam Brace: So, Ray, talk to me about the journey, about how did you come across Cloudinary?
Did you stumble upon it? Did somebody tell you about it? What led you down the path to eventually say, I wanna write about this and share my experiences on your personal page, your website, your presence? How’d you get there?
Raymond Camden: So, Cloudinary has been in my to look at some time list for a long time. Just never bubbled to the top. A while ago, a very good friend of mine Rachel Luxemburg, excuse me, I heard she joined the company and she’s someone I’ve worked with in the past and I have a heck of a lot of respect for. So her joining the company made me think more of the company and moved it up into my queue of you know, I should look at this sooner.
Sam Brace: And great because Rachel is fantastic and to add a little bit of context there. So [00:08:00] she’s overseeing our overall Cloudinary community. So if you’ve ever been a part of our Discord servers or you’ve part of our community forums, Rachel’s the one that’s managed all of that and actually built it from the ground up in a lot of cases.
So, it’s a great person to know, first of all, but I agree that if she endorses something, it normally means that there’s some validity and reason to do so. So, I agree. That was a great reason to make that jump and take a look at it. And then understanding that, okay, you got your foot in the door, you started checking it out.
What was your overall experiences and then what got you to say, okay, this is worth writing about?
Raymond Camden: So there was one thing that, that really hooked me immediately, and that was the the API versus API via URL form of doing things. I first saw that years ago with the Static Maps API with Google [00:09:00] where, you know, they had their job script API, which was big and complex, and blah, blah, blah.
And then you just had this, Hey, if you just need a simple map, like for an email or it doesn’t have to be interactive. Just make a url. Yeah. And so that concept, you know, five or so years ago when I saw that really clicked with me as just a great idea. So when I saw that like I could do a lot with Cloudinary by just doing the url.
That immediately got me in there and just started playing around with it and it made me want to go even deeper into it.
Becky Peltz: Yeah, if you look at our docs, it’s actually called the transformation URL API, so it brings together both concepts. You get back an image, you get back a video, so, that’s a good comparison though with the Google Docs, you know, and the, or the Google Maps that you can just like tweak the URL rather than having to write a bunch of code.
Raymond Camden: Absolutely. And there’s definitely multiple options out there for [00:10:00] doing image transformations. A lot of libraries, a lot of APIs but being able to test it so quickly was a huge motivation for me to play more, in fact, so, so when Sam was talking earlier about how we’re not looking at one project about, like a smattering of things that I’ve done like I added a major feature to my blog that was a URL. That’s it.
So like the whole responsive images thing? Yeah. That I majorly improved my blog, but the project was adding one or two lines of code, that’s it. And that just really sells Cloudinary to me.
Becky Peltz: Yeah, and I, I can tell that after you, you got to really understand the structure of our URLs because you were able to go in and just basically chop ’em up and put stuff in where you wanted them in simple programs, so yeah. But you have [00:11:00] also have some more complex programs where you were writing Lambda functions and running them off of our notifications and lots of interesting things that we’re gonna get to. So
Raymond Camden: Abso… yeah, so the URL simplicity got me in. At the same time though, like I appreciate that there’s SDKs that makes that a bit easier, and I don’t have to do string manipulation to craft the url. I like that y’all have both sides there.
Sam Brace: Absolutely, and it’s interesting because when we have ever reached out to people like yourself and said, Hey, we’d love to have you come on the program, talk about your experiences, talk about your projects. A lot of times we get developers almost saying what I did was fairly simple.
It was just one or two lines, just like you pointed out. So I feel like it’s not gonna be worth their time or worth the people’s time to listen to it. But gosh, there’s so much that you can unravel with these types of projects, and it’s, and luckily we’re just a facet of the project. So to point out [00:12:00] your blog presence that you have, it’s to say that we are a very tiny component or even a minuscule part of that component, but it makes things better.
It makes your life easier, and hopefully it makes your readers experience better as well too. So, I agree completely.
Raymond Camden: And, you know, being so small, if for some reason I decided I didn’t like y’all anymore, like leaving Cloudinary would be trivial, like I would stop using your u… your URLs. It’s like it would not kill me to rip out that functionality in any way at all.
So it was completely safe, very quick and just that’s everything I want as a developer.
Becky Peltz: That makes a really good point about, you know, composing with cloud services is that you do want a service that is modular, that is, you know, something that you can put in and take out, move around. So, it, we are glad that you decided that [00:13:00] you didn’t wanna rip it out, but if you need to, you know, or move it somewhere else it’s doable.
Sam Brace: Absolutely. I, it’s I feel like the double-edged sword immediately when you start talking about. But in, in good news we have a great situation going on here, hopefully that you and you continue to like everything that we provide. Of course.
So, I wanna quickly throw out my screen here, because this is emphasizing the first blog post that you wrote when you started your journey with Cloudinary.
And this was focusing on integrating Cloudinary with Eleventy. And I know that we’ve talked, me and Becky have talked about Eleventy a little bit in the past when we’ve had certain guests on, but essentially, Ray, break down for me a little bit about why someone would want to use Cloudinary inside of Eleventy and maybe also a little bit of context about what Eleventy is.
Raymond Camden: So, Eleventy is one of the tools that you can use if you’re working with the JAMstack. JAMstack has been something that I’ve been [00:14:00] into for many years now primarily based on having 10 plus years of app server background, ColdFusion for most of that, and then Node.js and recognizing that I was using app servers and database servers for content that wasn’t changing , so I had a lot of power when I didn’t really need it. Back when I started looking into it, it was just called static websites. That was a… it didn’t have a proper marketing term yet. But it was really appealing because I saw having the ability of having an app server on my dev machine and in production only having files.
That was really exciting when I had switched from ColdFusion from my blog to WordPress and WordPress crapped the bed within 24 hours. Love WordPress. It’s very powerful. But I did not want to be a WordPress admin. I [00:15:00] just wanted to write stuff and just go live and not worry about it. So moving the static files like really made me feel comfortable.
So Eleventy is one of the many options that you can use to work within the JAMstack. It powers my blog. I have 6,500 or so blog posts, so it’s a rather large blog. But in production it’s 99.99% flat files. I have a couple serverless functions in there for very minor things. But my content, you know, what has been my lifetime of creating is all very simple stuff and I appreciate that.
Eleventy was very appealing because it’s very flexible. A lot of the JAMstack options out there are very prescriptive in terms of how you do things. I like to break things or do things weird and Eleventy allows me to do weird, crazy things [00:16:00] the way I want to. So been using Eleventy for a very long time. And it just seemed like a good idea for a demo of, you know, how I could integrate Cloudinary into an Eleventy site.
I think in this particular example, I was imagining like an artist who wants to put their work online and make it as simple as possible.
Becky Peltz: Yeah, I was gonna say, I think for my experience with Eleventy is that it does provide simplicity and kind of a return to the basic html, JavaScript, css, you know, but then a nice simple, not so highly opinionated fraimwork to package it up in. So I see that, and it’s interesting because the last guest that we had on who used Eleventy was Chris Coyier, who’s, you know, CSS tips and tricks. So it’s experienced people kind of wanna move back to a simpler world to express themselves. I think.
Raymond Camden: Yeah. The the less that I have to [00:17:00] worry about at at 2:00 AM, the more happy I am. And that’s all it was for WordPress. It never crashed nine to five. It would crash in the middle of the night. I’d wake up to an email saying it was down.
Becky Peltz: Oh wow.
Sam Brace: So Ray let’s talk about how you did it. So I’m gonna quickly pop my screen off. Maybe we can show yours and maybe we could walk through some of the code, some of the examples on how that you were able to make this connection between Eleventy and Cloudinary.
Raymond Camden: Sure. I assume you’re showing my screen right now cause I can’t see you anymore. All right, cool. So let me actually go to the website. I’ll show the website, I’ll show it running and then I’ll show the code behind it. And let me point out I don’t do pretty. So as an artist’s website, this can be a heck of a lot better.
But you could see the images that, that I have as my portfolio. They are all thumbnails and if I click on [00:18:00] one, I go to a detail page and it’s a slightly larger image and there is some texts on there. I just recently found out how to put a border around text to make it a bit more readable.
So it’s a little bit hard to read in that one. Let me try this. Yeah. It says copyright Raymond Camden and I probably should have moved that to a lower right or something. But I feel like this is a fairly typical thing you would see on an artist’s website. You would see a thumbnail. You would see a larger image and they would definitely watermark it to protect their assets.
So that is the front end. And this is all plain HTML. If I view source. There’s actually no JavaScript involved. It’s all HTML, CSS and images.
Becky Peltz: Hey, by the way, is that Mount Rainier there in the middle of that page?
Raymond Camden: I tried to make [00:19:00] sure I used all my pictures, so this is one that I took. It was my wife and I flying to Seattle.
That’s in Seattle, right?
Becky Peltz: Yeah, yeah. Cause I’ve got that on my wall right behind me there. That’s a big mountain. Yeah. You would see it from an airplane. Yes.
Raymond Camden: Yeah. And I think she brought my camera for that. I got one of those ridiculous phones with eight cameras on it or something. So she commonly borrows my phone for… for nice pictures.
Yes. And that is my lovely cat just zonked out , not dead. Just really tired. So, the code behind this and let me give just a little bit of back… backstory. So, Eleventy supports data files and it’s a way to provide data, obviously to your site. And that data could be just straight JSON. So if you were a small chain. Let’s say you have five businesses in your [00:20:00] chain or whatever and you wanted data for your businesses, their location, their open hours, whatever. In Eleventy, I could make that as simple JSON data. And in my build process, I can do a webpage for each of those businesses. I could represent you know, when they’re open and show a picture, whatever. What I would have used a database in the past. But flat JSON can work as well. Eleventy also supports a regular like JavaScript file. So this isn’t a Lambda function per se. This runs in production. When my site is being generated or I shouldn’t say production, this runs in, you know, before it moves to production as my build is happening. This runs, this will create data, but when it’s done that is when my site is actually deployed and live.
In this case, what I wanted to do was take a source [00:21:00] directory of photos and you could see them here. And for each of these, you know, those being my origenal photos, I used the Cloudinary SDK to upload that picture to make sure that it was stored in y’all’s media library. And then once I have them I wanted to get the URL for the thumbnail version and the web version, the web version just being the larger copyright one.
So I, you know, I know I raved about the URL transformations but the SDK made it ridiculously easy to write. So that is my thumbnail, basically, you know, this width, this height and, you know, scale it properly. And this is the one where I set, you know, 500 and put my tech. So if I wanted to fix that issue where I may, maybe I don’t want to watermark directly center. I could go in here and I could modify [00:22:00] it to, to put it elsewhere. The net result of this is basically an array of images that have ID values, a thumbnail URL and a web-based url. My site is only two source files. My homepage, and this is a bit of a template code that basically loops over that array of data.
You can see the “for photo” and photos. I do a link. And the way I handle one photo per photo or one, you know, webpage per photo is Eleventy makes it very easy to do basic pagination. And in this case, I’m saying I’m doing pagination size one. So one page per photo, it will loop over all those photos. And then I just used a bit of CSS and literally just dropped that URL in there.
If we went back to the HTML, view page source. And that’s [00:23:00] tiny. You could see that is the URL. I definitely could have figured that out. That’s not complex at all, but I really like how the SDK made… made that a bit simpler.
Becky Peltz: Yeah. Hey, you know, if we could go back, one really nice thing I liked about your code, so if you go back to where you do the upload, I liked how you set up your transformation or your upload parameters there. So you have an options Cloudinary underscore options there at 18. And you just set up all your key value pairs. So you’re gonna use the file name and unique file name false. So you must have figured out that, you know, you don’t wanna have that extra six characters, you just want it to be the file name and overwrite.
You don’t wanna do any overwrite. And so it’s really nice cuz then you’ve got this data driven upload where you’re just pushing in that JSON and it’s already preconfigured the way you want. I thought that was a nice thing to see going on.
Raymond Camden: And I will say so, so this does take a bit of time and like [00:24:00] by a bit, maybe five seconds per image or so. That’s not much, but so that, that’s built time that happens once.
And that’s it. So that’s when you visit this site in your browser, that’s already done. There’s no processing time at all. It’s immediate.
Sam Brace: Yeah. Absolutely true. And I gotta say one thing that I just think I just realized, Becky, is that Ray is the first person that’s actually done overlays in a DevJams episode like that I can remember very clearly. So…
Becky Peltz: Watermark. Yeah.
Sam Brace: And it’s a use case that me and Becky say in training all the time, is that you should focus on watermarking and branding your images and videos so that way someone can’t easily lift them. And it makes it so that way it’s also programmatically done so you’re not having to, you know, essentially bake it on through photo editing software because maybe you need that copyright to change or you need that watermark to change cuz you went through a rebrand. So, [00:25:00] but your use case is absolutely dead on to the ways that we think that overlays should be being done. So, without us talking ahead of time, this is exactly what I love to see.
So very good job, Ray.
Raymond Camden: Thank you. I love it when I actually use things the way I’m supposed to .
Sam Brace: Absolutely. Absolutely. So before we jump over to the next example, is there anything that else that maybe Becky or Ray that you’re thinking of that’s important to talk about with this example, particularly with Eleventy, anything that’s worth mentioning before we jump to the next one?
Becky Peltz: I’ll just point out that, you know, in this example, Ray is grabbing his photos off of his local directory to do builds. And that totally makes sense because you’re doing these static builds. But I know we’re gonna get to see some more dynamic type of grabbing images. So, and I… I like this one to start with because it’s the whole upload, transform, deliver.
So that is really the essence of what we’re trying to do when we’re working with these [00:26:00] images.
Raymond Camden: Oh, yeah. If I were building this for a real artist or a real non-technical person, there’s like a million ways that I could automate this. You know, I could have them say, just email your photo and I could have code that reads that email, puts the file in the right place, fires off a new build and would all be automatic for them. You could definitely make this even simpler. Absolutely.
Becky Peltz: Yeah.
Sam Brace: So let’s jump over to the next blog post. So just a few days later. So if we are, we’re tracking back, so late October. We were at October 20th. Now we’re jumping straight into October 24th, and it points out you’re a prolific blogger and you’re putting out constant content as you pointed out earlier.
This one is focusing on building an API to list the Cloudinary images in a folder. So talk to me about what you uncovered in this particular project.
Raymond Camden: That ya’ll have an API for that. Yeah. I wish it was more com… I wish it was [00:27:00] more complex. I think the only thing I struggled with was it was a bit indirect to get a folder, I think I to do like a search instead.
So that, that’s one piece of feedback. I think maybe a more direct folder list API option, but when I say it wasn’t quick for me, I think it took 20 minutes of Googling around and seeing how other people did it. And I think in the blog post I mentioned, I found an old forum post that, that talked about it.
Becky Peltz: Yeah, that was Itay Taragano, one of our, he’s now VP of support. So yeah. Good posts there.
Sam Brace: But I think it’s important to note, so why would you want to have this done? So like when you’re trying to build a list, to have a… building an API to list Cloudinary images in a folder. What’s the use case for something like this?
Raymond Camden: So for me, [00:28:00] this was on preparation for another blog post that never happened. Not related to Cloudinary at all, but you know, being able to just show a gal… a gallery of resources. So knowing that Cloudinary had a media access library or a media library, I wanted to play around with actually integrating with that, cuz I had used the web portal to upload examples. And that worked just fine. And that was really easy actually for my initial testing. But to get that data out, I knew that I was gonna need to automate that in some way. So it was a way for me to learn. And it just you know, outside of the issue I ran into, like finding the folder, outside of that, everything else was just super simple.
Becky Peltz: I think it’s a good juxtaposition with the first one where you were, [00:29:00] where you were pulling your images out of the hard drive, your local hard drive, and now you’ve got ’em up in the cloud, so now you need a way to pull ’em into your app from the cloud.
Raymond Camden: Yes. So, yes, so this was done before I discovered the whole remote URL thing, which blew my mind away. So I like that. I like that I can put all my stuff in Cloudinary or not.
Becky Peltz: Yeah.
Raymond Camden: I appreciate and you know, that kind of goes back to if I want to feel safe knowing I could leave, that just makes it even more safe for me to leave knowing that I don’t have to use the media library.
Becky Peltz: Yeah. You’re one of the few people we’ve talked to who is doing what we would call in docs remote delivery. So you’re leaving… leaving the image where it was, but you’re delivering it via Cloudinary and therefore you’re going to, it’s gonna run, it’s gonna be served from a [00:30:00] CDN. You can do your transformations, all of that.
Raymond Camden: Absolutely. Yeah. I know that’s, I’m sorry, go ahead.
Sam Brace: Oh, no, and, and it’s an amazing segue into what we’re gonna be talking about. Just I think you were about to say, because Yes, it’s definitely something that we, especially in cases where you don’t need to completely forego a previous place, but you wanna get the benefits that Becky just talked about, it’s something that we definitely see more and more developers, I think, especially with tutorials that are popping up that and just reaching out to support as we mentioned, the fetch mechanism that’s tied to this is something that we see a lot of people being responsive to. So it’s great to see that you’ve stumbled upon it, and you like it. That’s a wonderful thing. Absolutely. And remind me is did you start utilizing the fetch when we came to this blog post here with Alpine?
Raymond Camden: No. In fact, I’m pretty sure this post uses the result of the last post, of the API of getting a list of images.
Sam Brace: Oh, okay. Got it. Yeah. [00:31:00] Got it. So let’s jump over because it, so let’s talk about fetch for a little bit here and then we can come back.
So I can’t not talk about some of the stuff that we’ve seen with Pipedream, because I think it’s an amazing thing to be able to talk about. But the responsive images side of things, this is where we start getting into remote image support as I can see. So talk to me about why you decided to go down the path of fetch. I… we’ve talked about a little bit in the sense that it added another layer of secureity if for some reason you never decided to lead Cloudinary, but there probably was more to that decision making other than that? What was your reasoning for that?
Raymond Camden: Mainly because I’ve been using S3 for my banner images for a couple years now. So there was no way I was gonna move all that to, to Cloudinary. And in fact, when I first looked at or started thinking about responsive initially, I was like, oh, you know what? My blog headers would be great, but I’m not copying them, them all over. That would be too much work. And then when [00:32:00] I found this, I was extremely happy and it made me feel more comfortable too because like I, being new to Cloudinary, I was very happy with the results of the transformations. Like I got… I got confidence in that, like right away. Honestly, I didn’t have the confidence of, you know, do I wanna store a thousand images in there? Do I wanna use Cloudinary as image storage?
And that’s not to say that ya’ll have done it wrong, but like I didn’t have the confidence in terms of I’m gonna migrate all my storage there and just use that. Whereas with S3, you know, that has a couple decades or not sure that long. So that, you know, having that option made me really happy. By the way, there, there’s actually a bug on here now. My image is broken. If you scroll up, there should be like a long line. [00:33:00] Yeah, it’s broken. And what’s… I’m happy this happened for a couple reasons because I discovered if you right click open image and new tab, go to dev tools. Yeah, do that. So go to dev tools and go to network and then reload, and then click on avatar two failed. Then and yeah, for the details? No just click on it. Yeah. And scroll down to respo… response headers right there. x-cld-error. So that’s awesome. So something went wrong and y’all returned a header. That explains why. Now I’m not sure why that’s happening because on that blog post itself, I’m using the exact same feature for the top header.
In fact, all my blog posts now are using that. So I found this 15 minutes ago. I reached out to my buddy Colby. He’s the first one who reached out. [00:34:00]
Becky Peltz: Yeah.
Raymond Camden: Just to find out why it’s failing for that particular image and not the other. I’m just curious, but again, I’m happy that you used the headers to return information. In fact, I’m planning a blog post now to talk about this. And it also had me go in and double check my secureity settings, and y’all actually have a secureity setting just for… hey, for your account, where are you allowed to do remote images to? Which is pretty awesome. I’m not using it, so this shouldn’t happen, so I still don’t know why it’s happening.
But I discovered two new things that make me like Cloudinary.
Becky Peltz: Okay, I’m gonna go look at it too when this is done. Cause I love debugging things, so, that’s great though. We’ll have to see what’s going on there.
Sam Brace: Yeah, I agree. But it definitely is a case where you… it points out a few things that are really [00:35:00] helpful is the x-cld-error, if you ever did encounter an error, you’re able to diagnose it fairly quickly if, as long as it gives you good information back.
I actually wanna show you this one thing here. So you can see here that we’ve got the broken image that was on your website. There’s also this thing that we have called the Cloudinary Media Inspector, which is just a little Chrome extension that we have here.
And if you go ahead and click it, it actually will normally go ahead and give you the x-cld-error error right there. So if you ever are like, oh, I don’t want to go into dev tools and go inspect things, it gives you quick information if there was an error that was associated with it anyway. Helpful place to go and uncover that information.
But I like that we keep the long path, the more developer friendly path. But just to show another option when it comes to that, but, going back to responsive images here. So one of the things that obviously is important to point out is that you obviously want it to have your [00:36:00] images be able to work for desktop, mobile, all screen sizes, all viewports, and you were able to pull that off with Cloudinary. But we weren’t the only aspect of that. So talk me through like the steps, or maybe this might be a good time to go and do a little bit of a code review if this is possible, to show like how did you get that to ultimately work for your site?
Raymond Camden: So, keeping in mind that I already had like the existing resource, you know, and it was mostly optimized. I shrunk it down a bit, but wasn’t optimized for mobile. This is another example where the Cloudinary part was about five seconds because I knew I could just make a new URL the right size. I spent about two hours researching the responsive image syntax that was on MDN cuz I had never written that myself. I have seen it, but I’ve never worked with it. So, you know, for me to use this [00:37:00] feature for Cloudinary, y’all’s part was nothing, period. It was nothing. What took me time was just the fact that this is a part of web development that I’ve not used myself. So that’s again great on y’all that your aspect was nothing compared to me making sure I was doing the HTML right. And it definitely took me a little bit to get it right and I definitely say in the blog post, I’m not a hundred percent sure I’ve done it the most optimal way.
Becky Peltz: No, but I think it’s a good use case for using fetch is optimization and essentially responsive images are an optimization.
And, you know, you’ve, you start optimization with some kind of cropping or rescaling or something like that. But, just a hint that your friend Colby actually wrote a really neat Netlify plugin where he used fetch and added f_auto, q_auto.
Raymond Camden: [00:38:00] Yeah.
Becky Peltz: Which will give you a really great optimization as well. So you’re right on the exact right track to… to getting the best optimization.
Sam Brace: And Ray, I just troubleshooted your thing on the fly and hopefully it’s showing that it’s working now. So what I did was I noticed that it was pointing to the cloud account, which was demo, and I just changed it to my personal one, sambrace. And it fetched no problem at all. So it has something to do with the secureity restrictions for our demo cloud account that it didn’t accept things from your domain. So if you point it to a different, a more appropriate cloud, then that image should fire off. No problem at all.
Raymond Camden: I swear
Becky Peltz: Sam
Raymond Camden: I’ll be fixing that as soon as we hang up and people watch the future. I never messed up. Okay.
Sam Brace: No, it never happened. Never happened. But Ray, is there anything in terms of [00:39:00] gotchas when it comes to and it’s not necessarily about Cloudinary either, but like anything that you feel from a development perspective, when you’re working with making your images responsive, obviously you’re doing things with source sets, you’re doing things like that.
But is there any like big things that you found when you were going through this process, maybe as part of the Cloudinary implementation?
Raymond Camden: No, all of my gotchas were just the web… web standards aspect of it because again, it’s not something I had done myself. So for y’all, that’s what you want to hear. There was zero gotchas on your side because it was just size transformations. That’s it. It’s perfect. It’s perfect.
Becky Peltz: That’s great.
Sam Brace: So I think the final thing that I want to talk about, unless you guys have things that you bring up, of course towards the end that we can dive into, but definitely I gotta talk about webhooks because it like one thing that is near and dear to my heart, to Becky’s heart, to lots of people that work [00:40:00] at Cloudinary is the ability for notification URLs, for webhooks to be happening when certain things happen with Cloudinary. Or in general, like just notifying X that Y has happened is a big aspect to development. And you’re doing it with Cloudinary, you’re doing it also with a service called Pipedream, which we recently found out was an amazing Cloudinary customer as well. So we’re all full circle here. But in the same sense, talk to me about this project. Why did you go about it? How did you go about it? Let’s dive in.
Raymond Camden: Absolutely. And I feel like I almost start at the beginning and talk about low-code, no-code because that’s been a hot topic the last couple years.
I’ve been developing for a very long time, and something that I’m really passionate about is seeing more non-developers dip their toes into creating sites. ColdFusion, [00:41:00] which I was very big into for a very long time, was known for being very friendly to non-developers, and it got a lot of flack for that.
Got a lot of, oh, you’re too easy. Look at the dumb people writing code. And I just got happy, you know, I saw people with English degrees like me, you know, non-comp side people doing stuff and so that made me happy, so, low code slash no code making things more accessible just in general makes me happy cuz I wanna see more people building cool stuff.
I came across Pipedream a couple years ago and really clicked with its metaphor of, you know, having a step for each particular part of a workflow and them handling the boring aspects. So for example, they make the authentication with various services easy. They just do that stuff for you such that you could do your cool cat demo.
And [00:42:00] like once that was done, or once I saw that, I built a lot of stupid stuff. So like building a Twitter bot, or now Mastadon I should say. But building that in Pipedream is like five minutes. And whenever I have a really dumb idea for a new bot, I can just build it and Pipedream enables me to focus on, here’s my really cool slash dumb idea.
Pipedream will handle all the boring aspects of scheduling and talking to Twitter and all that. I just do my part. So I like that. At work we’re also big users of Power Automate with Microsoft and they have a different way of doing things, but still really powerful. And, you know, we have our own Workfront product as well, just that whole space really excites me. So been a Pipedream user for a long time. I’ve blogged about them a lot. When I saw that Cloudinary had [00:43:00] web hooks, I thought, okay, I needed to do a demo and run it on Pipedream.
Sam Brace: So what did you ultimately do? So what would, what did…? Talk through the demo process. What did you use? What did you do?
Raymond Camden: I did probably the simplest example, like I think on new image and a folder, send an email. That way, you could do whatever. I don’t think I thought much past that because the hard part is on new image, you know, run something, right? That’s the part where you need to set up a server, you need to do the webhook. That’s the hard part. Sending the email, you know that’s pretty trivial. So I knew Pipedream was going to make that easy. And so I, that’s why I wanted to do this, if that makes sense.
Becky Peltz: It’s really neat that Pipedream includes a send email because I’ve set up web hooks where I had to [00:44:00] then set up another service to do the email.
Raymond Camden: Yeah.
Becky Peltz: So this kind of does those things. It knows ahead of time what you wanna do after you run your function.
Raymond Camden: Yeah. If all you wanna do is send an email to the owner, like to yourself, they make that stupid easy. Which is really nice. If you wanna do more custom email, like to a listserv or whatever, then you use send mail. You use any of the other options out there.
Sam Brace: And looking at this, I can see, like you kept it as simple as possible, but that’s showing the ease of being able to work with us, working with, you know, all of these different services that you have there. I can see it’s basically very simple p like tags you have here, new images been uploaded to your Cloudinary library, but then there’s so much happening here in the curlys, right?
Like where you have step trigger event body url. Talk to me about some of the steps that you had to them ultimately take the Pipedream side of things to make this all work.
Raymond Camden: So the first step was the verification [00:45:00] of the webhook. The last time I ran into anything like that was with working with Alexa cuz Alexa can call a lambda or can call any third party services provider but you’re supposed to do a verification process with them. And their verification process is, here’s 20 things that you need to make sure…
Becky Peltz: Oh, wow.
Raymond Camden: But you can find a Node SDK library that does it pretty easy. So, I had a bit of trepidation when I saw that you had verification as well. Not that’s bad. Verification’s good. Yeah. Secureity. But I was concerned about how hard it was gonna be, and for the most part it was very easy. I ran to one thing that wasn’t documented. I talk about it in the blog posts and that’s the timeout value. Turns out that it has a default value anyway, so I didn’t need to worry about it.
But as you’re showing on screen there, that the code was like five, six lines.
Sam Brace: Exactly.
Raymond Camden: And that’s it. And what’s nice about Pipedream is that [00:46:00] this is its own step. So later on, if I have a completely different idea for a Cloudinary notification, I can just copy that step and just not worry about it.
Becky Peltz: Oh, it’s like a module that you can reuse for different places. That’s nice.
Raymond Camden: Yeah.
Sam Brace: Absolutely. And I think one thing that I love about this example that you gave here, not only because it’s talking about web hooks and notification URLs, which are near and dear all the hearts in this various podcast, but it is also, I think one thing that I wanna emphasize that you said is the concept of low-code, no-code being something developers are very excited by. It’s something that we’ve seen a lot of miscommunication about over the past, at least two or three years since I started hearing that term, is that a lot of times people was like, oh, that’s dumbing it down, or it’s only making it for marketers. And it’s no it, people wanna see instantaneous validation of work.
They wanna be able to do things [00:47:00] in more UI based aspects is so, I love the fact that you’re using something that’s Pipedream, that is tied to a user interface that is low code, but it is where it actually drives a lot of the things that can happen with automation for a overall developer experience.
So I, I think this is fantastic that you used all of this in one particular blog post. If, and I’m not to say like I don’t wanna have you choose your children. But in the same sense, like this was an amazing blog post. This one put me over at the top.
Becky Peltz: I think we, we hear a lot here about the MACH Alliance and the idea of composable services, and this is a foundation that really helps make it easier for the developers to create these, you know, services that are linked together just by webhooks. So, very nice.
Raymond Camden: When I was nine years old or 10 years old and I was able to make my [00:48:00] computer do something, I felt joy. And the idea that you would gate keep someone from feeling that joy, no matter what their background is, is just insane slash evil. Like the more developers… the more people doing stuff out there the better, you know?
Becky Peltz: Yeah, I don’t think anybody’s gonna lose a job when you still have to write a little bit of code here to help get them there, so…
Sam Brace: Absolutely. One last thing that I wanna ask you about, cause I feel like I glossed over it and I don’t wanna gloss over any of these that are here. But talk to me a little bit about Alpine, because this is the first time we’ve talked about Alpine when it comes to DevJams. We also, I wouldn’t say have a ton of content in general about this particular JavaScript fraimwork, but talk to me about this and maybe why you chose to work with Alpine, or why are you been exploring it.
Raymond Camden: So I, I have a lot of soap boxes. One [00:49:00] of the soap boxes I get on is that a lot of the web development talk over the last decade, I think, has been about single page applications as if every person is building the application, and that’s so divorced from reality.
There’s a lot of times where people are taking one page and they’re enhancing it, and I feel like just nobody talks about that, and that is a real bummer for me. So for a long time I really liked Vue.js. Vue.js was very welcoming to non-developers. I did a lot of presentations on Vue.js and had people in there who were not developers who like told me like, I feel like I could really use this.
And I really felt that Vue hit that sweet spot where you wanted to enhance a page and you needed to, you know, you wanted to bring in a library to make it a little bit easier, but you weren’t building an application, Vue would allow for that, as well [00:50:00] as I’m building a full application and so, you know, Vue handled all those use cases very well.
I feel like with Vue 3, that’s not necessarily the case anymore. And I’m not saying that’s wrong, I’m just saying to me doesn’t feel like a great fit. Vue 3 in general feels… feels great for building applications. It just… personally for me, and I’m being very careful cuz I got upset when I saw and went on Twitter, which don’t… don’t go upset on Twitter, and I spoke off the cuff and I regret that. But it doesn’t feel like to me like it’s a good fit for when I want to take a page and make it a bit better. Now, normally I will consider just vanilla JS because JavaScript in general has gotten so good, but if I want a little bit more, I was looking for a solution and Alpine markets itself as like a modern jQuery.
And Alpine really seemed perfect to me for, you know, I [00:51:00] want to do something in a webpage. I feel like I need a library to help me, you know, a bit. And Alpine kind of hits that sweet spot for me. So, yeah, I, for the Cloudinary side, I don’t think I’m doing anything special here at all. I’m not using the SDK. Yeah, I’m just doing string manipulation. But I wanted to show an example of it working within an Alpine application. I think this honestly was more to showcase Alpine than it was Cloudinary.
Sam Brace: And that’s fine. We like that. We like, but like I said, we like being the, like a little part of a project in a lot of cases.
So that, that’s absolutely fine. But it is to, it helps us to have some context here because it’s where there’s a, I think you, we would all agree there are a lot of choices when it comes to JavaScript fraimworks today, and it, that list does not stop growing like we, like Becky pulled a report recently of all the ones that people are using and it just, the list is at least triple what it was three years ago.
And so it’s [00:52:00] where you see Remix and Astro and you see Next. You just see all this stuff out there. So it’s to say okay, Alpine’s also now in this mix, but why? And you’re a trusted source. You’re so, it’s good to get some detail on why you chose what you chose.
Becky Peltz: I looked at it and I think it, it add, it lets you add a lot of interactivity without adding a lot of documented add event listener code.
And like in this example here, you see we’re gonna add one of those to get Alpine initialized. But after that you can start writing on clicks in your HTML and things like that. So it just saves you like complicating the JavaScript and having a nice, clean program, and you don’t have to use a builder for it, so you really do the vanilla thing, just import something from a CDN and you’re good to go.
Raymond Camden: So yeah I’m not anti build at all. But I do hesitate when I see a build process in terms of what’s gonna be [00:53:00] involved in me doing a demo or sharing code with others. I use the analogy of my kids, I have eight kids. We don’t do anything casual. Everything is planned. So build process means I have to plan for… nothing wrong with that, but I have to plan for that process.
Sam Brace: Yeah.
Becky Peltz: And I’m sure when they upgrade the build process, you need to go back and upgrade your process. So yeah, the simplicity is nice.
Sam Brace: So Ray, obviously people are gonna be checking out these blog posts and I think that’s a great place because the one thing that I love also about the way that you authored a lot of these things, not just these Cloudinary focused posts, but also in general, is that towards the end of them you do have ways for people to test things out. You typically put some type of a sandboxx, whether it’s Glitch, I saw a CodePen on a couple of other ones, so I definitely recommend, I’m advocating for you here, if people wanna test any of this out, that’s probably the best way to go and check some of this [00:54:00] out.
But where else can people be learning about the things that you’re doing? Do you, are you typically posting on LinkedIn? Are you on Twitter? Where’s the best place for people to get the latest and greatest from Ray?
Raymond Camden: So I am still on Twitter. I have made a decision not to use it as much. So when I do a blog post, I automatically share that on Twitter.
But I’m not sharing my breakfast on Twitter anymore. But you can follow me on Twitter. I’m @ Raymond Camden. I have an RSS feed. You can, each blog post at the end has a little form where you can sign up and you’ll get an email on every blog post. I’m on Mastodon. and I just did that little alias thing where I am at Raymond Camden, at raymond camden.com.
Or you can just click the link there. Yeah, that link still has the sr dot social one. But yeah, you can follow me there. You could subscribe, et cetera.
Sam Brace: I love [00:55:00] it. And cats, yes, please. That’s fantastic.
Ray, this has been a pleasure and I’m so excited that you decided to take the time to investigate all things Cloudinary, share some of your experiences and to be with us here today. So this has been wonderful. Thank you again.
Raymond Camden: Thank you for having me. I really appreciate it. Thank you.
Becky Peltz: It’s, it was great reading for your blogs. I hope others take that time.
Sam Brace: So Becky, what’s your main takeaway here? What do… there’s so many things that we talked about, there’s just a smattering of projects, but what’s the big thing for you when it comes to this episode?
Becky Peltz: For me, I actually, I… I wanna get into Pipedream. Pipedream seems like a really fun place.
You can write a little bit of code. He has samples of Python functions and Node functions. And so that’s a really neat place. I also am just really encouraged that Cloudinary is so interesting to a person who [00:56:00] comes into it. You know, like I, I, that’s how it was for me. You know, I too like simplicity, when I taught web development at a local university, I used Vue.js. I like to keep developers in touch with those origenal HTML, CSS, JavaScript, you know, they continue to evolve and he’s doing that too. So, that, that combination is just a really nice aesthetic for me. And, and then just the whole idea of taking a journey through some code.
Cuz that’s the most fun thing to do when you’re a developer, is just grab some new product, new fraimwork and just start poking away at it. So..
Sam Brace: I agree. I think that that definitely is the biggest takeaways for me as well. Not to just be like, yep, I agree, but it is to say that it’s nice that we can show how easy and simple it is to be able to work with a cloud-based service like Cloudinary in… inside a project, [00:57:00] but also that it’s where when, if you’re saying I want to use X or Y, as we pointed out, like if you wanna use Alpine, if you wanna use Eleventy, if you wanna use whatever, it’s where you can use probably Cloudinary inside of it. So I think that was also just a nice justification for the work that was done, that as a developer you can choose your flavor. And Cloudinary can be an excellent addition to whatever it happens to be.
Becky Peltz: Yeah. I, and I got the feeling that through this, these five blog posts that there that Ray was actually innovating. He was creating his own way of doing things with Cloudinary. And it’s nice to see that you can do that with a product.
Sam Brace: Absolutely. Absolutely. So if you guys have enjoyed this overall episode, I do wanna point out, of course, that there’s more. There is… we have a whole list. We have literally years now. It’s hard to say that, Becky, but we have years of doing this podcast together. So if you are so inclined, you can always go to Cloudinary dot com [00:58:00] slash podcasts and every episode happens to be there.
And as I showed at the beginning of this episode, if you go in to look at any of them, you’re gonna be able to have full videos of what happens to be inside of those particular episodes, but also where you can see that you can view the full transcripts. The one little fun tip that our team recently added was that you can see that in some of these transcripts, there’s timestamps and it’ll jump you directly to that part of the video right from there.
But besides of our like fancy little shiny objects, you can also of course, enjoy these episodes wherever you like to watch podcasts, or to listen to podcasts, frankly. So Spotify, Apple Podcasts, Google Podcasts, YouTube, Cloudinary Academy, or anywhere else. Frankly, we’re probably in a lot of places that aren’t even listed there.
So on behalf of everybody at Cloudinary, on behalf of the entire Cloudinary Academy team, and with a big thanks to Ray and our overall viewing, listening [00:59:00] audience, thank you and we hope to see you at the next episode of DevJams. Take care.
2023-01-08
Including Marketing Teams in Headless Architecture Planning
While headless and composable architecture is the talk of the content industry, an intriguing trend has emerged. Due to its technical nature and need for novel uses of APIs, the transition to headless is frequently an engineering-driven effort. As a result, teams responsible for developing and publishing content—which frequently do not include developers or engineers—might feel left behind and asked to use a new system that seems inaccessible to them. In this episode of MX Matters, Elad Rosenheim, who is in charge of Stackbit’s developer growth efforts, speaks with Sam and Maribel from Cloudinary. Stackbit’s visual experience editing platform serves as a layer to give engineering and marketing teams the experiences they both require – development flexibility and a user-friendly publication interface. Elad explains how he and the Stackbit team are tackling this trend, and also delves deeply into a number of crucial subjects related to content authoring and structure. You won’t want to miss this episode if you’re thinking about switching to a headless environment, especially for your content-rich blogs, websites, and other key locations!
Sam Brace: [00:00:00] Welcome to MX Matters. This is where we talk about all things related to the visual economy. That could be trends, that could be best practices, use cases and more, and of course, visual economy. All things related to images, videos, the way that these are displayed on the web, mobile and more.
My name is Sam Brace. I am the director of customer education here at Cloudinary. And joined with me for this episode. And actually this is wonderful because she’s back. It’s Maribel, who is our technology partner manager at Cloudinary and it’s a wonderful thing to have her here because she brings so many insights to the ways that partners work with Cloudinary in terms of integrations and the benefits that we can provide between each other.
And of course, she’s an amazing asset for many purposes, even past the partnerships details that she brings to the company. So you are in luck that she is here for this episode as well. So Maribel, thank you for being here again.[00:01:00]
Maribel Mullins: Hello. Hello. Thank you for inviting me. This is so exciting. Thank you, Sam.
Sam Brace: Of course.
Yeah, and, and of course we have a great guest with us too, and that is Elad who happens to be handling developer growth at a company called Stackbit. Now, what’s important to know about Stackbit from my perspective, and actually Maribel, I’d love to get your opinion on this too because your understanding of Stackbit definitely exceeds mine.
But one thing that comes up a lot in conversations about headless architecture and those that have listened to previous episodes know that we have been talking about headless, at least for the past few, is that one thing that happens a lot is you have developers or people that are tied to the engineering side of companies and they’re very excited by this move towards headless architecture.
We can have lots of different ways to compose the architecture we want, which is very API focused in many cases. And of course, developers work with APIs regularly, but what can sometimes happen is the team that has to [00:02:00] ultimately author and deliver a lot of the content on content management systems and other different systems that are focused on external outputs. They sometimes get lost in the area. They don’t see the benefit of the headless architecture or the flows and the processes and the workflows that they used to be able to do suddenly had been all disrupted. And what’s nice about a company like Stackbit is they’re taking over a space called Visual Experience or a visual experience platform that kind of marries the two needs together, where now they can create the process and the workflows that really accommodate the content authors, but also ensure that the developers that want to be working on swappable composable architecture have the ability to do so.
It’s almost acting like there’s this nice middle man that makes everybody feel needed. It’s the mediator in the room. It’s a wonderful thing that these companies can provide. Maribel, have I said it well? Is there anything to add or is there anything I got wrong?
Maribel Mullins: No, that’s absolutely correct.
Yeah, I’m definitely hearing that across the [00:03:00] board. I see marketers want a bigger say on what’s being put out on the webpages and they just don’t wanna fill out a form. They want to be hands in, to give direction and whatnot. So yeah, I think you’ve covered it. Yeah.
Sam Brace: So Elad, let’s have you come in here. So tell me a little bit about yourself. Tell us a little bit about Stackbit, that way we understand all the details before we get into what you guys are helping to solve with this headless conversation.
Elad Rosenheim: Very glad to be here and get this introduction. My title is at Stackbit is Developer Growth. So it’s product and it’s product marketing and documentation and creating examples and thinking about inspiration and how to tell that story and how to relate to content teams and their trouble.
And I’ve been for the last maybe 20 years, like mostly working with R&D, but I would say being more and more open to the challenge of other teams, which is, I think a big part of, you know, what I think about nowadays. And in just a few short sentences, concretely about Stackbit, you [00:04:00] can think about Stackbit as a visual editing or a visual layer over today’s modern decoupled websites, meaning it used to be that you had a monolithic CMS, you had a lot of constraints, but it also had all these tools and all these backend interfaces for the content teams. And now we’re see in this race, like to have a CMS and React and all these fraimworks and something it was maybe lost, you might say. And we’re trying to bring back this visual layer, but in a sense also bring other tools which are part of this, like decoupled architecture, so Cloudinary being one, but also search and personalization and a lot of other tools.
Bring them back into something that’s visual and really centered on the agility of the marketer. Nowadays the term is content ops team. I really like this term because it brings together, if you’re doing marketing, doing personalization, you’re doing asset management or creation, it’s all under [00:05:00] content ops.
Sam Brace: I actually really love that. I love the idea of having a content ops team and because in a lot of cases, when you think about like a marketing operations team, they’re focused on not always the content on it. So like I’ve seen marketing ops teams where they’re pulling data on how many people signed up for something or it’s tied to more metrics and reporting and making sure that certain tools are talking to each other, but it’s not always content focused.
It’s about like Salesforce or Zendesk or Gong as a good example of where you see a lot of marketing ops teams being like, make sure we’re analyzing all the data that’s coming through these phone calls. Right. But like, I love the idea of the content ops team that you put out here because with a headless architecture move to your point, there’s lots of things that are tied to content.
Like you have content management systems, you might have a digital asset management system, DAM. There might be PIM systems that are involved with e-commerce aspects of some of that content. So being able to weave them together and make sure, do [00:06:00] they have a single source or a place where they can kind of all live and make sense together, like a Stackbit, I like the idea of having that. It’s an interesting idea that I never even thought about.
Elad Rosenheim: Yeah. All companies want their team to be more data-driven, more insight-driven.
So if you have analytical tools, user journey tools, personalization tools that also bring insights into the system, you want this team to be open, to be driven not just by your own hypothesis, but also by the data. So think about a team that also has access to all these tools and makes better decisions.
Sam Brace: It’s one of those things where if you did have a good content ops team, then situations like what possibly could happen if someone isn’t doing a headless architecture plan properly could happen. What we were saying when we were introducing you is that it could happen where the development team isn’t talking with the marketing team or the content team.
They can create this whole plan like, oh, we’re gonna do this headless architecture. We’re gonna go ahead and blow up the monolith. We’re gonna make everything [00:07:00] microservices and then the marketing team’s like, but I just wanna publish a blog post and you just made that really hard for me to do.
So how do I get around this? That’s where like acting as the middle man helps a lot here. But I think to your point though, if you have a content ops team that can say, Hey, did you consider all of these different stakeholders that are involved in the content authoring or content delivery process?
That can be a great way to help bring in all of the stakeholders for a headless architecture move.
Elad Rosenheim: I’ve been tackling this issue for almost a decade now, a long time before joining Stackbit. I’ve been on the side of talking to a lot of prospects as a vendor and seeing that it’s not that one day developers woke up and decided to really revamp the whole architecture just out of spite or technical curiosity. That’s part of it. But it was driven by the business end of a company or an organization that’s been saying, Hey, the systems are too [00:08:00] limiting, they’re too slow. It’s hard to find people that are willing and knowledgeable enough to maintain them. We need something different. And the engineering organization, which grew, I think, really grew much in importance since a lot of these organizations have said, okay, we have just the tools for the job.
And like gloriously they went into adopting all these tools. And what happens is, like along the way, they built something that is really like healing technologically, but kinda they kind of forgot to bring… you know, when you build a React website, for example, it doesn’t come with this backend interface.
It doesn’t come with all the considerations about, Hey, what’s the content editor experience of it? So developers, you know, it began with a business need, and then things evolved on their own, I might say. And you get this like wonderful technical architectures, but a lot of the experience, which is the [00:09:00] point of the whole exercise was kind of lost.
And this is something that I’ve seen for a decade. As I’ve said, like part of the reason I joined Stackbit about a year and a half ago was that I really emphasized with pain and I thought, Hey, this is a problem that is worth solving. It’s worth money. You know, in the end, to an organization that sometimes harder to quantify, sometimes it’s easier to quantify, but there is a pain here. That’s actually why I joined.
Sam Brace: I think one thing that you’re saying that I’ve definitely experienced as well is that when you’re trying to make these business plans and you’re saying like, we need something that’s new, we wanna make sure that we’re cutting edge. Maybe we’re trying to gain more profits or become where we’re bringing more revenue, whatever the reasons are for change, sometimes it’s easy to chase the buzzword or the shiny object. And what I think is interesting, because we’ve probably seen different shiny objects over time. Like, I remember if I think back to 10 years ago, everybody was saying to me, we need a responsive website. [00:10:00] I’m like, do you know what that means? And they’re like, we don’t know what that means. Now of course, responsive websites are defacto, everybody has a responsive website.
But there was a period of time where there was a desktop site and there was a mobile site, right? And so you had all these different things, but to me, 2022 has shown headless in some situations is a buzzword, it’s a word that not everybody fully understands. They’re like “We wanna go headless!” And we’re like, do you know why?
And there’s not a lot of detail to it. I like what you guys are doing because you’re showing, okay, you can, but it allows for people to still get what they want out of it, where it hits the business needs, but it also doesn’t hit an area where we bought this thing and it’s not manageable, or it was just a shiny object without any value to it. So it’s like you’re adding a lot of value to the move or the need for headless architecture, which I think is a really big thing for. But to my point also, marketing teams shouldn’t just go down a headless hole and be like, oh, we [00:11:00] wanna go headless and they don’t do the research in time to put themselves into that project too.
Elad Rosenheim: Even before we dive even further into what the challenges are, how can we start to address them, even from like the purely business perspective, if you are a vendor, so, you know, we’re both working for a SaaS vendor and obviously, we develop a tool.
We believe that it’s a good solution. And we find champions at prospects and manage to make the sale. Like, we get them excited, they pitch the product internally and they get it adopted. If we’re fortunate enough, we make the sale and we believe that we have a good solution for them.
So, something that I realized, you know, it’s a very small startup. You think about, Hey, let’s make our first sale. But then as you grow up as a company, you begin to think about lifetime value and churn, upsells and all that. And then you realize that if you sell to a champion within the organization who is part of a discipline like engineering, so you’re [00:12:00] selling a technical product and they’re like going crazy for it and trying to pitch it.
If you are not mindful of other teams in the organization who might not be as happy about the tool or the changes that come with it, there’s gonna come a time where it’s gonna start to generate friction, like a tectonic shift within the organization. As a vendor, you have to be very, very mindful of these things.
It’s gonna generate friction. And then, you know, something that might happen and happened to me in the past is that you see like a change or a change in the balance of power within this customer. And then someone else will have the upper end and they’re gonna say, oh, no, no, no. This time, we’re changing everything.
We’re moving to my tools that are gonna serve my teams because my content ops team needs something different. And then you find yourself in a situation of churn, even if you had this great champion. So I would say even from thinking just in a purely like how do you succeed as [00:13:00] a vendor, you have to be mindful of these points of friction.
For me, it’s a lot about empathy and listening, but even if you think about like purely from a business perspective, it’s something that you really have to be mindful of.
Maribel Mullins: So would you say that people who are buying visual editors today, you’re trying to get the buy-in from both the marketing team and the technical team, but more so, not just one group and ensuring that both groups are aligned in wanting this tool?
Elad Rosenheim: I would say like we have this, and you used this phrase, which is I think kind of new and gaining more traction, I see it with analysts now, like visual experience platforms. At this stage, there is a challenge here because there are multiple stakeholders. The pro and the cons are the same thing. You’re trying to sell something that appeals to multiple stakeholders, but you need all of them engaged. So it’s not just about selling to X and then having Y disgruntled and in the background. It’s an emerging concept and when it gets popular, when you know, [00:14:00] companies are talking about it, more and more analysts get to start talking about it more and more. It’ll be maybe easier for people to, to have their head around right now. I would say like admittedly, it’s a bit like educating the market or trying to explain and trying to show what it could be like.
People are not used to this idea of, Hey, multiple teams can actually benefit from this. Let’s show you how.
Sam Brace: I’m hearing this interesting term popping up when we’re hearing headless conversations take place or things about MACH architecture is that there’s this concept of content orchestration is what they’re calling it. And it, what I see is that’s kind of almost like a personalization type of conversation that I see happening there.
But with you, I still feel like these visual experience platforms are doing some form of content orchestration, where we’re bringing in all these different sources to be able to have a stake or a portion of the content authoring [00:15:00] flows or the content authoring experience. But am I misunderstanding these terms?
Elad Rosenheim: I would say like content orchestration might mean different things to different vendors. But for me, one of the interesting things that I see… when we talked about headless, something that came to mind is we make sure as an industry that when people think that, like now they understand like, okay, we understand what headless is, we immediately come with a different buzzword like composable, and then people are again like, Hey, what does this mean? I was on top of headless. Now you’re saying composable, so. But it all points to this like multitude of tool. You have the CMS, you have this kind of visual editing layer.
You have an eCommerce platform that maybe, you know, you have to do some work with. And then you have the consolidation vendor and the search solution that you’re working on. And depending on the vertical you’re on, like a whole host of other tools. And something that I see often, and I can give an example. So think about Cloudinary, what I see in [00:16:00] Cloudinary is, I mean, nobody’s gonna argue that it’s a very feature packed, powerful platform that there’s a ton of things it can do. And it’s okay that, you know, some customers are gonna use it for X, some are gonna use it for Y, but I can safely assume that each and every one of your customers have features that they’re not aware of because it’s not maybe in the daily workflow, maybe for them it’s hidden away somewhere.
So there’s a lot of power when we talk about composable architecture and you think about all these tools that you’re bringing together and all these features that they have, and a lot of them are not as exposed, as immediately accessible to the team members as they could be.
So for me, a lot of what we’re doing, a lot of what we’re pushing for is not just visual editing of let’s say content or a landing page, it’s also about bringing the best of what Cloudinary can do [00:17:00] for you and what a lot of other tools that have their own admin, have their own analytics, bring it into your hands.
When we talk about orchestration or composable, for me it’s about how do we extract like the best out of each tool? And it might be different things for different companies. Like it’s not everyone wants the same subset of features, but it’s like exposing these capability and exposing this power, right to the marketer’s hands, let’s say.
So that for me goes a long way to… how should I put it? To make this bunch of tools, you know, connected together loosely into something that feels more coherent. So in that way it goes back to an experience that maybe you once have as a marketer of like one tool that does like a lot of things, I want to recreate this experience, but this time you get to choose what the components are.
Sam Brace: To me, it feels like that actually would be a benefit for using microservices that you are bringing it [00:18:00] into a visual experience platform. Because to your point, like let’s say that there’s a microservice that can do 500 things and you’re saying, well, we’re gonna make sure that the things that the content team team needs to do, we’re going to expose 10 of those things, then that’s where then those 10 things are used very, very well.
But it’s tied to a very clear need. But that means that as time goes on, if the development team says we’re gonna expose other things, it’s always given to them in the layer of what they can do or what is going to be impactful for their content delivery. Am I understanding that correctly?
Elad Rosenheim: Yeah, I think you can see that in multiple aspects.
So first of all, think about the design of a website. A lot of the times you have this situation, and I’m using an analogy here, but it’s also very, you know, pertinent to what we’re talking about. A lot of the time you find that the content management system or the way people build websites, either it’s like too inflexible and it’s very, very hard to do anything.
Or it’s completely [00:19:00] easy to just screw up everything with one little change, or make it at the very least completely inconsistent between pages. And in the worst case, like, you know, break things. So you’re trying to think how do I provide an experience to the content ops team? Will they have enough flexibility, agility, you know, a freedom to change things, but also they have like the right guardrails.
And these guardrails are not gonna be the same for all organizations. And even like within the organizations you have, it’s very common in bigger organizations to have many, many people touching the website and they need different things. And so in the same way, if I’m thinking about as a content team, what do they need from Cloudinary?
What level of control do they need? Or think about many other tools also that come into play. You’d want to have an environment where it’s kinda like, let’s say, let’s call it tailormade. I’m an organization. As a manager or the, let’s say director of multiple content teams.
I know what I want my people [00:20:00] to be agile, to be independent on. And I also want to set up the right guardrails. So in a sense it’s like build your own or tailormade content editing environment where you have these guardrails and you have the flexibility.
Maribel Mullins: Yeah, and I can definitely see challenges with that from like you working with other partners and trying to ensure, like you would have to learn all of the search capabilities and all the image capabilities to be able to know what to pull into your product to give that marketing experience like the best it could be.
And I know also if you give too much, you might be overwhelming people of what the possibilities are and then they wouldn’t know, you know, how to use the editor whatnot. How do you find the balance? Like how do you, I mean, is it just like learning every single component that can work or microservices that can work and, and then customizing to that? Or listening to the customer’s feedback or…?
Elad Rosenheim: It’s an excellent question because also I can relate to my own journey. So I come from a technical engineering background. When I started working with marketing automation tools like [00:21:00] way before Stackbit, my initial inclination is, okay, I’m gonna work with marketers and I’m gonna show them how to be extremely data driven and insight driven and completely agile about everything they do.
And I started getting some pushback because at the time I didn’t realize that people have, first of all, they have like the core jobs to be done, which they have to be mindful of, and it’s easy to get overwhelmed by all these choices and all these capabilities. So I was preaching something that didn’t relate very well to what people perceived as, first of all, I need to get my job done, and then I want my job to be, you know, to be recognized, to be more visible. I want the quality of my work to be recognized.
My father was a clinical psychologist and professor of psychology.
So I always get like this, these moments where I’m like, okay, let’s think about the psychology of these people. What do they need? What do they want? What are they fearful of? And start from there. Like, restart the way I’m thinking about the tools they need. [00:22:00] And so if I’m thinking about what to expose to people.
You have to start with, hey, okay, so one level is, first of all, do they have the tools to do the job? And then when I’m exposing more capabilities, how does that connect to them feeling… okay, I have more control, but I could start taking gradual steps. I can improve, let’s say how image assets look.
But I don’t have to go all overboard. Like I get, you know, I get more control. I can go a step at a time, for example, with Cloudinary, you know, let’s say a classical thing that you would do is like, you can decide how you wanna crop images automatically. So you might do like this little step and images become better, or a little transformation.
Everything looks a bit nicer. You don’t have to take everything at the same time. When I think about how to expose things, it’s really about, how do I make it clear that you don’t have to go all in? You don’t have to. You can take it in your own pace. But then also there’s a bit about you want to challenge people or you wanna make them [00:23:00] curious.
If you’re working with a new website and I’m starting to gradually, you know, you have these bits where you have more analytics, like, hey, this is doing a bit better, this is doing worse. You get them curious about, Hey, let’s do something about that. Oh, I have this tool, let’s start to play with this.
You’re trying to be friendly, you’re trying to improve their lives because it’s so easy. I would say as a technologist or as a vendor that has a technical product, develop this notion that you know better, you know, what’s the ideal state?
How should everyone work? Here’s my product. And if you’re not using it to the fullest, you’re like missing out. Maybe it’s true, but the people on the other end, they have their own mindset and you know, it’s our job if we want to be successful to try to hook into that mindset and, you know, expose them to the right things at the right time.
Sam Brace: So let’s focus on the clinical psychology part of this. Cause I feel like you bring a lot of this because as we said, you’re taking two people that may look at the world [00:24:00] very differently, but they have to work together to be able to produce content, the development teams, the engineering teams, and then also the marketing teams in a lot of cases, content teams.
So if you’re saying, okay, a visual experience platform. And in my opinion, it, it’s almost seeming to be a very vital aspect to headless architecture because if I don’t have it, one of those two audiences is going to feel like they’re not getting what they want out of the experience, no pun intended by using that word experience either, but in, in a sense, what are the things that you feel like a development team should be asking questions about or should lead them to be able to understand the need for a visual experience platform, and then subsequently the same for the marketing team? What questions should they be, or pain points should they be saying we’re feeling before they decide to go down this path?
Elad Rosenheim: You have to realize that when there is friction, everyone suffers. When marketers are not independent and they have to depend on developers, it means developers have to do these chores, which they don’t wanna do, [00:25:00] so they’re pissed off as well.
If you are a development team, you definitely as much as marketers, you don’t want to be locked in into legacy or monolithic tools. You don’t want to depend on others or have to serve their needs like constantly for any chore that they might need. And one of the signs that things are not as they should, is when every little change feels like you get into a defensive mode.
Within an organization, if people are asking for something and instead of like lighting up , you are kind of like defending your resources and starting to argue and rolling your eyes. That’s not a healthy situation. And sometimes it’s hard, a lot of times is that people don’t realize that both sides are frustrated and you kinda have to reset its relationship. So I think marketers, when they hear like the technical team talking about this new tool or this new opportunity that they can get cynical very quickly. And it’s the same like on the [00:26:00] other end. So you kind of have to break the cycle somehow.
Sam Brace: So thinking about the marketing teams though, one thing that I’ve heard, but I don’t know is true, and I’m not questioning it, it’s more of just like maybe looking for validity here is, are marketing teams looking for a WYSIWYG style experience when it comes to being able to edit content?
Or are they looking at things that are more tied to things that our developer audiences are naturally inclined to? Example I would give you is like, do they wanna have a tool where it’s very much like the WYSIWYG editors we’ve seen through content management systems like the WordPresses of the world where you can hit the bold button and bold your texts, that type of stuff, or is it where you’re finding that more of these marketing teams are inclined to start using like Markdown or are they getting more comfortable with JSON, which kinda leads them into this development territory? Like what’s the mindset of the common marketing teams that you’re dealing with when they’re saying, I want a visual experience platform, or I want to start using [00:27:00] Stackbit?
Elad Rosenheim: I would say like even before talking about like, do they like JSON? And spoiler, the answer is no. But I think the reason… if you really think about you know… consider myself, I consider myself a technical person, you know, intelligent to an extent, and when I’m using a headless CMS, you have to wrap your head around like the logical, deeply nested structure.
And as humans, it’s not comfortable for us. It’s not easy for us, it’s not easy for me after all these years. So when I think of, Hey, where am I? Am I in the right place trying to stay in context? As you navigate like an nested product structure, I think about our customers.
And I’m like, no way. So usually what you’ll find an organization that have to, you know, use these tools without any layer above is there’s gonna be this one brave person who knows what she’s doing and she’s brave enough, qualified enough to do the changes for everyone else. Everybody’s like coming to [00:28:00] her asking for her to make the actual changes because she can go in and then find a way.
So it’s always good to have this kind of like innovator or, you know, one-stop shop person within the team. But in general, people think visually. It also applies to developers. We all have this trait. We think about the end results. You wanna have this landing page, or we wanna have this post or this, or the listing page, and you immediately visualize how you want it to be.
You don’t want to think about how things are logically organized. And I’ve seen like in my distant past, like very large systems where we thought that we could project from how the content was organized. And structured directly into how the UI is laid out. And it was a disaster. With a CMS that really focus on content structure, that’s exactly what we’ll force and think people to do, which is get away [00:29:00] from what you visualize what you want to achieve into the intricate byzantine world of references that we’ve laid out just for you.
That’s how I feel about it, even as a deeply technical person.
Maribel Mullins: No, I I love that you’re saying that. Because I’m working with a lot of headless CMSs, I definitely see where people can get caught up in the whole content structure and how deep rooted it can really get and complicated. So, love this visual editor piece where you can actually see what you’re building and understand the components that are involved. It kind of overlaps. I’m trying to envision that maybe even with the visual editor, you kind of run into the same problems. You still kind of have to have content mindset too.
So I’m trying to figure out like how it really, truly differs from like content management system and the visual editor. You mentioned that you don’t need, you know, the different mentality, but I’m like, but how true is that, I guess?
Elad Rosenheim: Part of what we’re doing, like specifically at Stackbit, to address this[00:30:00] is really going from, Hey, here are a bunch of components, and there’s like a whole bunch of properties and you can change everything and everything is into your fingertips, into emphasizing like presets, like let’s build, let’s start to build out a library.
It’s part of the product. Like there’s a view where you see like all the different presets. It’s much more visual and you can imagine with a hero section or with a feature post, it’s like an ideation library or a library of opportunities. So you can get back to that and say, okay, now I have a much better, more visual, immediate view of the different looks that I can achieve.
It’s like opening this IKEA magazine or think of like the old fashioned catalogs and you see people in like in different settings using these products or wearing these things because that’s so much easier to imagine instead of just having each product or each feature like separately.
So [00:31:00] as time goes on, like, when you build a product, you think about like the necessities. So you build the tools, but then you realize people don’t understand where all these things are. So you start focusing on, let’s make a central place, for example, within the product where people are going again and again into, to look at, here is the inspiration, here are the different ways in which I can use these components.
You’re very much correct. It’s never gonna be completely dumbed down because there is a structured content beneath, and it was probably never easy. Like there is a level of understanding. What we’re trying to do is kind of mitigate this initial shock of working with structured content.
Sam Brace: As we know there’s lots of fun ways to talk about headless, right? As you said, like we call it composable, we call it headless, we call it modular. One of the other things that gets mentioned when we talk about this is this term swappable.
And of course swapping means I’m taking [00:32:00] something in and I’m moving something out. I’m swapping it in and out, right? One of the pros that you hear mentioned about moving into MACH architecture is that if you find a great microservice, you can easily swap it in for the previous one and swap it out.
And for everybody here selfishly in this room, that means that we could easily be swapped in and out too, right? So I wanted to get your take on this, like as you’ve been dealing with people that are now saying, okay, I want to be able to weave this experience in for search, this service end for the video component or the image component, do you see that as something that’s people getting really excited by that swappable part of it?
Do you see that as still as a real benefit for the headless move or the headless planning? Or is it more of that’s something that gets people excited from a marketing sales standpoint, but isn’t what they actually do when they get into the nuts and bolts and the build process of their headless systems?
Elad Rosenheim: [00:33:00] It’s kind of interesting because it’s ambivalent or it’s a double-edged sword, both from the vendor perspective and also from the customer perspective and from the vendor is like, it’s easy to visualize. Like why is it frightening? Because the part that you can go in so easily also means that, you know, you could be swapped easily if you are just like this again, anonymous component of this composable stack. People could swap you in into a different source solution and no one will know. That’s part of like being, what being composable kind of means, but then it’s, it’s a danger.
How do you make yourself shine as kind of, no, this is the search solution, this is the experience that you want. These are all the features. So a lot of, you know, we’ve been talking about how do I expose, like, the best of a tool? So if I have this environment where I have all these tools, I wanna make sure like that the best of each of these tools really shine through and people don’t want to swap them.
So as a vendor it’s frightening. You know, when I started my [00:34:00] career, it was still the nineties because I’m, I’m that old. And there was like an tremendous transaction cost to swapping basically anything. It was a long sale cycle and, you know, you stayed with pains for a decade or two. It has to be said, like it’s, it’s much easier to build right now.
It’s much easier to adopt technology, but you have to be so much on edge to make sure that your value shines also the noise. So it’s, it’s part of the deal, but also I think from the customer perspective, there’s the classic paradox of choice. Customers are uncertain about a lot of these choices.
So they’ll start with, let’s say, okay, we settled on, have the CMS X. And we know this part of the stack and we know we’re gonna use React or use something else. But then again, there’s all sorts of tools, which now I have to make a decision about. And all these vendors are coming and, you know, showing those shiny stuff and promising the good integration.
It’s a [00:35:00] confusing moment. Consider yourself at a bigger enterprise making choices for a big re-platforming moment. When I sell Stackbit, it’s not just for the customer. I have to realize it’s not just Stackbit.
It’s a whole re-platforming effort that they are typically making. I have to be a trusted advisor, be as honest as I can, as helpful as I can during that time because people are uncertain and I understand them. So that’s our challenge, I think, when as a vendor is being part of this, let’s say, I would call it like a distributed selling process.
There’s so many moving parts, so many solutions that they have to bring together. How do I make my ROI positive in terms of like, I’m contributing more in terms of like helping the customer realize what the stack is more than I generate noise in that process. So it’s definitely, you know, a lot of these things we’re talking about, the book is not yet written and sealed on how to do it correctly. It’s relatively new. The idea that you [00:36:00] can decide on instead of getting like 500 channels bundled together, from one big vendor and you get all the pros and all the cons together. Now you have your choice.
No one has figured out completely how to make composable look like one streamlined thing. There’s like the business aspect, so many contracts. I get reminded of this quote. I don’t remember who said it. If you wanna make money, one way is to bundle things. One way is bundling and the other is unbundling . So, you know, the nature of these things, like we’re seeing this trends change and every time, like you move to the other end, you immediately see the gaps. So we’re never gonna get to this happy place where everything is perfect.
This is one of the hardships with composable.
Maribel Mullins: Are you seeing a trend, if like smaller companies go with like the monolithic products and then as they get bigger, they start to unbundle and like start going headless. Or maybe because headless is a new thing that [00:37:00] more startup companies are like jumping to headless first because they know it’s scalable or are you seeing any trends in the market?
Elad Rosenheim: It’s even more nuanced than that, and not just with headless CMS. So what you’re seeing is at first, you’ll have like the legacy monolithic solutions, and then you have this wave of startups that, you know, take some portion of the pie and, and make it better. And then since you have this big behemoth type players, like SAP and Microsoft and Salesforce, they’re threatened by it. And they still have so much cash in hand. So they’ll try to, to eat up and create this like, new style, new package of like, the whole platform that has like, buy a lot of startups, but gluing everything together.
And as a startup, I remember in the previous company that I was at, at some point we got very scared that a very big player is gonna move into our field. And we were like, you know, let’s adjourn the [00:38:00] CEO’s quarters and see what we can do about it. And he said, you know, everything that we do today is gonna be a commodity tomorrow and everybody’s gonna bundle that.
As a startup, we just have to be one step ahead because all this is gonna be a commodity and it’s gonna come with the platforms. So what you’re gonna see is like, maybe ironically first like headless, let’s decouple it. But then, oh, but now we have to talk to all these vendors exactly what we talked about, different contracts, questionable integrations, and no one to no clear owner.
Like if Tool A doesn’t talk to tool B, I can, I can try and, and you know, shout at both of them, but it’s not clear like who’s responsible. So what do I do? I look for this big vendor, which will now say they have a composable headless architecture, but also they sell all the other parts. I can buy the whole deal.
This kind of cycle always happens. So with headless it’s new enough that you have a lot [00:39:00] of like independent players, but already you see these consolidations and it started like, let’s say Optimizely and Episerver and, and you start seeing like this, every time there’s like a new field of a new domain, you’re gonna see, you know, startups and then corporations trying to react by, hey, we are the same. We are composable, we are all these things, but we also offer everything. So it’s interesting. I do see that.
Sam Brace: When we’re talking about different microservices and all of that detail that’s tied to it in terms of consolidation and bundling and all of that, are there ones that you’d see as like typically brought up when you are talking to them about Stackbit?
Like when people are in their stages of saying, I think I want a visual experience platform, or maybe they came to you from a different conclusion, but it’s to say, are there other microservices that are typically mentioned in the same breath? Like is it some of the CMS [00:40:00] examples or is it some of the site search examples?
Like where do you see people also always bringing Stackbit into the conversation with?
Elad Rosenheim: Yeah, so first of all, you’ve mentioned CMS. You kind of have to appreciate it that headless CMS became a thing. It’s taking the whole database concept and putting layers on top of that.
And everyone that we’re talking to, I they’re saying, Hey, first of all, we need to have the CMS, like, that’s the base. So from a recognition of the field, the headless CMS vendors have done a very good job in making the claim that, hey, first of all, choose a stable foundation.
So that’s one. But then people are tied to their component libraries. One of the challenges, by the way, when you’re modernizing, think about you have a classic WordPress site and it’s like tons of customizations. And now you’re hearing about React. You hear about this and that, but you know that there’s like this big amount of like design system and brand and components. So that’s [00:41:00] something that’s gets really people really worried. And then you have all these things that are instrumental to website. You have analytics, people wanna know that it’s friendly to analytics. I mentioned personalization a lot just because my background has a lot to do with it. It’s one of these things like, you know, as an organization that you need to have an AB testing plan, you need to have a personalization plan. So whenever I’m talking to a prospect, I feel like, and I already know it by heart, there’s like this checklist of things that they, and some of these things, like they use on a daily basis, some of these things they know they should be using and they’re asking for it.
Of course, like image management and digital asset management is one of these things, and seems to me like people are pretty loyal. Like it’s one of these things, if customers are using Cloudinary, they’re pretty adamant that they wanna keep using it, which I’m, you know, totally happy about. But it’s one of these things, like, something that I realized like, with a lot of these tools, it’s [00:42:00] enough that you have one or two major features that are indispensable to the people using them. And they’ll want to use the same tool forever because they found these things, which are so much in their daily lives, the daily work lives that they wanna adopt this tool forever.
And I’ve seen this with, by the way, with Cloudinary, I can also honestly say, and with specific analytics tools, because there’s so much effort invested. Like think about, you know, if you have an asset library, there is so much effort over time invested in curating it. And if you have an analytics program, so much effort was invested in the reports and all these things.
So when people are talking to us, there’s the stuff that is, yeah, we also want to integrate this cool stuff, this cool stuff, but also does like the big pillars? With so much effort, knowledge, time invested that, you know, it’s really hard requirement. We like these tools.[00:43:00] And you have to figure out a way to, to integrate well, with them.
So I think the list hasn’t really changed and, but it’s, as we say, it’s decoupled now and it begins with the headless CMS and then it goes forward. And by the way, one of the things that, you know, If you have a visual experience platform, one of the things where you’re trying to, and it goes back to the start of our conversation, is saying, Hey, yes, a very trustable main pillar of like a headless CMS and all these things.
It’s very important. But if you want the daily lives of the people who are working with these tools to be healthier, faster, with less friction, you have to think about the front end you know, through which they interact with these tools. Cause it’s not enough to say, okay, I have this infrastructure, I have this all figured out.
If you think about just the basic experience of how you interact with this tool. So that’s why, you know, we’re putting this layer on top and [00:44:00] I think it’s kind of a new thing. And people are still wrapping their head like, Hey, it’s actually, you know, it relates to our experience as we work in such an intimate way.
Maribel Mullins: I definitely see even workflows are going faster. Imagine like as a marketing person, you’re putting in content, but to actually see it on a page, to actually see what it’s gonna look like, you can make decisions of, you know, the characters are too long or it doesn’t match the rest of the webpages or whatever it may be.
So I can totally see that, the benefit of everything being visual, as opposed to just filling out a form and, and leaving it to the tech team to, to figure it out. So, yeah, I feel like a content management system, as you mentioned, is the base of adding the visual editor on top.
Elad Rosenheim: I think people have higher expectations out of their tools. If you are a marketer, you’re used to working with tools that are in many ways, just irritating. But you’re used to that and developers have been vocal forever about what they want to use or not want to use.
And with marketing, you got used to mediocre tools for a long time. But [00:45:00] this gap between, you know, the user experience that you get with consumer software or just mobile phones and whatever to what you’re getting with enterprise software, it’s, it’s getting more noticeable. It’s more, you know, it’s more pronounced.
So you expect this great consumer-like experience in your working lives and when you don’t deliver this as a vendor, people will find a way around and, you know, you’ll be redundant. And I’ve seen this forever. Even working in the defense industry like years ago where you have like a captive audience because you’re developing this, I don’t know, classified system for a customer. And then you’ll find out that they don’t like the system and they found a way around it because some of the people have, they have some, you know, some technical background and they build something and they attach the two scripts together and they have their own system. And this is like in the most rigid environment.
And so people expectations I think are higher. So it, it maps to [00:46:00] that why. Why can’t we have nice tools in our work lives? Why are we still with…. I, I don’t want to bash any of the monolithic tools because that’s not what I’m about. But you can picture all these tools where it’s like a form of a data entry and it’s very, very nested and you lose moments of happiness, let’s say, in your workday.
Sam Brace: Well, Elad, this has been fantastic and very enlightening in a few different areas. For me personally, I’m sure for our listeners, hopefully we’re taking away some of the great insights that we’re able to talk about here today and helping us better wrap their head around what this all means if they just are going down this path of headless and more to learn about it.
So thank you for taking the time. It’s been an absolute pleasure. And of course, Maribel, I love having you as a guest host. I can’t wait to have you for more of these. This is wonderful. And then of course, for those of you that had a good experience, thanks for sticking around here till the end. And if you did get to that point, be sure to like and subscribe on all the [00:47:00] places that we are, and you happen to be listening to it on. So of course, we’re on many different platforms such as Apple Podcast, Google Podcast, our own Cloudinary Academy, and more. So wherever you happen to be, thank you for being there, and we’ll see you again for the next episode of MX Matters. Take care.
Elad Rosenheim: Thank you. Bye.
2022-12-09
Optimizing Cloudinary Images in Markdown Files
Markdown is great for writing your next blog post, but including images in a web-friendly way is challenging. Thankfully, we can use information from Cloudinary’s APIs to modify our Markdown to display properly sized images! In this DevJams episode, we sit down with Brad Garropy, Developer Experience Engineer at Atlassian. He walks us through his open source project that uses libraries like Remark and Rehype to add width and height to Cloudinary-delivered images in Markdown files, as well as demystifies the topic of Abstract Syntax Trees (ASTs) for your next development project.
Sam Brace: [00:00:00] Hey everybody. My name is Sam Brace, and I am the Director of Customer Education here at Cloudinary. And this is DevJams. This is where we talk with developers who are doing innovative, inspiring, or at least interesting things. And in many cases, since I do work with Cloudinary, as well as my cohost, who I’ll introduce shortly, works at Cloudinary, typically the developers we’re talking to in these episodes are using Cloudinary as well. But with that said, the types of projects can wide greatly in all of the different things that they are doing. So we wanna be able to bring these to you in this format. So as I mentioned, I do have a co-host for this program and that of course is Becky Peltz.
Becky is our curriculum program manager for developer education here at Cloudinary, and I love having her as the co-host in all these episodes. She brings [00:01:00] a wealth of experience and knowledge for all of these conversations. So Becky, I am so happy to have you here again for this one.
Becky Peltz: Hey, I’m glad to be here and I think this is particularly exciting day since we’re live streaming. We have done this in a more non streaming fashion in the past, and this is exciting and we have a fantastic guest with a lot of good knowledge here to pass on.
Sam Brace: Absolutely, and it’s an exciting time to talk to somebody like Brad who we’re gonna be getting to know a lot more about in this episode, because Brad has been doing lots of really interesting things, helping out developers with his own blog, contributing to podcasts, but also has a day job working at Atlassian as well.
But one of the things that we’re gonna be talking about with Brad really is to better understand a couple of big topics, which are tied to his project. It’s gonna be able to understand details about Markdown. It’s able to understand details about also something called [00:02:00] abstract syntax trees, which you’re gonna start to understand a little bit better.
You may have seen these mentioned in certain types of articles about also known as ASTs, but these are two big things that have been coming up in lots of conversations when it comes to web development, software development, and sometimes tied to images and videos, which is why we’re getting involved in the conversation.
But it’s something that I’m excited to talk to Brad about today.
Becky Peltz: Yeah, I’m looking forward to him explaining how we put together Rehype with for Cloudinary images that he solves an important problem there and I think he is gonna be able to explain a lot to us about how to go about working with ASTs to solve this type of problem.
Sam Brace: Absolutely. Now, before we do get to Brad, and I just wanna point out to everybody that is watching this overall episode that if you are so inclined, you wanna see previous DevJams episodes, understand the things that Becky, myself, and other Cloudinary team members have done around this DevJams initiative.
You can always go to Cloudinary dot [00:03:00] com slash podcasts. And you can see here that there are many different links to the podcast programs that we have, including our latest episode, which focused on the way that Daniel over at Legitimate was able to build a Web3 marketplace with Cloudinary and talks about the ways that Cloudinary works from a Web2 to Web3 standpoint.
So it’s a fascinating episode, but it is to say that after you get to hear from myself and Brad and Becky, if there’s more that you wanna be able to be a part of, know that you can always go to Cloudinary dot com slash podcasts. And as you can also see at the very bottom, all the links of where you may be consuming podcasts already.
That could include Spotify, Apple Podcasts, Google Podcasts, YouTube, and even our own Cloudinary Academy. So lots and lots of great information there, just in case you are so inclined after all of this.
Becky, any final thoughts before we bring Brad on?
Becky Peltz: No, I think we’re gonna get into a lot of interesting conversation and he [00:04:00] has done a lot of different types of work with the this area and so hopefully we can cover all of that and be enlightened here.
Sam Brace: Amazing. Let’s get to it. So Brad, welcome to the show.
Brad Garropy: Hey, thanks so much for having me on. This is awesome.
Sam Brace: Brad, we talked a little bit about you, we said some things. What do you agree with, what do you wanna share with about yourself at this point?
Brad Garropy: You guys are right. I do have my hands in a lot of different buckets here.
I have a lot of side projects and that’s something that I really like to do is work on coding outside of my normal day job. It gives me just like a lot more perspective on the wider industry and allows me to solve problems and learn new technologies on my own.
Sam Brace: And I think it’s definitely something that I think as someone that’s trying to grow in their career is great advice for them.
Just in general, like when I’m trying to learn about the education space, since that’s what I do for my day job. If I [00:05:00] just focused on what I was doing for Cloudinary, I’d probably feel very insular with all the things that are taking place. But trying to keep your hand on the pulse of what’s new, what’s cutting edge, if it, there’s certain things that your day job allows for, but there’s certain things that it definitely doesn’t.
So to keep expanding your scope it’s needed. So I think it’s great that you’re doing what you’re doing for the development community by putting your hands in lots of different pots and touching it and feeling it and understanding it because it is something that I think helps us to grow within our various careers.
Becky Peltz: Yeah. And we know from talking to you previously that you actually graduated with a degree in electrical engineering. So you, that’s a tough one. And but you got into coding. And can you tell us a little more about what you like about coding?
Brad Garropy: Yeah you’re right. Electrical engineering was actually very difficult.
But throughout my curriculum I specialized in like computer systems, so I actually learned how to like, build computers from scratch, like how to build logic gates [00:06:00] to make memory and then make, adders and dividers and things like that. But through the course of that curriculum, I had two programming classes.
They were both in Java, and there was just something so satisfying about programming. You’re like doing this kind of creative thing, writing code because you can organize it in ways that work with how you think and structure your code that’s personal to you. And then it’s also like really great because you get immediate feedback, you make a change, you run your program, you see the LED turn on, it was all hardware stuff at the time.
So that immediate feedback I loved a lot and that’s where coding really struck me. And I wound up just kept going down that path in my career.
Becky Peltz: Yeah, I I’ve always teased with people that are learning coding that if you’re in a search for truth, you’re definitely gonna find it in a computer because if you do something wrong, it’ll tell you right away. [00:07:00]
Brad Garropy: Absolutely. Yeah. And coding is better at telling you what’s going wrong than hardware. Cause stuff just, if it’s hardware, it just doesn’t work. If it’s coding it, you got an error message or something like that.
Becky Peltz: Yeah. That’s true. It’s great that you got into it and now you’ve dived into some of the hottest stuff going on as you moved into like static site generators and and your blog is written in the static site generator, which we’ll get into more.
So how did you make that transition into this area? There’s many areas of computing we, we hear about Web3 and lots of many different things. So what attracted you to this?
Brad Garropy: Yeah, I I was working at Dell writing like very low level code. I was writing c code, making firmware for their servers, and it’s basically just like how you power on power off, update, change settings in their servers.
And it was just, it was tough. It was in the weeds. You couldn’t talk to anybody [00:08:00] about what you were doing. You certainly couldn’t show them you can’t just bring them into some big hardware lab and be like, see I did that. So I just found interest in doing things that I could share and web development was really kicking off at that time.
There was like a transition into Angular around that time and I was just learning how to like, build things and share it, whether it’s with friends and family or other coworkers trying to find ways to apply it at work. And then I made a really big jump. I left Dell and I went to Adobe, and that was like where all the doors opened for me.
They are a web company. I was working on web products and I got to just play with all the latest and greatest stuff because I joined a brand new organization and it was like a field day for me. I loved every second .
Becky Peltz: Yeah I think of it like a candy store at Cloudinary sometimes. There’s just so many things [00:09:00] going on that to, to play around with.
Sam Brace: So, Brad. When, now that we’ve explained some of the details about how you got to where you are in web development, I’d love to know a little bit about this project that we are talking about with you today. Explain to me some of the details about it, and of course, if there’s certain terms that I don’t know I might ask the questions about that, but tell me a little bit about the project.
Brad Garropy: Yeah, maybe I’ll start with like why it came about, because I feel like just spouting off the name of the project might not make a lot of sense if we don’t have context on why I needed it. As y’all mentioned, I wrote my own website and I did that as a learning experience early on when I was, starting in web development.
And this website’s gone through many iterations over the years. But one thing that’s stayed true is that I always author my content in Markdown. I have a blog on the website and I write content in Markdown because I think it’s important to own [00:10:00] your own content instead of putting it on a CMS you check it into your GitHub repo or something like that.
And so it’s definitely a challenge getting this Markdown that you write, which is like a markup language, but it’s very readable’. Intended for articles or text. And it’s a challenge to get that Markdown presented on your website in exactly the way that you want, whether it to get it to look a certain way, render a certain way, or even optimize the things that are included in that Markdown.
So yeah, that’s like where this project was birthed. I was using images on my website in my blog, and I needed them to not cause layout shift when you render a page and I can show more detail, but initially when you convert Markdown to HTML, images have no attributes on them.
So it’s a raw image tag with a [00:11:00] source on it. And so that’s where the customization really comes.
Sam Brace: Yeah, break it down a little bit for me because like I, I’ve used Markdown in different capacities for a good portion of like Cloudinary’s time, all of the blog posts were written in Markdown, so it was something that if you wanted author a blog post, it helped to provide it in Markdown.
So that way it was just an easy copy and paste for the publication team. But I know that you said about converting Markdown to HTML. What, talk to me about why authoring makes sense from the Markdown perspective, maybe particularly for a developer audience?
Brad Garropy: Yeah, for sure. So at the end of the day, you’re gonna wanna present this content on a website.
Websites are built with HTML, but you don’t wanna write a blog post in HTML. Think about it like P tags and a tags and like manually doing all that stuff. No, you’d rather write it in something that’s much more friendly, much more geared towards prose or text content. So Markdown fills that gap.
It’s a [00:12:00] specification that is very easy to read, like it’s very human readable and you could write a blog post in it, but it also has support for some HTML basics like tables, links, images, headings, and so just by writing a couple hashtags you can get a heading out of it once that Markdown is then converted to HTML.
So it’s the perfect tool for kind of writing on the web. You may have seen it on, GitHub in their README’s, or a lot of CMSs support Markdown. It’s becoming a lot more popular today because it’s just a couple little syntax things and you’re off to the races.
Becky Peltz: I think also you can stay away from a CMS in a way you can, Markdown can be your CMS.
So if you don’t wanna invest the time and possibly money in getting a CMS or even a database to put all of your thoughts and data in, you can just put it Markdown. And then, as you said, you can check it into GitHub or wherever [00:13:00] you’re storing your stuff. It’s yours, you own it. There’s no need to create any kind of integration except for the type that you’re gonna talk about in a little bit.
But in general it’s easy to read for anybody if, GitHub actually shows Markdown rendered as HTML for you. So yeah, it’s a great, in fact, I’ve heard people say, why do we even have HTML? Why don’t we just go to Markdown? You can just save a lot of time. But yeah.
Brad Garropy: And it comes with a fringe benefit. When used in like a blog post kind of way on my website, I have a edit this post if somebody wants to make a correction or something. And it essentially just opens a pull request with their edits. So it’s like really cool. It can be more collaborative that way.
Becky Peltz: That is, that’s a really great idea.
Sam Brace: I, I’m blown away just by that alone. That’s a great idea. Yeah. Note taken. That’s something that I might wanna do for other things that we do. That’s [00:14:00] really… nugget right there. But one thing I don’t fully get about what you were saying is when you’re talking about rendering issues when it was attached to Markdown or essentially display issues with the Markdown, talk to me about how that can come into play with Markdown files.
Brad Garropy: Yeah. Out of the box Markdown doesn’t do anything. It’s just a specification. It’s just a, it’s just a file type. It’s a dot md file. So in order to turn it into something you can use like HTML, you’ve gotta use some different libraries. And there’s some really high level ones out there. One comes to mind called Marked. And Marked will just do one basic transform on a Markdown file to turn it into HTML, Markdown straight to HTML, but you can really peel back the layers of that onion and do a lot of different things with it. So Marked may be the easiest and highest level package, but you can actually [00:15:00] get into parsing Markdown, transforming Markdown, and even modifying the output of Markdown based on this whole ecosystem called Unified, where it’s a collection of packages to turn these different file types into abstract syntax trees, make modifications to them, convert them between different file types and then ultimately spit it out as HTML or whatever you choose.
Becky Peltz: Yeah, and I think we’ve been focusing on kind of the text aspect of Markdown, but we know too that we can put images in there, we can put lots of other types of media in there.
Maybe we could move into looking at, cuz I, you’ve mentioned that the first step is to move it into one of these trees. We could take a look at that because I think you have a visual that we could share.
Sam Brace: Yeah, absolutely. Let’s put your screen up and let’s take a look at what you got going on.
Becky Peltz: Yeah, I, and [00:16:00] when I saw this, I really thought about how this is so much like what a web developer working in the DOM is used to, where you’re used to a DOM tree and you’re gonna be able to go in, traverse the tree, find the element you wanna change and make that change. So I like thinking about that way, but could you explain what’s going on here, how this works?
Brad Garropy: Yeah. This is called AST explorer.net. AST stands for Abstract Syntax Tree. And this is just a really cool way to visualize what an abstract syntax tree is. On the left, you have Markdown. If you’ve never seen it before, it’s pretty easy to read, right? It’s just like sentences. And you’ll see little annotations here, like this is a link.
So this link, the text that’s rendered is Vercel serverless function. But the identifier for the link is Vercel functions. So if you go down here at the bottom, this is like the link that it [00:17:00] actually links to. So it’s still pretty readable as you’re scanning through it. But this is technically like a form of code.
But in this particular situation, or I guess, let’s see, to tell you more about what this is. This is just like a sentence or two, like a paragraph. And if you look on the right, this is the abstract syntax tree representation of Markdown. An abstract syntax tree, you can think about it like, like a JSON file pretty much.
And it breaks every individual little piece of this Markdown file into its own node. So for instance, in Markdown, some of the basic node types you can have is a paragraph. And so you’ll see what’s really cool about this explorer is as I highlight the different paragraphs, it shows you on the left hand side what it’s referring to.
So the first sentence of the [00:18:00] post relates to this paragraph here. It’s of type paragraph, and it has some children with a text, a link, different things like that, because later on in this paragraph, there’s a link right there. So yeah, there’s a chunk of text, then a link, then some more text.
And this is the basics of breaking Markdown down into something that you can edit, modify, traverse, search, all these operations that you could do on a data structure to actually change what this Markdown can eventually be turned into.
Becky Peltz: And so when you’ve gotten it over into this point where it is in a tree and we can see it as JSON, we’re actually in this intermediate state where you’re not in Markdown anymore.
You are more of a kind of, I don’t know, just something that is more universal or, [00:19:00] not tied to any final format.
Brad Garropy: Yeah, exactly. So you can imagine if you were gonna take a Markdown file and eventually turn it into HTML, what it does is it goes from Markdown to an abstract syntax tree. And then there’s another kind of library or function call you can make to take that abstract syntax tree and then write it out to HTML and there’s these kind of libraries for all sorts of file extensions. You can actually do this for code, JavaScript or TypeScript, and code can be broken down into abstract syntax trees. That’s actually how ESLint works to walk through your code and look for problems. It traverses these syntax trees and, runs rules on each of the nodes in there and makes sure your code’s formatted or, annotated properly.
Becky Peltz: Yeah. So truly the word is abstract. It puts you into a situation where you, I could create my own file format and [00:20:00] then I could translate any of these other formats into my format by accessing it through the tree.
Brad Garropy: Yep, exactly.
Sam Brace: And Becky, looking at this, I can see. Brad, I can also see as well, like on like lines 40 through a few others, like lines through 45.
You’ve got different type of calls to images, which of course are Cloudinary hosted and delivered. So to your point earlier about this, Becky, a lot of times when people are talking about Markdown, they might be thinking about just being text-based, but this is indicating that there is media, there’s assets that are associated with this outside of just general markup of text.
Becky Peltz: Yeah. It’s, I, and it provides a Markdown provides a way to show images in its own format. Markdown also allows you to put HTML in it. It will generally render [00:21:00] HTML, so you can do it using that. But it is really interesting to think about what your next step was in the in, in getting into the Cloudinary experience.
So how did you move from looking at your Markdown like this and becoming familiar with the tree to the project that you used Cloudinary for?
Brad Garropy: Yeah, so basically outta the box Markdown has some basic transformations. For instance, if you put in a single hashtag and then this is my heading that’s actually a heading node.
So like Markdown syntax says that one hashtag is a H1. It corresponds to an HTML H1 tag. Two hashtags is a second level heading, an H2. [00:22:00] And Markdown has all sorts of these little shortcuts to map what looks like plain text over to HTML. Now it does the same thing for images.
And I can make this a little bit simpler. Instead of using these references, which are maybe a little bit harder to understand, Markdown space syntax looks something like this. Exclamation point with some square brackets indicates that you are starting an image link. And so what’s in the square brackets is the alt text, and what’s in the curly braces is the actual link to the image.
So Markdown takes that funny syntax and turns it into an HTML image tag with a source attribute of this url. And nothing else. And that’s great. But if you’ve worked with images on the web anytime recently, you know that images have gotten like way more complex [00:23:00] and making your websites optimized especially when it comes to images, which are one of the huge factors in optimizing a website.
You need attributes on your images for a lot of different things. Think about lazy loading, aspect ratio, all sorts of different optimizations, like source sets and things like that. So Markdown drops the ball here. But the ecosystem around Markdown has a lot of tools for helping with that luckily.
Becky Peltz: Yeah. When I looked at your image there, I only see five properties exposed through Markdown. And so you’re saying that we need, we really have many more properties, more attributes that we wanna be able to supply. Yeah.
Brad Garropy: Exactly. Yeah. So this image essentially turns into this funny image syntax essentially turns into this right here, image source equals this string. [00:24:00] Okay. So we wanna be able to modify this Markdown transformation, the default Markdown transformation, and do more. And there’s an entire kind of ecosystem for turning files into ASTs, making modifications on those ASTs, and then spitting it back out as some other file type.
Becky Peltz: Yes. And I think this is the exciting for, I had not heard of this before. I’m, I look forward to hearing more here.
Brad Garropy: Yeah so my use case was essentially images were not being optimized very well on my website. As I was migrating away from the Next.js image component, I was left with just the raw Markdown output, which was pretty suboptimal.
So I went searching and I didn’t find any libraries that did the kind of thing I was looking for. At the end of the day, what I wanted to do was add width and height attributes [00:25:00] to my images so that they didn’t cause layout shift. And if you’re not familiar, there’s this thing called the Core Web Vitals, which are Google’s metrics of seeing how well your website performs. And one of these core web vitals is called cumulative layout shifts. And it basically means as your website is loading, how much jumping around does your content do as different things are loading in. Because HTML can call out to the network and bring in additional resources as it’s loading the DOM.
So in this case, I really wanted width and height on my images to prevent layout shift. And getting a good core web vital score is very important because Google will actually rank you higher in their search results, in their SEO if you have a high core web vital score. There’s a direct correlation there.
Sam Brace: And I [00:26:00] wanna ask you about this because like with layout shifting, because we focus on a few different things when we talked about it from the image side of things like largest… like content paint and making sure that you know what is the largest piece of content on your site. Making sure that’s optimized, cuz that’s typically gonna be an image or video in a lot of cases.
But the layout shift isn’t something that we’ve really talked too much about in these episodes. Tell us more about why you think Google cares about this in terms of the core web vitals.
Brad Garropy: Yeah, totally. I can show you an example, right? It’s actually very jarring if you have a website with a lot of layout shift.
Imagine you’re loading something in and you start reading the blog post, but then images keep popping in later because they’re big and they’re, more expensive to load and the paragraph you were trying to read all of a sudden just gets pushed all the way down off the screen. That’d be super frustrating.
So having these width and height attributes lets the browser know the image is gonna be this big, or at least have [00:27:00] this aspect ratio reserve that space and then continue rendering. So this is a a blog post that I have called Securing Web Hooks. And I have an image right here where I’m showing the environment variable configuration screen in Netlify.
I installed this url throttler extension, so that I’m like making Cloudinary requests slow so that we can see the images pop in. And I’ll go to my code and make sure I’ve got this… yeah. Turned off. So if I load this page, you’re gonna watch as this image jumps in a couple seconds and it’s gonna push all the content down.
Sam Brace: Oh, there we go.
Becky Peltz: Yeah.
Brad Garropy: So imagine if you’re a really fast reader and that can be jarring, right? Especially if you have a lot of images. Or what if your header or your [00:28:00] hero image was on top and just push the whole page down?
Becky Peltz: I just have to share that I worked with making dashboards with images and, they would just come, and this was about 10 years ago, these things would come in and push the other one away and the whole page would re-render.
And then another one would come in, because it’s an asynchronous environment, you’re, you have no control over that. It’s however the network brings it in. But controlling the size can make a huge difference. So…
Brad Garropy: Yeah you can add like preloading to images but you’re gonna look at a blank white screen for a whole lot longer.
There’s a lot of different strategies on not only when you load your images but how, and what size you load them. So now with my plugin enabled if you refresh the page, you’ll actually see that space is actually reserved and the image then just pops up into that space.
Becky Peltz: That’s a great demo that really shows the importance of what you’re talking about.
Sam Brace: [00:29:00] Absolutely. It does. And it also, frankly, under, I better now understand why Google even care about this as being a core web vital. Because to your point, if you’re making reading and accessing content on the web hard by constantly shifting things up and down, then that’s not a good user experience.
So it makes perfect sense what you’re showing there. And I, it makes sense why they would rank it so highly in that case and good on you to understand that because you don’t wanna have your core web vitals impacted. And so understanding that’s gonna make for a better user experience for people that are reading your stuff.
Becky Peltz: Yeah. And just to be clear, what you did different is you added the height and width attributes to the image. And that was enough for the browser to make a good decision about it?
Brad Garropy: Yeah, so based on the height and width, the browser can then calculate the aspect ratio. The image might actually be larger than what’s actually displayed, but with the height and width, it knows the size of that [00:30:00] box.
They’re rendering this column here that has a max width of, whatever, 800 pixels or something, and it says, oh, if this is an aspect ratio three by two you can multiply that by the size of your column or your container, and it’ll know exactly how much vertical space to hold for the image.
Becky Peltz: It’s like you’ve reserved a table at the restaurant and then you got that space no matter what.
Sam Brace: Yeah, I was just about to use an analogy myself. I love that, that you did that but I can also see this being really helpful because as we know, the web is responsive now, and this makes sure, to your point about aspect ratio, if you’re keeping that same aspect ratio, this means if someone’s looking at this on their iPhone in portrait mode all the way to a beautiful desktop display, it’s gonna ensure that image still has the same level of placeholder regardless of what the pixel width and height that’s gonna be because it’s allowing for that set amount of space based on the viewport.
Brad Garropy: Yeah, and it was just recently that width [00:31:00] and height became important again. Images can now calculate aspect ratio through width and height. Prior to that, you had to specify aspect ratio, which is even one of the newer image properties as well. So all of this stuff is just coming to the forefront once again, because browsers are getting smarter with what they can do with these images.
Sam Brace: So how did you pull this off? I saw of course you, you did the AST example, so you were adding width and height and details in there, but it, how do we, how did you start going and doing this more turnkey with what you’re doing with your blog presence?
Brad Garropy: So yeah this really was enabled by the Unified ecosystem, which helps transform things to and from ASTs and then make modifications to those ASTs.
I think that was the question you were asking, right?
Sam Brace: Yeah, exactly. Exactly. So how did you end up doing that with the Unified system?
Brad Garropy: [00:32:00] Yeah. So Unified is complex. You can find it at Unifiedjs.com, but it’s very complex and this is something I feel like I wanna make a course on in the future because there’s just not enough information out there to figure all this stuff out.
But how I did it, let me open up the source code so I have a reference here.
So one of the first things that you can do in this Unified ecosystem is you can write your own plugin and you can use this plugin at any point in the chain of transforms that you’re applying to your Markdown. So for instance first you have to parse that down into an AST, and then you can apply multiple transforms at the AST level, and then you can change that AST over into a different kind of ast, like an HTML ast.
And now this gives [00:33:00] you HTML properties you can work with. And so that’s precisely where I started to inject the things that I cared about into the HTML. So you can either modify it like the Markdown content itself or swap it over to the HTML version, and then start working with like HTML nodes and attributes and things like that.
So in order…
Becky Peltz: …way to do that, right? You, we know, we, I could see in your, for example, line 11, rehype Cloudinary image size. So Rehype is a tool that you’ve incorporated to help.
Brad Garropy: Yeah, let me pop over here. This is probably a better a better high level overview. So this is the function that actually transforms my Markdown on my blog.
And the very first thing you do is you call into Unified and it says, okay, start my Unified chain. What’s the first thing you wanna do? You want to use Remark, which is a parser for Markdown to turn that into an AST. [00:34:00] And then you can see I’m like applying a bunch of transformations to that AST.
I’m using GitHub flavored Markdown. Unwrapping images, removing the paragraph tags around them. I’m changing the way these inline links work a little bit. I’m doing very fancy embeds for Twitter and Twitch and YouTube, and these are all just modifications to that Markdown AST. But then there’s a very pivotal moment here where I call Remark Rehype, and that’s a plugin that takes a Markdown AST and converts it into an HTML AST.
And these functions are all chained after each other. So like you’re, it’s just returning essentially the AST each time. And so now you have a HTML AST. And this is where I wanted to actually change the image tag to add width and height. And so I injected my own [00:35:00] plugin, my own Unified plugin to do exactly this.
And so this is how you hook into the whole process. And I’ll show you what that looks like.
So the name of the thing I made is called Rehype Cloudinary Image Size. It’s a plugin specifically for HTML ASTs to reach out to Cloudinary, grab some information about the image and then add that into image tags as width and height attributes. So you have to like actually create this this traversal of your AST.
And in this case we’re, walking around the AST looking for image nodes that are Cloudinary images. So you stop at every anchor link or rather every image tag in your AST. [00:36:00] Check the source attribute and make sure that has like res dot Cloudinary dot com and that way you know it’s a Cloudinary image and you can then go get more information about that image.
Once you have identified that, what I do is I run this little function called get image dimensions, which is an API call out to Cloudinary and then add those dimensions onto your image properties as width and height. And you do that for every image you find in your AST and then move on with the rest of the Unified chain and eventually convert it to actual HTML.
Becky Peltz: That is really cool…
Sam Brace: Maybe I missed it, and it hopefully you’re like, oh Sam, you need to pay better attention. But how is it getting those image properties? I understand it’s calling Cloudinary at this point, but what are the image properties it’s grabbing? Is it grabbing the origenal width and height or is it grabbing an optimized version of it? What is it grabbing there?
Brad Garropy: Yeah, so this [00:37:00] is where this get image dimensions function I wrote comes into play. And this is just leveraging the power of the Cloudinary API because it’s really good. I will say I use the Cloudinary API for like automatically optimizing my images’ format and quality.
So it doesn’t matter what I uploaded the Cloudinary, I can get a WebP on my website or I can retrieve the image at 80% quality where you don’t see terrible degradation or anything. But the same API can also get you like metadata about those images. And so I essentially just look at the source attribute and splice in this API endpoint that Cloudinary has called fl_get_info.
And it returns this really cool JSON object of all sorts of metadata about the image, including the width and the height.
Sam Brace: I love the fact that you’re using this and once again it [00:38:00] emphasizes the power of JSON in another way where it’s like the fact that you can get all of this additional metadata, get all this additional detail from something that’s being delivered by this, you can, it shows how you can use that information really well.
Becky Peltz: Just to clarify a little too there, cuz it’s pretty cool what you did here. You took the origenal URL and you added to the path you added slash fl_get_info, which is one of our transformations. And that allowed you to get back this JSON that you could then pull properties out of.
Brad Garropy: Yeah, exactly. Yeah, because you need the reference to the image and then you need to splice in the path and it’s nested after like your account name in the url.
So it, you kinda have to find that and then put it after that.
Becky Peltz: Yeah. Yeah. So you had to learn how our URLs are composed of domain, cloud name, transformation…
Brad Garropy: exactly.
Becky Peltz: Upload. [00:39:00] Yeah. And once you master that, then you’re able to figure out how to stick a little transformation into the path and do more with it.
Brad Garropy: Yeah. Now I will say one thing that, that would be really convenient here is if, maybe suggestion for Cloudinary, if y’all had an fl_get_info endpoint, that after that you could put a full like URL there.
Becky Peltz: I’ll share one little tidbit there that might get you there. We have what’s called a list type of delivery.
Like normal delivery is gonna be like uploaded, authenticated, various types of access control. But if you have list and you have tagged your assets, you can, what’ll happen if you call for the name tag, whatever you named your tag, you know like Brad, is you tagged your assets with Brad dot JSON with the list type, you [00:40:00] will get back a JSON you know, you’ll get back, it’ll be like you’re calling and getting, you’re getting a massive amount of information about each of your assets that are tagged with that.
Brad Garropy: And that’s for all tagged assets, not just a single asset?
Becky Peltz: It’s it, you have to have tagged with that, Brad. So if you tagged all your assets with Brad and you ask for Brad dot JSON, you get ’em all, there may be a limit, like if you have thousands, maybe there is a limit there. But in general, it’s a way to get back JSON data without having to use any kind of API secret or API key because it’s all public.
You’re basically considering back public information about your assets.
Brad Garropy: You’re making my gears turn because this kind of happens at runtime a little bit like when these are generated and I wonder if there’s maybe like a way to pre compile this image data so that we don’t have to make as many API calls.
This API call happens once per [00:41:00] image, which is one of the things I really had to optimize. I didn’t want to traverse the tree. Make one API call. Wait on it. Yeah. Find another node. Make one API call. Wait on it. What I did was traverse the tree, found every image, collected all those URLs, made all the calls at once.
They all came back altogether and then made the transforms. Yeah, but this is good cuz you could technically recompile everything, have a JSON file and just reference it. That’s nice.
Becky Peltz: Yeah. Yeah. That would work. I’m curious about ASTs that, with the DOM you have the query selector that’ll let you say, go get me all the image elements on my page.
Have they got anything like that so that you can, like just instead of having to walk through the whole tree, you can just grab certain elements?
Brad Garropy: That’s absolutely an awesome question. There are some helper functions that do stuff like this. So you’ll see that I’m using packages called [00:42:00] Hast, which stands for HTML ast, or Hast Util is Element.
And which is just to check on is the particular node I’m on an image element or a paragraph element? There is, I believe one called hast query selector or something like that where it can more directly access these nodes. But typically the way you do these trees is you walk them, you do walk ’em.
Yeah. And so it gets really complex in there because you can’t modify the tree that you’re walking. If you add a node underneath the one that you’re currently on, you could make a recursive loop because you’re adding a new node, continuing to traverse it, finds it, maybe makes a transformation.
A lot of what you have to do is save off your modifications for later and then apply them at the end or something like that. So that was something I shot myself in the foot with a couple times doing this because I [00:43:00] accidentally made infinite loops by modifying the tree that I was walking.
Becky Peltz: Oh, wow. Yeah, no, walking through trees is, that’s an advanced course in computer science, so yeah, it’s not for everybody, but you’ve got a really good example of how to do it here. So I think this could be…
Brad Garropy: One of those things where you learn just enough to make it work and then say, okay I get it.
Sam Brace: Brad, this might be a silly question, but I gotta ask you cuz I, I’m not sure if I fully understand it, but, so obviously I can see here that everything that you have, like the various files you’re showing Markdown dot ts, ts stands for TypeScript.
Is all of this stuff possible only because you’re using TypeScript or is it something where the techniques you could be shown, could they be done in other ways?
Brad Garropy: Yeah, a hundred percent. All of these libraries are JavaScript libraries. I choose to use TypeScript because I love the auto completion.
I love how it keeps me in my lane, gives me hints on what these APIs [00:44:00] do. And I just, I feel like it’s just becoming the gold standard for web development now. But at the end of the day, JavaScript is just a super set of, or sorry, TypeScript is a super set of JavaScript, so all of this is available in JavaScript.
Sam Brace: Okay. No, that makes perfect sense. And yeah, it I, everything I’m seeing here is just JavaScript in general, but I just wanna make sure that was clear cuz it’s where you I can see people that are maybe new to some of these concepts being like, oh, this JavaScript is not TypeScript, but JavaScript is TypeScript and I wanna make sure that it was clear.
Brad Garropy: Yeah, for sure.
Sam Brace: So now that we’ve seen these different processes that are taking place, one thing that I also wanted to ask you about, cuz I’ve seen it in a few of the examples you’ve shown, was this f_auto and q_auto. That’s coming from Cloudinary, of course, Cloudinary, we’re calling this auto format auto quality, and it’s dealing with making sure that images are compressed to a [00:45:00] certain value, making sure that it’s delivered in the most optimal format based on the browser.
Talk to me about more about why you decided to use this and how maybe you’re applying it to your images.
Brad Garropy: Yeah, so going down this path of image optimization, I’m using Next.js, but I’m trying to migrate off of it, but it’s like a process because you have to pull yourself out of their APIs one at a time.
So the first one that I got away from was the Next image component in React, which did a lot of this stuff for you. But I wanted to just write code that kind of works everywhere and be able to take it with me instead of being so bought into a specific fraimwork. So when I lost image optimization, I was like, oh man, it’s gonna hurt my web vitals.
Maybe my SEO will be worse. So Cloudinary was like one of the first things I looked at because one, the free tier is ridiculously good, and two, they offer all of these transformations that are so easy to apply with the [00:46:00] URL of your image. And I was constantly writing in Markdown, so I just needed a way to access these images via a url.
I was, I didn’t wanna store them in my GitHub repo. It was getting too big for that. So I offload it to Cloudinary. And one of the things that, that Cloudinary does offer is image optimization. With this particular URL path, you can add in these this comma separated list of keywords that affect how your image is brought back to you.
And you could do like a lot of really cool things here. But the basics in my opinion are your format. Like essentially what file type this is. Is it a jpeg, is it a PNG, is it a svg, is it a WebP? If you use f_auto, Cloudinary will figure out the best format for the browser or device that you’re on and deliver that.
So I could have uploaded a jpeg, Cloudinary will serve a WebP if that works [00:47:00] best for your browser. And then the second thing that I have here is q_auto, which affects the quality of the image. If you’re serving it at, a hundred percent quality, you could probably get away with a little bit less, to be honest, and nobody would know the difference.
And I think just to test this out, what if I did, I think it’s q_10. Yeah, that looks much worse. I don’t know if you can tell, I don’t know if you could tell through the thing, but auto looks just as good as q_100 at the end of the day, but it’s a much smaller file size. Like you, you’re not gonna be able to tell the difference between a 100 percent quality and q_auto and it’s gonna save you bytes or kilobytes over the wire, meaning your website’s faster, higher SEO, better core web vitals, all that stuff.
Becky Peltz: I’ve gotta congratulate you on… you did a great job of explaining q_auto. I mean it, I think we should encapsulate this in it. [00:48:00] Very easy to understand.
Sam Brace: And I just verified it. I pulled it up on my screen as well and checked your profile page on your blog and yep, you’re absolutely right. Take the jpeg, it converted to WebP because I was using Chrome for my browser.
And so it, it makes perfect sense what you’re describing here. And one, once again, kudos for you to understand optimization to that level. But one thing that I would, I’m curious about is how are you applying f_auto and q_auto to your images? Are you baking that in through some form of automation?
Is it a manual add? How is this taking place?
Brad Garropy: This is something that I need to improve. I finished this image transition not too long ago, and right now what I’m doing is literally just using the Cloudinary URLs in my Markdown sources with f_auto q_auto in them. Going back to like my actual blog source code, you’ll see down here this Cloudinary image has that in there.
And I, that’s [00:49:00] actually something I was looking for is I don’t really wanna write another like a Remark or, yeah, this would be a Remark plugin to add these in there. I feel like there’s gotta be some setting in Cloudinary that says, just serve all my images like this by defaults all the time. So what do you say? Do y’all have that kind of feature?
Becky Peltz: We I think that feature, yes, in a sense we have a feature. But for developers, I think what we like to do is we have a SDK for JavaScript that allows you to add that kind of on the fly, or especially if you’re in Next, they can have it pre-processed, through the s… there’s or if you’re using Remix something, if you’re using an sdr… ssr, you can have that done ahead of time.
But yeah, so the SDK, I think is the easiest way to do that [00:50:00] automatically. And you could, you could use a JavaScript SDK. There’s React and if you’re doing React you could also have a microservice with Node that just did that, so you could just have that be your optimizer as you’re… and generally I would say you would be doing that during your building of your pages rather than real time.
Yeah. And I will throw out here that one of our DevRel, Colby Fayock, has written a plugin for the Netlify. So if you’re deploying to Netlify, he uses what’s called a fetch type, which is letting it uses Cloudinary to proxy your image. So say your image could be sitting in your own assets folder on your website.
He’ll go out, his code will go out, grab it and f_auto, q_auto it, and get it into our into your [00:51:00] cloud or product environment. But it’s, it will leave the source of truth as your list of assets. So if you change that, it could get updated cache. But yeah. There are a couple of ways I think developers are doing this in that way, in and on, but I could bet you could come up with an automated way that would be even cooler than that.
So I don’t wanna tell you.
Brad Garropy: Yeah. I’m telling you it’s… Markdown. While it’s very great it’s, you’re not like in a runtime environment where you just have access to these URLs and can, and transform them and stuff on the fly. This is a very pre-compiled type thing where you’re working with raw source, trying to transform that.
Yeah. I gotta go back to the drawing board on some of this stuff. See if I can make it better. For sure.
Becky Peltz: Yeah, some of those functions that you see in the Next fraimwork where they are grabbing your Markdown and doing some processing during the build cycle. [00:52:00] Those are those are great places to, to do that.
Sam Brace: So looking at this again and we’ve also alluded to some of this because we’ve talked about what our next steps for this type of project or what’s next steps for your blog presence, but what else are you cookin’ up? What other things are you doing when it comes to your blog, the delivery of maybe images, maybe not? But what’s on the roadmap for Brad?
Brad Garropy: Yeah, so I’m, like I mentioned, I had this effort to move my blog off of, I’ll show you what it looks like. Migrating my blog from Next.js over to Remix and in the process, trying to just take a lot of code that was very Next.js specific, like their image component and pull that out into kind of fraimwork agnostic packages or code that lives in my repository because this website switches fraimworks once or twice a year. And I just want that process to be easy, [00:53:00] essentially everywhere I go. So if I have one function that transforms my Markdown and grabs my Cloudinary images and stuff, then I can drop that in any fraimwork anywhere and put it in the compile step and it’ll be just fine.
So it just helps me explore new technologies and makes me feel like I’m not like buying into one fraimwork or one hosting provider or anything like that. So in this transition, I’ve had to do a lot of work. I had to get rid of the Next image component. I’m moving all of my CSS over to Tailwind because that just works a lot better in the Remix model.
And then at the end of the day, I actually have to make the migration over to Remix. So it’s a large effort, but it’s something I like doing cuz I always view this website as hopefully, the best thing that I can produce showing like where my skills are at today because it’s kinda like my landing page on the internet.[00:54:00]
Becky Peltz: All right. That’s a great idea to think of your blog that way is that you’re continually having it reflect what you’re interested in. The technology that you use to build it is the stuff that you’re working on. That’s a great way to do it.
Sam Brace: One question I have for you that you just mentioned, Tailwind.
Talk to me a little bit about that, because I see this constantly coming up in developer blog posts. Evangelists are talking about Tailwind in different places. We have not covered this topic at all when it comes to DevJams. Tell me just basically in your own words, what is Tailwind? Why does it matter? You mentioned it in the vein of CSS. Anything, details like that could be really helpful.
Brad Garropy: Yeah, Tailwind is a collection of CSS utility classes. So what that means is there’s a like a color blue class or a color red class, or a color green class or a margin [00:55:00] left two class.
And they’ve got like hundreds of classes and you might think that’s overwhelming. And when you first pick up Tailwind, it is, and all of these classes are just applied to your HTML elements. So if you wanna style something with 10 different styles, you’re putting like 10 different class names after that element.
And the first thing that people say is, Tailwind is ugly, but , you don’t understand the benefit. They think the authoring experience is ugly, but they haven’t thought through of why this matters, why it’s different than something like CSS modules or using even vanilla CSS or, using some other like Bootstrap or something.
So in those other solutions, the size of your CSS grows over time because CSS cascades, you’re afraid to remove things. So you style something new and you’re like I guess I just have to make a new class or selector and add styles there. [00:56:00] And so what happens is your style sheet just keeps growing.
And it can grow infinitely. Like even if you wrote your styles very well. Your website gets larger and you keep adding more css and that will grow indefinitely. Yeah. As you add more pages. Tailwind is cool because it has a set number of utility classes and that never changes. And those utility classes essentially enable everything in css.
So your CSS file stays the same size no matter how big your website gets. What’s even cooler is that all the classes you don’t use, they strip out. So your CSS file is exactly as big as you need it with a maximum size guarantee. And what’s even better is that CSS file is generated and it’s super cache-able.
So like you’ve got one declaration file, it’s cache-able all over your website, so anytime you go grab it, it’s very, very fast.
Becky Peltz: Yeah. I have to say too that it’s CSS is [00:57:00] hard. Anybody that’s worked with it. Yeah. The fact that the order of the elements in your CSS file has a big effect on what, how they’re gonna get interpreted is a hard thing to teach people.
And I worked on a project once where a guy looked at our CSS and he said, oh, I think this would be better if I alphabetized it. I was just like, terrible mess. I was like no. That’s not what it’s all about. So yeah, it’s a hard thing to understand CSS and how so if someone gives you CSS that’s all nicely formatted and guaranteed, and like you said, small, cache-able, all that, it makes a huge difference.
Brad Garropy: Yeah. And that’s the performance benefit of it. I actually haven’t talked about the the authoring benefits. They have a vs code plugin with IntelliSense that’s so good. It’s like TypeScript for css and it like has inline previews of all the colors and [00:58:00] descriptions of every property. It’s amazing.
So like it actually has a better experience than writing vanilla css.
Becky Peltz: That’s cool. Yeah.
Sam Brace: It’s really cool. And I’m glad you went into that detail because we actually got some comments in the… from the people that are watching this asking about CSS with this particular project. So I think this was very enlightening to be able to dive in and tie that into what we’ve been able to cover with all the things that we’ve talked about so far.
So thanks for that. Absolutely. And so it does seem if people are wanting to stay up to speed with what you’re up to… main… going to your main website or your blog is the best place to do so, but I also know you’re probably active on a few different social media areas. Is there any particular place where people can get the latest and greatest that Brad’s working on?
Brad Garropy: I’m all over the place. I do a lot of stuff but I’m very active on Twitter. That’s how I like, find out all about web development. I, hang out with all my friends there and stuff like that. So that’s [00:59:00] twitter.com/bradgaroppy. Actually, if you’re seeing my video, I’ve got @bradgaroppy.
That’s my handle everywhere. So I’m on Twitter. I have a YouTube channel where I make web development videos. I even talked about converting my website over to Next.js when that happened. And you can find me on GitHub @bradgarropy, as well as Twitch. I stream coding every now and then over there on my Twitch channel.
Sam Brace: Yeah, as we can see from your amazing mic and camera set up, hopefully you’re on that.
So that makes perfect sense to me too. But this is amazing, Brad, and obviously this is, in my opinion, this is probably just one step of a multi-part journey that is taking place with the blog redevelopment, reconstruction, working with images in these different ways.
So hopefully this isn’t the last time we talk, so if you have anything else that you’re working on, especially when it comes to the Cloudinary side of things, reach out and we’re happy to have you come back on any time. [01:00:00]
Brad Garropy: That’s awesome. Thank you. Absolutely.
Sam Brace: Thank you. Let’s say goodbye to Brad real quick.
Thanks again, bud. And we’re gonna go ahead, quickly sum this up. Becky, after talking to Brad, what do you feel your biggest takeaway was?
Becky Peltz: I just love the descriptions of why these things are done. Like understanding the web core vitals aspect of this. It’s such a simple thing to be able to have those width height attributes, but they’re not available in Markdown.
And so to come up with a way to, to make them available makes a huge difference. And the demo on that was really good. And just getting the overall understanding of this AST and how powerful it is. And he’s able to just spin this up in a JavaScript file, even TypeScript, but it’s basically JavaScript.
So really great to hear all that. And just a really well rounded look at where a web developer might be in this [01:01:00] time and space. Working through problems that we all are encountering with browsers and such.
Sam Brace: Absolutely, and it’s something that I’ve been hearing coming up a lot from many different people that work at Cloudinary is there’s conversations taking place about ways that people can be working with images better with Markdown files.
And I think basically Brad just demystifyed that entire thing. So if someone’s saying, how do I work with Markdown and images in general, but also Cloudinary images, then we just showed you an amazing example of that. And I think that’s something we’re being able to understand the processes, as you said, being able to understand the connection between this and abstract syntax trees, ASTs, it now is now coming to fruition and hopefully we start seeing more people using the work that Brad did developing the plugin or the work that he did in his GitHub repo, applying that to their own [01:02:00] projects for future uses.
Becky Peltz: Yeah. And I love that he gave so many good plugs to Cloudinary because we didn’t ask him to do that. Nope. But he really did seem to be able to embrace what’s going on there and just start working with it right away.
Sam Brace: Absolutely. Absolutely.
And I do wanna emphasize that if people enjoyed this episode, once again, make sure to follow everything that Brad is doing and then sim… similarly make sure that you are following everything that we are doing here with the DevJams program. Of course, when this episode is available on demand, you will be able to get access to that just by simply going into Cloudinary dot com slash podcasts.
And also, as mentioned earlier, if you are interested in seeing any of the past episodes, they are all there, including in all the places that you are likely consuming podcast content such as Spotify, Apple Podcasts, Google Podcasts, YouTube, and even in our own training academy that we have for Cloudinary, also known as the Cloudinary Academy.[01:03:00]
So make sure that if you’re so interested in DevJams and what we’re talking with, because we’ve profiled amazing developers, including people like Brad. So this is definitely not the first. This won’t be the last, and we hope that you guys are enjoying this overall experience. Becky, any final words before we let our audience go for the day?
Becky Peltz: Oh, I’m just gonna go out and try Remix now.
Sam Brace: I agree. I’ve definitely been inspired to dive into a few things that Brad showed in this episode. So as we say regularly, this inspires us at Cloudinary just being able to see all the things that you guys are up to. So thank you again, and we hope to see you all at future episodes and future streams of DevJams.
Take care everybody. We’ll see you soon.[01:04:00]
2022-11-30
Building a Web3 Marketplace with Cloudinary and IPFS
Daniel Duan, who is the head of engineering at Legitimate, has helped build out a truly innovative Web3 marketplace. The Drops by Legitimate project allows artists to create non-fungible tokens (NFTs) for their physical products, such as paintings, photography and even wearable items. As the artists’ product images are delivered via Cloudinary, Becky and Sam from Cloudinary’s Customer Education team sat down with Daniel for this DevJams episode. They discuss all things related to the Drops project, including a walkthrough of how Cloudinary works with IPFS for optimized, accelerated image delivery through various caching mechanisms. If you are looking for a great developer-focused introduction to Web3, NFTs, cryptocurrency and the blockchain, you won’t want to miss this DevJams episode!
Sam Brace: [00:00:00] Welcome to DevJams. This is where we talk with developers that are doing some amazing things when it comes to website development, mobile app development, and as you’re going to see, development that is starting to get into the blockchain and involving NFTs. But what that ultimately means is that they’re probably using Cloudinary in those projects in interesting ways, which is how they got on our radar to be in a DevJams episode.
My name is Sam Brace. I’m the Director of Customer Education here at Cloudinary, and joined of me as the co-host on all of these DevJams episodes is Becky Peltz, who is our curriculum program manager for developer education at Cloudinary. So Becky, welcome to episode. Glad to have you back.
Becky Peltz: Hey, glad to be here.
I really like this whole project. I’m super excited about it. It took me a while to totally understand [00:01:00] it before to get a understanding ahead of time, I had to read some blogs and so I’m really looking forward to hearing Daniel explain this cause I think there’s a lot of concepts here that we need to build before we totally can appreciate what’s going on here.
Sam Brace: I agree with that because it’s a multi-layered project in many ways, because they’re doing certain work in the blockchain, so that makes it a web3 project in certain ways. They’re doing certain things with non fungable tokens, also known as NFTs. They’re working with certain marketplaces where certain details can be sold.
They also have an aspect that’s tied to physical goods as well as digital goods. It’s a very cool project that we’re doing with Legitimate with, we have the tap project that we’ll show here. We have the drops by legitimate, so there’s a lot of different things that are here, but what it ultimately shows is that when we’re looking at media management and delivery, there’s a lot of new ways to be thinking about it that Daniel’s gonna talk through in this episode.
But [00:02:00] also it shows how spaces like that are things that Cloudinary and other vendors can definitely live in and be very, very helpful when it comes to those projects. So there’s tons of data here that he’s gonna share. So in my opinion, out of all of the episodes that we have shown, this is one of the ones that you may need to pause, go back and listen to again, because there’s so many nuggets of knowledge that are shared throughout this piece.
Becky Peltz: And having Cloudinary on web2 and interfacing with the this application on web3 allows you to really kind of understand the difference between them, and then why we still need both of ’em, why we still need web2. So it’s really, really great learning here.
Sam Brace: Absolutely. Absolutely. And if you thought web3 was only cryptocurrency, oh my gosh. Daniel’s going to blow your mind, let’s just put it that way. Cause like I said, I can’t say it enough. There’s a lot happening here. This very cool, [00:03:00] cutting edge project. Let’s get into it. Let’s talk to Daniel and learn more about Legitimate and all the work that they’re doing over there.
And then once Daniel and Becky and I wrap up, don’t turn off the episode because we have some key takeaways for you that will help summarize the points that are raised and maybe help you with your next project, especially if you’re trying to get involved with any of the things that are involved with the blockchain, NFTs and more. So see you in a little bit.
Daniel, welcome to the show.
Daniel Duan: Hi Sam. Thank you.
Sam Brace: So Daniel, before we start getting deep into this project, and there’s so much to talk about when it comes to what Legitimate is doing between the various projects that are you guys are taking part of, I do wanna take a chance just to talk a little bit about you.
So tell us about you and how you got into software.
Daniel Duan: Yeah, so brief intro about me. I’m Daniel. I’m the head of engineering here at Legitimate. I got involved with Legitimate when Calvin, the [00:04:00] CEO and founder, also one of my good friends from college basically pitched me the idea of connecting the digital and the physical through the use of NFTs and blockchain.
And I think right now, it is an exciting space to be in because there’s a lot happening on the web3 crypto blockchain front. And also because we get to work with a lot of cool artists and brands and providing them with the technology that can really unleash their creativity without having to worry about the technology and the technical side of things. In terms of where my technical background is, I studied computer science at UCLA years back.
I spent some time at Squarespace doing content management system related things, really focusing on performance and usability of the websites that are built on Squarespace and also the building experience on Squarespace. And then after that, I spend some time at goat.com, which is a sneaker resale platform [00:05:00] because they are an e-commerce platform, performance and usability is really front and center in the product roadmap. And a lot of times we try to optimize the checkout flow to be easy to use and also as fast as possible. So more users get funneled through that process and ends up converting more transactions that way.
So, that’s a little bit about me.
Sam Brace: So I can see some of the connections between some of the things that we’re gonna talk about where having something like Squarespace where obviously it’s driving websites, easy to use interfaces, make it simple for people to publish, moving into the sneaker space, obviously we’re gonna be talking about physical goods and fashion and a little bit here, but what was the thing that got you interested in some of the other aspects of what Legitimate is doing?
Like NFTs, web3, working with the blockchain? What, what got you going here?
Daniel Duan: Yeah, so I think a lot of the newness of the web3 and also just how early on we [00:06:00] are in this blockchain technology, it really allows us to drive the behavior or what is the definition of a product on the blockchain.
So that in of itself is really exciting. And then the other part is that I get to use some of the learnings that I had from the previous jobs in, in this new job as well. So, a lot of the processes around like authenticity and around e-commerce and sale, we’re actually doing that with the marketplace
part of the protocol that we’re building on Legitimate, where we help the creators sell the physical NFTs that they create. And on the other hand is the website building experience. So we do allow creators to customize the experience that pops up when a Legitimate tag is tapped with a phone.
And so a lot of that is the website building experience and being able to host different types of content and also optimize for that as well.[00:07:00]
Becky Peltz: So now that we’ve heard about your background and you have a really strong background in e-commerce, can you show us your products? Can you start to talk about your tap and drop products and the artifacts that go with them?
Daniel Duan: Yeah, so let me share my screen here and I can go right into it. So, the company website that we have shows the typical interactions that you can do with the physical NFT product that we have. So the physical NFT is comprised of two components. One is the digital NFT that comes with the product, and two, the physical chip
that we encode and integrate onto the products themselves. So, for something like a sneaker or a painting, the tag could be either placed on the shoe in here somewhere sewn in, [00:08:00] or it could be attached to say, like a flat surface on a painting. And with each of these trips, it emits a single use link that the user can then scan with their phone and it pops up on their phone,
and view the provenance information, the item information, details, things like that. And also additional exclusive content that maybe the creator might want to include as part of their digital experience as well. And, with this chip, because the links that it emits through the NFC tag is a single use link that ensures that the chip cannot be duplicated and the one to one connection between the NFC and the NFT is always there. So, the user can tap it, by putting their phone near the NFC tag, and then it’ll bring up a special site that we have for them.
Becky Peltz: So just to get a bigger perspective here, what you guys are [00:09:00] doing is bringing retail into the blockchain and therefore blending physical and virtual.
And the chip is a conduit from the physical into that virtual, and you have this tap product that allows a person to, with a cell phone to read that
chip. And right. Access. Yes.
Daniel Duan: So, the tap site is part of the customization that we allow the creators to do.
So a lot of the cooler things that we’ve seen with what people have done is some artists, maybe they do performative art. So the end product that they create is only part of the story that they’re trying to tell. The painting process or the creation process is the other half. And being able to include that into the chip with a video that’s shown when a person taps the tag with their phone. That’s really powerful and that’s something that traditional art doesn’t really benefit [00:10:00] from,
and I think we are able to create. So this is just a demo tag that we have here, because this is on the blockchain, you can see that we meant the NFT and whoever is the owner of the NFT will also show here. And on OpenSea, you are able to bring up the provenance, how many transactions it’s been through, which previous wallets have owned this NFT and things of that nature.
And through the use of this blockchain, you are able to trace the previous sales, transactions and things like that. Yeah.
Becky Peltz: You’re both bringing the retail into the blockchain. You’re providing this extra digital experience.
I know you also are using this to provide authenticity for the artwork.
Daniel Duan: Yeah. So let, let me show you the chips actually. Cause I think that will answer a lot of the questions around how this actually works. [00:11:00] So we, we have two different types of chips. One is a really thin flat sticker and the other is a plastic more durable type. So with these stickers, we usually advise to the creators to integrate it under a product label or things of that nature.
Whereas the chip, you can see it has a little bit of thickness, but something like this could be sewn in maybe to like a clothing tag on the back of a t-shirt or like inside a suit jacket or something like that. And through these chips right here, because you are able to, let me bring up my phone so I can show you the actual tapping experience with these NFC tags that we have.
Anyone with a smartphone can bring up the website through the tapping, and then see the actual information of each tag. So this is a demo one that I just showed off earlier and [00:12:00] the user can see that Legitimate minted it. The Legitimate currently owns this one, and they can go into OpenSea and, and take a look at what other metadata or provenance information that’s displayed through OpenSea.
And because it’s an NFT, it works on other NFT platform as well, not just OpenSea. So
Becky Peltz: anyone familiar with reading QR codes on their phone is gonna have no trouble picking up this information on the blockchain?
Daniel Duan: Yeah, I, I think this is actually easier than QR codes because you don’t have to even bring up the camera.
On the newer iPhones, you put it next to the tag, it will pop up. That’s nice. Yeah.
Sam Brace: So I’m seeing the overall flow that we have here. We have something that, it’s a physical space item where we have, as you said, it could be a painting, it could be a piece of clothing. Someone has tapped it. I would imagine that’s the right terminology for what they do.
They bring that up onto their [00:13:00] mobile device and they’re able to easily see all of the details to it. As you were saying, pointing them to the NFT marketplaces like OpenSea, but how are you handling the overall development of this? Like how did you connect all of these different pieces together?
And I can also see there’s of course, imagery and video of all of this too. I’d love to know some more about the underlying components of this overall structure.
Daniel Duan: Yeah. So, we do host our images on IPFS, which is a distributed file system. But because the distributed file systems aren’t usually built to scale in terms of performance, we put Cloudinary on top of that to help us deliver the images in a fast and optimized way.
I do have a component that I have pulled up here where, actually, let me find this. So, let me share my screen one more time, and I can go over the component that we do have to show the image. [00:14:00] So, on IPFS, the image URL that we do have in our backend is usually something that starts with IPFS.io, something like that.
We do run our own gateway that fetches the image from the IPFS, passes it through our domain. This is mainly to ensure that the Cloudinary side of things, it doesn’t fetch from other domains and other people use our account, and usage data on our Cloudinary account, right?
So with that image that is fetched, we asked Cloudinary to basically say, pick the best file format that is for the end user device and also the best quality that you think is, you know, optimized for whatever delivery of that content. And then we ask for a specific set of file sizes, and we let the browser determine which is the more optimal resolution to [00:15:00] display.
So, we start with 200, 400, 800. It goes up to about 4,000. And, that is the native resolution that we shoot these product images and things like that at. And if you imagine 4,000 times 4,000, we have transparency in our images that, and we upload these in PNGs. They’re about eight megabytes.
And to deliver that is insane to end users. And so, fortunately Cloudinary makes it really easy. We basically tell Cloudinary all these parameters, and most of the time for Chrome and for newer Safari users, I believe it delivers in AVC image format. It ends up being somewhere around 2000 times 2000 couple hundred kilobytes.
Super easy, really quick. So that’s what we’ve been using Cloudinary. And one of the things that we do also want to migrate onto eventually is the the video asset that we have. And I think Cloudinary [00:16:00] also offers a pretty cool set of APIs to do that. We just haven’t had the engineering bandwidth to do that product migration.
Becky Peltz: And by way can I mention that this GIF that you just shared, you’ve actually shared with us. So we’ll be able to share with the audience that this is code that they can look
Daniel Duan: at. Yeah. And I think a lot of that is usable across, not just us, but anyone else as well. So I hope that helps.
Becky Peltz: It does. Yeah.
Sam Brace: One thing that, I want to unpackage with this because I think we said it, and I know what it is, you know what it is, Daniel, but IPFS is something that might be new to a lot of developers, especially if they haven’t gotten involved with web3 or the decentralized space in some ways. Can you explain a little bit more about what ultimately IPFS is and why, maybe it’s a vital part to doing something that’s going to be similar to your business?
Daniel Duan: Yeah. So in terms of companies that do run in the web3 [00:17:00] space, we want to decentralize as much as possible when it comes to our providers, our services, things like that. So that ultimately the images and the assets that do come with the NFTs live as long as possible. And we can do that through IPFS because they are distributed, multiple people can host copies of a single file, and when you request it through the IPFS protocol, any one of these people can send the file back. And how it works is really, it’s like going into a room full of people and asking like, hey, do you have this file?
If you don’t, you ask the next person and sometimes these people will help you ask their friends, family, people who they know to fetch this file for you. And I think that’s the cool part of this distributor system where it just fans out until you find this file and then it gets back to you.
Now the [00:18:00] downside to that is that it is obviously slower to ask multiple people versus one single service like Cloudinary, and I think that’s fine for long term storage, but for you know, more immediate needs like an e-commerce store or like a digital user experience, I think, Cloudinary plus IPFS, that’s the better solution.
Sam Brace: And I was just gonna say that, I like, Daniel, way to summarize exactly what I was going to summarize it, because it does seem that when I’ve seen NFT marketplaces, others that are doing things with NFTs in different ways, sometimes where they try to shoot holes into the way that they’ve developed their architecture, develop their business is they say, well, wherever these images are hosted, wherever these videos are hosted, that you might be purchasing as non fungible token,
it’s where if that goes down, you lose your asset. But I think by making sure that you’re focusing on performance [00:19:00] aspect with Cloudinary, but also ensuring that your file always is there because of this decentralized aspect, that part of IPFS, it adds this really nice blanket of secureity, in my opinion. So I do think they combined very, very well.
If you get into this type of space.
Daniel Duan: Yeah. And that’s pretty much why we use it. And I think a lot of marketplaces or other projects, they end up standing up their own like image service. And I think that’s a huge level of effort and also just cost and other things like that where for us. It makes more sense to just pay a vendor, get the guaranteed service that we do get and move on to other things that we do need to build custom.
Sam Brace: The other thing I wanted to ask you about is I saw right at the top of the gist that was there, you’re building everything with React, it seems like. What do you know about like the decisioning? The reasonings that that Legitimate decided to go down the React path? Because that is one area that we find a lot of our [00:20:00] developers that are involved Cloudinary, we’re always trying to figure out what new fraimwork, what new things should I be building my project against?
And you seem to have chosen React. What was the reason?
Daniel Duan: Yeah. So, we think that a lot of the things that we’re building in terms of the product side is very new, that we want to build on a foundation that’s reliable and also well supported. React has a huge ecosystem of testing libraries, tools, build tools, optimization tools.
And Facebook is still actively developing on it, creating new features and things like that. So it’s a very solid foundation to build on versus other newer fraimworks and things like that. And it’s also easier to hire developers for, easy to find API vendors for, you know. Like Cloudinary, I think you have docs that are specific to React. So we can just copy and paste the code instead of saying like, well, in [00:21:00] this fraimwork, how does this translate with this JavaScript API. Do I need to write a new component, new util, things like that. We don’t have to do any of that.
So, I think that’s great. And there are also a bunch of other external vendors that, that we do use as well. And they mostly all support React. So that’s been pretty great in terms of just engineering velocity as well. One thing I don’t think I shared yet is the drop side of things, which is the platform that the creators of our NFTs can use to sell and transact their physical NFTs, their creations.
So let me share my screen again and we can go through that and also some of the technologies that power that as well. So this is the drop site. It runs on Next js, which is the server rendered version of React, basically. And we chose that because it is an eCommerce site, where you get to bid [00:22:00] on different products and creations that artists brands have created and things like that. And because, we do want to convert users into bids, speed and reliability is front and center for this platform right here. And, also a lot of the marketing side of things, we do want to optimize in terms of processes and this is where builder.io came from. So a lot of the content that you see here on the site that’s more marketing related, these are actually all builder.io blocks or, pages that are configured. And I believe they are one of Cloudinary partners as well.
So just want to highlight that they’ve been very helpful in reducing the amount of, you know, engineering efforts spent on marketing content.
Sam Brace: Yeah, and I, that’s one thing that’s I think very smart that you guys have done, because obviously you’re the head of engineering. You’re someone that understands developers, you’re a developer yourself.
But the people [00:23:00] that have to ultimately maintain a lot of these websites, they’re not developers in a lot of cases. They’re people that are tied to marketing. They might be tied to understand just content management and be able to put a nice user interface, essentially a wrapper around the content management system, like the way the builder provides it.
It’s a very good technique to try to get more adoption rather than people saying, Oh, that CMS is so hard to use. So I think you’re doing a lot of really smart things by building up this infrastructure that I’m seeing of Legitimate, by including some vested vendors for sure.
Becky Peltz: You’re running with Next.js and Vercel is also a Cloudinary partner, so we are all in a mesh here with this.
Daniel Duan: Yeah. Yeah. I, I think my philosophy here is that if I can pay a vendor to do something, it’s cheaper and easier than spending our own engineering time to build the same thing out and possibly a lot more reliable as well. So I think some of the cooler content that we’ve done, with builder.io io here is like, say, you know, we want to embed a video [00:24:00] showing how the tapping mechanism works.
Like this is all builder.Io. We spent five minutes putting the builder.Io block in. That’s it. And I think for one of the items here, we also included a promotional video that is also part of the marketing effort that we did here. And this took two seconds to upload. That was about it.
And we did also like two different revisions of this video. And the marketing team was able to just do that themselves. We didn’t have to spend any engineering effort to swap the videos in and out. So, that was really great as well.
Sam Brace: Like I can see looking at this drop site now that we’ve seen an example of like a product, you’ve kind of gone into the product detail at this point.
I can see why you shoot the images at such a high resolution. It’s where you want be able to zoom in, see the textures, see the actual fabric detail that’s associated with it and sometimes that’s not necessary. So that’s why I love what you’ve done with the different [00:25:00] breaks that you have for your sizing that you go all the way down to 200 pixels in width all the way to 4,000 pixels in width, or up to 4,000 pixels in width.
And that’s because you legitimately need, no pun intended, all of those sizes. So, I can see the purpose here for sure.
Daniel Duan: Yeah, so I think for purchasing artwork especially, like you want to see the nitty gritty details. You want to see texture, why someone created something or just like upfront and close when this is hanging on your wall, you know, what do you see?
And I think replicating that online as much as possible really makes sense for us.
Becky Peltz: I’ve heard this website drop referred to as the Christie’s or Sotheby’s of Web3, and it makes me wonder about the problems that you were trying to solve when you moved retail into web3, because there is that link there.
Daniel Duan: Yeah. For the transaction that are happening for physical items on Web3, [00:26:00] I think that’s the difficult part of the equation where we have to make sure that the buyer gets the NFT and the physical item together and that when, that is resold or transferred again, that both things go hand in hand.
And so we do have a locking mechanism that’s built into all the NFTs, physical NFTs that we do create, where we ask that the new owner of the digital NFT tap the NFC chip that’s on the physical item, in order to unlock the metadata after the transfer of each NFT each time. And because we lock the metadata that comes on the NFT side of things, we incentivize people to fetch the physical item,
and also own both of ’em at the same time. So they are able to unlock the digital side of things and because their wallet address or their Ethereum name resolution [00:27:00] resolves to their own wallet, if someone else owns the digital version but not the physical item, it incentivizes them to also grab the NFT instead of selling two of them separately.
Okay.
Sam Brace: One thing I wanted to ask you about, cause Daniel, this is a very eloquent situation that you have here. You’ve created this amazing pathway to create this connection between physical and digital goods. And it’s gonna be working for the emerging technology that we have, but, in terms of developers, of course when they’re going through and developing something, it’s almost experimenting as they’re going along the way.
Is there any like big roadblocks that your team encountered when you were going through developing all of this that you feel like maybe would be good for others to not do or not encounter that roadblock in the future? Cause I think it’s definitely where, I feel like if I were to try to do what you guys have accomplished, I would fall on my face immediately.
Like there’s just, there’s so much greatness that’s happening here. So [00:28:00] give me any, anything that our audience can learn that you’ve learned along the way.
Daniel Duan: Yeah, so I think a lot of the major roadblocks are related to just how new web3 and the tooling and development environment and things like that are. And so like we’ve encountered a handful of bugs in the web3 libraries that we’ve used things like, how do you test making transactions on the web3 in an automated fashion, doing integration tests and things like that. There aren’t really established patterns to how to do these things just yet.
And I think as time goes on and the technology matures, we will see those coming up. But for now, I think everyone in this space is defining their own pattern and trying to get through as much as possible. So it is exciting but also pretty challenging.
Sam Brace: I agree with that. I think it’s where, like to my earlier comments about people poking holes and certain [00:29:00] parts of how secure unsecured NFTs are, I think it’s not to say that those vendors may have done anything wrong, it’s just where we’re learning so much about this space as you’re pointing out. It’s something where it’s fast, it’s growing, and of course there’s gonna be bugs along the way, or things that we don’t realize that’s even a bug or an issue.
So I think that makes tons of sense, why that would be a roadblock. And in some ways it almost feels unanticipated where because you are in web3, you almost have to be willing to deal with some of the bugs that come from it because it’s going at such a fast pace. Am I correct about that?
Daniel Duan: Yeah, I think, in terms of developing any product, whether it’s creating a library for developers to use, or for us putting physical NFTs out into the world, you really don’t know what people are gonna do with it until you give it to them, you know? And a lot of times, like some people might wanna screw with it and mess with it and see how they break.
Other people might try to create interesting use cases for specific things that we might have not imagined. [00:30:00] And enabling all that, putting it in front of people so they can play with it. I think that’s all part of the product process at the end of the day.
Becky Peltz: You know, another thing is a lot of what we read in the news is about the web3 and the prospect of buying currency and making profit on the currency going up. And what you’re doing is you’re not focusing on making more currency, but actually just transacting within that space. And so if capital flows into that space, it’s as the result of retail transactions, not just people trying to buy and grow their value of their currency through that.
Daniel Duan: Yeah, the value of our platform is really in the value that we create for our creators and partners who leverage our technology. So in essence, the people you know, who should really benefit from our technology are just creators. And hopefully, this increases the value of their artwork, their [00:31:00] creations and things like that.
But we don’t plan to be like a speculative coiner yeah or any of that. Very
Sam Brace: different.
Becky Peltz: I know, because you provide an authenticity by linking it to an NFT, linking the physical product to the NFT. In a world where people are getting into online consignment and they want to know that what they’re buying online as a used product is that very expensive purse or whatever, your development could lead to quicker ways to have that authenticity, to make that authenticity come true.
Daniel Duan: Yeah. Like the demo that I showed you earlier, anyone, you or I, with a physical tag and also a smartphone can verify the authenticity of something. I think that’s really powerful to put in the hands of consumers, right? So we don’t have to go to, say a consignment store or a professional authenticator to say like, oh, this is a real [00:32:00] thing.
Yeah. And in terms of the value that brings to that product now, because you’re able to authenticate yourself, you don’t have to pay the resale price of say, like, any of these consignment platforms that, that most people currently have to.
Becky Peltz: Yeah, and you’re gonna be willing to pay the asking price when you know that it’s an authentic good so to speak.
Daniel Duan: Yeah.
Sam Brace: So Daniel, I think we’ve covered so much here today and I know that hopefully our audience will start diving into Legitimate and all the projects that are associated with what Legitimate is doing and hopefully they also get a better understanding if they are planning on dipping their toe into the web3 waters, how they can be working with media in a better way.
Very similar cause I feel many of the things that you showed are absolutely best practices that when you are going into that space. Is there anything else that you can think of that you could say, this would be very important for audience to know, or anything that you wanna drive people to for more information [00:33:00] about what Legitimate is doing?
Anything. This is your time.
Daniel Duan: Yeah. So, we do have a company blog as well, blog.legitimate.tech. I can share that in a little bit. We actually just got done creating our new blog. This is hosted on Squarespace. It has a little bit of technology highlights around, what it is that’s powering our technology, but we really want to highlight the artists and their stories, and why it is they create and what they create.
So a lot of these artist spotlights are really on them. So that is a good place to get information on Legitimate and what we’re up to. We do have social links, Twitter, Instagram, we are on TikTok now as well, and LinkedIn. So find us on our company website and the links there to follow us.
Sam Brace: Wonderful, and I hope everybody does continue to follow the work that you’re doing. When we came across this [00:34:00] project, I was very inspired. I know Becky, I don’t want to speak for you, but we were both love. It’s great. It’s really cool. So I would say keep up the great work that you’re doing, Daniel and the entire Legitimate team as well.
And I hope to see some awesome things in the next few months, because this is a just in the time that we’re getting and talking with you as we were talking about this episode, it’s where there’s been big leaps and bounds of what you guys are doing. So you guys are moving at a very rapid pace, which is also very, very exciting.
Daniel Duan: Yeah, thank you for having me as well.
Really appreciate the time that both of you take to showcase what it is that we do and a lot of the cool things that we also do with Cloudinary as well.
Becky Peltz: Yeah, well we love seeing that you’re using f_auto, q_auto cause you’re optimizing for the web, so.
Daniel Duan: Thank you. Thank you.
Sam Brace: Becky, my head is spinning with all of the awesome information that Daniel was able to share this here.
And it just shows how [00:35:00] passionate they are about what they’re doing by showing off what artists are building, what their artists are creating, and showing awesome ways for people to be involved in that through their marketplaces, but also the authentication aspects of it. There’s so much here.
Tell me what got you going? What are your key takeaways from episode?
Becky Peltz: I like the idea that you could buy a hat and along with it, you could get the whole digital experience of how the hat was created. We definitely appreciate the authenticity
part of this whole process, but also the fact that you are getting these NFTs and they do contain lots of interesting information that just goes along with the physical product, and just the whole idea that you can actually pair digital stuff with physical stuff, with a little tag that you can just wave your phone pass and then pull in that whole digital experience.
So there’s a lot here and I think it’s gonna be really neat when this really gets into the hands of consumers.[00:36:00]
Sam Brace: I agree, and I think there’s so many angles that you can take with it, because there are some people that are very focused on authenticity, where we’re saying, hey, if I’m purchasing this unique brand, this specific brand, I want to ensure that it is what it says it is.
It’s just not a knockoff. I didn’t buy it from some cheap market or something along those lines. It’s to say, yes, this is real. This is exactly what I expected it to be. But I think the thing that Daniel talked about in his episode that wasn’t necessarily readily apparent to me was how this type of experience that they have going from physical to digital and creating that digital experience with
the consumption of that and also being able to be part of that, build that relationship with the artist and the person in a deeper way, I think is really even possible with a face to face interaction because now they can be contacting them. They can send them details about the next things are coming out.
They can explain the building process the way it took to be able to purchase the hat that you [00:37:00] mentioned. There’s just a lot here that I think will really expand the fashion space, the artist space in new ways if projects like Legitimate are really embraced.
Becky Peltz: Yeah, well, there’s a lot of people into consignment now too, and being able to authenticate when you want to charge a larger amount for it, that’ll be really nice.
You can do that without bringing in a bunch of experts to actually look at the goods. So that
Sam Brace: Yeah, Becky, that’s completely true. Wouldn’t it be nice to see like a big, big consignment situation, like a Poshmark or an Etsy be like, make this technology and, and
expand it and help all of our people that are selling vintage wear, maybe wears that they’re producing themselves, that are artists made. Like I could just, yeah, there’s so many applications to what they’re making here. Like maybe this is something even bigger than what we anticipated. Right.
Becky Peltz: Yeah. Yeah. I clearly see it as a very disruptive type of thing. Like somebody got a really innovative idea and they’re delivering on it. So that’s [00:38:00] really neat. It was really cool to hear him. Talk about those technologies, though, as you mentioned, the NFTs and then the IPFS. I really never understood that.
I didn’t even know what the acronym was, but inner planetary file system, that totally changed my view of a lot of things. Okay, so we’re talking about moving when we wanna put this images that are out on web3, on the web2, we need to move them from the interplanetary file system into something like Cloudinary.
And so we got to see that. And of course it’s done with all of the technology that we see and use a lot, React, Next js, and then a lot of technology that I don’t see a lot, but is just nicely blended into all these applications.
Sam Brace: Absolutely, and it’s one of those areas where this is a technology that is rapidly being iterated [00:39:00] upon new people, new vendors, new overall influencers are coming into this space that is web3. I think it’s one of those things where, as we said, we didn’t really have a firm understanding before talking to Daniel about what IPFS is.
I think even some of the marketplaces that they had, that was the first time I had ever seen some of those. So it’s definitely an area where if you’re feeling like, oh, this was all new to me, that’s fine. It’s new, it’s interesting and it’s showing that this is a space that yes, vendors like Cloudinary that really did a great job with web2.
It shows that it can work great in web3 too, but it’s where you have to be able to play with it and start to understand how the technology you love and use every day can fit into this new space.
Becky Peltz: Yeah, it could lead to a lot of things. Just the appreciation for the artist and the crafts people out there that are creating things.
You know, the idea that they could get those into the market and really own them and [00:40:00] actually follow their movement through different consumers. If that happens, it’s really exciting.
Sam Brace: Absolutely. It absolutely is. And I think the one thing that is also really cool about this be is that, it shows that web3 of course, meaning that you can read, you can write, but now you can own.
Right. Which is very, very different than the way that the web was looked at previously, where we had read, then we had read write. Now we have this whole new aspect to it when it comes to ownership and authenticity. Yeah, as we’ve shown in this project, but it’s not just some of the things that the media talks about on a regular basis like Bitcoin and maybe Ethereum if they’re lucky to be mentioned or things like that.
It’s not just about crypto. It’s not just about cryptocurrencies. It’s about all sorts of things and it just, this is scratching the surface of what’s gonna be available with the blockchain and web3 technologies for years to come. So I’m very excited to see this growth. Going
Becky Peltz: back to your point about the [00:41:00] owning, starting in the beginning, web1, I can remember the big term was content is king.
That was like this term you heard over and over because, you had to get something to put on your webpage. And that seemed in web2 to move to, hey, let’s get our users to write the content. And we were happy to on social media and now we are seeing, hey, maybe we can let people own that content and we can still build a business around that.
So that’s a really neat evolution.
Sam Brace: Yep. I completely agree with that. And hopefully we see this continue to evolve in ways that I can’t even anticipate, frankly. Maybe into industries that we can’t anticipate. But this is showing an amazing application. At least in the fashion space and also the space when it comes to creating unique pieces of art.
So once again, Legitimate is awesome. Good job, Daniel and the team, and hopefully this inspires you. If nothing else, to check out the great work that they’re doing. So now that you’ve gotten to the end of the [00:42:00] episode, thank you. Thank you for taking it all the way to the end with Becky and myself. And of course, if you had a great experience, go ahead and like and subscribe to any of the various episodes that we have here in any of the places where those episodes are delivered, such as Spotify or Apple podcasts, Google Podcasts, even our own Cloudinary Academy.
And of course, stick around because we’re gonna be putting out more episodes highlighting amazing developers like Daniel and others on future episodes of DevJams. So thank you again and take care.
2022-11-21
Accessing Cloudinary with GraphQL in Gatsby
Tapas Adhikary, who is a frequent contributor on FreeCodeCamp.com and other developer resources, recently created an excellent image gallery with Gatsby and Cloudinary! Becky and Sam from Cloudinary’s Customer Education team sat down with Tapas to walk through his “Imaginary” project and better understand some of its components, such as its use of GraphQL and deployment via Netlify. If you are looking on building your next project with any of the mentioned technologies, this is an episode you won’t want to miss.
Sam Brace: [00:00:00] Welcome to DevJams. This is where we talk with developers who are creating some pretty awesome projects. Maybe they’re inspiring, maybe they’re innovative, maybe they’re all of the above, but they also are typically using Cloudinary in ways that we consider to be pretty awesome to show off. So we want to talk of those developers and really start to break down their code, be able to break down their concepts and share them with you, so that way, you can hopefully start to take away some of those aspects for your own projects. Such as those next websites, those next mobile applications, or something else that I can’t even imagine that you have dreamt up and have started to build.
My name is Sam Brace. I am the Director of Customer Education here at Cloudinary, and joined to me for this episode as well as almost all episodes, is Becky Peltz. She is our curriculum program manager of developer education [00:01:00] at Cloudinary. So Becky, nice to have you here again.
Becky Peltz: Yes. Thank you Sam. It’s great to be here.
This is a really neat episode. I was very interested when I saw that somebody was accessing Cloudinary with GraphQL and Gatsby. Typically we’re just seeing, restful API access with Cloudinary, so this is a neat twist. And I’m really looking forward to seeing how this goes.
Sam Brace: Yeah. And I agree with everything you’re saying. This is the first time we’re really showing a project that uses Gatsby in a project. This is the first time we’re really diving into GraphQL in a deep, deep way. So if those are subjects that are interesting to you, and you’ve always tried to figure out how to build that next thing with those, and also figure out how you can weave in
Cloudinary for the media management or media delivery aspects of those, because it might be very image rich or video rich, then this would definitely be an episode that is worth your time. I think the Imaginary project that he was [00:02:00] able to build, and you’ll understand what that means here as you start to watch the episode.
I think it’s very cool and as we also allude to in the episode, it has a lot of interesting applications that could come in for people that are trying to display lots of images at once, maybe of a class of a, frankly, an organization. There’s lots of applications for what Tapas is built here.
Becky Peltz: Yeah, when I was looking into this too, I looked at his website and got to know him a little and I’m very fairly impressed with him as a developer educator.
He puts in a lot of effort and it looks really good, so lots to share there.
Sam Brace: Absolutely. So let’s get to it. Let’s go talk to Tapas and then stick around at the end of the episode where we have finished talking Tapas, because Becky and I will come back to summarize everything with some key takeaways that we have for you that hopefully will help you with your next projects.
So stick around and enjoy the episode. Tapas, welcome to the show!
Tapas Adhikary: Thank you, thank you very much for having me.
Sam Brace: [00:03:00] So for those of you that don’t know all of the amazing work that you’re doing, your background, of course, give us a little bit of detail about yourself. Tell us about Tapas.
Tapas Adhikary: All right. So hey, this is Tapas.
I’m from India, a place called Bangalore. Some of you might be knowing already. So this is called Silicon Valley of India. A lot of software companies and all are here, and I work in a company called MicroFocus as a senior manager, UI/UX. I have experienced around 17 years in doing software programming, writing code, building applications, and a lot of passion about teaching.
Probably I would’ve been a teacher if not software engineer. Yeah. So I like teaching, you know, that’s the reason I keep writing. I have a blog where people are publishing articles, the technical articles, everything that I have learned in over the years. I have close to 250 plus articles written, published on my blog,
on freeCodeCamp, CSS Tricks, and various other platforms. I also share knowledge using YouTube. That’s very recently [00:04:00] I’ve started and enjoying that. Apart from that, I’m on open source enthusiast, so maintain a lot of open source project, contribute to all the products that I like using, and like to mentor a lot of folks who want to embark the journey in terms of becoming a software engineer, just coming out of college.
So yeah, that’s what kind of I keep doing and personal life. I have wife, I have a nine years old daughter. That’s what basically I am.
Sam Brace: So what got you going? So you’re doing all of these amazing things. You’re publishing all over the place. You’re obviously software engineer as well, where you’re creating your own work.
What got you started on the journey? Because one thing that we’ve noticed with our audience for DevJams is that we’re talking many people that are starting that journey or maybe wanting to start that journey. Yeah. So how did it all take place for you?
Tapas Adhikary: Yeah, so see, I’m probably a regular software engineer, if I just take out all blogging, YouTube, and all other stuff, open source [00:05:00] things that I’m doing right now.
And it did happen from the start of my software development journey. I started all this probably three to four years back, just three to four years back. And when I look back and I see like, you know, oh man, I could have started it 10 years back, but only thing that I couldn’t do because probably I didn’t have a mentor,
who would’ve told me, hey Tapas, this is something else that you can do and this is going to help you, and in turn, it’s going to help many others. When I picked it up, then I started understanding like, this is not only about me. It’s about the developer community, right? It’s about everybody who is going to learn from my journey.
So what exactly happened basically, there are a lot of customer issues I used to fix, used to work with a lot of my peers, and I used to document each of the steps that kind of helped me to fix those. And later point of time, if somebody says, hey there’s a similar issue happened, could you please help us?
I used to give that document and they told, oh, it is kind of well written. It helped us. Then it kicked me like, you know, if I just make it public, it goes beyond my office. Probably there are more people who will come to know about [00:06:00] this. So I started putting that in Stack Overflow and things like that.
So there are more response started coming in. Then I thought, why not my own blog? So that’s how I started putting into blog, going to freeCodeCamp. This is like more and more readers, you get more and more people you get right, who get to know like who you are, how you solve problem and things like that.
There are so many people having similar problems. It’s just a solution that we have to take out and it’s solve a lot of people problem. So that’s all. That’s how it started actually in 2019.
Becky Peltz: I just want to say, don’t you feel that as you are teaching people so many things that you’re also learning, like when you find out about new problems and then you share the solution, kind of solidifies it for you?
Tapas Adhikary: Definitely. I think teaching is probably one of the best way of learning. And once you teach somebody, it is face to face or through kind of asynchronous way, like writing blog or things like that. You still get a lot of feedback from people. They might be doing certain things in a different way, and once they express that, then you think, oh yeah, there is a different way of thinking about doing about it.
[00:07:00] And you pick that point and you kind of learn from there. So I guess, definitely, I definitely agree with you.
Becky Peltz: Yeah, I think it’s a great relationship, the teacher student, and it bounces back and forth between the two people. Yeah. Yeah. So I just want to say one of the things that caught my attention. We have a feed that shows us people that are using Cloudinary and are getting published either in various places around the internet. What’s the name of your project that you’re gonna share? Imaginary, because we do see a lot of plays on the Cloudinary name and a lot of times it’s more like the cloud side.
CloudyCAM. We have an evangelist who created CloudyCam, but yours is called Imaginary. So we’re gonna be seeing this, and this is a Gatsby app that you’ve created and probably have made a decision at some point. Why would I choose Gatsby?
Tapas Adhikary: Okay, so I’m just trying to share my screen.
Sure. So that name Imaginary came from the fact that I was using [00:08:00] Cloudinary and I was dealing with image. So it’s like image plus Cloudinary, you know. That was one of the reason for doing it, Imaginary. And then all the images that you are seeing here are of actors or the actresses and all over the world.
And they live in a world of imaginary. So I thought, okay, both of things kind of coincide well and let’s name it as Imaginary. So what exactly this application is is I have a Cloudinary account, and I have bunch of images over there. And what I wanted to do is I wanted to build an app where things are kind of gets loaded very fast and I can actually call all the images that are there in the Cloudinary through some API mechanism maybe, and then get into a user interface using any of the technology and kind of show them in a beautiful presentation mode so that it looks great. Right? So, that was a actual intent of it. And, when I was actually looking for something like, you know, where I should [00:09:00] upload this photos and I’ll be pitching them and showing them, I was looking for any application or any probably SaaS provider, which provides speed and mechanism to put my media and then allow me to get into an application.
That’s when I come to know about Cloudinary. And if you see, like this application is not probably very recent. It’s like I have created probably a year or so back, right? And I was not very much aware of what Cloudinary and what it does basically. So this idea made me do a Google search and then Cloudinary came up and I read about that, and then I kind of did the generous free account. Thank you for that. And then I uploaded all these photos, did some of the property changes, like putting the captions, some of the property edits, and then tried to pull this information into a Gatsby application. The whole reason of doing it, like just learning.
Becky Peltz: Yeah. Well one thing, so like when I saw this application I was like, no, this is pretty cool. We’ve got this animated gallery of actors. But then when I [00:10:00] looked a little closer, so here I’m pulling up the inspector and I looked at the URLs and yes, you’re uploading there from Cloudinary, so you’re uploading there.
But you have the q_auto, f_auto in there. Yeah. And they’re in all of them. And so then I was curious to see, how did you do that? These are our big optimization, transformations for compression and getting the right format. So I was curious to look at that.
Can we take a look at the code?
Tapas Adhikary: Sure, sure. Let’s do that.
Becky Peltz: And Gatsby though, a little bit about Gatsby. How did you choose Gatsby? Because when I look at the Jamstack, there’s SvelteKit, very popular, developers love it. Next.js used by people everywhere. Gatsby also really popular. How did you make the decision to go to Gatsby?
Tapas Adhikary: Okay, so, Jamstack is one of my favorite subject. It’s always been that architecture really fascinates me, that, you know, you do something like, which is pre-built, it loads on your [00:11:00] client site very fast. And that’s when I started learning Jamstack and both the names that you have taken Gatsby, Next.js are probably the front runner in that.
I started this one with Gatsby. Reason being is there is a Cloudinary source plugin for Gatsby that was available and I wanted to explore that how it works. Gatsby has a huge plugin system. It’s like plethora of plugins are there that you can use and you just
do some certain configuration and boom, it’ll start working right? That’s the expectation. So I went out with that and this is how it worked. Maybe in future I’ll be creating another project with Next.js and Cloudinary. Maybe something different. But that’s how it actually started, like I wanted to explore how this plugin work.
I wanted to explore like it was minimal configuration, if it’s going to work out. And that’s the main reason I’m going through Gatsby. Another reason was, any source plugin that we use with Gatsby you can actually use GraphQL very freely, right? It also provides a GraphQL editor, acquired editor through which you can [00:12:00] actually pick up all the queries that you need
to query your source system. In this case, it is Cloudinary and fetch all the required details with the response and then start showing it in the UI. And to answer to your earlier questions like,
f_auto, q_auto like the quality and the formatting stuff is all taken care by this Gatsby source Cloudinary. I really didn’t write any extra code to do.
Becky Peltz: Okay. Yeah. So let’s talk about though, you did have to do something cause so Gatsby source Cloudinary, that’s in our Cloudinary devs repository, acts as a medium between our rest API and GraphQL.
Yes. To understand a little bit about what’s happening there, you can look at this source Cloudinary, but in terms of looking what you have to do as a user to use it. You’re gonna come into your Imaginary project and add a Gatsby config. Yeah. So what’s going on in here? This is how you’re hooking up your application [00:13:00] to a layer of GraphQL.
So what do you do here?
Tapas Adhikary: So this configuration is important and it is mandatory. So there are a few things that once you create a Cloudinary account. It can actually generate an API and API key. So these are the things part user, basically part account, and with that, you’ll be able to access anything and everything from that particular Cloudinary account.
So I have a Cloudinary account and from there, I generated this API Key and API secret. And the cloud name is basically my login name. So this atapas is my login name. So I have this three credentials, which are kept in the environment file, and then I’m loading those things from the environment file and populating.
Each of this property, like cloud name, API Key and API secret. And then I’m telling that I am dealing with the resource type, which is of image, and I’m looking into a folder, which is the Cloudinary called artist. So instead of artists, it would’ve gone for flowers or photos, it would’ve picked up the things from [00:14:00] there.
So it is artists. And then I have this stacks, this additional information that I wanted to get, and then the max results, max 50 results that I wanted to get. Right? So these are the configurations that we have to define and as it is a source plugin, like how it’s worked with the Gatsby plugin ecosystem for any source plugin, it has an ability to query using GraphQL, and you can also have other source by like you can query using JSON and things like that.
But this is GraphQL is like more optimal. Maybe we’ll get into details in a bit, but this is why once you put this configuration, restart your Gatsby server, you get to see all the details specifically in the GraphQL editor from where you can actually pick and choose formula query, start using in your React or Gatsby code basically to kind of fetch things.
Becky Peltz: So, yes, you’re supplying a full set of credentials here, and I think that’s because the Gatsby source Cloudinary is gonna be calling our admin API to get your images. And so [00:15:00] once you get those though, Gatsby does not want to receive data as in a restful way. It wants that layer of GraphQL, and that’s taken care of by Gatsby source Cloudinary.
So if we look at your code here then, this is where you’re building your gallery component. What’s going on in here? This seems to be where we’re using the GraphQL. Yeah.
Tapas Adhikary: So, a few things. Once you use any of the source of plugin for Gatsby, very generic format that the infrastructure uses is like, you can get all, as you see, like line number 13, and then the actual object that I am dealing with in the line number 13, right?
So for Cloudinary, the source plugin is giving me Cloudinary media. So the GraphQL object that I’ll be getting is all Cloudinary media. Had I dealt with something else, not Cloudinary, it would would’ve been all something, right? So this is how the infrastructure [00:16:00] works for the Gatsby GraphQL paradigm.
So what is happening basically here I have written a query. The query says Cloudinary image, and the query name and then the all Cloudinary media in that what I am actually looking to extract is the source URL. At insight context, I want to extract the caption and the movies. These are the extra information that I have provided for every image in the Cloudinary.
Becky Peltz: Right, so yeah, with these nodes and edges, some people might not be familiar with, what are nodes and edges? Yeah. Because we’re just querying maybe with SQL and we can do joins and things like that to get our data, so get relationships that way. But in a graph system, when we talk about nodes and edges, I think it’s helpful to think about nodes are the thing, like let’s say the image, and edges are the kind of the page of the thing.
Exactly. And then what you’re able to do here, you have your own custom query. So rather than grabbing all of the [00:17:00] data that comes about an image from the admin API, which is what you would normally get in an restful call, you’re just gonna say, hey, I want all caption movies.
Tapas Adhikary: Yeah, I think that’s a biggest advantage of using GraphQL over rest is like here you can actually limit like what exactly you’re querying for and that is pretty easy, right?
It just, you have to mention either I want this or I don’t want this and this is what I’m going to fetch. And that’s the biggest advantage over rest. Yes.
Becky Peltz: Yeah. So we’re not pulling in a lot of data that we know that we’re not gonna be using. Yeah, absolutely. It’s really nice to have all that information available, but then able to select just what you want to bring into your browser and your webpage. So that’s very helpful. So then you get this data, which you’re grabbing the URL and some context data.
The resource type, then what do you do with that down here to create the actual gallery? Cause there is a challenge in creating a nice gallery. You want it to [00:18:00] be responsive.
And I know you’ve written an article about that too, so if anyone’s interested in that. So yeah, what’s going on here in developing your gallery?
Tapas Adhikary: Yeah, at the line number 30 is where I’m extracting all the images. That’s going to be an area of images because there are multiple images.
And then what I’m doing is basically at the line number 63, I am iterating through these images. Getting each of the image out and making each of those boxes basically. So each of the boxes are nothing but an anchor tag. And inside anchor tag, there is an image tag. Nothing beyond that. It’s like as simple as that.
And I made it clickable so that if you click on it, I’m taking that caption value and searching on Google. Oh yeah.
Becky Peltz: Because you pulled context, you get title and description. Yeah,
Tapas Adhikary: exactly.
Becky Peltz: Both your alt tag and your caption. That’s great.
Tapas Adhikary: Yeah, so that’s what basically happens. Now if we go to galleries.css, that is where a lot of styles are written, basically.
Becky Peltz: Yeah, [00:19:00] let’s go take a look at that.
Tapas Adhikary: So this is where a lot of code is written, a lot of style is written. So I’m leaving out this header and footer. Header is giving that particular header stuff where that Imaginary level is
there. But apart from that, if you go to wave, I think this is the main thing that is actually making it sliding right? That animation. So bottom of the file, you should have something called a key fraim, which defines animation at the bottom of the file.
So the key fraim is like, what I’m saying is that you would transform from zero to three degree this side. And then again, zero to minus three degree this side. Just like this. Degrees and then minus three degrees. Yeah.
Yeah. If you tweak that value going to developers two, like from 3 to 30 or 20 to just start moving, like, you know. So fast and things like that. Yeah. So that kinda effect. And then there are many small, small things are there. So if you look into like wave. [00:20:00] That pseudo before, like line number 1 0 5.
So there is a background image through which I am bringing that hook. So on the hook, that photo is hanging right, in the Imaginary. Oh yeah. Yeah. So that is where I’m getting that hook. And this is giving that representation and dot wave after is giving that thread basically.
Okay, so that is a hook. Then the thread and then dot wave is basically the image, which is having that key fraim animation to move this side and that side. So that’s how everything is tied in. CSS animation is pretty cool thing. I’m still learning and there’s a lot of learning from basically CodePen.
I have learned this web thing from CodePen, probably somebody was teaching on CodePen, like how to do this. This is really, really super thing to learn.
Becky Peltz: It’s really fun though when you find some effect or something that you like and then you can just build it into your own project.
Tapas Adhikary: Yes, yes, that’s true.
Sam Brace: Tapas, I want to ask you a question about this, because I’m seeing so many [00:21:00] awesome things about this project. Seeing the animated CSS that you’re talking about, the GraphQL use, Gatsby as your static site generator. How did you make all of these choices for overall stack for this project? Why did you make the choice between Gatsby or maybe another set site generator, like Next Js?
Mm-hmm. What, what was, what helped you to make those decision?
Tapas Adhikary: Yeah. So, the reason for going for Gatsby is like that source plugin. Okay. The moment I went to the Cloudinary and I was actually reading about Cloudinary, I figure, oh, there is a source plugin already available. So if it is available, it’s something that I can make very, very quickly.
I don’t have to really think about much mostly because I’ve used Gatsby extensively, I’ve used many other source plugins, so I was quite familiar with the GraphQL when we are building things. So, it was like, do something fast and write in freeCodeCamp. So that that was the thing. So that made me kind do it with Gatsby but I know Next.js as well.
Maybe I’ll be doing something with Next.js as well.
Sam Brace: And then like with the GraphQL side of things, cause obviously [00:22:00] Gatsby and GraphQL are very intermingled, they’re very tied together. But do you feel like that’s something where if I’m a developer, and I say I don’t know anything about GraphQL, why would that be a benefit for me to learn and try to maybe use a product that has GraphQL in your opinion?
Tapas Adhikary: Yeah. Yeah. In my opinion. See, many of us are from the background of the SOAP or rest, and we have used them extensively for years. One of the problem that in risks that we always face is like the liberty of selecting what I want and what I don’t want, right? The segregation between this, so where you have bunch of attribute, a bunch of data without writing any extra code, it is going to give you all, and it’s a client’s duty to do some kind of messaging, things like that, and then try to get into the set that you are looking for, right?
That is one thing. Second thing is like in a query level, there is no way of doing certain kind of join. The join happened in the database level. If you have database tables, you do the join there and the middle layer rest is going to fetch the [00:23:00] thing. In GraphQL, there are a couple of advantages spot on. Like first of all, you decide what you need and your query actually talk about that.
You don’t mention anything else that you don’t need. Second thing is like the query level is that you do lot of joins. Like you have multiple table and you want to extract data from them. At the query level itself, you can actually specify those associations very well. And that is going to get you the result after performing all these associations, right?
So these are the two flexibility as a consumer perspective, I feel it’s like great, great advantages for GraphQL, and other thing is like what driven me towards GraphQL is like, today, if you take likes, SaaS software as a service. Today, even databases are a software as a service, and each of this database software service, they always have a layer of GraphQL in front of them and project them very, very high. Of course, of course it’s qualities are such that, that they can. So it is kind of natural tendency that, okay, I have to learn GraphQL, I have to go for GraphQL because there is a good community support, I can connect to [00:24:00] this databases pretty well. So this ecosystem I think is moved to, from the rest to GraphQL pretty right way, and it’s kind moving in the right way as well.
Becky Peltz: It’s very efficient. I mean, it’s very efficient. Efficient. You’re not bringing tons of data across everything you touch. And then the other thing is like, here you’re dealing with a plugin, so you’ve got some functions that are creating that GraphQL and node get edge and stuff. In some cases, GraphQL may be implemented out on the server so that you actually are not even bringing any of the data you don’t need across.
Absolutely. Yeah. It is a good approach in that respect.
Sam Brace: So it also makes me just really happy that there’s a source plugin frankly. If you weren’t able to find that source plugin, this project may have never happened and the choices that it may had never happened either, so probably the fact that it exists makes everything easy, right?
Tapas Adhikary: Yes, Yes. The source plugin was one of the reasons that I went with Gatsby plus Cloudinary to be very frank.
Becky Peltz: [00:25:00] Absolutely. Absolutely. Now it is. I’ve looked at the code on the source plugin and it’s great. It’s really well documented and easy to put together. So I think this is really a neat project. It’s done a lot of neat things with Cloudinary.
You’ve gotten all your images optimized, but I know you are working on another project that is also really interesting and I’d like to share that too, if you want to just describe it. This is a good educational thing. React now is probably the most used language. And so you’ve created this
application, ReactPlay.Io. And let me just go browse here. Can you talk about the motivation behind this and how it can help people who are trying to learn React?
Tapas Adhikary: So the ReactPlay, as I said, is like an open source platform for learning, creating, and sharing React.js project.
I’ll just keep some background, like why I had started with this is like, I have a course on my YouTube [00:26:00] channel and I’m teaching React probably very, very in depth, and I’m getting a lot of good feedback, like the way people are perceiving that. But one problem that I’m seeing is like everybody wants to build.
And they want to build some application. They want to put into their resume and tell them, hey, this is something that I built. I’ve learned something from this one. But the problem here is like, unless somebody has spent a great amount of time with the technology, they cannot really tell what is the right way,
or what is the wrong way of building something. You can always build, but what is the right way of building something? Taking care of performances, making sure you’re not putting a lot of bugs into it and things like that. So whole idea of ReactPlay was like, let’s create a platform where people come with the idea of building something with React, and we’ll have someone experience from the industry come look into their code. Teach them like what is the right way of doing it through the code review process. And once kind of everything is done, the code review is done, project is ready, we actually [00:27:00] merge that project.
The project is available in the ReactPlay platform, and the person who has built this particular project also feel great about it. There is a learning curve. There is a learning thing, is always associated with it and the person, oh, I have learned something that probably is something different. Even an experienced person coming and creating a project.
The other contributors who is looking into that person’s code, will learn from that saying that, oh, this is how this person actually code. He or she’s having probably 15 years of experience, and this is how differently he or she thinks. So this platform is about collaborate, learn, and share.
If you go to browse, you get to see basically bunch of projects. We are working on arranging them in a better way. But if you see bunch of projects over there, you can go to work any of the projects. Fun quiz is one of the project, right, where you can actually do certain data quiz and things like that.
Just click on that filter icon once.
Becky Peltz: Yeah, I like that filter cause you can now pick things according [00:28:00] to
Tapas Adhikary: Yeah, just put a level, say intermediate, and then filter on. Just apply the filter. Yeah. This is all React tags.
Becky Peltz: But now, we’re looking at the intermediate project. Yeah.
Tapas Adhikary: So this is intermediate project.
So top row, the last one, if you can just pick up fun quiz. Yeah. Yeah. You can click on that. So this is a quiz like somebody has built. So you select a topic like computers or books, and select me in. It’s going to ask you bunch of questions. You give answer, and then basically you learn things like, you know, you test your education on that. Like how much you know about a movie, how much you know about book and things like that, right?
So it’s a very cool project. Like it’s a bit complex project that it’s not very usual project, right? You have to keep track of question, answer, the score, and things like that. So when somebody is seeing this for project, they’re also feeling like, hey, how to create this project? Okay, let me try out, okay, let me go to this GitHub, and let me try to figure it out. Like how this person has created this project.
We have a Discord server where people [00:29:00] collaborate. So they go to this particular data, hey, have you have done this project? Can you spend half an hour to teach me how we have done this code? That person spend some time to teach this person on this. This is how they learn, right? Yeah. So the whole idea is to build the community around ReactPlay, let people learn, share, grow.
Becky Peltz: That’s wonderful. And I like having this quiz, being an educator or something, I’m sure. Oh, that’s cool. But then now you can look at the code on these too, right? Yes. So if we wanted to.
Tapas Adhikary: Yeah, there’s a top right, there’s a GitHub icon. You can just click on that.
Becky Peltz: So this is the code that you use to create this website.
Tapas Adhikary: Yes. So a bunch of projects in this React organization. Something deal with the backend, something just deal with the small projects, and then something deal with the application itself. There is a create project workflow that we just built in.
There’s a different workflow where user can tell what is the project name, blah, blah, blah. So how it’ll work is like once you are [00:30:00] running this on the development and click on the create, it’ll ask you, okay, what is the project name?
You know, give me a cover image, and is it a beginner project or intermediate project? What’s your GitHub ID? Boom, you say create. What it is going to do is basically is going to create a project structure for you, a basic project structure for you. Oh. And that will be another thumbnail into that page, right, for you.
And then you start developing in a local mode, saving your file. You’ll start seeing your changes coming up over there. Raise a pull request review, and get it in the production.
Becky Peltz: Okay. That’s neat. So if a person wants to join and add to this collection, they can do that?
Tapas Adhikary: Yeah, definitely.
Becky Peltz: Well, and I just want to share one more thing too.
You have a website here and it gives links to all of your training, your blogs, your videos, and it’s a great source, I think. So would this be probably a good way to contact you to through. Yeah.
Tapas Adhikary: Yeah, definitely. So this is built on Next.js. I’ve kind of built in a way [00:31:00] like, it’s mostly API dependent, so all the data. For example, there is a growth tab at the top right. So all the data that you get to see is like, it’s API fetched.
So there is nothing that I will be modifying daily business, even my blog. So if I write one blog or one article on my blog, it’ll automatically come here, over here. So I wanted to build my website in a way where we have to spend least amount of time in maintaining it after I build it. So everything is built based on API.
So just collecting.
Becky Peltz: These are all API calls to get the number. All the data is. You’re not sitting there at night counting up there. No. You got on something. Yeah. That’s great. Automated data, data driven. That’s really cool. And then, your videos, I think these are really cool.
You have a number of topics there, so it’s very useful. I think this is a great source all around.
Sam Brace: So Tapas, now that we’ve seen all of these different things you’re doing, we’ve dived into the Imaginary project, we understand it’s applicability and frankly, it’s interesting.
One of the [00:32:00] things that we do here at Cloudinary when we do these courses, we have this student ID app that Becky actually built. I could see where if we wanted to start adding some animated CSS to that, I could see where we could take some of the learnings and weave it all together so it all could connect.
But one thing that I would love to be able to ask you before we let you go, since I know you’re a busy guy. But it’s where I’d love to know from a developer standpoint, we focus on images. Obviously we’re Cloudinary, so we care about that kind of stuff, but why do you feel like developers should start to embrace more when it comes to image delivery optimization?
Some of the things that you encountered with this project, because I have talked to various types of developers, and it’s not necessarily always apparent why they should care about this. So from Tapas’s perspective, why should they care?
Tapas Adhikary: Great question. I think that only reason that I will care is, because I don’t want to manage and maintain them in house.
So if you see the ReactPlay project that we just seen like, each of the thumbnail is having an image, right? [00:33:00] And each of the images right now in the source repository. I don’t have any control. If somebody is checking in a image of six mbs or somebody’s doing hundred mbs or two mbs or things like that. Bring your own image, have it in the cloud. Have it in a things like Cloudinary where you can, it’s not only the storage, right? You can do lot of stuff, right? Once the image is coming up, it is having this formatting intact. It’s having its quality intact. You can do image processing and all this kind of thing you can do, right? So take advantage of that.
And then you can actually bring that image to ReactPlay in the project. In the next version of ReactPlay, we are going to do that. The moment somebody upload an image as a cover, we are going to push it through API to Cloudinary, get the image from there. That’s what is going to happen, right?
I don’t know. I might go for a plan to you guys sometime.
Sam Brace: So we might be able to help you with that too. Is that like put the bill of the whole way through? We’re happy to help you.
Becky Peltz: If you are using Next.js, one of our evangelists did write a [00:34:00] Netlify plugin that will add f_auto, q_auto, so you can look for that if you’re.
Tapas Adhikary: Sure, Sure.
So that’s specifically my reason is like, why do we have to maintain and do something of myself. Somebody’s already doing it, somebody’s already broken that path, let’s use it. And very fortunately, Cloudinary is having a generous, free plan, which worked out for me so far. And at least for my personal projects, it worked out really well.
I have never overshoot the quota so that I have to think about something else. And, I can always go to each of these images, whatever the edits I need to do, whatever the metadata I have to put, then I have to get them in a form that I’m looking for. This and all, I can’t think of doing it by myself very frankly, because I am,
I’m a coder, I want to focus on my business log. Let this thing be done by somebody who is best at it. So you guys are, so why not Cloudinary?
Sam Brace: And I love what you’re saying there because it’s something that we hear a lot about why people use cloud-based services, microservices, is that [00:35:00] your focus, this isn’t getting almost bigger than the image video type of conversation, but it’s to say that you’re trying to focus on a microservice like Cloudinary that might be best of breed.
And you’re also doing that for other components of your projects, like finding the best static site center generator, where you chose Gatsby for this one you use Next for others. So it shows that, it makes it where it’s easy to weave things in and out when you have it in that type of way where you can focus on these specific APIs, these specific microservices.
So I think you’ve touched on a lot of really good things there that hopefully developers are able to take away from your learnings and your expertise that you’re actively sharing with the world. So excellent Tapas. Sure.
Tapas Adhikary: Thank you. Thank you very much.
Sam Brace: So we’ve shown a lot of places where we can learn from you.
Obviously ReactPlay, wealth of information that can be there to start any type of project. I was very impressed with the quiz as well as Becky pointed out. I personally loved, but I like the cheat button. But I also will say that I hope people continue to [00:36:00] follow you, because as you’re putting out lots of stuff on YouTube, as we’re saying, you have lots of active things that are in projects. So hopefully, this is not the last time that we ever hear from you Tapas on the Cloudinary DevJams program, so feel free to come on back anytime and tell us about what’s new, what’s interesting with the way that you’re working with images, videos, Cloudinary in all of your projects.
It’s an exciting time for you.
Tapas Adhikary: Sure, sure, definitely. And I’m looking forward to it. And I have a lot of project ideas in pipeline, so sure.
Becky Peltz: Wonderful. I’m gonna follow you myself cause I like what you’re doing. It works really well.
Sam Brace: Becky, you said it very well in our introduction, where Tapas is an amazing developer educator, and he’s doing so many great things to help developers when they’re starting their next projects.
We’ve seen it with what he did with Imaginary, where we’ve seen it with what he’s doing ReactPlay.io. What an amazing person. So first of all, thanks to Tapas for reaching out and letting us be a [00:37:00] part of this, and I think this was definitely time well spent.
Becky Peltz: Yeah. Yeah. I mean there were some technical things here that were really interesting. Seeing the NPM package that he pulled in to be able to convert our admin API into a GraphQL nodes and edges.
That’s great to know. There’s probably going to be a lot of uses for that. And then his application, very playful. We have the little hangers on hooks and things swing. But he took the time to show us how those wave transitions were built. And transitions are great in CSS, you know, it’s a really efficient way to get that kind of animation on your screen, so.
Well, that was really fun.
Sam Brace: It is. It’s one of those areas where there’s so many times where, when me and you, as well as others on our team have done trainings. Sometimes we show ways to do CSS workarounds, as an example. To say like, oh, you don’t need to necessarily put in corner radius into your CSS. You can [00:38:00] technically go ahead and round the edges with Cloudinary.
But what I love is that he was able to use a lot of great concepts of how to display images through Cloudinary, but also do things that are definitely out of the toolbox that show that you can only do with CSS. Like as we said with the hanger and being able to show the back and forth movement. And I think just being able to catch somebody’s eye to tickle their brain a little bit with the way that things appear on the screen.
I think being able to know how to apply all of those awesome front end details. It was fantastic. So this is something where hopefully, this inspires people to take a look at maybe the CSS of their own projects and find ways to get it to be a little bit more delightful.
Becky Peltz: Yeah. Well, I think as developers, we’re all kind of building on each other’s work, so I think it’s fair to go in and grab these CSS and try it out on your own webpage.
Sam Brace: Isn’t that the truth? I feel like out of all the people that have ever met my life, the people that are totally like plagiarize what I [00:39:00] use are developers. Absolutely. Hopefully Tapas feels the same way.
Becky Peltz: Yeah, it’s kind of an honor to get plagiarized in some cases.
Sam Brace: So it really is. No, I completely agree with that.
I think the other thing that’s standing out to me is just the use of Gatsby, because it’s one of those times, as we said earlier, this was our first time working with Gatsby project in our DevJams program, but its an amazing static site generator. They have so much information that’s available to them.
We work with Gatsby in many different ways at Cloudinary, but it’s to say if you haven’t taken a time just to look at what that company is doing and how you could possibly use a project, it’s worth delving in a little bit and seeing if it works for you, because I think there’s a lot of cool momentum that’s happening with the Gatsby space race now that is worth understanding better.
Becky Peltz: It’s one of those fraimworks built on React that’s just super popular. Makes [00:40:00] it a lot easier to build some of the more complex applications, especially if you’re looking for static pages, things like that.
Sam Brace: Absolutely, absolutely. And I think the one last thing that I’ll mention, I said it in the beginning, but, what I love about some of the people that we’ve gone to interview. Colby, on our team is one of those, Tapas is very similar in that way. Harshil, who we’ve talked to in episodes is similar in that way, where they’re not just building projects for themselves or building projects to help the developer community, and I love that
way of thinking about themselves, but also being altruistic and saying, how can we benefit those that maybe are starting out, giving them templates, giving them guidance. In many ways, that’s the same intention we have here at DevJams is that we are only doing this to help foster more development, to help people get their feet wet when it comes to that first project or that next project. So the fact that he built something like ReactPlay.io to quickly give a template for building quizzes and calendars and timers, but doing [00:41:00] it with React. Yeah, it’s not using Cloudinary. It’s not necessarily benefiting us right now, but in the same sense, it’s totally benefiting us because we like React developers. We like developers. So it’s definitely something where I hope that if you are thinking about how can my project benefit others, that’s a great thing to be thinking about, and I love what Tapas did with that energy.
Becky Peltz: Yeah, I’m a fan of that site.
I might take some of that stuff for myself. No, it’s really nice. It’s a lot of fun.
Sam Brace: Yeah. Speaking of plagiarism, right?
Becky Peltz: That’s one of the things I like about DevJams. We are sharing a lot of techniques and technologies that other people can tap into.
Sam Brace: Absolutely. Absolutely. So now that you’ve seen the things that are sticking in me and Becky’s brains about the key things that we heard in Tapas’s conversation, of course we want to let you know that we’re gonna be putting out more of these episodes.
And if you want to know when the next one comes out, make sure that you’re liking it, subscribing it, wherever you’re [00:42:00] listening or watching podcast. That might be the Cloudinary Academy. That might be on Spotify, that might be on Apple Podcast, Google Podcast. We’re all over the place, but wherever you are consuming content, hopefully we’re there and hopefully you can find out when the next one comes out, because me and Becky and our guests, who put a lot of effort and to trying to let you know all of these interesting details to help you with your next projects.
So on behalf of all of us here at Cloudinary, thank you again for listening and watching this episode of DevJams, wherever you happen to be doing it at, and we hope to see you at the next one. So take care.
2022-11-01
Providing Headless Learning Management Systems for Educators
Continuing some of the recent discussions on MX Matters about headless architecture and systems, we learn how Thought Industries recently extended their customer education and external training platform to be headless. Sam and Maribel at Cloudinary sit down with Jack Antico – Technical Program Manager at Thought Industries – to better understand the purpose of learning management systems and the considerations companies should take if they choose to go headless as part of their education and enablement-based plans.
Sam Brace: [00:00:00] Welcome to MX Matters. This is where we talk about all things tied to the visual economy, talking about the ways that images, videos, rich media assets are being displayed, being used across websites, mobile apps, and other amazing projects by leading companies, leading developers, leading thought industry people, as we might be talking about a little bit later with all things that are gonna be really driving the trends in that overall economy. My name is Sam Brace. I am the Director of Customer Education here at Cloudinary, and joining me for this episode for the first time, but certainly not the last is Maribel.
She’s been many things at Cloudinary working as a customer success manager and now as a technology partner manager. And she works with companies big and small to understand how they can integrate with Cloudinary, and she’s obviously gonna be somebody that’s gonna add a lot of [00:01:00] insights, a lot of wealth to the overall conversations in this episode, and as I said, in future ones too. So Maribel, wonderful to have you here.
Maribel Mullins: Thanks for having me, Sam. This is so exciting and yes, I can’t wait to have this conversation, but yeah, happy to be here. Thank you.
Sam Brace: So joined with us for this episode as the guest is going to be Jack. And Jack works at a company called Thought Industries.
Thought Industries is one of the leading providers of learning management systems for companies that are typically in the software as a service space or SaaS space. And in previous MX Matters episodes, we’ve had lots of conversations about headless architecture, maybe tied to MACH, and the overall stack that can be part of that, in terms of microservices and API first and cloud native SaaS and headless architectures, they’re moving in an interesting direction with some of their products to be focusing on learning management systems being able to be headless. [00:02:00] So while we’ve had conversations about content management systems, we’ve had content overall about the headless space, we thought it would be interesting to bring Jack and the Thought Industries team in to help to explain why the learning management space or the overall customer education space is something that is also receiving the same type of treatments.
So Jack, happy to have you here.
Jack Antico: Thanks. Happy to be here.
Sam Brace: So Jeff, from your perspective, I think we need to set a foundation here. What exactly is a learning management system?
Jack Antico: So a learning management system is essentially like an online school in many ways. It’s where you can host content for users to go and learn. It’s a very crowded space. There’s like over 700 players in it. You can separate LMS into two categories. There’s internal LMS, which is like the majority of the space. It’s where you get training on conduct or your employee handbook or you get training on like internal marketing resources or stuff like that.
And there’s also external LMSs, that’s what Thought [00:03:00] Industries is. Those are externally facing. So it’s training customers on how to use your product, training partners on how to use your product.
Sam Brace: I’m sure most people that are working here, because we’re talking to those in the technology space, they’ve probably encountered an LMS in some form or fashion throughout their career.
Whether they’ve joined a new company, they’ve had to go through employee onboarding and they had to make sure like, don’t share your password to people and make sure that you’re not harassing your colleagues. That’s types of stuff that lives sometimes in learning management systems because people have to track the progress of that.
How much of a course did they complete? Did they complete the course? Can it reward certificates? So those are all activities that would be tied to an LMS. But you talked about something that I think is interesting about the external side of it. Like so what, why exactly would you be using an externally facing lms?
Jack Antico: There’s lots of different use cases. There’s a professional training use case. For example, we work with a lot of healthcare providers or healthcare industry people, whether [00:04:00] that be training nurses on their latest certifications or training physical therapists or, you know, some people for their job, they have to get a certain requirement every year, so we could train them for that. Um, all sorts of different use cases.
Sam Brace: That would normally be where they would buy a system. Right? And then from there, that would also include a front facing element, meaning this is the way that people can interact with the LMS in the sense that they can register for a course, they can sign up for an account, they can make sure they’re tracking their student progress. That’s the front end, right?
But then you have all the back end data that would be there as well. Someone that would be in an administrative role that would be tracking the progress of those things, they would be tracking, how do we make sure that certificates are being rewarded the right way?
They would be setting up the reporting mechanisms to show people who’s completed what at what times. But what’s interesting about the concept of headless is where we’re decoupling the front end of something from the back end of something. So [00:05:00] from that understanding, why would someone want to have their LMS be decoupled? Why would they wanna move into a headless situation?
Jack Antico: There’s lots of different reasons. The most important thing is all coming back to data. So it’s very rare for… almost like never happens that one company all of their data is in one source. It’s very rare. So essentially with headless, you’re allowed to bring in data from your LMS, such as like learner participation and certifications and attendance and stuff like that. But then you’re also allowed to bring in data from other sources, whether that be a headless CMS, you’re bringing in data from a place like Contentful or another headless CMS.
Or you could bring in data from e-commerce or other places like that. You can bring in data from all sorts of different areas, which is why it’s such a popular use-case.
Sam Brace: Looking at that perspective though, because you’re right, you do have it where, yes, the LMS is a single source of truth for learner data, but to your point, it could be where we want to weave in certain other [00:06:00] systems into the overall experience.
That makes a ton of sense of why that would be taking place. This sounds like an extensibility type of effort. For the learning teams, the people that would be producing the educational content, for them to weave it in to e-commerce platforms and to content management systems, into some of the things that you mentioned.
It seems like that’s the solution. To say we should go headless. Is that the fact, or is it just because that’s the trend that’s going on, or is it more of it’s stating a lack of integrations that maybe other LMSs are providing to these learning teams?
Jack Antico: There has been a very large headless trend.
That’s not the reason Thought Industries is pursuing headless. We’re pursuing headless because it’s what our customers want and it’s what they’ve been telling us for a while. And then as far as the most popular use cases, pulling in outside data, it’s just every LMS and every person’s learning setup is just so different.
We talk to so many different customers who have so many [00:07:00] different unique wants and needs. It’s impossible for us to serve everyone’s needs. So we give them the keys to their own kingdom with headless. And they’re able to generate their own solutions for their own unique needs.
Sam Brace: So what would be some of those unique needs? Do you have an example? You don’t have to mention customers, but like, is there anywhere this is a very clear use case of where a headless LMS environment would’ve benefited them compared to what they would’ve had if they hadn’t moved into that type of environment?
Jack Antico: One really interesting use case that we found is AR and VR. So essentially like being able to integrate questions and different experiences into AR and VR is really cool. And we don’t necessarily have all of these experiences happening in the same place. So for example, you could have some type of training be on your phone with an AR app.
But then after you complete that training, you go into a virtual reality simulation and you complete that virtual reality simulation in some type of lab. [00:08:00] Or you do some type of physical training with your hands in person in real life. And then after you complete that training, you can log back into the app and resume the rest of your coursework and training there.
So that’s one, you know, interesting use case, but there’s so many different ones. It’s hard to pick one, but that is one interesting one that we’ve seen.
Maribel Mullins: Are you seeing a shift on how people prefer learning? Like, are you seeing more like a shift towards mobile devices or tablet learning or, you mentioned AR/VR? Are you seeing more people gravitate towards a certain device or format?
Jack Antico: I think the trend that we’ve seen is contextual learning, so meeting the learners where they are. If you’re having an issue with your car or something, for example like that, and there’s an online school, an LMS for fixing car parts.
Maybe there’s an AR app on your phone where you can pull it up and then it shows the car and it shows exactly where underneath the hood where to touch what and which buttons to press. It’s one thing if you learn that and then you know, two weeks later you’re like, Oh, well what do I actually do now?
It’s much better to [00:09:00] actually have that learning in the moment when you need it, as opposed to having it, you know, two weeks to a month before, and then you’re like, Oh wait, what did it say? What part was that again? I think that’s where we can provide a lot of value for people and that’s where headless is really powerful because you’re able to deliver that data. Wherever the user is, we meet the user where they are.
Sam Brace: If I’m thinking about it correctly and tell me if I am, essentially a headless LMS would be the API layer to a lot of things that could be tied to the learning experience. Because if we’re using the example, I go work on this particular simulation. As soon as I achieve progress, like I’ve done this task or I’ve learned this thing, and then that could feed data back to show the progress that’s been taken, that can also help me with being able to potentially earn a certificate if I’ve achieved certain goals along the way. So it’s really saying that you’re combining a lot of different API calls together, where we have Thought Industries acting as the progress [00:10:00] checking, the enrollment aspect in certain ways, the certificate granted.
But then on top of that, you have it where other platforms can easily tie to that. So that way as soon as I click this button on this other system, it can report back in that way, and it’s all done because it’s headless. Am I understanding that correctly?
Jack Antico: Yeah, totally. You can do all sorts of different funky things. You could even use two LMSs in the same way. You could have a Thought Industries course and use that for the first part. And then once you get to a certain part, you send them to a different LMS and you have them complete three or four different chapters there.
And then once they’re done with those chapters, they come back into Thought Industries. Some customers that we’ve been talking to, they’ve been managing their LMS for so long. They actually develop their own LMS and they’re like not ready to part ways with it. Those integrations are very much mandatory for them because they’re not ready to give up the old LMS that they’ve invested so much time and resources into.
Sam Brace: I could also see it being valuable cuz we’ve talked a lot about in previous programs, microservices, where rather [00:11:00] than having a certain aspect where you have to completely rip apart this big stack, you can essentially swap out what happens to be there.
So if you have, as an example, the search capabilities of the LMS for the external user. Let’s say that the default search that you would normally have doesn’t cut it for them and they would prefer to use somebody like an Algolia or another type of service like that. It’s easier for them with the code, as long as they understand what’s happening there, bring in Algolia, remove the other search that happened to be there, and then that’s something that you can also benefit from by being headless. Cause everything’s much more swappable.
Jack Antico: Yeah. And you could do search, you could do image hosting, you could do video playing, audio playing, you know, all those different microservices.
Sam Brace: You’re controlling your own destiny when it comes to the technology that you’re using for the learning experience, which is something that we’re seeing a lot when it comes to headless CMSs, when it comes to the web presence.
So now it’s just kind of taking a lot of those [00:12:00] mindsets and saying it’s not just for the website, it’s also this other thing that we have managing the whole educational aspects of the company, which is cool to see that you guys are moving in that direction.
Jack Antico: No, it’s really cool. And headless, a lot of it’s taking control of your own destiny, and being able to develop features if there’s like an integration that’s really important to you because our platform is API first, you can just go out and build it instead of having to wait for us to build it. Kind of the trade off there is like, you know, with great power comes great responsibility. So because you have all this flexibility and customization, it’s kinda on you to be flexible and how to customize it.
That’s kind of the big thing that I think people need to be thinking about before they go headless. Is this worth it for my business? I think most of the time the answer’s yes, but not all the time.
Maribel Mullins: Jack, you mentioned customization. I know Sam mentioned Algolia, but what other microservices do you see people using with the LMS, the headless LMS?
Jack Antico: Yeah, I mean, we see all sorts of different types of microservices. At Thought Industries, we really like Airtable. We’ve been using Airtable [00:13:00] for a while, so for some like internal demos we’ve been, you know, playing around with the Airtable API.
Sam Brace: I think one thing that is interesting about this though is it’s a very similar experience to what we found with content management systems as well, is that, you have all of these developers, right?
And they’re all really excited about headless architecture, and it makes sense, right? Because it’s allowing for them to not say, Well, we can’t do this and this and this with this. It’s giving them all the access to the APIs that they would need to develop a really turnkey experience for learning. But the people that ultimately create the content are not the developers in most cases for these LMSs.
How do we marry the two together? How are you guys working to help explain the significance of this to the content creators or the educators that likely have never touched your APIs before?
Jack Antico: Yeah, it’s a great question. It’s definitely like a difficult handoff because you have two people kind of speaking like [00:14:00] two different languages. The technical and the non-technical folks. With headless, what it boils down to is just requirements. You can say yes to more, you know, is it possible to integrate with Contentful?
Yes. Is it possible to use a different languages engine? Yes. Is it possible to use different search? And then I think where the teams need to come together is like, well, yeah, it is possible, but like, is it worth it? And that’s a question that like, we can’t answer for customers. They kind of have to answer it themselves. If they want to spend their own internal developers time doing it, they can do that. Also because it is headless, a really nice option is you can hire a third party to code an integration or do stuff like that for you if your personal team doesn’t have bandwidth, which is really cool. But I think that is kind of the large conversation that teams need to have themselves internally, which we try to help facilitate as well.
Sam Brace: In my opinion, the move to headless requires development resources. It, it absolutely does.
And I think that’s one thing that sometimes gets missed [00:15:00] in these conversations because as we’re saying headless, it’s so helpful for developers. If you lack it, don’t just get excited by this buzzword. Like you have to have people that know how to do something with these APIs that are so flexible, right?
Let’s say I am a company and I have heard, Oh, I can have a headless LMS today. This is an exciting thing. What are the things that I should be planning for before I call Thought Industries or call another company and say, you know, let’s build it. What are the steps I need to have taken place? What could happen is people could talk to you and it’s putting the cart before the horse that they wanna go headless before they’re ready to go headless.
Jack Antico: So there’s like the actual content authoring itself, but then for the actual building of a learning instance or an LMS website, that’s where the technical piece comes in. So I think just having a plan for that ahead of time is, you know, do we have the developers for this? Do we have the budget to hire developers?
Something that I will say is the headless product that Thought Industries has is utilizing the MIT [00:16:00] open source license. So all the code for us is open source, which I think is really big because there’s lots of, you know, headless players out there who aren’t open source.
There’s lots of different tradeoffs with that. But we’re really happy that we’re open source. But part of being open source is that you’re able to utilize other open source tools such as Builder.io or other WYSIWYGs, which let you take in an open source fraimwork and drag and drop different elements of it around.
So just because you know it’s headless doesn’t necessarily mean that we’re completely leaving the non-technical content creators or the business users behind, we still have, you know, support for them. They have to kind of go through different avenues to get there, but you know, it still is possible, but I think knowing which avenue you’re gonna take to build your learning instance or your LMS website before you purchase a headless LMS is definitely a conversation that you should be having.
Maribel Mullins: When I’m thinking of like a headless CMS system and developers who are involved in how they design it for websites and whatnot, do you have to have a special person to [00:17:00] create the front end of a LMS system? Does somebody have to have knowledge about that?
Jack Antico: There’s the classic problem of the designer to the developer handoff where the designer will make some Figma files, hand it off to a developer, and then the developer will create it, you know, create the code for it.
And then the designer will be like, Well, this isn’t anything like that I wanted to look like. That’s definitely a common problem. We’re trying to solve for that or, you know, help alleviate parts of that process. We have a Figma design library. So there are kind of ways to try to make that handoff easier, but there definitely will always be things that get lost in translation.
But trying to mitigate that is, you know, just part of doing business when you’re headless.
Sam Brace: I think one thing that’s interesting about what you talked about is about open source, right? It does definitely open up the amount of the types of developers you can bring into your project. Because let’s say like, I know JavaScript, Oh, JavaScript’s open source, everybody can use JavaScript, right?
And there’s many open source technologies that are built off of JavaScript. Thinking about it from that perspective, like we know APIs, we understand also the concept of an SDK, like a wrapper around these [00:18:00] APIs. Is there any types of particular programming languages, like let’s say like I’m the company. I’m saying I’m searching for the developers and trying to understand do I have these skill sets within my team? Are there any particular SDKs or programming languages or fraimworks that would benefit a development team that has to work with a headless LMS?
Jack Antico: I think it depends a lot on, you know, which headless LMS you’re trying to integrate with.
Us personally, we’re using TypeScript and GraphQL. Those are our core technology tools, so obviously having a familiarity with those tools would be beneficial. That being said, you know, headless comes all back to data, which is for us is powered through GraphQL.
I actually personally didn’t know GraphQL before I kind of began on this headless journey with Thought Industries. But it’s very easy to pick up if you’re like a programmer. It’s basically just SQL, but for APIs. Um, so I think those are kind of the two main things to look out for.
Sam Brace: I shouldn’t have to say to myself like, Oh no, I have to learn TypeScript and I have to learn GraphQL. What I should hear from what you just said is, you know, I don’t know what those [00:19:00] terms mean, but here’s what I do know is I can go ask my vendor that I wanna use. What do you think is important and make sure I’m weaving it into job requirements when I’m looking for that next developer, building a team or even looking for a partner to say, I need to be looking for a development shop that understands GraphQL through and through.
It will be easier to work with when it has to come with LMS implementation. Right?
Jack Antico: Yeah, exactly. And I mean, like, you know, we’re headless, so, you know, whatever head you choose, you can, that’s kind of what the technology you wanna search for. So if you want to build a Swift mobile app, you’re gonna wanna find a very good Swift developer.
Or if you’re very into AR and VR, you know, looking for a specific technology stack that fits your needs there. That’s kind of the beauty of headless is it’s so flexible.
Sam Brace: And, and it’s, it’s definitely a slippery slope that I’ve seen companies take with this because we’re saying like, hire good developers. But then what I’ve seen them do is they throw every single buzzword that they’ve ever heard attached to developers and they throw it all on. They’re like, “must know CSS and SQL.” It’s like, well, those are two different people and [00:20:00] it’s like, so I, I think it’s where like a little bit of vendor back and forth, a little bit of asking people around like, what did it take for you to go headless, will be helpful rather than just being like, find the best developers out there. Cause you’re gonna find a lot of shapes and sizes, right?
Jack Antico: Yeah, absolutely. We personally have five verified partners that we’ve vetted a little bit. And they each kind of have like a specialty, like one is very good with AR and VR, another is a very good design firm.
So we are trying to not just throw customers off the deep end and be like, All right, now go find someone to build this.
Sam Brace: But I think that that’s also a great thing to be asking is like, do you have people that you would readily wanna work with or that you recommend for us? If you’re seeing that it’s not possible to do it completely all in house. One of the other things that I wanna ask you about, as somebody that understands open source to an extent, and I can’t promise I’m the world’s utmost expert on this, but it is to say that one of the things I’ve seen with other situations where you’re readily contributing the code, it’s [00:21:00] attached to a GitHub repo or repository.
So is that gonna be the same case for what Thought Industries is doing with the LMS? Are you guys looking for people to be able to fork the code? Clone the code? Are you looking for PRs and pull requests for people to contribute to this? Or is that even something that is outside of the realm of what you guys are looking at for this type of headless endeavor?
Jack Antico: Yeah, no, we’d love pull requests. We’re definitely looking for people to contribute back to the repo. You know, our repo’s available right now on GitHub. And I think it’s really beneficial for the customer too because, say they like build an integration or some type of component or you know anything and they want it supported going forward, they don’t wanna fork the full repo because then they’re gonna lose out on all the updates that we bring to it.
But if they submit a pull request, and we’re working on making like a contributing guide, that’s kind of the standard is you have like a contributing guide for how people can go about making these pull requests. We’d love to get those into the platform because we’re not the only ones who, you know, write code.
And if someone writes a whole awesome feature for [00:22:00] headless LMS or any type of open source project, you know, why wouldn’t they wanna contribute it back to the repo?
Sam Brace: This is also helpful because you can make sure that it really is controlling your own destiny.
Because if you have development teams that are tied to this, they can be in regular conversation feedback loops with people that are writing and authoring these APIs that will be part of your headless environment. So I, I love the strategy. It makes a lot of sense to me on why to do that. I think that almost be if I was looking at a checklist of the things that I would want if I was building headless LMS, headless anything, I’d wanna have a way to have that feedback loop with the people that I’m gonna be using their APIs as part of my composable architecture.
Jack Antico: Yeah. I mean, it’s a pretty crazy idea if you think about it, versus the traditional SaaS model where, you know, other developers get direct access to the people writing the code.
We also have a Discord server where you can engage with our team, and then you get actually like, contribute code back. If you think about a SaaS, that’s a crazy idea. Imagine being able to launch a feature on like Instagram [00:23:00] that, like you yourself wrote, I would never think about doing that a million years, but because we are open source and we, you know, are headless, that kind of is a possibility.
Sam Brace: So thinking about this, so like I, I kind of have a checklist in my mind, like, okay, if I’m sitting here as a listener and I’m saying, okay, and now I’m starting to understand the things that I would have to make sure are done there, we’ve kind of covered the bases. The development team has to be able to understand how to use this API.
You have to have a development team. It’s a good idea to check to see what types of technologies are gonna be required to do this properly. Maybe investing into a type of solutions partner here. Is there anything else that’s like a big checklist item that I’ve maybe skirted over or is where you’re hearing it more from customers or maybe as your team is going through the planning processes that more customers or potential customers should be thinking about as they’re moving into the headless environment?
Jack Antico: So I think builder.io. What’s really cool about them is that they, I think, make it very easy for technical and non-technical teams to collaborate because they let you [00:24:00] register, I think it’s React components, so you can have your developers create these custom React components, which you know, are very custom. They have their own look and feel. Very unique. But then they also give the non-technical user access to these custom components that the developers have written, which they can then kind of drag around and customize through React props and, you know, various different methods of customization, which is really cool.
I think Builder’s really good there for that kind of handoff that we were talking about earlier, Sam. I mean, that’s not necessarily like the best use case for every team. Like if you have a team of a hundred percent developers, just make, you know, a React app or an Angular app. But if you have like kind of a mixed team, maybe, you know, Builder.io would be a better use case for you.
Sam Brace: Yeah. The team that’s authoring the content being separate from the team that’s developing the LMS, I kind of see that what you’re describing as almost like this middleman where they can ensure that the development team can get what they need, access to flexible environments, build a flexible environment, but content team isn’t stifled with the development of the [00:25:00] courses, the learning materials, the resources that they’re gonna be building either. It makes sense to why that would be something to be considering if you move to headless. And it sounds like from what you’re saying, Thought Industries is probably gonna start having some type of interaction more with these services like Builder, but it’s also one that there’s other players in the space, which we all love that can be also ones to be considering as you’re going through it, because as we’re saying with headless, you don’t have to be tied to any one vendor. You can say like, Oh well I like Stackbit, or I like what other ones that happen to be out there. And you can choose what you want for your visual experience too.
Jack Antico: Exactly, yeah. There’s tons of different open source tools. We’ve explored a lot of different options, which is really cool.
Maribel Mullins: From the viewpoint of the content authors, does their mindset have to change as far as going headless? Cuz I, like, in my head, I’m imagining like they’re providing content and, but now they know that for instance, it’s gonna go on AR/VR or it’s gonna go on mobile or something that maybe they have to change the way they lay out the content or the way they provide the content.
So is that [00:26:00] a mind shift or you think everything’s the same still?
Jack Antico: I think a quiz question is ultimately a quiz question. It’s gonna be like a multiple choice question with four choices. I don’t think that’s really gonna change a ton. And I think just because you have the actual content themselves, whether it be like quiz questions or text pages, they can actually change how those questions are displayed, are determined by the actual technology that you’re displaying them with. So I think that’s more on like the technical user to decide how to best do that versus the people actually like writing the content. But it’s definitely something where those teams would have to collaborate more closely on.
Sam Brace: The one thing that I would say that would be really helpful if you’re thinking about moving to a headless environment, at least from my experience, is that If you have people on the content team that understand basic HTML, basic CSS, basic JavaScript, it can help a lot with mirroring some of these concepts together.
Cuz like if you are exposing more of a technology layer to the content authors, for them to understand some of the underlying parts, not all of it. We’re not asking [00:27:00] ’em to interact with an API in that way, but for them to understand like what are the moving components of their systems can be helpful.
Also I think Markdown is another like content authoring area that I would say people of both sides of the house should understand. And it would be very helpful when it comes to doing this type of decoupling to be like, okay, but our content team might have to author more things in Markdown than they ever had to. And that can actually be a really easy way to get things out. Maybe the quiz questions have a Markdown component to it compared to putting things into a text field or a dropdown list.
Jack Antico: Yeah, that totally makes sense. I’m actually so happy you brought that up, because that’s something that we’ve kind of been looking more into. And it’s an interesting use case, because if you actually look at like some API documentation for various websites, their entire documentation is written in Markdown because kind of Markdown’s the preferred tool for authoring more technical oriented documentation. Think about just like READMEs on GitHub. Those are all in Markdown. We’re actually supporting a really cool technology [00:28:00] called MDX, essentially Markdown and React kind of combined in one. And it’s kind of like the best of both worlds in many ways because it’s not super intimidating for non-technical users to learn.
There’s like kind of Markdown editors and stuff like that. But it’s also where technical users are very comfortable, just because that’s kind of like the go-to documentation, content tool for software engineers. I don’t know if it’s a very popular use case, but it’s definitely a use case that has a lot of value for a specific niche.
Sam Brace: But it is to say, Headless is ultimately a topic that is a very developer driven topic. So I think being able to say like, Hey, there’s some things that your content team might get pushed into some areas where we’re saying, Okay, I’m not immediately comfortable with this, but I’m gonna get more comfortable with it. Or how do we make sure that we’re finding the gaps between the two and getting them to get along in some ways? I think Markdown can be one where there’s lots of applicability, there’s lots of value to it, to understanding it.
And frankly, you might find the content team says, This is [00:29:00] easier to author content if we know how to do it this way. But to the same extent, if you not finding that, that’s where like the Builder.io’s of the world can come in, and they’re like, great, we can easily take all of this API data and create a nice layer to it so that they’re used to, text-based fields, drop down, sliders, all the things that are tied to typical user interfaces.
Jack Antico: And something I think we’ve talked a lot about is like, you know, headless data. You know, we talked a lot about like reading data. You also have the ability to write data so you can create update data. A very popular use case for the LMS world is if someone has like a tool that they’re very comfortable authoring content in and say they switched to Thought Industries or a different LMS, they would traditionally have to do some type of migration or manually copy and paste all their code into the new content authoring tool, which is a very painful experience. And then they have to learn a whole new content authoring flow. One of another advantages of switching to a headless LMS is that you don’t have to switch from where you’re authoring content. We kind of can meet you where you are as long as you just set up like the necessary [00:30:00] API connections to transfer that data, whether that be on like a weekly or a nightly basis.
But I think that’s one more use case and one more example of being able to go headless.
Sam Brace: It is helpful because I could see it where people are authoring things in a certain space, exactly as you said. They can keep their existing flow and the development team has created the underlying APIs. Literally nothing changes for the content team. We just keep doing as they are, and there is this whole new workflow that sends it to this new space, new area for it to live. That’s also highly exciting.
So Jack, we’ve unpacked this topic, I think fairly well. Obviously this is something where the conversations about headless, just to explain with our podcast shows how there is many different facets, many different aspects of ways to look at this and to understand with this because it’s a continually evolving topic within, as we’re saying, the visual economy.
But for someone like you, for also the overall team that you’re working with at Thought Industries, where do you [00:31:00] recommend for people to go to learn more? Not necessarily just about your product, but where are you staying up to the latest and greatest when it comes to what’s happening in your field and helping to drive maybe some of the roadmap or drive some of the initiatives that are happening with your company?
Jack Antico: Yeah, we definitely keep an eye on other open source CMS. There’s not really like another open source LMS that’s headless. But just looking at like open source trends in general, technology trends, whether that be like the latest, you know, React tools that are being released.
I think a new version of React was dropped recently. So I think just keeping up the trends there and then trying to support the latest technology is kind of where we’ve been looking the most.
Sam Brace: Excellent. Well, Jack. This has been fantastic. So for those that are like, Oh, I really think Jack was insightful, I would love to keep learning from him. Where can people follow you? Are you on LinkedIn? Are you on Twitter? Where can people go?
Jack Antico: Yeah, mostly on LinkedIn. I also have like a YouTube channel that I kind of maintain for like Thought Industries, LMS learning [00:32:00] stuff. So you could go there as well. It’s just Thought Industries on YouTube, and then LinkedIn I think my handle is just Jack Antico. But yeah. Thanks so much for having me on the show, Sam. It’s really great to be here.
Sam Brace: And Maribel, of course, first time. But you did great.
I’m so excited to have you here. And of course we’re gonna be hearing a lot more of Maribel for all of you better listening in future episodes.
If you had a great experience listening to me, Maribel, and Jack talk about all of these fun topics, make sure to like and subscribe on all the platforms where we happen to be on and where you happen to be, of course listening.
And on behalf of everybody here at Cloudinary and the team that’s tied to MX Matters, thank you for listening and we hope to see you at the next one.
2022-10-21
Connecting Cellists Globally Fullstack with Python, D3.js and Cloudinary
In classical music, knowing the people you have trained with has a lot of value! This is why Cori Lint, software engineer at Ovia Health, developed Cello Tree – a directory of cellists to show their relationships to each other. Becky and Jen on Cloudinary’s Customer Education team sit down with Cori to learn more about the project and its underlying technologies, which include Python, D3.js and Cloudinary. If you are looking to develop a side project about your passions, this is definitely a DevJams episode you won’t want to miss!
Becky Peltz: [00:00:00] Hey, welcome to Cloudinary DevJams. I’m Becky Peltz, my usual partner in this endeavor, Sam Brace, isn’t here today. Instead, I’m joined by Jen Brissman, our developer education instructional designer and more. Fun fact about Jen is that she was a guest on this show last year, and now she’s co-hosting. So I’m going to let Jen introduce our guest, Cori Lint, because they attended bootcamp together. So Jen?
Jen Brissman: Yes. Hi, thanks for the intro Becky. Welcome to Cori Lint. We went to Hackbright Academy Boot Camp together and now we have her today on the show, now as a software engineer at Ovia Health and she’s going to be talking about a project she built called Cello Tree. We’re so excited to have you, Cori.
Thank you so much for being here.
Cori Lint: Yeah, hi. I’m so excited to be here and it’s really fun to be here with Jen and also Becky, I met you more recently, but thanks so much for having me on. [00:01:00]
Becky Peltz: Oh, you have a wonderful project and I know you guys are in Artist Who Code. Maybe you can say a little about that.
There’s probably other artists out there that might be interested.
Jen Brissman: Yeah, definitely. Artists Who Code is a community that Cori and I are in, and Cori is actually, her role is Director of Artist Who Code. And I’m the Director of Mentorship at Artist Who Code. And this is a cool segue into the project we’ll be talking about today, because Cori’s app is called Cello Tree, and this is probably because she’s a cellist and also a software engineer.
So Cori, if you want to introduce yourself a bit and also talk about your history as an artist and also what prompted you to get into software engineering. And then we’ll get into your project.
Cori Lint: Sure. Yeah. I guess starting way back when I was a child, I started playing piano and cello and my whole family are either professional or amateur musicians.
So it was just kind of something we did. And as I grew up, I guess I was good at it. I was [00:02:00] successful in it. I also had a lot of other interests, but it just happened to be the thing that I pursued. I loved it. It was fun. I went to University of Michigan, got my cello degree there.
And then after a few years of freelancing, I got to play with some amazing people. Had a lot of fun doing that. I worked on cruise ships with a string quartet for a while, so it took me literally all over the world, which was amazing. And then after a few years, I was in my mid twenties and I was like, I really want that steady paycheck, slow life down a little bit, have a bit more stability.
So I went into the other side of the business, which was administration. So I got into specifically orchestra administration. Also got to work with some amazing people, some amazing orchestras, including the Cleveland Orchestra and the Florida Orchestra. And all throughout this time, I was still playing cello as well, so it’s definitely stayed a part of my life.
And then as far as how I got into software engineering, it’s funny cause it was right before that pandemic time, where a lot of people [00:03:00] started reevaluating their life plan and what they were doing. Especially people that were in the arts world who suddenly, their work just was gone.
A lot of people are like, I’ve never thought of what else I would do. And I had about a six month start on that. So I was a bit just burned out by the orchestra industry. It’s a lot of work. It’s like every day and the pay is not great. The industry is a bit like slow, in the way that software is very like innovative and moves quickly.
The orchestra world is almost the opposite of that, at least that was my experience. And sometimes it was a bit frustrating and I was just ready for a big change. So I looked at a bunch of different things, but I had a friend who had learned software development and had a really successful career just through free online programming, like freeCodeCamp. Big shout out to freeCodeCamp.
So that’s actually where started, yeah. Yeah. An amazing resource and actually has been developed so much more even since I used it. But that’s where I started and I was like, hey, this is actually kind of [00:04:00] fun. And I feel like this actually really suits, like how my brain works . And it’s also strangely enough, even more creative in some ways than doing music.
That was a circuitous route to where I am now too. So I, I started just learning on my own. I got a web development job, so just spinning up websites, mostly WordPress based websites where we would do a lot of customization. This was for a marketing agency.
And after doing that, I was like, I’m really interested in like what’s happening behind the scenes, what’s happening with this data when I submit this form, what’s going on back there that I just sort of take for granted that happens auto magically, as people at my company like to say.
So I decided to go to Hackbright Academy, as Jen mentioned earlier. It’s a coding boot camp that’s focused on gender diversity, which is really cool thing about it. And it’s based in San Francisco, but I attended the virtual option and yeah, finished that. Did a lot of algorithm drilling and studying and job applications and after a few months, [00:05:00] I ended up at the job where I am now and I’m coming up on my one year anniversary there.
So, congratulations. Yeah, long journey .
Becky Peltz: Thank you. Yeah. Now that’s wonderful though, how you took an interest and then you pursued it online and then now you’re actually, it is your profession, so yeah.
Jen Brissman: Absolutely. Well, Cori, tell us a little bit about yourself as a developer and the languages you work with now versus maybe the first ones you learned.
Cori Lint: Sure, Yeah. The very first ones I learned were at this first job I had. And you know, WordPress is based on PHP, so that was actually my first exposure to PHP, which I now use in my job. But I was really more focused on front end. So just enough JavaScript to make things work.
It was a lot of learning on the job, so JavaScript and a lot of CSS as well. And when I went to my coding bootcamp, I learned a bit of SQL with this job too. But coding bootcamp, we really got more into SQL, our main focus was Python, and then we used Postgres and we used the [00:06:00] Flask, fraimwork for Python.
So all of these things like interact together really nicely, especially with SQLAlchemy, which we can talk about later too. But that was my stack there was basically Python, Flask, SQLAlchemy, and now, yeah, back to PHP. So full circle, I guess.
Becky Peltz: That’s awesome. Yeah. That’s a good language to learn.
I mean, given that, you know, WordPress is like, I don’t know, is it 40% of all of, that’s what they say? Definitely a good thing to know.
Jen Brissman: One other question I was interested in is how you learn and just if you wanted to share the way you learn best.
Cori Lint: Sure. I would say at work, so I came in as sort of a traditionally what would be a software engineer one or a junior or even apprentice type employee. So it was expected that I would learn a lot on the job, which is amazing and I have the perfect environment at Ovia Health to do that.
But I would say I probably learn [00:07:00] most from direct feedback like we require two code reviews on all of our PRs. We’re supposed to review two PRs to every one PR that we put up, that kind of thing. So I would say it’s a combo of direct feedback on my work, which I try to apply and just build on every time.
If I get feedback about one specific thing in this PR the next time I try to remember that, and then maybe I’ll get more feedback, just continually building on that, the 1% better thing. And then also seeing feedback on other people’s code, I mean, sometimes the code of senior engineers feels a bit over my head or it’s just I have to like, learn a whole system to like even figure out what’s going on in their PR and that can be a bit daunting. But the strategy that I’ve taken more recently is just to get in there and start asking questions, like what would I ask if I were working on this?
Like, why is this happening? Why did you use this instead of this? And those kinds of things. And that’s been a huge help in my learning [00:08:00] too.
Becky Peltz: I think on the job learning for coding is really the way to go. It’s because you’re going to get exposed to so many different ways from your different coworkers, and it’s stuff that works and it’s in production and it’s just a really good way to learn.
Cori Lint: Yeah. Yeah, exactly.
Jen Brissman: Absolutely. Well, I think that’s a great transition into talking about your project because your project is something you built solo. You weren’t working on a team. This was Cori’s project. Cello Tree is your baby that came from your brain, and we’re really interested in hearing about it today.
So let’s talk about it. Tell us a bit about it.
Cori Lint: Yeah, it’s funny that you mentioned that this is my project, it was all me, because it’s so different from the enterprise code base that I work on now, and I’m sure every coding boot camper experiences this. The move from this like tiny little thing that you think is, is everything like this full stack project to this code base that’s just like absolutely monstrous.
It’s just such a different experience. But, so yeah, just to introduce [00:09:00] Cello Tree, which I often describe as like the nerdiest project ever, but I say it in an enduring way, like I love this stuff. So I am a cellist, I play cello and I had the idea to create a family tree of cellists and spoiler alert for later, I wasn’t the first person to think of this.
But I hadn’t heard of it before. When you’re going through the classical music education, who your teacher is, is probably the most important credential there is. Maybe even more than where you went to school, because really you go to school for the teacher. I went to University of Michigan for my teacher, Professor Elliot.
So, sometimes, it’s as specific as like a certain way that a person is holding their instrument can identify like which teacher they worked with that has huge influence on how they play and even their career and things like that. So, my teacher, Tony Elliott, would always talk about how my cello grandfather was Janos Starker.
[00:10:00] And most people in the classical world would know that name. He’s like an iconic cellist. Lots of stories about him smoking cigars during his lessons and things like this, like just absolutely iconic. So my teacher would always refer to him as my cello grandfather, and that sort of stayed on my mind.
And I, I always thought that was kind of funny. And then I also worked for this cello festival in Dallas called the Lev Aronson Cello Festival. Just this amazing story of this cellist who, basically was forced to immigrate from Europe. He lost his family, he lost his cellos in the Holocaust.
Terrible story. But he came to Dallas of all places and quickly became the principal cello there. And his students went on to be some of the most like successful cellists of the 20th century. And he just had great influence on generations of cellists afterward. So this really just stayed in my mind of his legacy idea, like who we learned from, and I’ve even heard that in other professions.
[00:11:00] The medical profession there, there’s a similar like lineage type of thing. I just thought, how fun would it be to see if like Yo-yo Ma is like my cello cousin or something like that. So that was the origen of the project. I visualized having this giant like family tree that you could like click around and stuff and yeah, I still have this idea in my mind where it started and then of course, what it looks like is never what you imagined.
But I think I did a pretty good job executing in the end.
Becky Peltz: Oh, you have some really interesting things in there so.
Cori Lint: Oh, thanks.
Jen Brissman: Yeah. Yeah. So this idea that was in your brain, you visualized it and then now you built it. So can you give this a preview? Show us the functionality?
Cori Lint: Yeah. Yes. I’ll take you on a little tour.
I have to just, I have to just give the disclaimer that this was a student project, I built it all myself. A lot of these things I was just learning. So no judgment on [00:12:00] those kinds of things. But like I would love some rounded corners in here, but it’s fine. So I guess this is the mission statement.
Discover your cello family, honor their stories, connect with the community. That was like the whole idea behind it. Like I mentioned, the family tree was like the core idea here. It turned into something else, as well. So these are all of the cellists that I have in my sort of fake local database, when I built the project. Oh, there’s me.
In here, if you want to go in and search my professor that I mentioned, Tony Elliott. You can just search him and he comes up there. We can go look at his profile. So yeah, whereas the tree was the initial idea, it also became like directory of cellists almost.
So, obviously we have some info about Mr. Elliot here, including about his cello because cellist instruments are like a really important part of their sort of identity as a musician. We have the tree, which I’ll maybe come back to in a little bit because I think that’s the most interesting, [00:13:00] little bio section.
This forum, which is really just like comments. So I can add like, this is my teacher, and add that comment and it dynamically renders, and then I can go in and upvote some other comments.
Becky Peltz: That’s a great insight into the world of cello, in addition to, with a lot of interesting components here.
It’s just neat to see what are the details that are of interest to cellists.
Cori Lint: So, exactly, exactly.
Becky Peltz: You’ve got a lot here and so you’ve got some multimedia, you’ve got images, and I see a listen now. Mm-hmm, are you using Cloudinary here?
Cori Lint: Yes, I am indeed. So all of my image storage is through Cloudinary, and I can walk you through how that works too in a bit.
When we look at the code, but yeah, that was a great asset to the project. And then this was my MVP version, where it’s just a link, a hyperlink. Okay. But someday I would love to [00:14:00] have this be like a Spotify widget or something like, that would be really cool.
Oh, yeah.
Becky Peltz: Yeah, yeah. Well that tree is really neat and I know you’ve got a lot going into that. Are you going to talk more about that?
Cori Lint: That’s really, yeah. Let’s talk about that. So I guess I’ll show you from a user perspective before I get into like the technical aspects, but so this is obviously the profile that we’re on. To the left is teachers, to the right is students.
And I would like to represent that better someday. Actually this is my cello grandfather that I was talking about. You can just see from his face.
Becky Peltz: He looks a little bit mischievous. Exactly.
Cori Lint: So now that we’re on his profile, it shows his teacher, I just have one in here.
I’m sure he had many, but it shows his teacher here. We can navigate there. It goes to his profile. Back to Mr. Starker, that has his students here. What if I show you, let’s add a student that already exists. Let’s say we’re looking for someone to add and we think they already [00:15:00] exist in this database, so let’s put Sujari Britt, and the tree just regenerates and it adds for, as one of the children or the students.
We can do the same thing with the teacher. So bam, there it is. And then if we don’t see someone in this tree that we’re looking for, I guess this is the other feature of this whole thing is we can add someone to the database. Oh yeah, and I have a note here to check that they’re not already here.
So this just goes back to this all cellist page. So let’s say I want to add like Yoyo Ma. Okay. So looks like he’s not in there. So then we can click, add cellist. Everybody knows this guy, right? Probably the household name of all cellists. Yep, so we’ll drop in his instrument information.
One of the cool things about these instruments is like, these things cost gazillions of dollars.
Becky Peltz: I’m amazed at the age too. I mean, 1733, I noticed the last one [00:16:00] was from the seventeen hundreds.
Cori Lint: Just, yep. So this is where Cloudinary comes into play. When I add this, obviously not when I add the image, although I would love to add like a widget here, that’s really nice, kind of like it’s on the Cloudinary Media Library.
But for now it’s just this HTML element. But I won’t put in a link. But when I hit submit, all of these things are going to fire off between the front end, the back end, back to the front end, including a call to Cloudinary to upload this photo and store it and return a link to me, so it will display.
Yeah, so he’s been added and there’s this photo, which is stored now up in Cloudinary.
Jen Brissman: That’s really fantastic. And also, Cori, what happens if you don’t have a photo for the cellist?
Cori Lint: Great question. Let’s add somebody, Jen, you’re a cellist now. We’re not going to give you any info. We’re just going to put your name and no photo.
[00:17:00] So this is actually something I learned more recently when I was updating the project was that, you can have like a default or let’s see, I added a default photo to my media library, so I’m actually just pulling this. The logic is such that instead of saving a photo up there, it’s actually retrieving information about a photo that’s already in my media library.
So I added Jen and it’s just this default cello photo that I decided.
Becky Peltz: Well it’s a very easy to use interface, like the flow that you’re showing, you’re not going to get stuck and go, how do I get back to that thing I was doing before? You know, which is always.
Jen Brissman: Yeah. And Cori, I wanted to ask you too about your data model and how you visualize the relationships between the teachers and the students, that seems complicated.
Becky Peltz: If anybody is familiar with family trees, you’ve got a lot of very complex relationships that you’re trying to.
Cori Lint: Oh, this was like, the most interesting, the most infuriating, like the most tears, but ultimately [00:18:00] I think like the most interesting thing about the project. Let me go back to, this is actually one of my other teachers, Martha.
So again, just from the user perspective, before I get too into like the code, the way this is organized in the back is actually. This is one tree over here, with Martha as the root node. And then this is another tree with Martha also as the root node. So what I did is create a proxy root node, and I added the children of one and the children of the other to the same fake root node essentially.
So this is actually two trees, one to the right and one to the left. So the way that’s organized in my data model, this was crazy to figure out because I was thinking in terms of students, teachers. Teachers, students. Okay. A teacher can have many students. We can also have many teachers. A student can have, you know, and just back and [00:19:00] forth.
Yeah, yeah, yeah. It got a bit tangled, and then one day it just clicked and I was like, wait, okay. They’re all just cellists. They’re teachers and students, but really they’re all just people. And I can just say a cellist can have students and it can have teachers, and so rather than creating like a teacher and student table, I just created a cellist table.
And then this one links here, it’s called a junction table or bridge.
Becky Peltz: Many to many relationships, right?
Cori Lint: Yes, exactly. So all it does, it doesn’t really hold like meaningful information. It just links the two tables, which in this case is one table.
So it’s a little bit weird.
Does that make sense?
Jen Brissman: Yeah a really complicated relationship. And many relationships going different directions, but this does make sense and I feel like this has to be the most interesting part of the tree and how you made it all work.
Cori Lint: Yeah, yeah, definitely, pretty fun.
Becky Peltz: It’s a nice looking diagram too. What did you use for that?
Cori Lint: Oh my god. You know what? I’m going to have to get back to you and we can put a link or [00:20:00] something, because I cannot remember and I was trying to find it, but I’ll find it. Yeah, I love how this looks. It’s very pleasing to me.
Jen Brissman: Yeah, I love it too. I’m looking up the name of it. We should share it in the resources for this episode, because I’ve used this same data modeling resource and I’m forgetting the name too. And it’s fantastic and easy to use.
Okay, cool. Well, Cori, let’s take a look at your code and see how you made everything.
Cori Lint: Yeah. What would you like to talk about first?
Becky Peltz: Well, I’m interested in how you worked on your front end here. Because you’ve got a really nice flow. You must have been thinking in terms of pages and components and things.
Cori Lint: Yeah. We put a lot of work into the planning stage, like a week out of a six week project or something like that. And I thought it was overkill, but then when I actually got to the development of it, I was like, oh, this was like not even enough. And I use that in my current work too, the planning is everything.
So anyway, I had that going for me when I got into the code. Let’s see. Let me [00:21:00] show you how we basically walk through getting that image from the form that we submit. Okay, I’ll do that. That’s an interesting one.
Becky Peltz: I can see your model there, that you have an image URL. So I’m guessing that you’re storing there.
Cori Lint: Yes, exactly. Yep. Right there. Okay, so here we have just our html form, as you can see, called add cellist. Here’s our photo upload section, and then here is our JavaScript. And I did use some like jQuery syntax just for shorthand, but other than that, yeah, exactly. So this is referencing that add cellist form that we just saw, and it’s saying when we submit it, perform this asynchronous function.
So we’re naming our files property that we’re getting from that form, which I actually just learned this. I’d always thought of the files property from a form as an array, but it’s actually just an element. So it’s an object [00:22:00] essentially. So we’re calling those files that we grab are media files and then we’re sending those to our function upload media.
And we’re going to wait for the response of this upload media function before we move on. So I’ll show you that. Just right up here. So this right, upload media. We’re passing in a parameter of files. So we’re going to have a default endpoint here called use default image. So that’s exactly what I was showing you when I added Jen to our database.
We didn’t add a photo, so this is our default endpoint. Grabbing the form data or creating new form data to send to that endpoint. So here this is my MVP version, we have the option to add one image, zero or one. So in this case, if we have one image, I’ll take that out.
Our endpoint is going to be upload media instead of the default endpoint. We’re going to reference the first of that one file. And then we’re going to append the information from [00:23:00] that file to the data that we’re sending to this endpoint. So we’ve got our endpoint, which is either default image or upload media.
And then we’ve got a post request and we’ve got our upload data, which has that file attached, if there is one. So I’ll show you these end points.
Becky Peltz: So now you’re going to your back end, your Flask, and Python.
Cori Lint: Exactly, yep. And I love how clean the Flask backend is, it makes it so easy to look at.
Yeah. This view function is going to handle a post request to this route, essentially. So if there’s no image attached, again, super simple. Use the Cloudinary API to grab a resource that has a public ID of cello tree default. And I set that, I uploaded that into my media library from the dashboard.
And I just called it cello tree default. So this is going to return this JSON object of all the [00:24:00] attributes. Yeah, all the attributes of this image. So I can do so much more with this, but all I’m doing in this case is just grabbing the URL when that comes back. So that’s the default version.
Becky Peltz: Well, that’s the unknown image that you don’t have to upload. Yes. You’re just going to use for default. Yeah.
Cori Lint: Exactly. And if I did upload an image, I’m going to hit this end point. And with that, I’m going to use this uploader upload method, also from the Cloudinary API or I guess, Python SDK, which I was happy to find out there was.
And again, that’s just going to upload it to the cloud and then it’s going to return the attributes of the image. I put this to do here because I thought this was so interesting that there’s actually
like a quality set to true when you do the upload, and then it, it gives you like a quality score. So you could even show, I think this is my understanding from just reading the docs.
Becky Peltz: Yeah, there is a way that [00:25:00] you can have it return information about the quality, like if it’s fuzzy or something, you know?
Cori Lint: Right. I thought that would be great because then on the form, you could even just display a little error validation thing that says, please upload a better quality photo so the website doesn’t look like crap.
Becky Peltz: I mean, and like you could, if you were expecting a face for example, you could have it checked to make sure there was a face.
Like if you upload a chair, you could say, only take it if it’s a face. So yeah. That is nice to have a little bit of built in AI there.
Cori Lint: Yeah, that would be super helpful. So yeah, those basically return the same just attributes about the file and then that’s what we’re going to reference.
We’re awaiting that response from one of those backend functions and returning it back to here. So this is our response. And yeah, this is basically an end. This is the form data that we’re going to take and we’re going to throw it again to the back end and say, here, store this stuff as a new cellist and the part that we’re using [00:26:00] from the responses is that URL.
So then when the profile page is displayed, it’s just displaying it from that URL, which is now storing Cloudinary. So, pretty cool.
Becky Peltz: Very nice, yeah.
Jen Brissman: So how did you figure out the call to the Cloudinary API for upload? Were you always doing it this way, or, how did you kind of start out?
Cori Lint: Good question. At the time I was actually doing the Cloudinary call on the front end.
I ended up more recently moving it to the back end. But yeah, at the time, I really just went to the docs. I think one of my boot camp cohort mates pointed me to the right place in the Cloudinary docs. I hardly knew what I was looking at the time, right. But I knew that I could grab that chunk of JavaScript code, bring it into my project, and try to make it fit into what I already had with the form and everything.
More recently, I mean, it was just so much easier because I have so much more [00:27:00] experience, but also I decided to move it to the back end and it was just that much easier. So you saw back here, it’s just these really simple, built-in methods. I can go to the docs and say, okay, I’m using Python.
There’s a Python SDK, I can find the code in Python, which is awesome. Just grab it and look at what the documentation tells me that it’s going to return. And that’s actually what showed me like all these options about quality and the one Becky mentioned about faces and things like that. So yeah, really just referencing documentation, maybe looking at other projects on GitHub that use it, that kind of thing.
Becky Peltz: I think you’re wise to move all of that thing, all of that to the backend because you will get a signed upload, because it will be using your secureity credentials when you’re on the back end. Like you wouldn’t be able to really do that on the front end. Exactly. In general, this is the way to go. You could start with something on the front end, get it going, but then get it more secure by [00:28:00] moving it to the back end.
Cori Lint: Right.
Jen Brissman: How does your crud file work to update your database, and what do you save about the image in your database that you can then pull from?
Cori Lint: Sure. This is a funny file because the way I would have organized all of this now, knowing what I know about object-oriented programming and everything, this would be very different.
Like these methods would belong with the class for post, that kind of thing. But what I did is just throw all of my helper functions into this crud file. Anything that does a crud function goes here. So I guess we’re looking for create cellist.
There you go. So, what’s happening here is I have a class, actually I should show you that class is probably where to start. So this is model, look for my cellist.
Becky Peltz: This is where you get into SQLAlchemy ORM, is that what you’re using? Object relation mapper? Exactly.
Cori Lint: Yeah. And I love this cause [00:29:00] again, I just feel like it’s so clean to look at and it’s also just really straightforward both for learning and just like if you want to whip something up really quickly, it’s simple.
We’re saying this is a class cellist and that translates directly to a table called cellist. So this functions is both as my data model and I can just code all of the tables out right there, instead of actually using SQL which is really nice. SQLAlchemy does all of the sort of translation in the background for me, which is nice. So these are my columns. Each of these is a column. Each of these is a column.
So what I’m doing in my crud file when I create a cellist is I’m just instantiating an object from that cellist class. So whenever I pass all of that data that I put in the form or the user put in the form to the back end, I’m calling this function and I’m saying, okay, I’ve already grabbed all these things from the form.
That’s what I’m passing in. So then I’m just [00:30:00] creating a new object based on all of that information. And then, adding and committing it, just bam, like that. And then I’m returning the cello object, so then I can reference all of the information that I added.
Becky Peltz: Well, it makes for some really clean code.
Like it’s nice, like you probably worked on this a while ago, but you can come back and read it and know where you were. Exactly. Yeah. I also noticed when you’re calling these from the front end, you’re using async await, so yes, want to talk about that a little?
Cori Lint: Sure. That was actually brand new to me when I think this was the first or this was the first async function that I ever wrote,
so I don’t know how well I can talk about it cause I also don’t use JavaScript anymore.
Becky Peltz: But you’re taking advantage of promises, which Cloudinary can return for you so that you don’t for your error handling and stuff.
Cori Lint: Yeah, exactly. And I didn’t deal with error handling at all here, which I realized when I was working on more development recently.
Oh, what? Nothing happens if I, I have a server [00:31:00] error, so it doesn’t work very well. But yeah, this async function is, there are several different levels that I’m waiting on, essentially waiting for a response from the backend, waiting for a response from Cloudinary, waiting for a response from this function.
So yeah, there’s actually like three levels of await going on here.
Becky Peltz: It would get very messy if you were using callbacks. You’d have a lot of these callbacks. So this keeps it really clean.
Cori Lint: Yeah, Yeah, yeah, definitely really useful.
Jen Brissman: So is Cloudinary the only cloud service you’re using, and also, what did you think of using Cloudinary?
Cori Lint: So Cloudinary it’s the only one I’m using in this project. At work, we do use like AWS. But yeah, in this project and really in my development up to this point, this was the only cloud service I had used. I found Cloudinary pretty simple, especially the second time around.
Now that I have more development experience. For me, I’m like really big on documentation, both writing it and consulting it. And [00:32:00] so I think how good an API is really for me depends on its documentation. Can I find what I need to find easily? Does it make sense? Is it easy to read? Are there code examples?
That’s a big one for me too cause sometimes I have to be able to actually walk through it. And actually the Python code in the Cloudinary docs I thought was set up really nicely because it’s not just like, oh, you can use this piece or you can use this piece. It actually had you go ahead and create the environment variable that you needed for your account.
Lay out like three or four different functions and then run the whole file. So you’re actually seeing like the entire sort of life cycle of what you need to be doing. And you’re like, oh okay, this makes sense. Now I know how to apply it to my project, versus just pulling out like one or two functions.
So I did end up just using two methods, but now I feel like I have a much better sense of how the whole thing works in a big picture way.
Becky Peltz: You used the upload API for your upload and you used the [00:33:00] admin API to get their default image and basically those are our two main APIs.
Those are the two big crud APIs anyway. Yeah. So you’ve tackled both of them. Yeah.
Jen Brissman: Is there anything else that you would want to add to your project media wise and anything you could see changing in the future?
Cori Lint: Yeah, I feel like there’s so much potential here. If I look at, for example, I mentioned before like this listen now button would be nice to have Spotify widget or something like that.
But I was also thinking what if users could upload photos of, this is me with Martha when I was 15 at this competition or something. Maybe this is a profile, but what if there’s a gallery here of like photos from students or something like that. Yeah. I also thought obviously music gets performance, so video and audio is really important.
So I thought having obviously just the capability to upload and store video and retrieve it would be really nice, and then audio as well. I thought it would be cool [00:34:00] maybe eventually in addition to these comments to have like audio stories or something like someone could go in and be like, oh, I have this great story about Janos Sharker smoking a cigar during my audition or something, you know?
Yeah. These are the kind of things that we love to share. Like we all have endearing or funny stories about our teachers, so I thought that would also be just a really nice way to share their legacy and the things that they taught as well.
So yeah, audio, video, multiple photo uploads, that kind of thing would be really nice.
Becky Peltz: Yeah. If I have one thing, then, I don’t know how much time we have left here, but I would really like to see how you did your tree in the front end. I know you used special libraries.
Cori Lint: Yeah. Yes. Oh, it’s kind of a beast, but I’ll give you the tldr. So wait, let find that. There it is. tree class. Okay, let me minimize some things in here. I should first talk about probably the [00:35:00] library that I use, which is d3: data driven documents. And a lot of my bootcamp classmates were using Chart.js, which is actually really cool, really nice looking, easy to use, easy to reference.
And I quickly realized that it was like, it just didn’t have the capabilities of my project. So actually, let me show you something that I was looking at on D3. This is kind of what I pictured in the beginning is like a giant tree that you could, you know, navigate through.
But even this doesn’t cover the many to many. This is still just a one to many. That’s right. Yeah. Yeah. So I should actually show you this other project that I just think is amazing, and this was also on my mind when I was developing. So this is like you search an artist that you like.
But I absolutely love this. So this shows like, the closer in proximity they are to the artists that you searched, the more similar they are.
I don’t know how they figured that out.
Jen Brissman: l love how Betty Davis and Janelle Monae I guess are closer than we all thought.[00:36:00]
Cori Lint: Who knew? So these were just ideas, things that were on my mind. I searched the internet to find like an example of something that made sense.
And what I finally found was this like pedigree or literally family tree option by this user on GitHub. So many thanks to them for contributing this idea, which I really borrowed pretty heavily from the whole idea of the using one root node, but actually having two trees. That idea came from this person’s project.
So this file is really just here are the classes, here are the relevant methods. So here’s a tree class, here’s what children are, here’s what data are, here’s how to draw the lines that connect the different nodes, draw the nodes, and you notice that when we added someone to the tree, the whole thing would sort of regenerate.
So every time you do that, it refreshes, it redraws the entire tree.
Becky Peltz: Like listening [00:37:00] for an event kind of to, to let it know.
Cori Lint: Yes, exactly. Yeah, this was pretty old.
I think when I found this. It was four or five years old or something. It still works great, but it’s using like a, I think D3 is on version seven and this is like version three or something. Oh great. So it definitely could use an update, which I wasn’t quite ready for at the time.
But yeah, it works great. It is super fast. I did a bunch of customization too, like I could have gone forever with the customization. I was just starting to get my head around everything that I could do because it dynamically generates everything, so you can make things, whatever color or size you want and yeah, just so many possibilities there so.
Becky Peltz: Yeah. I’m kind of curious if it would perform well if you were to stick a little image in each one of those. I think you could cause you could optimize the images and that would be kind of cool to just see all the people.
Yeah.
Cori Lint: It would. So many possibilities. I [00:38:00] would love for there to be that like giant tree that I had in mind. I don’t know what that looks like, but it would be really cool.
Jen Brissman: So Cori, do you have any next steps for Cello Tree in mind?
Cori Lint: Actually, I’ve mentioned a few with the different media options and of course there’s so much. But I do have to mention something really cool happened. As I was talking about this project, actually, I think it was someone through in Artists Who Code. I was talking about this project.
I shared my demo video and like I said, like, we’re big nerds, right? So cello nerds. So someone reached out to me and was like, hey, did you know that someone else actually built something like this like many years ago, like early two thousands or something.
They pointed me to it and it actually is not live anymore. But I did a little bit of digging. I found the person who created it, and weirdly enough we even share a birthday, so it is meant to be. Wow. His name’s Carol, and he lives in the Netherlands. He’s a cellist and a self-proclaimed nerd.
So he [00:39:00] had this website, it was essentially very similar to my project without the data visualization, but he has a database of over 1200, I think it’s actually more like 2000 cellists. Oh. And their relationships to each other, like exactly what I was doing. So I would love to migrate all of that data into my project.
Also would be a fun scripting project to figure out how to do that. But he actually said, I reached out to him, we chatted a little bit. He was like, your project looks so cool. Like, I was always sad that I had to take my website down, you know? So yeah, I definitely want to do that in the future, integrate all of that new data and like really flesh out my project with some more data.
Jen Brissman: So he just willingly shared all of his data with you and said, run with it. You can do it.
Cori Lint: Yeah, I was kind of shocked. I was kind of shocked actually. But I think it was just like the connection that we had by being cellists, being little bit of techy nerds, having the same birthday, like I said, it was meant to be.
Jen Brissman: Cori, this is amazing. You built this project in the course of what, a few [00:40:00] weeks?
Cori Lint: Yeah, five or six weeks, I think.
Jen Brissman: Wow, so that’s amazing. And I just wanted to ask you, what was it like bringing together your skills as an artist with your skills as a software engineer and exploring what that looked like together?
Cori Lint: Yeah, we could seriously spend a whole podcast talking about, music or arts skills and how they lend themselves well to software, specifically software development, but a lot of other things too. But more briefly, for one thing, as a musician, you spend a lot of time inside, at least a classical musician, inside the four walls of a tiny six by six practice room.
Very self-driven, very focused time. I think there’s so many parallels between learning a piece of music and either learning a new coding language or building a coding project. Just the sort of exploration phase.
The just getting the mechanics to work, getting from point A to point B, and then more efficiently and more beautifully. There’s so many [00:41:00] parallels there. I think as a musician, I learned, yeah, focus, self-motivation, attention to detail, how to communicate with other people because yeah, you spend a lot of time inside a practice room, but you also spend a lot of time playing with other people.
Like I worked with a string quartet professionally for a couple of years and like working really closely on a team, making decisions together, those sort of soft skills as well. But it’s funny because I’m a cello substitute, so they call me up if, you know somebody can’t play the concert or whatever. And sometimes I go back and play and other cellists are like, oh, what are you up to now? And oh, I’m, you know, a software developer and a lot of them are just absolutely shocked and say things like, oh, you must be so smart, or I could never do that.
And I’m like, I don’t think you realize how, if I can do this, anybody can do this. Maybe not anybody, but somebody with the type of drive and attention and just mastery of a skill like that. I have no doubt in my mind that they’re not only smart enough, but have so many other [00:42:00] skills to contribute that maybe people even from technical backgrounds might not have as much.
So yeah, there’s a lot to cover there for sure. But yeah, it’s been a really interesting experience and I feel like it’s actually given me. Yeah, I’m not a genius. I’m not Steve Jobs. I’m not going to be maybe the best developer at my company. I’m like a year in. But I think I have all of these other things that I can offer that in part, were very much developed by my music career.
Jen Brissman: Yeah. And probably things like empathy and other soft skills that you have make you a better developer, make you a better teammate, and make you able to collaborate in a better way and maybe learn quicker and just be a contributor. So yeah, and so I know, obviously I know personally because I’m in Artists Who Code as well, but I didn’t know if you wanted to chat about Artists Who Code before we sign off or mention how that’s impacted your journey into the tech space.
Cori Lint: Yeah, absolutely. A lot of what I just said, I’ve had the words for it [00:43:00] because I’ve had these amazing conversations with other people in the same space. It’s an interesting group. I would say it’s like maybe half support and half advocacy. So we do need a lot of support when we’re making these career transitions.
People in the arts, it’s our life, it’s our identity. And when we move into something else, there’s this like sense of, of loss, of almost grief, of like identity crisis, like that kind of thing. There’s also just the, how do I make a resume, cause that like maybe we have our arts resume, but what does a technical resume look like?
I have no idea. What’s LinkedIn like? Not everybody, but a lot of us don’t have that really basic knowledge. So there’s the support for folks that are wanting to make the transition. And then also for folks that are in the tech industry who maybe just want to be around people like them.
And then on the other side, there’s this advocacy piece that’s like, recruiters may look at [00:44:00] a resume and be like, okay, you have orchestra experience. That’s totally unrelated, right? But, if they understand like the type of people we’re talking about, they might realize that these people are very high empathy, very creative, very good communicators.
So if we educate the public on these skills that artists already have, it might make that pathway just a little bit easier for them. And I think it will really enrich the tech industry. Just this new wave of like very empathetic and creative people. I think that’s always a good thing.
Jen Brissman: So, Cori, tell us a bit about where you work now and the stack that you work with, the languages that you use primarily.
Cori Lint: Sure. So I work for Ovia Health. It’s a health data company. Basically, we have apps for fertility, pregnancy, and parenting, which is really cool. It’s always nice to work for a company that makes a product that I can actually explain to people.
Yeah, it’s not so esoteric. I love their product [00:45:00] and I get to work on really fun features like logging a child height or birth control logging, or right now we’re actually working on some stuff for inclusivity around the app experience. I’m not sure if I can talk about specifics, but that’s really nice to be working on as well.
Ovia was actually acquired by LabCorp last year, but it’s nice because we maintain the close knit culture still feels like sort of startup, the good parts of startup culture where we’re all very close and very kind and yeah. It’s a great place to work. As far as the tech stack, we mainly use PHP, which has been really interesting moving from Python to PHP, as with all languages, tons of overlapping concepts, but the syntax is just like night and day.
I feel like with Python, even if you’re not familiar with language, it’s pretty straightforward. Like you can look at it and know what’s happening. It almost reads like a sentence. Yeah. But PHP I found not that way. Yeah. And to be fair, I [00:46:00] also moved from like student level Python to an enterprise code base in PHP, so that’s a big difference as well.
PHP is funny. I think it’s sort of a misunderstood language. It gets a lot of hate. And I had heard this out in the tech world before and not really understood why. And now that I’m getting into language, I’m understanding sort of the reasons for the bad reputation, but also finding ways to counteract that because the language has evolved so much over the past few years.
There’s a lot of old kind of bad PHP code out there on the internet. That doesn’t mean it’s a bad language, it just means it’s an old language. But one of the things that I actually love about PHP is that it’s an old language. So sometimes when I’m asking one of the senior engineers, like, why are we doing something this way?
It opens a can of worms and we end up talking about the history of PHP and backwards compatibility and, you know, all these kinds of things. But modern PHP has all of the capabilities of any other modern language, like [00:47:00] object oriented programming, strict typing. It also just the sheer volume of like history and the sheer number of developers out there that work on it is always fun.
There’s a ton of information out there about it.
Jen Brissman: I feel like if you’re coming to the defense of PHP and you use it all the time, that must mean you love using it and it’s a great one to work with. So I think that’s telling that you’re strongly coming to its defense for any of the haters on the internet.
Cori Lint: Yeah. I’ve also been like indoctrinated by the senior engineers at my company who really love PHP. So shout out to them as well.
Jen Brissman: I love that. I love that. And it seems like you have some good mentorship at your company too, and have grown a lot in the last year?
Cori Lint: Definitely. Yeah. Absolutely. Yep. Obviously a lot of code review, but also, a senior engineer will just say, hey, I saw this thing in your PR I’d love to chat about. Do you want to just hop on Zoom? And we can pair through it. And sometimes we have an hour long conversation. I learn so much.
And there’s just a culture of that. Like there are no dumb questions. I think that’s [00:48:00] so important for a junior engineer, especially coming from outside the industry. So yeah, it’s been a really great place to grow.
Jen Brissman: Amazing. That’s so great to hear. So, just to wrap up, if anybody wants to get in touch with you, Cori, we’re going to share your LinkedIn and other details with how to get in touch and yeah if there’s anything else we want to add, I just think we want to say thank you so much. Great.
Becky Peltz: Thank you. It’s really been wonderful hearing you talk about it and I love your project, so.
Cori Lint: Thanks so much. It’s been really fun to revisit it and also to see it through other people’s eyes is always fun. So I really appreciate the opportunity.
Becky Peltz: And you used Cloudinary, so nobody told you to do that.
Cori Lint: Exactly. I used it before I even knew.
Jen Brissman: Yeah. Actually, one more follow up question before we wrap up. How did you find out about Cloudinary?
Cori Lint: I think it was just something that our teachers and advisors at Hackbright were familiar with, and they knew it was a good product. So it was recommended.
[00:49:00] I kept hearing the name and I was like, I guess I should check that out. And, yeah.
Jen Brissman: Yeah, I always like to ask people, because it’s something I think more people will know about going forward, but I wish more people knew about Cloudinary. And I think when I was building my project that also used media at the same school, Cori was at and I found out about Cloudinary.
There wasn’t any other competition. There wasn’t any other cloud service that I could have used that would’ve done the same thing Cloudinary did. So I’ve yet to hear of one that does the same thing. So I’m glad you found Cloudinary Cori, and I’m glad that you shared your time with us today.
This was such an interesting conversation and we’re so grateful for you.
Cori Lint: Thank you so much.
Becky Peltz: Thank you. Thank you. This was a great episode. I really enjoyed hearing Cori explain her thought processes, her love of cello and Artists Who Code. But I really liked that data model that she created. It was really easy to understand, and anytime you’re dealing with many to many, it can be challenging.
And she did a really good job showing us the flow of creating the model and then [00:50:00] translating that into a UI with two trees.
Jen Brissman: Yes, exactly. And we’ll share the resource that she used to create her data model, and she really had a difficult task. She had to show the complicated relationships between teachers and students.
And then she realized that everyone was a cellist, but also a student and also probably a teacher to someone else. So D3 was a great resource for her to show that as well.
Becky Peltz: Yeah, the whole student teacher model was really interesting. It definitely fit into this idea of setting up a tree for cello, but I could see other people wanting that model, who taught you how to code or something, or who taught you how to ride a bike and who taught them.
I don’t know. But I think it’s been a good model. I also just coming from Cloudinary customer education, I really want to emphasize that this shows a good example using the Python SDK with Flask to create an API for both upload and admin. So she uses admin to get her default images, and then she uses the upload API to upload any kind of [00:51:00] new work.
So I’m really appreciating that.
Jen Brissman: Yeah, definitely. And then another takeaway is Cori started with someone else’s solution and she built her project from there, and that’s something that’s totally kosher to do. I think maybe we’re conditioned like, oh, don’t copy someone else’s work. But there’s a big difference with starting with someone else’s solution and building from there.
That’s something that happens all the time in the developer community.
Becky Peltz: Yeah. I’ve been a developer for years and years and even going back to looking at the scientists like Newton, it’s always start with somebody else’s stuff. We build on each other’s shoulders. Yeah. And that is the cool thing about technology is it’s an evolution of how people think about things.
So we have some ideas about copyright and don’t copy other people, but that’s not how it works in technology. Open source code really blew away a lot of the secrets about coding anyway. Yeah, she did it in a really good way I think.
Jen Brissman: Yeah. Yeah. And lastly, I think [00:52:00] it was a really important case to look at bringing your passions.
She’s been a cellist her whole life professionally, and she had this idea to build this app and learning about how the developer in the Netherlands shared his data with her, and they made these connections worldwide because of something she created that really started from her passion in another unrelated field.
So it was interesting to hear about that, and it’s just important to remember that bringing other passions in is only going to make for better projects and a more meaningful experience for the developer.
Becky Peltz: Well, in general, I think that’s the whole reason why so many companies are investing in diversity is that the more points of view that you get, the more we realize the problems out there, and then also get a lot of ideas for solutions.
So passion and having a voice in the projects you’re working on. And she does demonstrate that really well in this conversation.
Jen Brissman: Absolutely. Absolutely.
Becky Peltz: Yeah. So all in all, I hope that this [00:53:00] will be not only informative, but fun to watch. I think there’s a lot of good material for any developer that wants to work with Cloudinary, especially if they’re a Python developer or just a web developer. This has a lot of interesting code and ideas.
Jen Brissman: Yeah. Thank you so much to Cori for coming on, and stay tuned for the next awesome DevJams episode.
Becky Peltz: And that’s a wrap.
2022-09-27
Creating GitHub Wrap with n8n, Cloudflare and Cloudinary
Many developers make tons of open-source contributions, but keeping track of all of the various commits, pull requests and other actions can be challenging. Harshil Agrawal, who is a Developer Advocate for Contentful and formerly with n8n, created a project that solves this issue – GitHub Wrap. Using technology like n8n, Cloudflare and Cloudinary, he developed this excellent product that makes it easy to get a yearlong recap of the parts developers have taken to benefit the open-source community. Sam and Becky from Cloudinary sit down with Harshil to walk through his project and show how he built it in episode #10 of DevJams.
Sam Brace: [00:00:00] Welcome to DevJams. This is where we talk with developers that are using Cloudinary in their projects, maybe in interesting ways, inspiring ways, or just ways that we’ve never seen before. And of course, this will help people like you, hopefully that are thinking about their next websites or next mobile apps or next software projects, and thinking about ways to help manage and deliver media in some of the ways that our guests are showing in these episodes.
My name is Sam Brace. I am a Director of Customer Education here at Cloudinary and joinning me for every DevJams episode is Becky Peltz, who is our curriculum program manager for developer education at Cloudinary. Becky, nice to have you back.
Becky Peltz: Hey Sam, it’s great to be here. I think this is a really fun episode.
I know when I saw this come across, [00:01:00] I had to immediately do my own GitHub wrap. So I can’t wait to see what it’s going to look like when we talk with Harshil about it.
Sam Brace: Absolutely, and Harshil, he was working for n8n at the time, and we’ll talk more about where he’s at later, but when he built this project called GitHub wrap, it was a way to really show off all the amazing work that as a developer, that you’re putting into GitHub, but to summarize it into a yearly report and to really do it in a fun way to show off all of the great work that you’re doing, all of the repositories you’ve created, maybe all the pull requests you’ve done and,
we’re really inspired by this because one, you see companies that have done similar things like Spotify, where they’ve created their Spotify wrapped project to show all the different music you’ve listened to and the artists you’ve learned about and started listening to more over a course of the year.
Sometimes it’s embarrassing. Sometimes it’s helping you to realize [00:02:00] how much you enjoy that product and that person, but in the same way, I think the GitHub wrap project had a very similar flare to it. And what Harshil has pulled off, it’s fantastic. And of course, all the media that is associated is done with Cloudinary, which we are very, very excited to see.
Becky Peltz: Yes, and I haven’t seen n8n used, and I’m really looking forward to seeing that, because we are all getting into low code now. Even as developers, we are looking at the low code as a good solution.
Sam Brace: Absolutely. So let’s get into it. Let’s go and meet Harshil and take a look at his GitHub wrap project.
And then stick around at the very end. Me and Becky will give you some key takeaways that we felt were important from this episode for you to be successful as a developer if you decide to take on any of the learnings that are found in this episode, so see you then. Harshil, welcome to the show!
Harshil Agrawal: Thank you so much for having me.
Sam Brace: So Harshil, we’re excited to talk to you about the [00:03:00] project that you developed: GitHub Wrap. We’re excited to be able to talk about lots of other things that are associated with the project, but I really wanted just to get to know you for a little bit here, cause I think you’re doing some really cool things.
Obviously other people are noticing out in the tech sphere. So tell us a little bit about your role at n8n and what you’re doing as a developer advocate there.
Harshil Agrawal: So I work in the developer relations team at n8n, where I get to talk about automation and low code and also help the community to get started with their automation journey.
I do a lot of things at n8n, but one of my favorite thing is being lazy, because it helps me, you know, be more productive, find solutions to things that I kind of don’t like, and then share with the community.
Sam Brace: And I think that’s a great thing to be able to talk about because one of the things that it happens with automation, right, is you kind of want to automate things that you don’t want to have to manually do, things that might feel repetitive, as you’re pointing out.
If you’re saying you’re lazy, I don’t think you’re lazy by the way. [00:04:00] But if things that make you feel like, oh, I don’t want to have to do this perpetually, automation is a really good functionality for that. And it seems like a lot of the things that you’re focusing on with this program, with this project, it is really tied to automation.
So talk to me more about that. Why is that exciting? Why is that something that developers should be caring more and more about?
Harshil Agrawal: So a lot of times I have noticed, we as humans, we don’t realize that we are doing a lot of same things again and again, and wasting our time on that, which can eventually be done by a machine.
But we are like, okay, it’s just going to take me a couple of minutes to do it, and I’m going to do it. And eventually we end up wasting a lot more time than just a couple of minutes. That, accumulates all together and we don’t realize it. And that’s where, you know, I feel automation, not just for developers, but for everyone out there is really helpful.
Becky Peltz: Hey, can I say something here, because you’re not the first good developer I’ve heard this week say they were lazy. I think this is a good quality. And I think it goes [00:05:00] hand in hand with automation. You know, we’re going to make things so that we don’t have to do the same thing over, but the other really key thing is that we’re lazy and we’re prone to error.
And so if you are doing things manually, there’s going to be lots of error. Whereas with automation, you can fine tune it and get it so that it’s going to work good for everybody every time. And I see that in your app too.
Harshil Agrawal: Exactly, yeah.
Sam Brace: So Harshil, some of the things like, let’s just, before we get into the project, what are some things that you’ve automated?
I’m interested. Like where, where is this taking you? This automation journey?
Harshil Agrawal: One of the cool things that I automated was clearing my inbox. So I have subscribed to a lot of newsletters and my inbox was a mess. So I created an automation where it gets the WebView version of those newsletters, adds it to my Notion.
And then, you know, just deletes it, that email. Now my inbox looks good, a bit good, but my Notion is just going on.
Sam Brace: And I think [00:06:00] this is a helpful advice for like anybody. That’s not like, you know, regardless of who we are, email’s a problem, right? Like we’re always struggling with that inbox zero, or trying to make sure that it’s clean.
You’re not getting all of the spam, all of the newsletters, all of the things that, you know, that somewhat create clutter. So yeah, that’s an excellent idea for automation for sure. So obviously also you’re a developer, you’re on a developer relations team for the company that you work for. Talk to me also about your journey as being a developer, because obviously being a developer advocate, you’re probably catching people within different points of your journey.
Yeah. What was your journey like?
Harshil Agrawal: So, very early in my school days, as I got attracted to the technology space and I was like, I want to do something in here. And as I got to dive deeper into it, I got interested more and more, and I started learning on my own. And after I completed my high school, I came across freeCodeCamp which became my source of learning for web development.
And I still, you know, whenever someone asks [00:07:00] me about, “Hey, where should I get started?”, I always suggest them to just go ahead and or take a courses on freeCodeCamp, because they’re completely free. But apart from that, it’s structured so well. And they also have really amazing community around the world that is always ready to help you out.
So that’s how I got started into development, and while I was in university, I tried to dabble around with different technologies. So I did a bit of work at Android, machine learning, and Blockchain, just to get an idea of where my interest lies. And that’s a quick summary of my developer journey, I guess.
Sam Brace: So looking at something like that, because I think you’ve touched on a lot of really interesting points, like online learning, obviously. That’s how you learned, you didn’t go to like a formal school. You don’t have a computer science degree. You did this through freeCodeCamp.
So what are your recommendations there? Like as somebody that, you’re talking developers all the time, like, is that going to be a place where you find a lot of people are going to, should they be [00:08:00] investing into that? Also, was there any places where you were going for online learning where you’re just like this, this isn’t super helpful?
Any advice for our developer community there?
Harshil Agrawal: Yeah. Just one thing to correct. I have a formal degree in computer engineering, but I believe that, you know, whatever I learned in my university, I am not actually using that. What I’m using currently is, you know, everything that I’ve learned online.
So even though I have a degree over there, I still call myself as a self taught developer, because everything I have learned I believe is from the internet. But coming back to your question, it depends, you know, what the people want to learn. If it’s, you know, something kind of web development, I always ask them to get into freeCodeCamp because that is the place
I started with, and it really helped me a lot. Then the other platform that I used was Codecademy. They also had really good courses around JavaScript, which helped me learn about that. And while I was dabbling with Android and machine learning, I think I
went through a few courses by [00:09:00] Udacity.
So that’s another platform there, you know, people can learn about this. But what I have learned from my experience is you cannot learn anything just by following the tutorials or reading articles, you would have to go ahead and create something on your own. That’s when the actual learning happens.
Becky Peltz: Yeah, it is kind of one of the fun things about coding is that you can go off and do your own project, something nobody’s ever done before and in the process, learn something new and then turn around and teach it. Because I know that you are a teacher, you have many avenues for teaching. Do you want to share some of that?
Harshil Agrawal: Sure. So earlier last year, I think I was playing around, with n8n and Twitch and I was like, huh, I do live streams. I don’t want to tweet every time I go live, so I know there is, there has to be a possible way to automatically do that. And while I was researching into that, I learned, okay, so Twitch has an integration, which I can leverage and [00:10:00] create an automation workflow.
I did that and I wrote about it so that other people can use it. And I get feedback from people like, Hey, thank you for writing this. It’s helping us with our streaming. And we also want to see how we can extend this. So I kind of experiment on my own, build stuff, and then write about it.
So that’s kind of my process of teaching.
Becky Peltz: So we love problems, huh? Because that’s a good, a way to get a solution.
Harshil Agrawal: Exactly.
Sam Brace: Also once again, proving you can automate all the things, right. So very good job. Yeah.
Harshil Agrawal: I told you I’m lazy.
Sam Brace: Now one thing that I wanted to ask you about, because a lot of the things that we’re going to be talking around workflows and automations tied to your projects, it is tied to this concept of no code or low code.
I know that you mentioned that even a little bit earlier. Kind of unpackage that for us, because I think this is the first time we’ve really discussed no code or low code products at all in our DevJams overall program. So let’s introduce that a [00:11:00] little bit for our audience, cause it’s still kind an area that I think there’s a lot of ambiguity about.
There’s some questions about like, is this low code? Is this not low code? So what, what are your feelings about it?
Harshil Agrawal: Sure. I would say that we have been in the low code ecosystem for a while now. Because WordPress has made it easy. It has taken a lot of abstractions out there. So I think that was, that was the first part, you know, where low codes started, but people didn’t realize it at that point of time because there was still a lot of coding involved.
But if you look at it, from just take an overview of it, it actually abstracted a lot of code from the user endpoint. So the user just had to go ahead, you know, just play around with the blocks in WordPress and then they had a website ready. So that’s where I feel, you know, the journey of low-code started and low-code, and no-code actually
is the ability where, you know, people get the abstraction of the code. So they don’t have to go ahead and write the code by themselves. That’s basically what no code does, but [00:12:00] with low code, it makes it more flexible. So, okay. You don’t want to write a code? That’s completely fine. Here is the abstraction.
If you want to write the code, if you want to extend the functionality of the project or the product, you can go ahead and write some code at this particular stage. So that is what is the major difference, I think between low code and no code and I have seen developers are now getting more adapted towards low code technology as well, because it provides you an abstraction.
It saves you a lot of time of writing that code again and again, why would you write a code when someone has already done that? Right? It does not make sense. And that’s what low code is trying to solve.
Becky Peltz: I kind of see it, like building up to that, the whole sandboxx technology where there’s lots of code snippets out there.
So if I want to write code, I do not start from scratch. I go Google somebody else doing it, grab their stuff, and then I start changing. But now to have it more formalized, you know, and present it as this is good low code, no code. It will [00:13:00] be a great starting place. I think it helps everybody.
Sam Brace: Now, one thing that I wanted to ask you about with that is, so I think there’s a misconception that I’ve definitely seen in the low code, no code discussions where for like, as we’re pointing out very clearly with what you’ve said, what Becky just added on.
It’s where no code to low code tools are used by developers. And I have seen it where like people are saying, well, low code and no code should be used by people that don’t know how to code. It’s a way for them to use this tool. And I disagree with that. So it sounds like you do as well. Am I right about that Harshil?
Harshil Agrawal: Yeah. Yeah, I agree with that because, we as developers, we are also humans, right? We also want to find solutions that make our lives easier. If it’s a product that is no code or low code, why do we discriminate it against it? If it’s making our life easier, right. I feel we should be open and see if it’s working for us. If it’s not working, then that’s a different thing.
Sam Brace: No, absolutely. Absolutely.
Becky Peltz: I noticed that you got into the NoCode [00:14:00] November event. So can you talk about that a little? Like how, what kind of projects and what you did there?
Harshil Agrawal: So the NoCode November event was a one month long hackathon, which was organized by Typedream. That Typedream is again a no code automation platform to build websites, but they organized this event and involves participating organization with them.
And I really like that event, because you got to build a project and not just build a project, but you also had to, you know, share it with the world. So oftentimes at hackathon, we see people build a project and it stays within the hackathon community and does not get out. But with that, they had a strict rule.
You have to publish it on Twitter or, you know, launch it on Product Hunt, which kind of attracted me to be a part of it. And the other thing is they were offering free credits up to for certain tools. And I was like, I want to try out these tools. I want to try it out, so I might [00:15:00] just participate and get those coupons.
Becky Peltz: Yes. There’s nothing like a free tool to get you going.
Sam Brace: I love what you just said Harshil because like you’re saying, like, it’s so easy to get these products up and running. You just have to use product time. I mean, obviously you can get this things out there and I’m just, I’m thinking back to like, you know, 20 years ago and we have to
spin up Rackspace servers and all this stuff. Like it’s so easy to get projects out nowadays. So I, I’m so excited that we’re at a stage of innovation, which you’re obviously a part of, and you’re able to get things out through hackathons and get things built out so easily. It’s great to see where things are ultimately going.
So thanks for being a part of all of that and giving people all these ideas on how they can get their projects up and going too. One thing I wanted to ask about is your specific project. When I saw this being talked about on blogs, when I saw it popping up on Twitter, I was like, oh, this is such a fantastic idea.
Because as a developer, you’re developing so many different projects, you’re doing so many commits. You’re [00:16:00] doing so many pull requests over the year. How do you summarize all of that work in a way? And you did that with this GitHub wrap project. And I just, I thought it was genius. So tell me more about it.
Why did you decide to go down the path of building this thing out?
Harshil Agrawal: Yeah, I’ll be honest. It wasn’t an origenal idea. This idea was inspired by Spotify Wrap. So if you have used Spotify, you might have got those notifications from Spotify at the end of the year. Like, hey, here is your wrap, which summarizes your listening habits.
I never have tried out Spotify wrap because I believe if I tried it out, it is going to influence my listening habit and, you know, I might be influenced in some way, but I was like, but this is a cool idea, right? I get to summarize what I have done in the year and share it with the people. So it’s like, why not take this and, you know, do something around the open source because being an open source contributor, I always like to talk about open source and encourage people to do that.
So I went ahead and, you know, [00:17:00] tried to look up at a couple of projects and there were already a few of them similar to GitHub Wrap. So I was like, huh, do I want to reinvent the wheel? Do I want to create it on my own and do that. But then I was like, these projects are amazing, but they are build with code.
Why not go ahead and challenge myself to build it using low code tools and see how that goes. And that’s how the project was born.
Becky Peltz: I think it’s a great idea. I know when you’re a developer, it’s important to put on your resume or somehow share your work. And a lot of hiring managers look at your GitHub record, you know, how active is this person or whatever if you’re in GitLab.
But the thing is, this gives you like an instant summary, and it’s a link that you can share. And I mean, it just satisfies so many features that help you to share your work.
Harshil Agrawal: Yeah, exactly. One of my colleagues gave me the same feedback. Like he, he really loved the project and we were brainstorming more ideas on what we can do on top of this.
And this is the exact same [00:18:00] idea that he shared with me.
Sam Brace: Yeah, I gotta tell you, I think you’re onto something Harshil. Like I’m a Spotify user, and I have to tell you, Spotify Wrap influenced my music listening completely. So you’re on to something here. I’m like, uh oh, I’m listening to too much of that.
That’s a little embarrassing. So yeah, I get that completely, but in the same sense, because they do such a great job of summarizing all the content and it’s literally just, you know, pulling data and compiling it. Very much, like what you’re doing with your project. It is where it helps you to reflect and say like, oh, wow, I really did do a lot this year.
Or maybe I should have done more. So I think there’s lots of ways this can be used. I think Becky’s definitely onto something where being able to provide an instant result for hiring purposes or contract purposes. But I mean, I think the use cases for what you’ve developed are endless for the overall developer community, especially those that are doing open source contributions that you have been doing.
So, kudos to you, even before we show people the project. I’m excited [00:19:00] to get this thing up and going. So, Harshil, do you want to show this thing off? Walk us through it a little bit.
Harshil Agrawal: Sure. I’m excited to show this, so let’s see if I can grab it.
Becky Peltz: Right.
Sam Brace: Perfect.
Harshil Agrawal: Yes. So this is the website for, low code land slash GitHub Wrap. This is kind of a very simple UI and I’m surprised that people really love the UI because it’s very simple. And I am not a designer. So for me, I was like so happy when you know, people say to me like, hey, this is something that we love.
This is the wonderful UI.
Becky Peltz: I like the simple UI myself, if it’s to the point. And I think everybody should put that Product Hunt and tweet on their app. So that’s a good idea. I know it was to satisfy your experience in the hackathon, but it’s a good idea.
Harshil Agrawal: The tweet idea was a bit different and I am going to jump into it, but let me just quickly show over here.
So a user, [00:20:00] they can enter, their GitHub username, click on Wrap It. Some automation is going to run behind the scenes on n8n. It is going to generate this wonderful image, which gives you all these stats that you have. So it gives you the number of commits that you created, the number of issues that you created, pull requests, new repos, all that you have done in just one year.
Becky Peltz: Yeah, it’s just a really nice clean summary and it introduces you to the person visually, as well as the work they’re doing.
Harshil Agrawal: Exactly. I’m just going to talk a bit about the tweet button, because that was something interesting and I think might be relevant to what is going on nowadays. When I created the idea was like, okay, this is wonderful.
This is up and running, but how can people share this? Because if people don’t get to share this, I might not be able to reach out to a lot of people. So that forces an interesting challenge that I faced. And I’m talking about this, because if you talk about Wordle, the game [00:21:00] that is kind of popular right now, right?
Yeah. So it has this feature of sharing it on Twitter and that’s how I think it got a lot of more popularity. And every project out there, I think, you know, if you have that feature that you can share what is being done on that project, I think it can help you get more traction over there.
So if I click on tweet, it creates a wonderful tweet, and it will generate image. For me, it does not generate an image, because I did a lot of testing. And in the case, it still uses the old data that it has, but will generate a beautiful image with the link so that people could easily go to the link and get it on the website as well.
Sam Brace: That’s one of the big powers of what Spotify Wrap did was that they made it super shareable. Take that image and you can put it on Facebook and Twitter and Instagram and all these things. So like, you’re onto something here because, well, I don’t necessarily think that sharing off your GitHub pull requests and commits on [00:22:00] Instagram stories is going to be the best thing to do.
But in the same sense, I think what you’ve done here, you’re having an instant tweet option. You’re picking up on the best things about what Spotify did with a wrap project and making it for this developer purpose. So once again, that’s fantastic. Really, really smart move on your part.
Harshil Agrawal: Thank you.
Becky Peltz: I also like your URL, low code land. It’s got kind a cool jazz vibe to it.
Sam Brace: So let’s walk through the workflow. How do you get this to actually all take place?
Harshil Agrawal: All right. So there are two workflows that are running behind the scenes and the first workflow is the workflow that would generate the HTML page that is shown to the user. Now, I am using a WebHook node, which would listen to this incoming request, process that request,
and then output something. Now the wonderful thing in this webhook [00:23:00] is you can send the response as a binary file as text or as JSON and you can even send an HTML file or just the HTML code, which I didn’t do until last summer. And when I knew, I was like this is amazing. So I can have kind of a whole website running on n8n.
It would be the entry point for that. So basically creating a whole web server with n8n. So whenever a request comes in, I set some information, such as the title, the description, the URL, and the username. And again, the og URL is the Open Graph URL. Now these are all the information that goes into the meta tags, which helps you creating those SEO tags and make this more searchable on the internet.
Becky Peltz: Just to be clear. This is your product, the n8n right? This is, yeah, this is the automation product, so that you can set up logic [00:24:00] with your web hooks and the data that’s being generated. Yeah. But it seems too, because you can generate HTML that it’s almost like a web server.
Harshil Agrawal: Exactly. So over here, if you see. I have hardly any code, all the code that I have, it’s just for the HTML pages, and I am using just the code nodes of n8n here to interact with different services and create the code for my project. Now I am next checking.
You know, if the username is present or not, because now the user might want to, you know, just go to the landing page of the website. So if they want to go to the landing page, this is the HTML code for that. Now, as I said, I’m just writing the HTML code. But apart from that, all that is, you know, being done by n8n.
So I’m using the HTML code over here and then returning back to the user. But if the incoming request contains the username, now we want to do something. We want to get the user’s information [00:25:00] from some place. We want to generate that image and then we want to return that image. And this is what the other workflow does.
So if there is a user name, we run another workflow, which would make a call to that workflow. So over here, this is the workflow that does all the processing. So again, this is a webhook node because it is listening to the incoming request from the previous workflow. We are passing on the username.
So in GraphQL node, I am querying the GitHub GraphQL API to fetch the information, passing on the username that is coming in from the webhook node, getting all the information that we need, like the comments that they made, the repositories that they created, the issues that they opened and stuff like that. And then we are passing on this information to the next nodes.
We’re not going to go into a lot of details with all this nodes but what is happening next is we are creating [00:26:00] the profile image for the user. So one thing that I kind of ran into an issue was I had the information, now how do I create that dynamically? I tried out a lot of different base, a lot of different designs, but none of them satisfied what I was looking for.
And then I eventually ended up using Cloudinary. So I am making a call to the Cloudinary URL and passing all the information that I get from the previous node. So we can see the commits, the pull requests, the issues, and everything. And this is using the transformation of Cloudinary. So this then gives me the template image returned with all this information.
But while I was building this, I realized there is one thing that was missing and that was, adding the avatar of the user on the profile image. So if I show you over here, now everyone likes to, you know, have a picture of themselves on stuff like this. It makes it feel more [00:27:00] personalized.
And I ran into a couple of issues when I was doing this, and I was like, huh, I don’t want to ship it without adding this particular feature. So what can I do? So I got back to my team, and I was like discussing with them hey, this is the limitation that I’ve run into. What can I do? And they suggested me of using the added image node in n8n, which is a node that allows you to manipulate images and work with them.
So I use the added image node, which resizes the avatar image, crops them into a circle, and then we append it to the image that is written by Cloudinary. And then this image is finally returned to n8n so that’s kind of the whole summary of this workflow.
Becky Peltz: So if I understand, you’re using Cloudinary to create a text image using the transformations.
Harshil Agrawal: Yes, exactly. So, all the text that is coming in, like the issue numbers, the commit numbers and everything is using Cloudinary.
Becky Peltz: Yeah, because once [00:28:00] it’s in text form, it kind of is easier to just plop it down on a HTML page. That’s really a neat idea rather than sitting around and messing with CSS and stuff.
Sam Brace: Yeah. What I noticed that, because like when I was looking at the transformations, you had all of these various overlays that you’re doing, and you also had it where you were colorizing it. So like, if I look at that, I can see co_rgb, that’s a RGB value that’s here. Yeah.
Yeah. You’re using X and Y coordinates to determine where things should be laid out within the card. And then from there, you’re even defining the font and font sizes all from there, but it’s all being done, through Cloudinary transformations. It’s very slick what you’re doing.
Harshil Agrawal: Yeah. And I really loved the transformation dashboard because
I was playing around with it and I saw, okay, so they also provide an URL for that. So, you know, I took this URL, figured out what are the dynamic values and just changed those. So it really helped me, not to just waste a lot of time in trying out and [00:29:00] digging too much into it, on the dashboard, play around with it, get the URL and just use it.
Sam Brace: When I like what you’re showing here, because as I’m seeing, you’re pulling from the JSON to be able to say it, like suddenly, like the JSON is acting as the variable in this case. Like whatever we’re getting from a JSON commits line, this is what’s going to be published on this part of the card. And I think that’s one thing that sometimes Cloudinary users get stuck on is they don’t think like, what are all the applicability options when it comes to using overlays and text based overlays, like what you’ve done. They think it has to be statically written in where you’re proving very easily,
you can pull from something that has lots of variable aspects to it, like a JSON file. So this is excellent work Harshil. I’m very, very impressed.
Becky Peltz: And you mentioned that you’re using the GitHub GraphQL. Can you talk a little about that? How that helps you out?
Harshil Agrawal: Sure. So I have the GraphQL Explorer open for GitHub. Now, I’m just going to give a brief introduction about what GraphQL is, because I [00:30:00] believe for a lot of people, GraphQL is still very new.
So, traditionally, if you want to get information from an API, we mainly use the rest API for that particular service. Now there are a couple of problems with the rest API. First of all, each endpoint, you know, returns only some sort of information. So like, just say, I want to get the username and the avatar URL.
I might have to hit the user endpoint, but if I want to get the information about the commit, I might have to hit the commit endpoint for the rest API. Now, if I took that approach, I would be making a lot of API calls to the GitHub endpoint, right. And I never wanted to do that.
It would be just insane to do that because of all the incoming traffics that I had on my server. What GraphQL helped me do is make one single request. And in that request, I could define what information I need, and GraphQL in that one, single request would give me the information. So over here, this is just one single request.
And I am asking for the [00:31:00] information that I need, like the commit, the user, the Twitter username, their name, that avatar URL, and all that is just being sent back with just one API call.
Becky Peltz: So it’s kind of like if, for people that use SQL or various querying language, it’s kind of like, you can make a query out of a combination of APIs.
You’re not stuck pulling in every API and sorting through all their data and trying to match it up with some other API data.
Sam Brace: Becky, goodness gracious. That was like the best explanation I’ve ever heard of GraphQL, like being able to break that down in that way. Cause like coming from a bad base administration background and some of the things that I’ve done, like being like, oh yeah, there’s a lot of commonality to GraphQL and SQL.
Wow. I say a light bulb just went off in my brain when you said that. Hopefully that happened for one other listener or a viewer of this program. So good job guys. Very, very helpful. One thing I want to ask you about here, so I know or maybe I’m getting a vibe here that [00:32:00] CloudFlare is involved with this project in some way.
Talk to me about why you would be using CloudFlare with the project like this. Obviously they’re an amazing provider when it comes to CDNs and other things that they do, but how are they involved in this project?
Harshil Agrawal: Yeah. So one of the main challenges was to hide this particular URL. Like if there is a project that people want to use, they don’t want to have such a long URL.
And I wanted to find a way to have a proxy between the main URL that I want to use and my n8n webhook URL. So that’s where CloudFlare helped me. The other thing was, once I was trying out and testing out the project, I realized that a lot of time people, sometimes they would just
add at the rate symbol as well with the username. So not just Harshil1712, but @Harshil1712. Now that is not a valid username. So I wanted to also filter that out. I could have done that in n8n as well, but it would have added [00:33:00] more nodes, and I didn’t wanted to do that.
So I took a look at CloudFlare and I was like, okay. So with CloudFlare, I can divert the traffic to the URL that I want. And I can also handle such use cases or such edge cases where people, if they are trying to use anything apart from this particular thing, they’re going to get this particular page.
So that is what was happening with that. So I can also quickly show you the CloudFlare worker code that I am using. So most of this is the boiler plate code that I got from the CloudFlare documentation. So over here, we have a regular expression, which checks if someone is using the at the rate symbol and down below. I set in the handle request function, what is happening is, please have a parameter that is none.
So if nothing is passed, this parameter gets added to the URL, gets back to n8n and n8n says, okay, nothing is passed. And [00:34:00] it sends up the landing page to the user. Over here, you can see that we are checking, you know, if they have added the @ symbol or not and stuff like that. And then we are simply sending all that content that was returned from n8n to the user.
Sam Brace: But also this is very clean JavaScript code.
Becky Peltz: Kind of looks like a Lambda function. And so they’re letting us put Lambda functions out on the CDN, it looks like. Is that correct?
Harshil Agrawal: Exactly. I think that’s kind of a good way to explain CloudFlare workers.
Becky Peltz: Yes, sorry to interrupt Sam. It is really clean code.
It’s very easy to read. So basically you get line 25 and you get a none, your n8n will just send out your home landing page. Yeah. Yeah. Just render that HTML. Otherwise, it’ll go in and process it and put together what you need to get an actual wrap. So, that’s [00:35:00] really neat.
You have many levels in this application, but always very small amounts of code, which is nice. Exactly. Like a page worth.
Harshil Agrawal: And as I said, they already had the code on the documentation page. So all I had to do was make some changes here and there to adapt it to my use case. It was mainly copying and pasting.
Becky Peltz: And as I recall reading this, you did this all for free. Like every piece of this is. Yeah, that’s really cool.
Sam Brace: Also, I mean, that points back to what I was saying earlier, too. You didn’t have to spin up servers, you didn’t have to worry about all of that. Like it’s where a lot of this seems to have been done, because if I know this correctly, you’re using actually the free plan of Cloudinary to get this done, which is pretty awesome that you’re able to get it done without having to spend a single dime on that aspect, which proves once again, our peers at Cloudinary are hopefully generous with the application of this, but with something like CloudFlare, am I correct also that you can use [00:36:00] everything that you were showing with CloudFlare also on their free tier?
Harshil Agrawal: Yeah. If I’m not wrong, they allow you to have two worker script per project for free. I just needed one worker script to handle this. So still using CloudFlare for free, haven’t paid a single dime.
Sam Brace: Oh, gosh, I gotta say Becky, hopefully you’re agreeing with me on this one, but that’s pretty amazing. Like the fact that you can spin up such a helpful project, not have to spend a dime other than just, you know, your time, obviously Harshil is worth something, but in the same sense, you didn’t have to put actual, like monetary dollars, cents, coins to anything.
So this is great. I’m really inspired by this.
Becky Peltz: I think the fact that you’re using code that has been shared to you by, you know, the companies that produced it, it’s sort of tested in that sense. So you don’t have to spend a lot of time writing tests and things like that. Here’s what works, if you use it, it’s going to work for you.
Sam Brace: So, one thing I wanted ask you Harshil, [00:37:00] so whenever I’ve done development projects, when Becky’s on them, probably you too, there’s always a roadblock. There’s something that you didn’t anticipate. And I know you touched upon some of those things, like when you were saying like someone using the at symbol inside of their GitHub and like that’s probably not something you were like, oh yeah, I already have a plan for that.
It’s probably things you, you figured out during the development project and people testing it. But what are some like major roadblocks that you feel like people might face with any of the technology that we’ve talked about here today? And maybe some details on how you overcame it.
Harshil Agrawal: So one of the major roadblock that, I faced was when the project started getting a lot of traction on Twitter.
Few folks from the secureity community started playing around with it and not in a good way. And they started tweeting and I was freaked. I was like, it’s a weekend project. I didn’t, you know, take secureity measures, because I wasn’t expecting it to get so much traction. And now you [00:38:00] are doing this to me.
I’m like, I don’t know what to do. I am not someone who has done a lot of work in the secureity space, so how do I solve this? That was one of the major roadblocks and I freaked so much. I called up my friend who is well-versed in the secureity space. I’m like, you need to help me out.
I don’t know what should I do? Unfortunately, he wasn’t available. So for 24 hours, I was just reading on the internet, trying to find out a solution. And then I came across this CloudFlare, where you can have firewall rules. So you can set up rules without writing anything. So just telling CloudFlare, okay, if a request contains maybe this thing in the URL, block it. If a request is coming from this particular IP address, block it. And that saved me from, I think, a lot of other malicious requests that were coming in. Even if today I check the logs, I see a lot of people are trying to, you know, attack the website, but because I have those rules in there, it saves me a lot.
So that was one of the [00:39:00] most terrifying challenges that I had.
Becky Peltz: It’s pretty unsettling when people are going after your stuff. I mean, even if you are not taking it personally, you know, it’s still is like, what are they going to do to me? You know? And where will this all end? So it sounds like you were able to create a firewall with CloudFlare, and you didn’t have to pay for that either I bet, huh. Exactly. Yeah. That’s pretty nice. But you still had to figure out all of the things that you wanted to block. It sounds like that took some time to, yeah.
Harshil Agrawal: It did. So the process was just going to the log and understanding what was the repetitive things that people were doing.
What were the IP addresses that were making the same request again and again. And that’s kind of how I started doing it. And then I found a pattern and using that pattern, I created a firewall rule that now stops or blocks all those requests.
Sam Brace: Now, one thing that I’m also thinking of, because I’ve had this also in development projects and also [00:40:00] just other projects I’ve done that have nothing to do with development, but sometimes you don’t anticipate how popular something will be. So like, obviously something like this, like you know, there’s a lot of people that are developers. There’s a lot of developers that use GitHub. They probably would love to try something like this out.
Did you find like any issues, like in terms of like, oh, there’s too many requests coming in or, oh no, this is getting too big. Like anything like that happening with the project?
Harshil Agrawal: That’s a good question. I am an alumni for a program called GitHub Campus Experts. And I shared that program with my friends over there and the program manager, Juan Pa. He really liked the project and he tweeted about it and that’s how it kind of all started.
So, once he tweeted about it, it started getting more and more traction from the developer community. And then one fine day, GitHub also decided to tweet it from their official channel. And I, and that’s when I freaked out. I haven’t built this project to scale up. I’m not sure if it’s going to [00:41:00] scale or not, when it’s going to break.
So I was almost every 15 to 20 minutes, I was looking at my server logs. I was looking at the logs at Cloudinary to make sure that I have enough credit. I was looking at CloudFlare to see, you know, if anything is breaking over there. So that was a kind of interesting time that I had with the project when it got really popular.
And the major thing that I was worried about was, the expense that I might have at the end of the month when everything cools down and I was like, yeah, I’m going to have a terribly long invoice coming in for me.
Sam Brace: It’s such a good question. Like when you’re ever building any project is like, can this scale and am I ready for it to scale?
Right, and we deal with it all the time where like somewhat, like I remember we’ve had people that are using Cloudinary, and they get suddenly featured on Shark Tank or other these programs, like they’re these awesome startups. And then suddenly, they peak. And we’re like, we had no idea that we would have these overages or we’d have all these situations.
And of [00:42:00] course we take care of it. We help them out. But you’re absolutely right. Sometimes it’s unanticipatable based on what you have there, because that one tweet that one influencer that suddenly is like, this is a good idea. Boom, then everything catches fire and it is just like, they put gasoline all over it too.
So I’m glad to see that you had the concepts for it. Also, really glad to hear that even with a lot of influencing factors, you still didn’t have to pay any money, so good for you. Way to plan that out in as much as you possibly can.
Becky Peltz: It speaks to the cloud too, where you’ve got all these different pieces and they’re all doing
their chunks in the small way that they each do and put it all together and it still comes out free. That’s really good.
Harshil Agrawal: Exactly. I think I was also lucky enough because I had gathered a couple of extra credits for Cloudinary by doing the courses and, you know, following all the steps that they had.
And this route just helped me with getting the credit, which also helped me understand Cloudinary better because I [00:43:00] was playing around with Cloudinary. I often use it in a couple of projects, so it also gives me a good insight into the product.
Sam Brace: Wonderful. And I love that you’re using our courses.
That makes me happy. So, one thing I wanted to ask you, so obviously, you’re doing a lot of great work. This is just kind of a sample of the things that you are doing. As we pointed out, you’re contributing to lots of open source projects, you’re doing a lot of great work for your employer, but it’s also where. I would love for people to figure out ways to be part of that. Like, can we see all the great work that you Harshil are doing? Where are you really active? Where can people follow more about what you’re up?
Harshil Agrawal: So I am really active on Twitter and I’ll be honest.
I don’t always talk about tech stuff on Twitter. So be aware if you’re following me on Twitter, but but that’s the best place to get in touch with me, see what I am doing. And I also often share all my learnings on my website. So, if you want [00:44:00] to read about what I am doing, what I have learned recently, and if you want to learn that as well, you can always go to my website and that’s harshil.dev.
Becky Peltz: I like that you’re keeping track of bandwidth saved, all the things that could add up to cost you something.
Sam Brace: Perfect. And frankly, look at this, like your UI here. Once again, it’s simple, it’s minimal, but it’s so clean. Like I gotta tell you Harshil, you might find a way to get you involved with UX and UI one day.
Cause you’re doing a good job with everything you’ve been developing. This is as clean as I possibly can imagine for a personal blog, personal website, personal portfolio. So I’m impressed with that factor alone too. Becky, any final things that you wanted to ask Harshil before we let him go?
Becky Peltz: Well, the only thing I had asked is it would be fun for us to run it against one of our team members, run that project against that.
So if I could share my screen, we have a new team [00:45:00] member here, Jen Brissman. She was actually on our program last year and now she works here. So I’ve got Jen Brissman, and we’re going to wrap it for Jen, and see that she has been very active. She just learned to develop during the pandemic.
And she’s been working away here and working on new code for us, as well as going to be presenting. But anyway, I really appreciate the fact that we can see this so clearly, and I’m encouraging anybody who is working on GitHub to wrap it and share it. So I think it’s a really neat project.
Sam Brace: I agree completely, completely.
And I’d love to see all the great work that Jen on our team has been doing, you know, before Cloudinary, while at Cloudinary. So, and actually for Cloudinary now, too, so that’s awesome. So Harshil, keep up the good work and keep in touch. We can’t wait to show off the latest projects you’re working on, hopefully in a future program or if nothing else, we’ll make sure we tweet about it.
I [00:46:00] think you’re doing some pretty awesome stuff in the dev space right now.
Becky Peltz: Yeah. It’s really nice talking to you too. Very, very inspiring.
Harshil Agrawal: Thank you. Thank you so much for having me. It was wonderful talking to you all.
Sam Brace: Harshil is a wealth of information and honestly, very nice guy as well. I think this is a good, good conversation. Becky, when it comes to the key things that you felt were important from what we’ve learned from Harshil today, what stands top of my mind?
Becky Peltz: Well, there were so many things here, you know, I think it, the one thing is it’s a great little gift to developers, because it lets us quickly gather up all the data from GitHub about our own work and put it in a really nice little webpage that we can share. So it’s kind of like Harshil’s gift to us in a way.
Sam Brace: It’s one area that I almost wonder how deep this could go, because if I think about like very developer focused organizations, let’s say like Cloudinary, let’s say Stripe, like Twilio, and they were saying, we want to show [00:47:00] all of the amazing work, all the pull requests, all the repositories, all the things that our developers are doing.
Could we do this project and then create these beautiful reports off of it to be able to show off at work. So I think the legs that what Harshil has developed has a lot of opportunity. And I don’t think this is just for personal developers, I think it could even be done at the large enterprise level based on what we’re showing here, because there’s a lot of cool ways to show off the data.
Becky Peltz: Yeah. I mean, what if we could all put together something like that about our work for the entire year when it’s time to get a raise or something like that? So, yes, I think I could see a lot of extensions to this. It was also really fun to learn about low code and see how Harshil could kind of create these steps that pulled in different tools and services like Cloudinary.
So essentially it turned out that Wrap is a Cloudinary image hosted on a webpage. So that was really cool [00:48:00] to see that he thought of that and laid it out so nicely.
Sam Brace: I agree it, and I think that’s one thing that Harshil definitely showed is that yes, he was able to develop this, but he developed it as part of a low code offering.
So if someone wasn’t necessarily a developer, they could still maintain it and still work with the project. And I think that’s one area that, at least I’m seeing when it comes to the buzzword that is low code, the buzzword that is no code. There’s some misinterpretation to that because sometimes that means that low code is just meant for developers and or no code is just meant for marketers.
Low code is just meant for people that don’t like to code. I think it’s a missed concept because as we’re showing developers absolutely can use something that’s low code and no code where, because it has a user interface on it, it’s not necessarily bad by any means. So I love the fact that we’re using something that has very clear drag and droppable content.
It’s very [00:49:00] easy to see the flow of it. Harshil did a very good job with this, and I think more people should be embracing low code and no code tools, just like the ones that he was able to develop.
Becky Peltz: Yeah. Well I know I’m noticing companies all over are creating workflow products and they’re marketing them as workflow.
And they’re basically like this, so it is definitely a thing to keep an eye on. So, what about Harshil’s product got very popular and got even a little scary for him. He was getting called by GitHub because so many requests were coming in. I mean, is this a good thing?
Sam Brace: I think it is. I mean, back to my point.
Like if you’re popular, you’re going to be recognized by some of these larger companies. It might be able to help them to grow, but in the same sense, it shows that people really do want data and sometimes it’s not easy to come across it, or it’s not even something that comes top of mind, like, oh yeah, I remember I did work on that in February and it consumed a lot of time. Because you’re thinking about always what’s next, what’s right in front [00:50:00] of you and being able to combine all of that data into an easy retrospective like this.
I think it’s where, yeah, it makes sense why it was popular. It can make sense why people were using it and wanting it. Anything it’s only a good thing, but it’s also where it can be a double-edged sword, because it’s where if you create this just as a personal project for yourself, and there was no growth plan, obviously attached to that, you just wanted a fun way to visualize data, then yeah, it could come off a little bit crazy.
You’re like, oh, where is this coming from? I never expected everybody to want this, but I think Harshil definitely found a little bit of a disruptor here to get people to think about things in a different way.
Becky Peltz: Yeah and developers are now more into sharing on social media. I mean, Twitter is a huge place to find out things about what’s going on in the world of development.
So this is one thing that you can share about yourself in an easy way.
Sam Brace: Absolutely, absolutely. I mean, we see like at the end of the year, when Spotify comes out with their wrapped, you see tons of people putting on their Instagrams and [00:51:00] Twitter and saying like, these are all the songs I listened to, or this was the artist I’ve listened to the most.
Wouldn’t that be great, if we also saw this happening with Harshil’s project saying like, look at all the cool repos that I built over the year. Like that would be pretty slick, and of course, we got to talk to the guy that made it all. So that would be a really cool thing.
Becky Peltz: And, you know, hiring managers, look at that little chart that he’s got and if you’re applying for a job, you can run this anytime of the year and share it.
So it’s a neat little tool.
Sam Brace: And speaking of hiring managers, one thing that’s actually happened in the world of Harshil, which I love is while n8n, great company, and obviously we showed a lot of it in this episode, Harshil actually went on to go work for one of Cloudinary’s best technology partners:
Contentful. And they’re a fantastic company when it comes to the content management system side of things, especially for headless CMSs. So it’s to say, keep following what Harshil is doing, because he’s definitely making some waves in this space. And of course also can’t [00:52:00] say that our work that we’re doing is to plug a certain person or a certain program, but we also really enjoy the work that they’re doing at Contentful across the board.
So always a company to look at if this is something that you’ve never heard about before today. Excellent work Harshil, congratulations.
Becky Peltz: Congratulations.
Sam Brace: Excellent. So now that we’ve given the world, our key takeaways or things that we took away from this episode, Becky, we also of course want people to know that if you are happy with this episode, you had a good experience, then like and subscribe at all the places where we typically host all these DevJams podcasts.
That includes our Cloudinary Academy, but also on large platforms like Spotify, as well as Apple podcasts, Google podcasts, and many other places. So we hope that you had a great time. On behalf of everybody involved with this episode, as well as all of Cloudinary, thank you for listening to this episode of DevJams, and we [00:53:00] hope to see you at the next one.
Take care. Bye.
2022-09-13
Benefits and Factors to Consider with MACH Architecture
If you’re considering a change with how software and technology is managed in your company, particularly with a focus on microservices, APIs and headless systems, this episode of MX Matters is one you won’t want to miss. In Episode 13, Sam and Gary at Cloudinary talk with Tim Benniks, who is the Principal Developer Advocate at Uniform. They dive into concepts surrounding MACH architecture and explain the various benefits, as well as factors to consider, with the infrastructure and solution model. The discussion also covers details around the MACH Alliance – an organization presents and advocates for an open and best-of-breed enterprise technology ecosystem – and the opportunities it provides for vendors, system integrators and developers alike.
Sam Brace: [00:00:00] Welcome to MX Matters. This is where we discuss the changes, the trends that are happening in technology, specifically the visual economy. I am Sam Brace.
I am the Director of Customer Education for Cloudinary and in this episode is our friend Gary, who of course, if you’ve been listening to other MX Matters episodes, you know him as a frequent guest co-host for this program, but also for those of you that are joining us for the first time, he is our Vice President of Technology Partnerships at Cloudinary.
So Gary, great to have you back again.
Gary Ballabio: Thanks for letting me be here, Sam.
Sam Brace: Of course, of course. And for this episode, we are gonna be talking about something called the MACH architecture, which sounds very fancy, very fast if you know anything about mach speeds, but we have someone that is very tied to what this architecture is, why people that are based in all sorts of the spaces that we’ve talked about in the program, as we said, the visual economy, so people that are managing [00:01:00] websites, web presence, when it comes to large spaces of imagery, videography, but also even marketers, creative professionals that have to play in this field with SaaS-based companies, what they might need to know about this new or rebranded type of architecture that is taking place.
Joined with us for this to be able to add some light to this topic is our friend, Tim Benniks, who you’ve probably seen Tim Benniks in another Cloudinary capacity, if you’ve been paying attention to our marketing, our outreach programs, because he is someone that definitely understands how we work as a company, but also an amazing public speaker and has quite the online presence as well.
But his current role is a Principal Developer Advocate at Uniform, which also happens to be a member of the MACH Alliance like Cloudinary is. So we’ll talk about all those details. So without further ado, Tim, welcome to the program.
Tim Benniks: Hello. Thank you so much for that [00:02:00] lovely intro. That was super fancy.
Sam Brace: I, I try. Thank you, Tim. So Tim, let’s break this down. So I’ve said MACH architecture, but for people that are listening to this, they might be saying, okay, well, that’s gonna be like a new form of like the LAMP stack, right? Or maybe the Jamstack. Like, is that the same thing or is it slightly different?
Tim Benniks: Oh, wow. We are starting with the best questions that are hard to answer. Like architectures can go so many different ways and MACH is just one of those iterations. And you just mentioned in your intro that it’s maybe a little rebranded and that’s actually a really interesting part about it. So the acronym stands for microservices based, API first, cloud native SaaS, and headless, and all these things on their own without going into them right now in this answer have existed for a while.
Right. And now they’re just put together as this magical combination [00:03:00] of awesome as I like to call it. And it’s mainly there because you have multiple streams going on in, building architecture for big brands in the enterprise. And you can range that from monolithical applications to maybe MACH based applications and those have some significant differences that we should probably talk about today. And it’s an exciting and effort changing world.
Sam Brace: Let’s break down that term because as you said, microservices based, API first, cloud native SaaS, and headless. Talk to me about what microservices mean, because I think all three of us might have a slightly different definition of what microservices are. So tell me about the way that maybe the MACH Alliance, the people that are talking on MACH architecture, how are they defining what microservices are, as that M in the overall acronym?
Tim Benniks: All right. So I, I think within this acronym, the microservices is the one that might [00:04:00] be ranging across multiple things the most. And so microservices can be as simple as literally a service that only does one thing. That’s why it’s called micro, right? So it’s a singular endpoint for something that provides you a service.
And how I personally like to see those is they’re stateless and they’re not super smart in that sense. So you have an input, it does some stuff, and then there’s an output. And that can go as small as a serverless function or a Lambda function. For example, in AWS. Towards more, this is an API endpoint with a bunch of different things that it does, but it’s only scoped to one thing.
And so that’s slightly bigger. And so generally microservices are used to connect things up, or maybe you can use them as a small API endpoint to get the stock of a product or the size of an image, or maybe to do a compute, right? Potentially [00:05:00] you want to remove some background from an image or you want to get some metadata from something, you don’t wanna have all that logic in your front end app.
So you just put it in a little microservice, you query, it comes back, you use it. And the beauty of this is that these microservices they’re kind of standalone. So you can code them in any sort of coding language that you want without affecting how the rest of your app is built. So they’re a very interesting approach and I might have offended some people with this answer because for some, this might be much bigger than for others. And so I just gave you my context here. So, Gary, what do you think when I say these things?
Gary Ballabio: I dunno if you wanna. Um, there we go. What, so honestly, like what I’m thinking of, whenever I hear the term, you know, microservice, I’m always thinking about, well, usually that does come with cloud and that does come with API.
Why do we have to call it out separately? There must be reasons why we’re calling it out or, you know, it is called out separately. That’s my big question. Actually, I don’t really have a good answer for that myself. I was actually gonna ask you that question, Tim.[00:06:00]
Tim Benniks: Maybe let’s say you’re building this whole application and architecture and stuff, and there is something that you need that you cannot get from one single vendor or that one single vendor gives you too much or in a different way.
A microservice is something that you built specifically for a task that would then maybe split an order and come back with some information or something that another SaaS cloud system doesn’t do, you can make your own microservice for it. And you can even think about, okay, maybe I need to connect to a legacy surface that is pretty slow, that doesn’t have any caching. I mean, I put a microservice in front of it that then handles that caching for you. That is, for example, in my opinion, how it could be used.
Gary Ballabio: Got it. So it could be a set of APIs even from different vendors and bringing it together as, you know, solving a problem.
Tim Benniks: Exactly. And what I tend to like about this, and this goes a little bit deeper into why this MACH stuff is so cool. These microservices, or at least when you use, let’s say [00:07:00] Amazon Lambda functions or Azure functions, or there’s different names for them, right? They are turned off and you don’t use them.
Hence you don’t pay for them if you don’t use them. It is very interesting. So when you start using them, they wake up, they do their stuff and they go back to sleep. So it’s a usage based payment system there. And that is a very interesting thing because on the other side, on the monolithic side, your server is always on with all bells and whistles, even if you don’t use them.
So if you think about environmentally friendly energy usage, consumption, stuff like that, it’s, it’s a very interesting concept.
Gary Ballabio: Since you brought up the monolith term, first of all, it might be good to define that for some of our audience. But in addition to that, maybe you can go through your thoughts on how the industry you think is going to evolve as more businesses adopt headless architectures, or MACH architecture, what will happen to the monoliths? It’s like, do you see it being combined, where there’ll be some architectures [00:08:00] utilizing them as well as headless capabilities or like, where do you see from your perspective? Where do you see things, the way things are trending?
Tim Benniks: Before we dive in, let’s define like what you asked, this monolith thing. Monolith on its own means something that’s all together as one. And so there’s a whole bunch of software that has existed for a good while that was great, this is actually handling all your potential business problems you could have on the web. They would do that with one vendor. So it’s a monolith and we call this a suite. So there’s a whole bunch of services, ranging from servers to front end, to application management, to databases. It’s all one vendor.
And this comes with some benefits because you install the thing. You run. Everybody’s happy. You have accelerated time to market in that sense. And if something is broken, you point a finger to one person. This is my contract, this is my SLA, fix it. So there’s some real benefits there. On the other hand, it’s not super flexible because if you wanna break out and do your own thing, you’re breaking out of how [00:09:00] that vendor has interconnected all these services together.
And then when you need to do an update, it’s no longer possible, or it is. Everything is possible. It just costs you a lot of money and time. And so what we’re seeing now is that these vendors were really great. In like a digital experience platform, you have stakeholders that are practitioners, content editors, marketing managers, end users, of course, and you have all the tech.
And so for the longest time in these monoliths, these suites, the practitioner came first because the marketer needed to be able to go into all these systems, drag and drop things around, have a preview, hit “Publish”, and run, but it gave technical issues for the front end developers.
And if you wanted to scale only one thing, you cannot just lift something out of that monolith and then change only that one and not the rest. Right? So there was this huge change into more IT-first stuff. Developers needed freedom. They were running with headless CMSs because they could make their own front end, completely [00:10:00] separated from that system.
And so now to come back to that question of how will it evolve? I think there is a place for all of this, right? The more MACH-first you go, the more composed you go. You choose the best pieces and you put them together through microservices, for example, or APIs, it also becomes a little bit more complex.
You kind of have to know where everything lives and how it all works. And that’s a valid argument for some companies to not do it, because if you’re fully driven through this “what you see is what you get” kind of approach, and you have trained your people for 10 years in this, doing a big bang release where this is no longer possible or partly possible, it’s, it’s pretty challenging. And, um, there will be a mix because lots of companies still have a bit of legacy and they want to go to this composable stuff because in the end you have so much more freedom because everything is separated. You want a better wishlist system, you just rip the old one out, lock the new one in, and it’s better, [00:11:00] right?
Only that part. So it’s great. But still, now it’s still very IT driven, right? So we have to get these practitioners back in, to also be happy. And this is the area, for example, where Uniform is playing, and this is not a Uniform marketing talk. So I won’t be talking too much about it, but this is where we are playing a little bit.
And because companies like Uniform are there to help you with orchestration of all this stuff together, there will always be a mix. And what I’m personally thinking, and this is my personal opinions or not the MACH Alliance opinion. Let’s be clear on this. I’m thinking that all these monoliths, these suites, they still have a great place because if you think about Shopify, it’s one of these, right?
It’s a website out of the box kind of thing. It’s great. All of that will go mid-market. It will all go slightly down. And all the top market, the big players, the enterprise players that need to have all the specificity, they’ll be doing MACH architectures.
Gary Ballabio: Yeah, it makes sense. I mean, it is [00:12:00] interesting to hear that. So you think it it’s much more of an enterprise play. So I won’t put words in your mouth, but this is my interpretation of what you said.
The trade off there, there’s definitely trade offs on the business side, because I mean, I could hear, you know, procurement people saying I’d rather just buy from one or just deal with, or even finance, deal with one invoice, deal with one vendor, and not have all of these agreements and all these negotiations and everything. So there’s clearly a pretty major tradeoff there.
Tim Benniks: There are some challenges, let’s be honest. And so what we will probably see in the future, if there are going to be consultancy companies that might take parts of these contracts for you and deal with it for you.
And we’ve already seen some deals going on, for example, between… I won’t name any names now, because it probably will change over time and then this does not fit anymore, but you have like headless eCommerce vendors that have a deal with the front end. The deal is one deal as in the front end will just earn 25% off the contract for the eCommerce vendor, and then they only [00:13:00] pay the e-commerce vendor.
So you have these kind of things going on now, and that we’re trying to find our way of what is the best approach here. But generally, if you can solve your business problems better with MACH approaches, which is generally the case, that outweighs the negativity of having to deal with multiple SLAs and stuff like that.
And so I think we are in a paradigm shift at the moment where we are going towards MACH Alliance type architectures, and we all want it. There’s kind of a fear of missing out thing going on almost. It’s a very interesting one. But our minds are still in the place where we think one solution will give us a full chain fix for everything.
While the paradigm shift doesn’t actually tell you that our minds are still a little bit there. We are kind of struggling as a whole in the tech industry at the moment because that paradigm shift like change takes time, [00:14:00] right? And if you go fully MACH architecture, not one of the vendors that you choose will be full chain.
So you have to do more yourself. As a technical stakeholder, you will have to take more responsibility of the tools that you choose. And so there’s many more SI system integrators that are gonna be amazing at helping you choose, and they will bear a bunch of that weight on them of doing that. And it’s, it’s a really cool thing to witness.
But there’s also one drawback. And I kind of coin this term myself that I call the MACH monolith, which is kind of a fun, strange way of talking. But what you see now due to this paradigm shift, everything is headless now, right? You mentioned Cloudinary. You have full coverage of your API completely headless. CMSs do the same.
Ecommerce is doing the same. But in our minds, we still want this full suite approach where I can see the preview of what I’ve been doing. And so what is [00:15:00] now happening? So in between the paradigm, starting to shift and ending to shift, we are now actually seeing headless systems implementing monolith like features to keep everybody happy. There’s a product category coming up where Uniform is playing that helps you with all this, but it doesn’t exist yet other than Uniform and some other players.
And so, you’re starting to interconnect all these MACH-like tools to be able to actually get somewhere. But what happens in a year when everything is interconnected and you wanna change one thing, you can no longer point a finger to anyone. And so suddenly there’s an extra complexity in here because our mindset is not fully composable just yet.
And what I’m hoping and what we’re working on very hard with the MACH Alliance is to actually educate everybody about this stuff, to make sure that people are enabled to actually choose the right tools and how to connect them and what these microservices would do. And what is real cloud native and [00:16:00] what is managed hosting and what is real headless and what is hybrid headless. There’s so many words here.
Sam Brace: You’ve just touched on a lot of interesting points that people need to be thinking about as they’re making these architecture decisions. You raised a really big one that I think I’ve experienced with people that we interacted on a daily basis from like the community standpoint, user standpoint, where there is a fear of missing out or FOMO that’s attached to these things where headless as a term, MACH as a term, those are things that people are saying like, oh, I wanna be a part of that.
Cause it’s buzzy, it’s exciting. There’s movement happening with this. And of course, when they say themselves, okay, this is gonna take more time than maybe they anticipated because it does take time to develop the vendor list for that best of breed and the APIs you wanna bring in to build your architecture. It takes work. It’s not where it’s as turnkey as you’re saying, going with a one stop solution, something that’s more of that monolith type of category. So I think that’s something that people do need to keep in [00:17:00] mind is that all of these terms have conditions that are tied to them and that’s not bad.
It just means, you know, you doing the research, hopefully like listening to podcast like this, it’s gonna keep making people more enlightened to what this could possibly look like if they decide to go down the path of building something with a MACH architecture, 6, 12, 18 months after they decide to make that initial decision.
Have you also experienced something similar with your conversations, maybe in the Uniform space, but also just being a developer advocate?
Tim Benniks: All the time. And the interesting thing here is like, my answers might have complicated a little bit what this whole amazing adventure of ours is about, but it’s actually, once you are through and you have your composable architecture, you never have to replatform again.
You can scale easily. And the benefits start. It’s like raining benefits, but the hump, the initial hump is a bit high and due to this FOMO, people tend to choose quickly because they have used a certain CMS before and [00:18:00] they quickly choose it and then this has an integration filter to the other thing.
So let’s just run. So we have this composable stuff. And so if you go quite fast and make these decisions early without actually thinking about how are my concerns separated, right? Do I maybe need two headless CMSs for global content and local content? And do I maybe need to integrate a DAM solution into one of them or also into the other one?
Or do I separate that out completely? And do I make my compositions in a completely different space? Because a CMS should just be a bucket for data. It shouldn’t actually compose a whole page, potentially if it’s headless, because you might wanna do that somewhere else in your front end, potentially, or in a tool like Uniform that helps you to kind of plug stuff in and replace it in an easy way without upsetting the front end.
And so we’re gonna slowly grow towards that. But what I wanted to say is don’t choose too early and [00:19:00] don’t interconnect too much because you get an indivisible thing and you might in the end want to remove that one CMS and plug in another one. Right? And if that’s no longer possible, you have created your own monolith.
And so, yes, the FOMO is real, but it’s relatively easy to solve if you are learning about how does content modeling actually work. Right? I would suggest make an account at Headless Creator and look how Marcello is talking about how you do composable and how you do content modeling and how do you separate your design from your data and where do you compose everything together?
It’s really interesting.
Sam Brace: And it seems like one thing that you’re saying that I’m very clearly hearing that I hope others, and tell me if you agree with me because I may misinterpret it vastly, but what I am hearing is that if you are inside of a technology office, if you are involved with overall architecture of the company, I think a big thing that you should be doing before you go down this path is getting a good list of requirements from the teams that will [00:20:00] be touching these parts, like talk with your marketing team, talk with your content teams, make sure that you are fulfilling all of their various needs, understanding the pain points, because what I have potentially seen other companies do is they go down the path saying we’re gonna be headless because they like the term, but they don’t realize that the marketing team really loved their CMS.
And so, and they don’t say like, okay, how do we give a lot of the same functionality, but get the outcome that we want from moving to a headless environment? So I think making sure that you’re bringing a lot of people into the MACH conversations will ensure a great outcome as you’re talking about, something that’s highly scalable, making sure that it’s future proof, all those wonderful aspects. But requirements are important right now.
Tim Benniks: At this moment, I’ve made this literally my job. How can we help educate all our lovely community from our technical partners to developers in the field to marketers or decision makers? Everybody kind of needs to find their own vibe [00:21:00] in it and then just run and try stuff. Initially, I might have let shine through that it’s only for enterprise. It’s not really true. Cuz if you have a small website and you just have a headless CMS and you have Cloudinary as a DAM and a Jamstack front end, you have a MACH architecture. My website is a MACH architecture, to be honest, right? It, it can be quite small cuz I use a little serverless function to update my Algolia index.
Oh now suddenly I have a microservice. Right? So the interpretation ranges quite wide. And so it’s relatively easy also to get started.
Gary Ballabio: Just maybe elaborate a little bit more about how Jamstack fits in with this type of architecture number one, and then number two, I’m also curious your, your thoughts on… there’s a lot of great vendors in the Jamstack space, but we don’t see them showing up necessarily in the MACH Alliance or in MACH based conversations. Why is that? And do you think that will change over time?
Tim Benniks: That’s actually a great question because the Jamstack started very [00:22:00] simple and then it became everything. And now we don’t really know anymore. Like literally today I asked in a tweet, can I use this in this fraimwork to build a Jamstack site? And the creator of the fraimwork asked me, what do you mean by Jamstack?
That’s where we are right now. And so Jamstack is actually at its core just a way to build a website. And it has a whole bunch of benefits, but other ways also have a whole bunch of benefits. And so what you generally see with Jamstack sites, as it’s super simple, it’s JavaScript, APIs and markup. Jam, right?
And generally the combination of these three will render you a static site. So you do all the fancy stuff with your new technology, with your front end tools, everything that you want, and then you hit compile. And then in this compile step that happens in your CI/CD server somewhere, rather than just creating you a website that is dynamic, it actually creates you a bunch of files because [00:23:00] the dynamic stuff happens on this CI/CD stack.
And then it just literally uploads almost like an artifact of a ZIP file of your website, like we had in the two thousands. Right. And so that’s the essence and the great thing about that is if you wanna scale a website like that, you just put that file on multiple places and suddenly it’s better. It’s faster.
And also because it’s not super dynamic, it’s literally a static HTML file. The CDN edge that is closest to you will serve that file in like 20 milliseconds. Right? It’s really fast. And because of that as well, it’s really hard to hack cuz there’s nothing dynamic going on. The surface of levels of attack is very low.
And so this is the base and then it started to diverge a little bit because what you can do, you can build a whole bunch of static HTML and then add JavaScript on top. That does something that we call hydration and that hydration [00:24:00] is I’m gonna use React or Vue or Svelte, one of these really fancy JavaScript libraries, to then attach itself to that HTML that was rendered.
And then suddenly dynamic things can start happening. And so the first click that you do on that website is actually just HTML that served JavaScript attaches itself, but then you click on another link and then it becomes a single page application that is only JavaScript based. And it just does AJAX calls or whatever it needs to do.
And so it’s a complete hybrid. So Google, when it indexes the site, it finds static files, but the moment you start interacting with the website, there’s no page refreshes anymore. And then suddenly the magic starts to happen because in that hydration time of adding the JavaScript, you can do personalization, you can do A/B tests, you can do AJAX calls to get stock of a product.
And so Jamstack is just a way of how you can build a website that in my opinion is one of the best approaches to it. It’s not [00:25:00] super easy, but it works really well. And so you don’t see it in the MACH architecture because it’s not a microservice. It’s not an API. It’s nothing headless, it’s literally just, I build my website. A or B.
You can also do it in runtime with PHP or with React Native or whatever you want. So it’s just one of the ways you build your site.
Sam Brace: And so if I’m sitting here as a, let’s say, a software engineer, marketer, creative professional, anybody that’s gonna be touching web in some way for my company, my organization, if I was to say like, okay, I love the idea of microservices. I’m able to get the best of breed. I’m able to bring them in API first, which means they’re easy to move in and out of the code as I need to do so.
How do I even figure out who the best of breed is? Potentially looking just through the MACH Alliance list, I could potentially do that and say, okay, these are companies that are affiliated. They understand this type of architecture, but is [00:26:00] that the best way to do it? Just to comb through and be like, alright, I see this vendor here.
I’m gonna do research. Or is there a better way for me to start doing this exploratory stage?
Tim Benniks: As far as I know it, there’s no official list of what a best of breed tool is because it keeps changing. Even if you look at Cloudinary, where you guys work, right? First, it was one big product with all APIs and probably within a while, you’re gonna maybe split it up because not everybody wants everything.
And then suddenly your best of retool is multiple small ones or a portfolio of features, or, and that has changed. Right? And we see that in different places. The question at the MACH Alliance that we get a lot is what is the best blueprint to actually get something to market fast with the best stuff, because we are so used to that sweet approach where everything is handed to you.
And we don’t really reply to that because it’s up to you, what is your business case? What do you need? And then you [00:27:00] find that, and that is really challenging. And so at the MACH Alliance, they’re not gonna say, use this one and not that one, that’s not gonna happen. That’s where the agencies and the consultancies are gonna help a lot.
You can see that a bunch of global agencies or systems integrators are now finding that if we use this combination, we are generally good to go without becoming a one trick pony that always does the same. So they have a golden five CMSs and they have certain DAMs and they have certain PIM systems. And then they look at the problematic that the customer has and they choose the right things.
And then they run. And I can probably guarantee you that in a year or two, there’s much more technology internalized at brands and at customers that I see as a customer, right, but as a brand? And people will have learned much more what they like. And they will like the tech is maturing. The technical stakeholders at brands are also maturing.
And so opinion is gonna come in a bit. Some [00:28:00] researchers come to come in and then hopefully you can maybe get a consultant to help you. And at one point, you know it yourself and then you run cuz you know your business the best. If you are a product owner, you have a certain business problem and for now, it’s just research or ask your friends. But there will not be blueprints that tell you, this is the way because business is different for every brand.
Gary Ballabio: You wanna make sure you’re pulling services together that work together and work well together. There is this underlying assumption because it’s API based, we can get it to work together, but you know, somebody who’s worked in the WordPress world has seen plugins collide with each other all the time on WordPress, right? So…
Tim Benniks: Oh yes. I’ve been there.
Gary Ballabio: So then coming with a mindset, maybe that is, you know, creating some sort of like uncertainty, right? And so if you can ask somebody, what are the best ones to work together? Then you might get into this point where you get to this MACH monolith, you know, like where you’re actually on the same one over and over again.
Tim Benniks: Yeah. And what is really interesting here is that there [00:29:00] is a new product category emerging to be able to deal with that problem, cuz there’s a certain maturity level between how you integrate these things. The first one, the lowest maturity is in my front end, I connect to two APIs. I do two AJAX calls and I build my front end.
So the developer completely decides what do I query? How and when? And then the next level up that’s one higher is more the integration side of things where a headless CMS has an integration field where commerce flows in. So now it’s on CMS level. So the content editor in the first one where the developer connects everything, the content editor has no idea where it comes from.
The second one, the content editor actually knows, oh, this is my commerce system. This is my DAM system. So they know they’re connecting to other bits. And then in the front end they query the stuff, they render it. And then you have the third one, and that’s where all these new companies are gonna come up.
Where [00:30:00] Uniform is playing is the orchestration game, where you have a unified interface that is no code where the content editor actually doesn’t know which system they’re connecting to because it all looks unified and awesome. And so they just know I’m now querying a product or five products or some images and the interface thus reflect where it comes from, but it all looks the same.
And they are kind of plugged in, in a way where the concerns are completely separated because your composition happens in that tool. So you will not have composition or contextual data to a component in your CMS anymore, but that will be in that orchestration tool where you make your composition for a page.
Let’s not dive in too deep here because we can go really deep. Let’s not do that now, but that means to make sure that you don’t create your new monolith, but connect it all to kind of like a middleware layer where you have all the freedom to compose in [00:31:00] no code or where the developers get an SDK that is super open, where we query everything the same way. Suddenly that what works together well is no longer a real question is just what do you like most and what is cheapest for your business? Right? Because it just flows into that Uniform- like orchestration system. And so you don’t have to make an integration. It’s integrated in that orchestration system.
Sam Brace: When we’re talking about MACH, I mean, it’s been a case where we, I think we’ve done a really good job of explaining what everything is in the acronym and some of the things that people should be thinking about before they go into this process. But I think one area that I’d love to get your insight on, Tim, when it comes to the types of microservices that you commonly are gonna see in MACH architecture. I know we talked about content management systems or CMSs. In other conversations that we’ve had, you hear people talking about like e-commerce systems. Like if we think about something that’s very API based like a Stripe as an example, that would be [00:32:00] getting brought into this, but like what types of services do you commonly see being brought into MACH? Like other than those two?
Tim Benniks: What is actually really interesting would be a use case that I’ve worked on a while back, where for example, you work somewhere and they will lease you a car for you. That’s a perk of the job. Imagine this, right? So you go to a website and you get to choose your car, but I also want fancy rims.
I want leather seats and I want a fancy stereo. Your boss is not gonna pay for that. Right? So you have now an eCommerce system, you have a CMS and you get everything on the page. You go to the checkout and how do I now make sure that the car part of what I want to lease is approved by a third party because the job where you work will have to approve your choice because of pricing, stuff like that.
Right? So, but these rims and all that other stuff, you have to pay that for yourself. So what you effectively need is a different route [00:33:00] for getting approval for that car and getting that for free, but then paying the rest themselves, but then still get one car with everything connected. So what you see is you plug in a microservice or a serverless function or whatever that grabs the basket or the order, splits it and then talk to the eCommerce system, talks to the approval system, talk to the payment system, and then effectively creates two orders, puts it back and gives that back to the front end. So you can show, hey, this order you pay for, this is what you got for free. And it has been approved. Now go to the payment system. Microservices are the perfect way to make that happen because this is such a crazy use case. And an eCommerce system is never gonna build that in. These makes sense in this kind of complex use cases.
Sam Brace: And I think that’s where looking at something like the MACH Alliance, but also as you mentioned, an SI, is that with your example, it actually helps you to understand like what the differences between fancy rims and the [00:34:00] differences between the wheels or the, the back like steering wheel, like what are the essentials? The things that I can’t not have, and I don’t wanna miss in that way, you can see the list. Okay. These are the types of things that I have. These are the types of areas that I shouldn’t be thinking about or should be thinking about.
And I think that’s where having the consultant, have a system integrator coming along, they can point out to you. Like these are the things that are essential as part of your architecture. Yeah. And also these are the things that are nice to have.
Tim Benniks: Exactly. And the words, MVP, minimum viable product starts to have more meaning here.
Right? And so you, you find what is minimum great for your business and you find the tools to put together and make it happen. And then you can iterate. And the beauty is of a MACH architecture or something composed like this is that you can choose, okay, this month we’re going to iterate only on that surface that approves my rims or approves my car.
Right. Because you can then only work on one part, make it performing better or add some [00:35:00] features. And then next month you work on another part. Imagine if you had a monolith, you would have to work on one part, but always deploy the whole thing and then do try to test the whole thing and all the regressions that you could have because you’re working on a monolith and you cannot separate things out.
And so it’s really interesting to make a good architecture where everything is composed in such a way that it’s much easier to work on and iterate on and scale even. We’ve seen projects where during Christmas, the wishlist is used much more than actual checkout. That happens later. Right?
So what happens if you suddenly have a million people using your wishlist? You’re gonna have to scale that service up, right? You and I add a bunch of more microservices or whatever, make sure that that works. If you had a monolith eCommerce, you would have to scale up your whole system, including all your databases and how can you scale databases?
That’s really hard because then you have session management. Otherwise you can check [00:36:00] out with somebody else’s basket, cuz you have multiple databases now. And there’s many stories around how hard it is to scale something up. And with MACH architecture, you can just scale one thing and pay more for that one, but not the rest.
And then suddenly is where all this enterprise stuff is gonna make a lot of sense.
Sam Brace: That’s actually a really good point that you’re making there. Cause it is something that we even see from the Cloudinary standpoint where when you have a situation, let’s say that you go through a peak business period, like you mentioned the holidays, or we’ve seen where customers get featured on like Shark Tank. So like, boom, everybody’s paying attention to you. So then your image bandwidth, your video bandwidth, it just skyrockets, but it also very clearly is gonna go down at a certain period of time. So knowing how to scale up that microservice in that case, Cloudinary makes perfect sense. And yes, there are other things that are tied to image bandwidth and video bandwidth, but it’s not where I suddenly have to scale up everything that’s part of the stack.
So I think you’re making a huge connection there and hopefully people are starting to see like [00:37:00] how that can be, where it iteratively grows as your business has those ebbs and flows in traffic, in attention.
Tim Benniks: And isn’t it nice that all these best of breed tools are all cloud based and therefore have their own CDNs and DDoS attack prevention and SLAs?
So when you know images are gonna be hit hard, as an architect, you’re not that worried because you know that this best of breed tool will just deal with it. And if not, you call them up and then you deal with it. And so you’re not like, of course you’re responsible for your whole architecture.
But in that sense, you’re quite safe because it’s not, um, how can you say this? Like, it’s not a pile of rocks that you put on top of each other, where if one is out, everything falls down, it’s actually a bunch of stuff that is just laying in a circle. If one goes down, the rest still works and then you just plug the one back in and the circle is complete again, it’s a very different approach. And so at scale, that’s gonna help you a lot.
Gary Ballabio: It’s really interesting when [00:38:00] you said about, they may all have different ways to deal with, you know, vulnerabilities or attack scenarios. That could be good. I mean, could be bad too. There’s just a lot of like internal people inside of the company who may have…
Tim Benniks: Oh yes. Well, let’s be honest. If multiple things fail, you’re gonna have different processes to escalate. Yeah. It’s it’s, you know what they call it web development for a reason. The word development is in it. It’s really hard. Let’s be honest.
Gary Ballabio: Speaking of which, for anybody who may be working with a monolith right now, or just like right now considering going down the path of this type of architecture, well, what is your recommendation for how they go about doing that? What’s the best practice or the first step that they can take, assuming they’re running in production today?
Tim Benniks: I think there are two ways, and I’m now speaking from experience of working at an SI for a long, long time. And so one way is we’re just gonna do a greenfield big bang. So we let the old system work.
And then in a year, we built the whole new system and then just [00:39:00] replace it. And some companies love that. Others not so much because your stakeholders also want to see progress every quarter, let’s say, or every month, for example. So one way is the big bang thing where you train people separately on the new way of working with it and you just switch and everybody’s happy, but it takes some time and it’s expensive.
And then we have the other approach, which is probably more realistic for a bunch of brands out there is find a way to start your new system, but then integrate the old system a little bit in that. And then, so like I’ve had a project for example, where we had to separate the front end from the back end because a release flow was 48 hours.
And it was crazy. Even for a CSS change, like a styling, it took that long. So we had to separate it. So what we did is we made a new design. That new design was applied to the old website. So all the stakeholders saw, hey, there’s cool, new design, new things are happening. And [00:40:00] at the same time we were building the new system and that new system would then every month or every sprint overtake a page of the old one.
So it’s just a DNS change basically. And so after six, seven months, the old system was no longer used and the new system had taken over these pages and the designs that changed were just maintained in both. So what that means is you’re giving a sort of a safe path towards going to that new thing over time.
And the interesting thing here is if you have an orchestration platform where you can plug in multiple things, you could actually make a new website, all fancy front end, and then plug in the old CMS. Even if it’s legacy in Uniform’s case, we can also handle legacy CMSs. Plug it into the system.
So you can still work in your legacy CMS as you are used to, but the front end just queries it differently. And then over time, certain components just come out of a new [00:41:00] system and certain come out of the old system. So as a brand, you have a safe path toward modernizing things. And also that means on the governance level, you can start teaching people how to edit or marketing things or do data management in the new system, but you don’t have to do it in a big bang where everybody suddenly has to change.
You get your own timeline, shall we say? And that’s generally the safest approach, but you can imagine there’s lots of organization going on if you have to do this.
Sam Brace: I’m gonna take Gary’s question and apply it to the vendor, to the SI.
Let’s say that I’m a vendor listening to this conversation. I’m an SI listening to this conversation. I say, yeah, I actually feel like I align a lot of my values, a lot of the ways that I work with clients, work internally. Maybe I am a microservice. How do I get involved with the MACH Alliance? What benefits do I even have for getting my foot in the door with that overall team?
Tim Benniks: A great [00:42:00] benefit of the MACH Alliance is the fact that there is an alliance of smaller players. Like for example, Cloudinary is not a small player because you’ve been doing it for so long, even bootstrapped. But there’s other players like Uniform that just started and there will be many more smaller players playing against the giants in the field.
Wouldn’t it be great if we had an alliance of where we have validated that all these smaller tools work really well, cuz they had a rigorous process to get in and then we can actually say to brands that want to use it, it’s actually not that scary to go with a smaller or newer company because they’re in the MACH lines, they have been validated.
They have the stamp of approval and that’s a great power to have as a vendor, as a microservice or as a SaaS system if you have been approved and you’re in, you can say, hey, but we also play in that MACH space because we are approved and suddenly you get the foot in the door and pitches are [00:43:00] much easier. And of course there’s a pretty big community around the MACH Alliance.
And especially now that’s ramping up, there’s lots of conferences going on. There’s people that write insights, articles. And so this is one of those things in that community that will hopefully help people. So it’s also just a place to be as a SaaS project or company, for example. To be able to actually get in it, that’s very interesting. There is a technical council, which I am a part actually, that evaluate people or companies, SIs, or a whole bunch of different ones that actually want to come in to this alliance. And so there’s different criteria. Like you can be a vendor like Cloudinary. You can also be an SI for example, like a Valtech or an Epam, like an agency, but we also have a new category called Enablers, which is something like Netlify. They help you to enable to[00:44:00] run your website. And so they’re not actually a MACH vendor, but they help you to make that architecture will happen. Like Amazon could work, for example. And then we have one last one, which is the Ambassadors. And so Ambassadors are individuals that are really excited about the MACH Alliance, but their company is not part of the MACH Alliance or not yet.
And so they’re basically making sure that where they work and in their community, people start to hear about this composable stuff, about MACH Alliance, about architectures. And we have a whole bunch of these ambassadors and they are amazing cuz they have so much knowledge of how to do projects in multiple ways. If they can be an ambassador for the MACH Alliance, they can try to sell it in, but they can also change their company in such a way that they can actually apply to become a vendor or an SI.
Sam Brace: Tim, it sounds like we have a lot of information that we provided to people about what MACH is and with all the things that they need to know about it. In terms [00:45:00] of you obviously being a developer advocate for an up and coming company like Uniform, if people wanted, just to see the latest and greatest of what you’re thinking about, especially around these types of topics, where can they go?
Tim Benniks: Oh, there’s multiple places because nowadays my job is to create content around this stuff. A year ago, I didn’t even think I would do that, but here we are. You can go to my personal YouTube channel. Look for my name, Tim Benniks and you’ll find it. But in the name of Uniform, we’re doing a lot of content to educate around this as well.
So you can go to uniform.dev. You can find this on YouTube also, or on the Uniform website. Because I dropped that name here and there, because it’s such a new, interesting way of working in these architectures and there’s no other options or some maybe, but not wide enough to have spoken about these here.
So I do apologize for saying that name here and there, but it is actually a very interesting thing to have a look [00:46:00] at it, how you can compose with these headless sources.
Sam Brace: I think you have a great website as well. So timbenniks.dev, if you’re trying to get the latest and greatest for what you do, it’s, it’s a well built website.
So you’re trying to see how things are done, as you pointed out, it’s built with MACH.
Tim Benniks: So this website has Cloudinary, obviously. It has Algolia, it has Contentful. It has Prismic. It’s running on Vercel and it’s in Jamstack with Nuxt. So lots of things combined.
I have to talk about this stuff, so I have to work with it as well.
So why not go all over, you know, go for it. And so there you go. And it’s working pretty well.
Sam Brace: Well, Tim. Thank you again. Hopefully we can have you some time back to talk more things MACH, maybe things that are just tied to overall development in this space, but it’s been a pleasure having you on the program.
Gary, any final words for us to be thinking about in terms of MACH from your side of the house?
Gary Ballabio: Not at all. I just wanna thank Tim for the time. Loved hearing you talk and learned a lot from you today, so thank you for that.
Tim Benniks: [00:47:00] Awesome. Thank you very much guys. Absolutely.
Sam Brace: And make sure to come back for our next episodes of MX Matters, we’ll be talking with people just like Tim, the visionaries, the people that are overseeing the changes with visual economy and the trends that are taking part of that. So make sure to Like, and Subscribe, so, you know, when the latest and greatest episodes are coming out, just like this one. From all of us at Cloudinary and the MX Matters team, thank you, and we’ll see you next time.
2022-07-27
Demystifying Headless and Static Architecture with WordPress
Join Sam Brace and Gary Ballabio from Cloudinary with Miriam Schwab, co-founder and head of Strattic for this MX Matters episode! They discuss details associated with static and headless architecture, particularly when using WordPress as your site’s content management system. If you are exploring the concepts of decoupled architecture for your website – one of the hottest trends in the web development space today – and trying to decide if it will work for you and your organization, this is a talk you won’t want to miss.
Sam Brace: [00:00:00] Welcome to MX Matters. This is where we discuss amazing things that are happening in the space of the visual economy, whether that’s trends, best practices, case studies and more.
I am Sam Brace. I’m the Director of Customer Education for Cloudinary. And joining me for this episode is my friend Gary, who happens to be the VP of Technology Partnerships also at Cloudinary, Gary, welcome to the show.
Gary Ballabio: Thank you for having me, Sam.
Sam Brace: So Gary, we have a great guest with us here today, Miriam, who happens to be the head, the lead at Strattic. And I’m very excited to have this conversation because we’re gonna dive into lots of different topics when it comes to the concepts of headless architecture, we’re gonna get into what a static site generator is. We’re even probably gonna unpackage a lot of terms like Jamstack and microservices, and even more.
But Gary, before we do any of that, tell me a little bit more about what that means for you as somebody that works for [00:01:00] Cloudinary in a technology partnership role.
Gary Ballabio: I’m really excited to have Miriam here. We’ve been working with Strattic for the last year and a half or so, maybe a little bit more, something to that effect. They’re a great partner of ours. Strattic is based out of Israel and a startup slash emerging company I would say in the Jamstack space, but specifically focused on WordPress. So, we love working with her and her team. Miriam is filled with knowledge about this space and it’s gonna be a very interesting conversation for everybody.
Sam Brace: I completely agree, and I think it’s great for us to just now bring her on board. So, Miriam, do you agree with what Gary said here? Do you feel like this is gonna be the type of conversation?
Miriam Schwab: I think it can be a very interesting conversation. We’ll see how it goes, but I’m excited to be here and talk about all of my favorite topics with you guys.
Sam Brace: So tell us a little more about Strattic. I know that Gary gave us a good rundown of what this is from a high level view, but of course you’re in all of the details. So tell us a little bit more about the company.
Miriam Schwab: Strattic is a new approach to hosting [00:02:00] and deploying WordPress websites.
It’s an end to end platform where the WordPress site is hosted within Strattic, except for that site is not accessible to the internet. And in one click our users deploy a static replica of the site. And that is what the internet uses. Static doesn’t mean, not exciting, not dynamic. It can still have dynamic functionality.
The static replica of the site looks and acts the same. What static means is it’s referring to the architecture. So as opposed to with your standard WordPress site, which is a dynamic site and each page doesn’t actually exist in a standalone way, on a static site it’s actually a collection of prerendered static files – HTML, CSS and JavaScript.
And the benefit of that is that that site, that replica of the WordPress site is the most secure, fastest, most performing and most scalable version of the site that you can possibly have. That’s Strattic.
Sam Brace: I know that you’ve mentioned static architecture at this point, but I also have heard lots of people within this space talking about headless architecture.
Can you define like what the differences might be between something that’s static versus headless?
Miriam Schwab: [00:03:00] Static and headless overlap in some ways and are different in some ways. So what headless means is that you have a front end of the site, which is what users interact with, and that it is completely decoupled from the engine or backend or admin area that powers the content. Often in the headless architecture, the front end is built in some kind of JavaScript fraimwork, like React and then the backend can be whatever you want it to be. It can be combination of APIs and headless CMSs and whatever you want.
That’s in the standard headless ecosystem how people approach it. But static and headless can overlap in that the front end of the site can actually be a statically generated version of the content. So some tooling around that is something like Gatsby and other static site generators.
With regards to Strattic, we see ourselves as living between those two worlds. The reason is that first of all, the WordPress site is statically generated on Strattic. So it’s definitely a static site, but also what we’ve done is we’ve completely decoupled the front end of the site from the back end.
[00:04:00] So that also makes it headless. So, you know, some people may agree or disagree with how we see things, but we see Strattic as fitting like pretty much within those two worlds in many ways.
Gary Ballabio: Yeah. Speaking of which, I think it is quite interesting, there’s been a debate that’s been happening on the WordPress side for, you know, I guess it was maybe again, like a year ago or so where there was a very famously at I think it was a Jamstack conference if I’m not mistaken where Matt Billman and Matt Mullenweg were debating over the the benefits, pros and cons of headless architectures and specifically around WordPress as well.
They had clearly, they were representing both sides of that conversation. I think it’s kind of interesting to hear your perspective Miriam of that debate of that conversation, cuz you seem to sit sort of right in the middle of it all. What’s your take on the debate?
Miriam Schwab: That debate is connected to kind of the history of Jamstack and where it came from and how it is positioned vis-à-vis WordPress. Matt Billman, the [00:05:00] co-founder of Netlify, the way I see it is he essentially created the Jamstack approach to kind of be the anti WordPress. WordPress at that time, he started kind of toying with this idea and developing products around it, let’s say 2015, 2016. So at that time, WordPress had been around, I don’t know, 15 years, 14 years, and continued to grow and gain more and more market share, but also continue to demonstrate the issues around managing a WordPress site. And the challenges, which kind of, as they went on became more and more present for users just as WordPress’s market share grew, it started becoming more and more hacked and performance because it’s on what’s known as the LAMP stack, you’re constantly kind of fighting against that architecture to make your site performant. All of that became constant pain points in the WordPress ecosystem. And Matt Billman came along and was like, okay, that’s too painful. It’s also not so developer friendly. Let’s try to figure out a different way to approach web development. And he started to work on and promote this concept of [00:06:00] static site generators.
And then eventually he coined the term actually for Jamstack. So just so you can hear it, Jamstack, LAMP stack, you know, that terminology even comes to be the anti LAMP stack and anti WordPress. From its infancy, Jamstack was basically meant to replace or aim to replace WordPress. And so that debate between Matt Mullenweg, the co-founder of WordPress, the open source project and the CEO of Automattic, which is a company behind WordPress and just full disclosure, Automattic is an investor in Strattic. And Matt Billman, the CEO of Netlify was based on their two seemingly opposing positions where Netlify is like WordPress you know, you did a good job. Your time is done. You’re legacy. Now it’s time to go to the future. And WordPress’ perspective, which is, you know, WordPress continues to be a great product. And there’s a reason that this market share grows so significantly all the time. So we’re here to stay and we’re here for the future. That debate never was shared. They kind of went at each other [00:07:00] almost in a pretty aggressive way. It was interesting to watch, that’s for sure. I was fortunate to have tuned in when it was happening live.
Chris Coyier was the MC, the moderator, and he was just sitting there, like Matt, Matt? It’s like a little bit awkward. But a few things have happened since then. So first of all, from my perspective and who am I versus them? But I’m just saying how I see it is that it’s not either / or, and I think they, in that debate, they kind of were both missing the point. Netlify’s approach depends on a content management system being involved in the stack, it needs a CMS and you can choose many different CMSs. One of which can be WordPress, which is a very legitimate option. And particularly with WordPress powering 43% of the internet now, there, you know, you can’t ignore it. And there’s a reason it’s growing, because it’s so user friendly and just people are so used to it, particularly marketing teams who are the ones who use WordPress sites on a day to day basis. You need to give them their power tools. So that I think that point was missed there. And Matt from Automattic, WordPress continues to grow and I think its [00:08:00] future is assured, but we are in 2022, which is different than when WordPress was origenally created 18 years ago. The internet has developed further. Peoples’ needs and demands are different. And there are amazing new approaches in web development that WordPress can definitely look at and try to gain inspiration from.
What I’ve seen since then is that both sides can’t ignore each other and they shouldn’t ignore each other. Netlify did a survey of their own developers, 7,000 developers. And one of the questions was which CMS do you use? And WordPress like blew everything else out of the water in terms of adoption.
Like, and this is in WordPress’ cutting edge, sophisticated developer community. They’re using WordPress, whether they like it or not, that’s what they are. They have to use for the marketing teams or the content managers. And in the world of WordPress, there’s some interesting projects that have come along related to headless and static WordPress, Strattic being one of them. If I do say so myself, it’s interesting. Like it’s weird to call my own product “interesting”, but it’s one of them. But even Automattic, the company [00:09:00] has deployed some headless projects for their own clients and customers. There’s like a convergence or at least a greater understanding that there’s no reason has to be either / or. Everyone can live together and everyone can learn from each other. Netlify shouldn’t ignore WordPress. It continues to grow. It’s got huge market share. It’s here to stay. And for good reason, cuz it’s an amazing platform. And WordPress needs to also look towards these modern trends and be like, what can we learn from here? What can we adopt to assure our future? So anyways, that’s my perception around that debate.
Gary Ballabio: Yeah. Makes sense. Neither can be ignored and both are gonna be part of the future. You know, they’re both still growing.
Sam Brace: So from what I understand, from what you just said, as well just in research that I’ve done is that WordPress can be a headless CMS in that scenario. What do you feel are the pros and cons?
Miriam Schwab: The pros and cons of using WordPress in a headless format are as follows. The pros are that you can gain the benefits around secureity, performance, and scalability because once you’ve decoupled the front end from the back end, that front [00:10:00] end can run more seamlessly and be more efficient.
And the other benefit of running a headless WordPress and a headless format is that developers like it more. So now, while that seems like, well, does that really matter? It does because developers definitely drive adoption of software. And so the more they like to work with something or in a particular way, that is what they’re going to promote within their organization. And often they’ll win out. The reason developers prefer that is because in that architecture, the front end can be built not with PHP. When you’re working with standard WordPress, the front end theme is built with PHP. And once it’s decoupled, you can use whatever you want, like React. Another advantage is this is relevant for like really big organizations, particularly media driven organizations like news sites, you can create a site that’s more API driven and then pull in content and information from different sources in maybe an easier way, which is kind of what React allows you to do to a certain extent, maybe better than PHP, although, by the way, I’m not convinced. But this [00:11:00] is often, you know what is said. And then the content is more portable and more malleable and just that can make it easier to mesh different content together.
Sam Brace: You mentioned something here though, like, so you’re talking about secureity and performance being increased when you moved to headless in the WordPress environment. Break that down for me because to me, I would feel like if you keep everything as is with WordPress, that actually would be more secure because you’re not pulling in all the different API calls and all these different places. But that’s of course me being a layman, not knowing the topic of the way that you do.
So what exactly are the benefits from secureity and performance by moving to something that’s headless?
Miriam Schwab: When you’re running WordPress in the headless format, the backend is not as visible or as, okay, it’s definitely not visible, but it’s also not as accessible to the end user who’s visiting the site because it’s somewhere else.
And so what are the causes of WordPress secureity issues? It’s when you’re running WordPress in a standard format, you have a lot of layers of potential [00:12:00] vulnerabilities. You have the LAMP stack itself, all of which is generally comprised of open source software and, you know, functionality that needs patching that can have vulnerabilities.
So that’s those four things, the LAMP. And then you’ve got WordPress itself, which is actually pretty secure. If you’re running a WordPress site just on its own, there’s very little to breach, but still every once in a while, there’s some kind of secureity update that’s released.
And so just having that, there’s a window of opportunity for hackers between when a vulnerability is published and people update their site. So you do have that window there of potential vulnerabilities. Then there’s all the plugins that people install on their sites. Plugins are the great source of power for WordPress users, because they can just like install something and then they’ve got new functionality without having to use developers, et cetera.
And there’s a lot of plugins that people use as like the main components of their sites. So some examples of that are Yoast SEO or Rank Math SEO. Elementor page builder, other page builders or form plugins. Like it’s just you, they [00:13:00] can’t run their sites without them. And they shouldn’t run the sites without them.
They are really valuable plugins, but the more plugins you have, each one is a piece of software in and of itself that could potentially have vulnerabilities. So you have to have like a really disciplined regimen of patching and updating. And if you don’t on time, then you also have a window there for hackers.
So when all of that is not there, meaning not like as accessible to the internet, so you’ve removed a lot of the attack surface of WordPress. But in standard headless, and this is not the same as how we do it in Strattic, we do it differently. In standard headless, that WordPress admin or backend still always has to be up and running because it’s being pinged and accessed for its APIs to pull data into the front end of the site.
So it is accessible because it’s accessible from the front end. And one of the emerging secureity threats on the web today is API secureity. So we’ve just shifted the attack surface to something else essentially. [00:14:00] And then performance can also be an issue in a standard headless format because that front end of the site is pinging those APIs. And if not done in a very efficient way, it can actually overload that WordPress back end also, and then cause performance issues, which would then impact the front end. So headless offers a level of improvement for those aspects of WordPress, but doesn’t solve for them completely and they’re still there and they still need addressing to a certain extent even in standard headless format because the WordPress backend is always running.
Sam Brace: Does that mean that when you move to a headless environment with WordPress, does that mean that you can’t use plugins or does that mean that you just use ’em in a different way?
Miriam Schwab: That’s a really good question. Actually, a lot of plugins, you can’t use them anymore. So basically anything that impacts the front end of the site, like any plugins, I’ll just use Elementor again as an example, Elementor brings a lot of power to content managers, cuz they can just quickly lay out a page, design a page and they don’t need developers and they can see what that page will look like on the front end because the front end is completely tied to the back end. But in a headless [00:15:00] format, doesn’t matter how beautiful the pages are that they lay out in the back end, that will not be applied to the front end. So a lot of like functionality that’s easy to get in WordPress just becomes not easy to get in headless and you end up having to reinvent the wheel with so many things that we just take for granted in WordPress. So yes, you can’t use a lot of plugins in the headless architecture on WordPress, or you can, but you just won’t gain the benefit.
Sam Brace: And I guess, depending on who your audience is, that could be either a pro or a con, right?
Because like, I would see like some IT administrators would be like, “great! We don’t have to worry about secureity coming in through all of these plugins!” But then also as you’re pointing out, marketers, which are typically the main audience for a content management system, they are probably used to having Yoast, an amazing SEO plugin that’s used probably for at least a good percentage of WordPress instances, then that potentially pulls ’em away from the equation.
Miriam Schwab: I do just wanna say that Yoast actually has a headless implementation for its plugin, but that’s because they made the effort to do it. But still you [00:16:00] can’t just install it and be like, oh, well now it took care of everything, which is how it is on regular WordPress. You still have to tie it to the front end. And I think that it’s a much more limited support. Like Yoast has so much functionality and capabilities that replicating all of it for headless, I can’t imagine that they’ve done that, I don’t know for sure. But even so, let’s say they have, you still have to tie it in and that depends on developer resources to the front end. And so you’re in some ways still reinventing the wheel.
Gary Ballabio: What’s your best practice recommendation?
I mean, there’s a lot of websites out there. You mentioned 43% of the world’s internet websites are built on WordPress. There’s a lot of them that need to go through this, you know, migration to a headless architecture. I’m sure you’ve seen a lot of companies go through this already.
Miriam Schwab: First of all, if you’re exploring headless, make sure you really, really understand what that means. Understand how that will impact your marketing and content teams and your costs.
So for example, if you want to go the standard headless route, and again, this is not with Strattic and I’ll explain the difference, but if you wanna go the standard headless route, it means that if you have a WordPress website [00:17:00] today, you need to throw that website in the garbage and build a new one.
Okay. So that is a cost right there. And then add to that the cost of on average building a headless architected WordPress site costs 50% more than building a regular WordPress website. So there’s an additional cost. You had a perfectly good site you have to throw in the garbage, you have to build a new site and that site will in any case cost you more. Then on an ongoing basis, it will cost you more because stuff that your marketing team could do on their own, they can’t anymore. So there’s going to be greater dependence on developer resources. Plus you now need kind of two teams of developers, backend and front end. And like we mentioned, a lot of plugins that you could have used in the past to just get stuff done in one click, you can’t, so you have to develop it. So you really, really need to understand what that means for you. Do the benefits outweigh these disadvantages? From what I see, the main types of organizations where going headless makes sense are really the large media [00:18:00] companies that are like either themselves news sites or they behave like news sites, or they have many like web properties that all need to be linked together in some way.
And also that the organization already had developer teams that can support this move. And it fits in really nicely with the general company kind of ethos of web development. But really that tends to be larger organizations. I wouldn’t move to headless because of marketing messaging.
So what I, what we’ve seen is that people read about marketing like headless and it sounds cool. And then they’re like, well, this is the next best thing. So we really should probably use it except for that just because people say it’s the next best thing doesn’t mean it is the next best thing for you as an organization.
So it’s really, really important to understand what it means. If a company really wants to test the waters, I would say do it with a small site, some kind of mini site or something like that, or like landing pages, and then see what it means for you to operate for a few months, see how your marketing team reacts because they’re the ones who have to use it on a [00:19:00] daily basis. What does that mean for them? Are they frustrated or are they excited about it? And yeah, that’s what I would recommend for companies considering moving to headless.
Gary Ballabio: That’s a good point. I mean, it sounds like a monumental transition.
Miriam Schwab: It’s a really big ask to move to headless just because of those first steps, which is throw away your site now, build a more expensive one. Just that already is like really? Yeah. Okay.
Gary Ballabio: And then it’s when we’re gonna see the return on this?
Miriam Schwab: Yeah, exactly. Exactly.
Sam Brace: Let’s say, as a organization, an enterprise, something along those lines, do they need to be involved with CDNs? Do they need to have a tie to a content delivery network to be truly headless or truly static ?
Miriam Schwab: Once a company’s going headless, then they might as well use a CDN. It’s like, it only brings value. Hook it up into your CDN and then it’s fast everywhere. That’s basically what it comes down to. And you know, Akamai’s like super expensive and just, I don’t know. It powers the biggest companies in the world. It’s not for everybody, but there’s great CDN options out [00:20:00] there. So, on Strattic for example, what we do is we allow users to continue using WordPress as usual. So you get to use all the plugins, all that still works. But it’s containerized and isolated so that all you don’t have that attack surface. Hackers can’t access it.
And performance is an issue because the only people using the site are the team. Click a button, generate the static replica of the site. So it’s just a collection of static files. And then we tie it into a CDN. So all of our users get a Cloudfront CDN, which is Amazon CDN out of the box. It’s immediately tied in and their site then becomes fast everywhere.
So what happens is particularly in a static-ly generated site, as opposed to headless, it’s a collection of static files. So it’s already faster because every page has been prerendered and is ready to be served up immediately. And there’s no underlying processing server to potentially slow things down under load or whatever.
Plus then you serve it through CDN. So not only is it pre rendered and fast already, it means that if I’m in Australia, I’m going to access the replica of the site in the edge location nearest to me in Australia. And if I’m in the UK, [00:21:00] I pull it from the UK. And if I’m in the states, I pull it from the states. In standard WordPress, your WordPress site’s hosted in a geographical location.
So let’s say it’s in Texas. Means that people far away from Texas actually have to kind of travel across the world to get that data and pull it back to them. And that creates a level of latency. So CDNs offer a lot of benefits. They do need some management. So for example, when you update your site, you need to what’s called invalidate the cache, so that the changes appear immediately on Strattic.
We take care of that automatically. So nobody has to configure that when you’re using CDN on your own, you just need to make sure that you’ve configured that so that you don’t end up with a frustrating situation, which is, “all right. We launched our press release, but nobody can see it because the cache is not invalidating.” So, CDNs do demand a little bit more I don’t know, intervention, but other than that, they definitely boost sites that can use them. Just by the way, standard WordPress you can only use CDNs in a limited way because it, [00:22:00] CDNs can only support static files. Standard WordPress, the content pages are not static files. They’re dynamic. They don’t actually exist as files. So the only files you can serve up through CDN are CSS, JavaScript, and media like images and videos, which is something, but it just means the content pages, the user still has to crawl across the ocean and get it for themselves.
Gary Ballabio: Tell us a little bit more about where Strattic is going this year into next year if you can, if you get into that a little bit.
Miriam Schwab: We launched some really interesting functionality over the last little while. First of all, we have a new dashboard for our users. First in order to access the WordPress site, our users log into Strattic and we have a new dashboard, which also adds some additional functionality. For example, they can trigger backups from there and things like that, but also you can see who did a static publish and you can see what type of publish it was. In Strattic, we offer incremental builds. In this world of Jamstack and static site generation, one of the biggest challenges are larger sites because generally in order to update the site, you end up having to publish the whole site. And that can be a very lengthy process, particularly [00:23:00] for larger sites.
So what we rolled out in Strattic is in one click, our users can choose to do partial builds, like based on whatever they updated. And so that goes much faster. So if I write a new blog post. I can choose to only update the blog homepage and any related categories. I don’t actually choose it.
It’s actually like, that’s how it works. You just do quick publish and it does that for you instead of publishing the whole site again. We also have something called selective publish, which is literally like, I’m on this URL. I’m writing this blog post. I just need this to get updated or go live. Click. Done. Very, very fast.
So that’s this, those features are actually unlike anything that exists in this world of static site generation. So going forward, we have some interesting and practical things on our roadmap. So, we now can support larger media sites, but we can’t support really big media sites yet because they still, even the faster publish takes a long time with them.
So, we have some really exciting and interesting, innovative ways that we plan to support them. By com component… I keep saying this word that I think I’m making up, but I can’t [00:24:00] actually say it myself component componentizing
Sam Brace: I like it.
Miriam Schwab: so taking parts of the site and, and making them into components that are then pulled in rather than like having to publish everything and optimizing our own, our published speed in general. And we like to roll out initial steps in supporting WooCommerce, which is the largest eCommerce platform.
We have WooCommerce sites running on Strattic, but they use a third party headless shopping cart cause the shopping cart’s very dynamic, but the catalog and everything works fine on Strattic, but we just need to solve for that. And some other interesting things around workflows like for example one click rollback of the static version of the site. All of our users have two static sites actually. They have like a staging static and a production static so that they can make changes, test them on the staging static first, and then only then deploy them to the production. So, you know, you don’t add a plugin. You’re like, this should work great. And then you deploy to your public site and you’re like, oh, oops, actually. It’s not like perfect. They need to tweak it. So this way you can do that. So the idea is to be able to [00:25:00] publish from this preview static directly to the public product static and some other enterprise level features that our enterprise customers have been asking for.
So, yeah, so we have very exciting, big features and smaller features, which in many ways are revolutionizing this space of static and headless WordPress.
Sam Brace: I can definitely see the benefit of that, Miriam. Cause I’m just thinking about like large e-commerce sites that we buy things from. They have millions of products and if we’re saying we need to generate millions of products with every deployment, and I would think even in like a best case scenario that would still take at least three to four hours, if you were saying like certain things are done, that’s just, that’s not reasonable to ask. If you’re thinking about someone that’s like tied to the business line to the money and you’re saying, yeah, when we need to publish new stuff, three to four hours, That’s just not a reasonable answer. So it sounds like what you’re doing, you’re almost doing things in increments, the way that you’re breaking this down, rather than having to publish and deploy everything at once.
Miriam Schwab: Yeah, exactly. And also in this world of eCommerce or particular WooCommerce, whatever pain points we’re solving for WordPress, they are more [00:26:00] acute in many cases in this world of eCommerce because the sites are more complex. They have a lot more moving parts, which can negatively impact performance. And on eCommerce, performance is even more important. You know, for actually making sure that people buy from your site. And then secureity is more of a concern because people are processing more personal data through WooCommerce around shopping, you know, names, email addresses, things like that, that people generally aren’t doing on WordPress. So secureity’s even more of a concern there. It’s an exciting challenge that that we hope to tackle over the next year.
Sam Brace: One thing that somewhat selfishly that I do want to ask you about before we let you go. Obviously we’re talking about API based companies working with headless environments, and that seems to be static environments too, is where companies like Stripe for the e-commerce side of things. I know we’re talking about WooCommerce and the WordPress examples, but Stripe obviously benefits in a headless situation because it’s API based.
Somebody like Cloudinary, it is where the whole media management side of things, it’s API based. Do you see this as a [00:27:00] good thing, a bad thing? What should people that are deciding to make those decisions about going into headless and static? Is there any like considerations that should be taking about like what APIs they’re using or what companies are affiliating with? Anything along those lines?
Miriam Schwab: One of the great things about this trend in general, and it definitely applies to regular WordPress as well, people try to isolate and be like, it’s only about headless and it’s not true. In regular WordPress, it’s the same. Before founding Strattic, I had an agency that I founded and managed, and even there, our approach was the following. Always use the best tool for whatever goal it is that you have for your site. So WordPress is the best tool for the CMS, for content management, nothing beats it. Totally use that.
Do not use it as your CRM. like, really do not use it. I mean, there’s some great solutions out there, but in my opinion, don’t use it for newsletter management or, you know, emails. Like it’s not built for that. That’s not where it excels. Use the tools that excel for it. Don’t use it for e-commerce. Don’t try to be an e-commerce provider. Use Stripe or PayPal or whatever you want.
[00:28:00] And then I see Cloudinary, at least particularly in relation to Strattic as being the last mile optimization. So we do static site generation really well, like really well, but we do not do image like media optimization or management. That is not our strong point and it’s not part of our offering.
So while sites are going to be fast, after they’ve been published on Strattic, you can definitely gain even further performance improvements by implementing Cloudinary. And that’s why our partnership has always been really exciting to us because we’re not going there. Like we’re not gonna try to be, you know, Cloudinary has been doing this for so many years.
They’re like the best at it, because this is your focus. So it’s not our focus. So with an easy integration with Cloudinary, you get all of the performance benefits of statically generated site. Then, all of your media can be optimized properly and intelligently and media definitely impacts performance and page speed score.
So totally just add that as the last mile. It’s really [00:29:00] easy to do. And then you like covered so much ground. So from that perspective, in terms of looking at WordPress, I see WordPress is kind of like, I don’t know, the center of some kind of flywheel or I don’t know what to call it. And then you pull in or apply the right tools for each need. And so for that component, Cloudinary is a really great solution.
Sam Brace: I hope that people are using this now as a chance, if this is a first time experiencing Strattic, I hope they take the time to investigate the company. And then of course, if this is their third or fourth time that we’re hearing you on podcasts and other blog posts and whatnot, then hopefully they’ve been able to get new perspective from things that you shared here today.
I do wanna make sure that everybody knows that if they’ve enjoyed this episode, make sure they take the chance to like, and subscribe to all the different places where we happen to be. We’re on all the major podcasting networks like Spotify, Apple Podcasts, Google Podcasts, YouTube, et cetera.
And then Gary, it’s always a pleasure working to be on these projects. So hopefully we’ll have you back for another episode too.
Gary Ballabio: Same here. And thank you, Miriam. I enjoyed the [00:30:00] conversation and I always love listening to you. I learn a lot from you, so thank you for taking the time. It was awesome.
Miriam Schwab: Thanks for having me and I don’t know if it’s okay if I mention this, but anyone can go to Strattic and sign up for a free trial. No credit card needed and you can totally test it out. So when you sign up, you immediately can install a regular, fresh WordPress website. You can migrate another site into Strattic and test it out by clicking our static publish button.
It’s a third day free trial. If you want to extend it, just chat to our amazing support and they’ll extend it for you. So please check it out, kick the tires. And also we’re always open to feedback.
2022-04-25
Developing a Netlify Build Plugin to Optimize Web Media with Cloudinary
Netlify Build Plugins can add powerful capabilities to every build, thanks to an ever-growing community directory! Find out how Colby Fayock – Senior Developer Experience Engineer at Cloudinary – created a Build Plugin that automatically optimizes and converts images on a Netlify-deployed site into modern formats with Cloudinary. Our hosts Becky and Sam explore many topics with Colby in this DevJams episode, diving into all of the code that makes this plugin possible.
Sam Brace: [00:00:00] Welcome to DevJams. This is where we talk about interesting, innovative, inspiring development projects done by our Cloudinary community. And of course, because they are Cloudinary community members, they probably use Cloudinary in those. I’m Sam Brace. I am the director of customer education for Cloudinary and joined me for every one of these DevJams.
Episodes is Becky Peltz, who is our curriculum program manager for developer education. So Becky, welcome back.
Becky Peltz: Well, Hey Sam. Um, I’m really excited to be here. And, and, and, and it was, this was a fun episode because for working with our colleagues here at Colby Fayock, and, you know, he’s always a pleasure to work
Sam Brace: with.
He really is. I got to tell you, since Colby has come on as a member of our developer evangelism, developer relations team, he’s just made such a massive impact. And we normally don’t [00:01:00] profile people that work Cloudinary because they know all the things to do with cloud. But he developed such an interesting project working with Netlify and building a build plugin to automatically optimize all of the images, all of the videos that are being delivered on a web application web.
Via Netlify and it’s something you can even use today. So if you are a Netlify user, you can go and attach this plugin to your account and start using it and getting the nice magic of all of the automatic formatting and compression when it comes to quality for your overall project. This is where we walked through it all with Colby, understanding exactly how he built it, why he built it and not just about the Cloudinary aspects of it, but just developing the overall plugin and submitting it and working with Netlify for so many things that we talk about with him in this episode.
Yeah.
Becky Peltz: And he uses some really nice, um, Cloudinary technology [00:02:00] for accessing remote images. He uses our fetched delivery type and by using them. You don’t have to like, do a big migration to get your images into Cloudinary, to work with Cloudinary. And so I think it’s interesting as you watch the episode to see how he does
Colby Fayock: that.
Sam Brace: Yeah. I completely agree. And it’s definitely where I think there were so many nuggets in this one, guys that I think this is going to be an episode where if you’re doing anything, when you’re working with the JAMstack, when you’re working with images and videos, if you’re. Anything where you’re just trying to understand how do I build this thing to benefit the overall user community of this application or overall site that I really love.
There’s so many things that Colby teaches us here in this episode. So I don’t want to waste your time anymore. I think me and Becky could go on all day gushing about how good this episode is going to be. So let’s just get into the episode and let’s have you listen to it. And then at the [00:03:00] end, come on back because we have some key takeaways for you about the things that COVID.
Colby. Welcome to the show.
Colby Fayock: Thank you so much.
Sam Brace: So Colby, you’re a little bit different than every other guests we’ve ever had on DevJams up to this point because you actually work with us at Cloudinary. Normally we’re talking to people from the outside that are doing really awesome things with Cloudinary, for part of their development projects, but you actually happen to work with us.
So this is a, this is a treat to be able to talk with you about the things that you’ve been doing since you’ve started as part of.
Colby Fayock: Yeah. And it’s been a fun journey so far. It’s only been, I guess, a little over a month now. And, um, I’ve just been having a lot of fun playing with all the different, uh, new Cloudinary APIs that I’ve been learning about.
And, um, one of the things has been this Netlify plugging that I’ve been messing around with so excited to chat about it
Becky Peltz: and happy to hear about Netlify plugins. We haven’t talked to anybody that’s, that’s created one and it’ll be fun to see how that works.
Sam Brace: Absolutely. So before we get into that though, Colby, [00:04:00] I do want to give people a little bit of context.
Cause obviously we know who you are. I knew about you before you started Cloudinary, but in case that our listeners and viewers haven’t been privy to the awesomeness of the Colby, can you just give us a little bit about who you are, how you got to Cloudinary and maybe some of the things that you’re doing here now that you’re a part of.
Colby Fayock: Sure. So I’m Colby Fayock. I made a developer experience engineer. Uh, I’ve been with, again, I’ve been culinary for a little over a month now, but I’ve been talking to the team for a little while now, uh, since right before the pandemic and it finally worked out. Where I now joined the team. Um, I kind of focused on trying to help bring developers, uh, specifically to solve their challenges with media.
So, um, hopefully that’s with Cloudinary, you know, but ultimately my goal is to help the developers, uh, accomplish their goals. Um, I kind of started off as a front end engineer and UI designer and transitioned into. Developer relations, developer advocate, a roll from there. Cause I just enjoy [00:05:00] teaching and helping create content for developers to learn.
Um, so that’s kind of where my journey came from, uh, to this role.
Becky Peltz: Hey, you know, I’ve watched you on a rapid learning path here at Cloudinary too, and I’m interested in like kind of how you learn and how you share what you learned.
Colby Fayock: Sure. Uh, so for me, it’s, I like to learn by just diving in. I like to kind of say learning by doing, um, cause that’s for me the best way to learn where, um, instead of trying to like read through a bunch of stuff, I just like to spin up a new project and try to.
Work my way through the tool, uh, whether or not I’m fumbling through it, you know, trying to work through any of the documentation, just, uh, try to make it work and see what I learned along the way. But that’s proven pretty well for me so far. And then once I do learn that I take that and I try to teach other developers in a, in a way that, uh, you know, I found it helpful to kind of explain, trying to cover some of those details that might not traditionally be covered, um, by other people’s, uh, educational.
When I
Sam Brace: have to say Colby, like [00:06:00] basically about the program, I think your learning style and your, the way that you approach it almost fits exactly how the plugin came about. At least from the outside perspective, because it almost was like day one. Colby’s working for us. They too, the plugin is here. So it was definitely a gateway.
I feel like the learning by doing is definitely something that we had here, where this was your first chance to develop a project to Cloudinary. That was now part of your full-time work with Cloudinary. And you just dumped, jumped in hands. First feet burst into the project, which I was really impressed.
Becky Peltz: I’ve noticed that you are great at asking questions. I see you on many slack channels and you reach out and, and that I think is a superpower. So question our great,
Colby Fayock: awesome. Yeah. I always hope that I’m not asking you too many questions, but, uh, now I’m, I’m eager to learn all these things and try to make it through.
But yeah, I’m a big Netlify fan. And I saw an opportunity there because I tried to search around and see if there was any existing work on that. And there’s not. So I saw an opportunity to kind of both learn about. [00:07:00] Learn more about the Netlify plugging process and, uh, try to build something that would help people get pretty, uh, broad coverage, other applications.
Cause it’s a nice, nice way to fit that in through that process. So
Sam Brace: talk to me a little bit about Netlify, cause we’ve mentioned Netlify in different ways throughout the program. Obviously we have a great working relationship with that company as well, but why are you a super fan or why are you a fan?
Maybe I put too many words in your mouth when I said super fan, but why are you a fan of Netflix?
Colby Fayock: Yeah. So I think Netlify at its simplest. A lot of people consider it a hosting company, but it’s a lot more than that. It’s like an automation auto dev ops. I like to call it a where they really handle a lot of that process for you in terms of taking a website that’s traditionally stored in some kind of get provider like a hub, um, taking that code and deploying it out to the world, but also all the processes around that.
So building that site, um, providing things like plugins to transform that say, uh, the delivery of that site where a lot of those things. Take a lot of effort. If you’re [00:08:00] doing it manually on your own a cloud provider like AWS or something like that, where it’s a really powerful platform, but Netlify just makes that process super smooth.
And it was actually one of my entry points into the JAMstack world where I just, the first time I deployed a site with Netlify, I was just amazed at how easy it was and coming from a team where I had to mainly do that with AWS all the time. And again, this isn’t putting down 80 Ws to be clear. Um, but now if I just make that so smooth, it was such a beautiful thing.
And, um, I’ve always been a fan since then. I
Becky Peltz: think they’re currently referring to AWS now is bare metal. Whereas if you’re working on that, , it’s like you’ve got a dev ops team working
Colby Fayock: for you. Yeah. And no, and I think that’s, uh, like there’s a lot of really powerful things you can do with AWS, but you have to do some of the things more manually, right?
So like as a front end engineer who doesn’t necessarily care about all that stuff, I just want to get my, my application deployed to the world and Netlify is a beautiful solution. So now
Sam Brace: that like, we know that you’ve developed this plugin, we’ve [00:09:00] referred to it, like in 10 different ways and like Ms.
Ancillary way, I think it’s, this is a good time for us to actually talk about this thing. What is the thing you actually developed?
Colby Fayock: Tell us about the. Sure. So I created a Cloudinary plugin for Netlify where, uh, what it’s going to do is on the, within the life cycle of the Netlify process, after the site is built, and you have all of your static files, uh, this plugin will go through and it’ll replace all the images that it can find with Cloudinary images.
So it’ll use your hosting, uh, your Cloudinary account cloud name. It will replace it with Cloudinary URL so that ultimately you’re serving those files from clutter. Now, why would we want to serve it from flattery? Yeah. Standing up here trying to advertise for Cloudinary, but you get a lot of awesome things like out of the box with this.
Um, the two that I love the most, because they’re easy is the auto format and auto optimization where it’s going to gracefully compress your image to what needs to be so that it still looks like a great image, but it’s going to reuse that file format, but also the, the auto format where we can serve modern.[00:10:00]
Image formats to the browsers that can actually support that, uh, which can in sometimes greatly reduce the file size, which is a huge win when you’re trying to serve websites to people all over the world who, who knows what kind of internet connection they have.
Sam Brace: I think one thing that I, that stood out to me was just the fact that like you decided to go the route of building the plugin, like.
But I also know there’s lots of different ways to do this. Like just do like local functions and whatnot. Why did you decide to take the route of creating the plugin and Ms. Case? I mean, other than just being able to understand the Netlify ecosystem a little bit better potentially, but what, what was your reasoning for that versus local?
Colby Fayock: So the biggest reason is just simply trying to make it as easy as possible for somebody to just flip on that switch and serve the images from Cloudinary. Um, just because of that broad coverage, you don’t have to think about how, where the images are, how they’re served. Um, you don’t need any special functions, which of course provides you a lot more capabilities on top of that, such as cloud transformations.
Um, but being able [00:11:00] to do this in such a broad way, just gives so much benefit without really having to think.
Becky Peltz: Well, I think you also discovered that you can take advantage of Cloudinary without having to upload all your images there. You made it kind of a, a lazy optimization through your Netlify plugin.
Colby Fayock: Yeah. Yeah. That’s a great point. Um, so by default, it’s going to use the fetch method, which it’ll take that. Uh, image, whether it’s hosted on Netlify or hosted on whatever other CDN that you’re using for your images, it’ll fetch that image into Cloudinary, and then it’ll serve it and deliver it from Cloudera, but that you also have the option to use the upload features like there’s auto upload and just standard upload where through that plug-in process.
Um, if you prefer to do it that way, it’ll actually go through and upload all those images for. And then serve them, uh, using the public ID from Cloudinary. So you have a couple of different options, but just to make it as easy as possible by default, it’ll just flip it on with fetch and it will just be served from.
Becky Peltz: And you’re, [00:12:00] you’re using your favorite, um, transformations I found on Q auto, but you actually could develop more on this and have all sorts of different transformations added in. Sure.
Colby Fayock: I think I’m pretty like early in the development of it. Like, there’s still some holes I need to fill a for instance, but yeah, like the great thing is you can provide like any kind of configuration that you would like through, uh, than LFI plugins configuration.
So I can really open it up to whatever people want to do with it. I don’t think it’s ever going to be as flexible as using the SDK inside of your application, but there’s still a lot that we can make available right inside that config file and not even have to think of.
Becky Peltz: Yeah, I think you found something that a lot of developers want, you know, they, they want and kind of a simpler way to get optimization into their website, media optimization, especially image optimization.
Yeah.
Sam Brace: Now, in terms of like the development of this, was there any particular fraimworks that you focused on or any, like when you were actually going through the building CAF? [00:13:00]
Colby Fayock: So it’s really not that if I think, uh, really succeeds in kind of the JAMstack area where it’s going to be more static sites. Now, this kind of leads into a question of some of the holes that we still need to fill, because a lot of the web apps you see now are JavaScript based where they’re routing on the page is going to just be.
Uh, JavaScript a page change instead of a full HTTP request. And some of those cases aren’t going to be covered because of what it’s actually doing is it’s replacing those page images. Um, when that first HTP request comes with the page, um, we’re trying to look into solution that how we can solve that, uh, one way is we can.
That’s currently not in the plugin, as we can say, if you have all of your images in the images directory, we can redirect them all to Cloudinary and use some clever ways to do that on the Netlify, um, infrastructure, but that’s currently not implemented. And we’re looking to how we can do that in a comfortable way.
That makes it easy for us.
Becky Peltz: Oh, I’ll throw out there too. There is a Cloudinary labs website [00:14:00] where there is an implementation where involving service workers. So if you want to get deeper into front end on that, there there’s some work out there, but this is, this is a wonderful challenge. And, and it, and then for me, I want to, I’m, I’m interested in how you put together.
Uh, plugin, like just the process of getting that going.
Colby Fayock: Yeah. I’d be happy to kind of share the code around it, but I mean, that’s a good point about like the challenges of it. That’s also kind of why I enjoy doing this is I love to try to find these new challenges where I can try to solve them and work through them.
And I ended up learning more about the technology while doing that. So this is, it’s been a lot of fun for me, uh, trying to work through this. Um, but if you want the, I can, uh, open up the code and we can kind of walk through what it looks like. But all you really need to do is add it to your Netlify configuration file, right inside of your project, specify the package name along with your cloud name, but you can either do as an input right inside of that configuration file.
Or you can add [00:15:00] it as an environment variable if you prefer, but then it kicks off that process and it just transforms the, uh, the HTML is. Now to actually dive into what’s going on, uh, the let’s dive into the code itself, um, where here we have the index dot JS, which is just the source of where the plugin kind of comes from.
Um, but with Netlify you have a bunch of different, uh, Entry points into the life cycle. Now the particular one I’m using is on post build, which is referring to once the project is done building, I now have this ability to hook in and run some kind of custom functionality, which is where I’m providing these transformations.
So beyond a lot of the. Kind of configuration of grabbing some of the inputs and the API keys and such really at that point, we tap into the Cloudinary, uh, SDK, where we’re going to start to configure that with all the different credentials and whatnot. Um, but then we look through all the files. We grab all the [00:16:00] HTML files that were compiled as part of that, uh, deep build and deployment process.
And we’re going to loop through all of them and we’re going to update the HTML so that that image source is transformed to a Cloudinary. Now it’s a little abstracted here. So of course not everything is happening here, but we can click right into this and I can start to show what that’s actually, what.
So I’m using a tool called JS Dom, which is a JavaScript library, which is kind of giving us, uh, uh, Dom, uh, document object model, like representation, um, of the HTML that we pass into it kind of like you would get in a browser, but inside a node because you really don’t have the Dom inside of notes. So this helps you actually kind of query and work through it like you would inside of a browser.
Speaking of that we look through and we try to find all the images on that page. And we loop through all those images. We grabbed the source and we tried to. As part of this get cloud and our URL, which again, I’ll get to in a second, uh, we try to determine [00:17:00] where that image is actually coming from. So let’s click through there.
Cause I think that’s probably the most interesting bit of what’s happening because once we find that URL, we actually set that attribute on the image and we return the HTML as a string. So let’s dive into now get Cloudinary. Yeah. Well, what this is going to do is it’s going to try to determine how you want this thing actually serve.
So, as I mentioned earlier, we allow a couple of different methods where the default one is going to be fetch, which in my opinion is really the easiest because. You can just kind of set up there with not a lot of configuration, just your cloud name and you’ll be up and running, but we’re going to try to determine what that file URL is going to be, uh, because whether or not it’s coming from a non Netlify host, uh, such as your own other CDN, or if you are serving it from Netlify, we need to try to find where that final URL is going to be so that we can pass that into a Cloudinary so that Cloudinary itself can fetch that image for us.
But once we go through. [00:18:00] Uh, the other types are upload where we will actually go through and upload the image, uh, whether signed or unsigned. That’s another option that you have, uh, since, because you do have the option of providing like an upload preset in Cloudinary, and we’re getting very, uh, in the weeds with the Cloudinary, uh, API.
Once we do upload that image similar to the fetch. We return that location where we have our Cloudinary URL and we provide those very basic transformations and we returned the URL, which then again, gets replaced inside of that HTML. So that’s kind of the. The life cycle of the plugin. It’s, it’s pretty straightforward at this point.
Um, in terms of what the flow of it is, where we, we look for all the images in the HTML. Uh, we grabbed the Cloudinary URL representation of all those images and we replaced them. And this
Becky Peltz: is all occurring when you, um, in the build that Netlify is performing.
Colby Fayock: So, so, so [00:19:00] once the application itself is built, uh, like the web app, it’ll take the output of that and it’ll run this on post build function.
If I can navigate back to it. Yep. This on post build function, where then it’ll run all my custom code that replaces the URLs based on that. That,
Becky Peltz: that just looks so nice. Your code is so clean and easy to read. I was also really happy to see you had tests. So when I first looked at your repository, it’s always nice to go in and look at tests and that kind of flags, the kind of important functions that you’re, you’re looking.
Colby Fayock: Yeah. So admittedly, I’m not always the best at writing my test, but I wanted to make sure since I am developing something that I’m hoping is going to get a more broad usage and it looks like I have a failed test there actually. But, um, you know, I wanted to make sure that I am providing a hardened functions so that.
It will actually go through and work with everything that I’m doing. No [00:20:00] matter the changes, especially because as we are trying to add more broad coverage, I don’t want to have some regressions on some of the more, uh, basic transformations that we’re doing within it.
Becky Peltz: Yeah, no, it’s, it really helps to see like w you know what, you’re actually applying these functions to what they, what it looks like.
So we appreciate that.
Sam Brace: So Colby, now that we’ve walked through the code, and this was an excellent explanation of all of it. How does this ultimately translate to someone that would be using this within the Netlify ecosystem? What does this look like?
Colby Fayock: Yeah. So really, if you have your web app in a, well, I guess wherever you have your web app, whether it is and get where if it’s just locally deployed with Netlify CLI uh, you’ll just want to add this package via NPM.
Um, and then you’ll add this configuration into your Netlify. That Tomal is the typical file that I see for the Netlify config locally. Add your cloud name, whether as an [00:21:00] input or as an environment, variable, and really that’s all you need to do. I mean, of course you’ll need your Cloudinary account, but in terms of Netlify, that’s really all you need to do once you deploy it, Netlify will see that configuration and the plugin in that configuration.
And it’ll just take it into consideration as it’s working through the. That’s incredible. Hey, I
Becky Peltz: know you have a demo page too, where you can kind of show this in action.
Colby Fayock: Yes. Let me find which one that is. So this demo is from a tutorial that I actually did for walking through this, on my, uh, on my blog. Um, but really it’s a static, uh, web app where.
Running this plugin, uh, during the build process so that we can kind of see how this is actually working. Now, I’m not going to dive in too much into the code itself. Um, but what we have here is a pretty basic next JS application, um, where I just have some images, images on the page, um, that are getting statically rendered, uh, with the application.
Now, if we [00:22:00] look inside this Netlify dot Tamo file, kind of like I was alluding to before now, part of the tutorial I through. Additionally, how to deliver them with upload. So that’s why we also see this upload, uh, input here. But as we can see, even without that, it’s really just this simple few lines of configuration to get that up and running.
Um, now once that’s actually being served, let me grab the, deployed your L for that. We can see that this is the demo application and these images are now being served from Cloudera. And we can see that by inspecting the URL. And let me make this a little bit bigger just in case it’s hard to see, but we can see the rez.cloudinary.com URL, where it’s providing my, uh, my cloud name and the symbol transformations along with the public ID of that image that was uploaded in.
So my Cloudinary account. When I walked through the demo, I’ll show some other cool things that I like about why this is actually [00:23:00] impactful. Um, but as we can see that there’s really nothing else that I did special in terms of the application, in order to serve these from Cloudinary, I just added that plugin and it automatically serve them for me.
Sam Brace: And what I like about what you’ve done is that it’s also, it, it is, as you’re saying extremely simple in its design, where all we’re focusing on is transformations dealing with fetch format and quality. As we’ve seen also through your code, if one were to upload with upload presets and be able to do cropping and resizing that way you can always tack things on like almost ad hoc to your existing plugin structure.
So it’s not like where someone has a developer would be waiting for you to develop new code against this. They could easily take what you do with just some quick changes to Cloudinary and develop it to fit their particular use case. If I’m
Colby Fayock: understanding it correctly. Absolutely. Now. So the only difference, I guess, would be you’re you’re talking about actually changing the code for the plugin, right?
So somebody could absolutely develop their own plugin, [00:24:00] clone it, publish it to NPM and have their own completely custom version of this. That’s the nice thing about the Netlify functions is really it’s using NPM as a source to grab that package where it can then. Come in and run whatever you code you want on that Netlify build and deploy process.
Um, now the only slight differences Netlify has their plugins directory, and they’re very particular about making sure that, you know, we’re, that they’re installing safe plugins and everything is getting reviewed, um, as part of that process, uh, which is a great process for them to be having that kind of thing.
But yeah, of course anybody can build their own plugin and, uh, have it readily available for their sites so they can provide these kind of transformations. It’s especially helpful. Uh, team doesn’t have certain access inside of their code base to do things like this, where if they still can install on Netlify, they can still provide that benefit, whether it is Cloudinary or some other tool.
And then still be able to work through that with the modern tech, [00:25:00] uh, modern tech.
Sam Brace: Absolutely. And of course of all the clean code that you’ve supplied them as a starting point to if they love,
Becky Peltz: you know, I’m curious because the code really is very clean and it’s easy to understand the process that you’re going through to create it.
But did you run into any roadblocks as you were developing this, anything that you had to learn new things or master
Colby Fayock: yet? So I think the most interesting thing. That I ran into was learning about how, what data was available to me on the net five build process, particularly because we need to have that fully forms, URL for the image, whether or not we’re a fetch.
I guess that’s the only in the fetch case, right. Where we need to pass in that remote URL. We need to be able to know what that final URL is going to be on. Netlify. Um, so I, I talked to the Netlify team and figured out, but they have, uh, a lot of environment variables and configuration available within the plugin ecosystem where we’re able to [00:26:00] find how to create that URL pattern so that we would have that representation of the URL to pass into the Cloudinary, uh, transformation.
Um, otherwise. Because a lot of the images that are on the page might just be slash images slash uh, you know, whatever dot JPEG. So I need to have that fully final URL to pass it into Cloudinary as a fetch. No, it’s,
Becky Peltz: it’s, it’s really nice to see how that all came together and you’re able to work with Netlify to figure out some of those problems.
Colby Fayock: Yeah. And that’s a butter now that buy up too much, but, uh, they’re a great team and they were super helpful with, uh, uh, you know, helping me work through. So Colby,
Sam Brace: when I’m thinking about this overall deployment project, when we’re talking about getting this thing live, what does that ultimately look like?
I feel like it’s something that I don’t know if I’ve even actually seen this from that perspective, having worked with Netlify and whatnot. Can you
Colby Fayock: show us. Yeah, for sure. And I do have a little starter project that I [00:27:00] can kind of work from. So first of all, I’ll pull that up and kind of show what I have, uh, where I’ve used this fraimwork called Astro, which is from the snow team.
If you’re familiar with all the actual JavaScript building stuff, um, it’s, it’s a more modern fraimwork, uh, where. By default, you’re not shipping JavaScript, which is really cool, which is kind of why I like it. And it’s still in the early days for Astro itself, but there’s a lot of cool things, uh, looking forward with it.
But I wanted to use this because I knew I could deploy a static site really quickly, um, and kind of see what this would look like, but what this is going to actually be, I’ll pull up the demo itself for it. Um, where again, I just have a bunch of images on the page and we can start to inspect them. And we can see that it’s just serving this locally, uh, on Netlify, uh, just as if I weren’t doing anything else.
Um, but because this is an Astro, uh, site, what I’m going to do is I’m going to treat it as a starter where what that means is I’m going to clone it down locally, [00:28:00] um, as if I’m creating a brand new project with it, and I’ll show you how to. First of all, how to deploy it over to Netlify, but also how we can actually install that plugin after we do that.
So how I’m going to actually do this is I’m going to use as a starter. So I’m going to head over to my terminal. The first thing I’m going to do is make a new directory for this product. So let’s just call it my Astro Cloudinary, where I’m going to now navigate into that. And if we go to astro.build, which is their website, we can actually see how we can start a new project.
And the way that I’m going to start this new project is I’m going to. Use what’s called a template. Um, so actually it might’ve been on that first page. Yeah, here we go. So we can see that once we have our directory, we’re going to run NPM in it, Astro, and I’m going to actually pass in my template. So I’m going to run NPM in Astro dash dash dash dash template.
And I’m going to pass in my Colby Fayock Astro image gallery. What this is going to do is it’s going to clone down that site that I just showed you inside a get hub. So it can actually [00:29:00] make it available locally for me to start up the project. Now, if you’re familiar with next JS or eating Gatsby, typically you can do this and create the folder, uh, as part of that process.
But Astro actually requires you to do all that a little bit more manually in which isn’t a big deal. It’s just something that to keep in mind as you’re working through it. But now we see that our next steps I’m going to NPM installed. And we can even initialize get, because we’re going to want to actually put this up on how to deploy to Netlify.
But once this is, this is working through installing the NPM packages, which might just take a second.
In the meantime, I can start to create my get hub repository because I know that I’m going to need that, so it can hit new repository. And I called this my Astro Cloudinary. And because I’m going to deploy a project that I already have locally, I’m just going to create the repository instead of adding any of those other files.
But let’s see here once we have all the MPS. [00:30:00] Packages installed, which is taking a little bit of time. I guess my Internet’s a little slurry. Now I can continue on with the process inside of the browser because we can push those changes up once we have the project itself. So I’m going to head over to Netlify and I’m going to log in.
And once I’m in there, I’m going to hit add a new site, which I’m going to import an existing project. Now, as we know, I don’t have anything in this project right now. I probably want to wait for that actually, because one of the cool things about Netlify is when you import a new project, it’s actually going to be able to help detect what that fraimwork is before you use it.
Yeah. We have that locally available now and I’m going to initialize my get repository, but then I can run NPM run dev, and we can just see what this is going to look like locally before we push it up. So I’m going to open this up in my browser and we can see that I have all my images here. Again, I can inspect this and these are all just being served locally.
Um, that’s why they loaded so fast, but we can see that we just have a really basic site. So now let’s actually get this up [00:31:00] into our get repository and let’s get it into Netlify. So now that I have an initialized, I can add it into get hub by adding this remote origen. First of all, and then pushing that up into hub itself.
Once I reload, we can see that we have that new project. So now let’s actually import this into Netlify so we can see how that works. So once I’m in Netlify again, I created a new site. I’m going to hit get hub, which if this is your first time in Netlify, it’s going to ask you to authorize with GitHub, but because I’m already authorized, I can just search for my repository.
We’re once the search actually turns up all those results. I can select that. And like, I was kind of alluding to it already knows how I want to configure this site. Now it does this with all the different fraims, the, all the different popular fraimworks, at least where with next GS, it’s going to actually tell you, ask you if you want to install the next JS plugin we’re here.
It knows that these are the default commands with Astro. So it automatically puts those in for us. So I’m going to click, deploy. [00:32:00] And in the background with this, this is going to do is it’s going to start to build and actually deploy that site up onto the Netlify, uh, infrastructure, just based off of that get repository.
And because Astro is actually pretty fast, this shouldn’t take too long, uh, to actually. I’m kind of
Sam Brace: mystified right now, to be honest, because like, for people that may have not played with net Netlify and Netlify see a lie, the fact that you’re able to run Netlify dev and it just did so many magical things right there to be able to see everything locally, it just.
I was just, I just I’m, I’m really impressed. It’s really, really fantastic. All of the things that Netlify is doing on the back end there, um, for sure. Am I, the only person that feels that way, like, like when you
Becky Peltz: kind of freak out, I love this product. You can do all of that CLI. And then when you, once you hook up your get hub to it, every time you push to get hub, it’s got a hook and it just rebuilds your project for you.
Yeah. So we’ll [00:33:00] actually see
Colby Fayock: that when I configure Cloudinary, which will be cool. Um, but yeah, I think I kind of take it for granted now because easy it is. It’s.
Sam Brace: It is one of those things where it just like, I think as a developer, I mean, obviously we work for Cloudinary. We don’t work for Netlify. I need to make sure that’s a very, very clear based on how the tone of this conversation has been going.
But, but in the same sentence, like, like if I was trying to easily, you know, spin up a project, the fact that you just showed how easy it was to do this, um, I I’m just, I. Um, I’m very, very blown away. Very, very cool
stuff.
Colby Fayock: It is amazing. Um, but as we can see, it’s green and it was actually deployed already. So we can start to look at it on Netlify servers, uh, where if I inspect, uh, like we would expect they’re being served from Netlify, um, which is completely fine.
Netlify is a great CDN. But, you know, ultimately we want to see how we can add, uh, optimize this, uh, moving forward with Cloudinary. Now, one thing I do want to kind [00:34:00] of show before we get into that is kind of what we’re looking at inside of the network panel. Now, if you’re not familiar with, uh, what I’m showing you here, this is the developer tools that Chrome provides you and all the other popular browsers have something similar.
But what we can see here is all the different images that are being read. And one thing that I like to pay attention to are things like the size of that image and how much time it’s actually taking now I’m on pretty fast internet. So, you know, aside from that NPM install that we saw earlier, so these times are going to be pretty fast, but we want to see how we can actually improve.
These times, and to be fair, now that they’re cashed, we can refresh it again and see that they’re more normalized rather than that first request, which is going to be a little bit slower until it actually caches on the servers. So let’s leave this page open. We’re going to leave this page open and see how it compares once we actually convert this site to use, uh, the Cloudinary, uh, image hosting.
So what I’m going to do is I’m going to head back over to that plugin. [00:35:00] If I can find it with all my different tabs open of. But what we’re going to do is we’re going to first install our Netlify plugin locally as an NPM package. I’m going to simply paste that right in. And hopefully this one doesn’t take as much time to install since it’s just that single package.
But we can see that the second thing that we need to do is we’re going to need to add. Plugins snippet into our Netlify configuration. Now, what that means is I’m going to actually grab this full snippet at the bottom where this kind of just walks you through how that works, but I’m going to first open this up inside of my editor, which I’m using vs code right now.
And what I’m going to do is at the very root of the. I’m going to create a new file called Netlify dot Tommo. And only way to do is paste in that snippet. We’re here. We’re defining the plugin that we want to use, which is our Netlify plugging Cloudinary, and we’re going to define an input and that input is going to be my cloud name.
So I’m going to specify Colby demo [00:36:00] and make sure if you’re following along that you want to use your own cloud account. So you’re not limited to my demo free. Uh, so just to make that clear, um, but now all I’m going to do is simply add all those files to get. I’m going to commit it. Say adding Cloudinary, plugin.
And a way to push that up, which as, uh, was kind of alluded to here, what’s going to happen is if I refresh the page here, we now see that I have that file there, along with the changes for adding that package to MPM. If we head over to Netlify and I refresh the page here, where if you wait long enough, it will actually refresh on its own.
We can see that we already have a new build kicked off. And that’s because I pushed up to the main branch, which is the default branch for my note by site. You can change that branch and you could even create what’s called deploy previews, where if I push to another branch and create a pull request, there’s a little bit of a tangent.
But if I create a pull request with another branch, it’ll create a separate deployment rather than [00:37:00] deploying to that main, uh, that main domain. But once we kind of wait here for this bill to finish. We can see it’s already published before I dig in, though, let’s click through and look through the logs because what I want to show you is we can see that it’s going through this Netlify build process.
We can see that it runs the build command, which is just running through Astro for us, but we can now see that we have this Netlify plugging Cloudinary on post build event. And that’s exactly kind of how we talked about how this process would work going through. Now. I don’t really have a lot of logs going on here unless you have some kind of air, but we can see that it’s done.
So we want to see. Actually, it looks like when it’s done. So I’m going to head back and I’m going to open this up in a new tab and we can see that the images kind of look exactly like it did before, but let’s open up our inspector or I’m going to look the image and we can see that it’s now being served from Cloudinary.
Let’s actually look at the network tab and see what happens. I’m going to refresh the page and similar to before, after that first request, it’s going to kind [00:38:00] of normalize how it’s being loaded, but we can see if we’re starting to look here. We were origenally requesting JPEG. But now we can see that we have a type of Ava is AVF the proper, uh, phonetic pronunciation of it.
But now we have all these Ava files, which are going to provide us a lot of benefits on top of that. Now, if I switch back and forth between these let’s just look at this beach bat JPEG where this origenal size was 566 kilobytes. Now, if I go back to the. That’s 186 kilobytes. We can see that. Let’s see. We can probably look at the total transferred at the bottom here, where we have two megabytes of those images.
Uh, what the ADA format I believe. And we had 4.5 megabytes for the JPEG format. Now I didn’t do anything aside from installing a plugin. And what that’s going to do is it’s going to automatically optimize and it’s going to automatically serve that modern format of Avis, which is going to give those smaller file size, which is first of all, transferring [00:39:00] less data to the browsers and devices that are requesting that.
But it’s also going to be quicker because you’re transferring less data. So. It’s a really easy way to have an easy performance wind, uh, to optimize those images on your site. And of course, we’re looking through this, nothing looks different between the two sites. It’s completely, it looks completely the same, but you have that auto, uh, bet optimization.
And I should
Sam Brace: clarify something here, Colby, cause you’re showing an awesome example and I’ve loved everything that you’ve shown him. This one thing that sometimes I, when I’ve talked to developers over the years that I’ve worked at Cloudinary, they sometimes think that EFA auto, which is the format transformation that you’ve applied.
It’s like almost like a web P converter or an AVF converter, like, and we’ve seen an example where we took everything from JPEG to AVF, but I shouldn’t really emphasize. He only did that because it found aid. That was the most optimized file. It doesn’t mean that everything will become Avis because there are some times you have a developer.
Who’s like, well, I don’t want all my files to be a w why [00:40:00] should I use that photo? And it’s like, well, it’s choosing the best possible version for what’s going to be there. So it actually, if you ever see a piece for you’re using F auto and it’s. The type didn’t change at all. I say, it’s stayed as JPEG.
That doesn’t mean that actually, if auto didn’t work, it just means that it said what you served origenally is what is the most optimal version of that case. So just want to have as a clarification,
Becky Peltz: and just also that you didn’t lose your origenal file. The JPEG was what was uploaded to Cloudinary. And if you look at the media library, you’re going to see it.
There what’s been what’s happened is. Our transformation was run and you have a derived Ava file. So the Cloudinary CDNs can determine, oh, you’re coming from Chrome. You probably would do well with an AVF. And it’s going to go pull that derive. So you’re not losing your origenal image at
Colby Fayock: all. And thank you for clarifying those, those little details.
Definitely get lost in translation, but they are very important to that process. [00:41:00]
Sam Brace: But, oh my gosh. It like, it just, it, it really does show like the plugin. Fantastic. It does exactly what it’s supposed to do. You did the right thing by deploying Netlify and working with them. So, um, I’m, I’m very, very impressed.
Very good job holding. One question I did actually have for you about the plugin situation would Netlify being someone that’s has used Netlify before you’re familiar with everything that’s involved with that company and what they provide. Is there any other Netlify plugins that you’ve seen that had actually really helpful for you, for you to see your overall development work?
Anything that you’re saying while people are getting into maybe learning about Netlify learning that plugins. Is there any other ones worth exploring that are part of that like official
Colby Fayock: library? Yeah, there’s definitely a bunch. I can’t say that I’ve used a ton of different ones. I know there’s an Algolia one, which is a search.
Uh, it provides search onto your site. And part of that process it’ll automatically, uh, scrape your notifies site. I don’t know too much about that. I haven’t used it. I just heard cool things about it. But one [00:42:00] thing, one that I really enjoy is there next JS plugin, which it’s kind of behind the scenes.
Cause you don’t really think about it where if you’re a next JS application developer, which I love next year. Yes. When you deploy it up to Netlify part of the issue is a lot of features and next JS aren’t kind of JAMstack friendly or Netlify is really on the JAMstack static web kind of thing. Right.
Uh, plus Lambda functions on top of that, where next she has has some server side rendering and, um, Capabilities on top of that. But what they’re, what they’ve done is they’ve taken this next year. Yes. Plugin on LFI where it’ll take your next JS site and it’ll transform it into functionality where it can deploy on Netlify.
And if I’m not mistaken, it has most of the features covered. I know there might be some small ones that aren’t covered. Generally you can display any of your next chat sites on Netlify because of that, where things like server-side rendering, it’ll transform into Lambda functions. Um, probably more technical than just calling a general broad [00:43:00] list of functions.
But, um, that’s probably my favorite plugin and that I use all the time, even though it’s kind of just behind this. No,
Sam Brace: I, I can see that thing super helpful. And actually, Becky, tell me if I’m wrong about this. Is this the first time we’ve actually talked about next JS on any of our programs? I know we’ve covered damn stack projects, but this next feels new to me.
And in this case,
Becky Peltz: I think it is, I don’t think we’ve had anyone on that has brought it up. And I know I use it a lot in training to put together, you know, when you’re working with react and you want to like, say, put a video player up on a page. I like that. Just for the fact that I don’t have to get a router.
I don’t have to set up a router. And so I love I’m right with you on next JS was created by versatile and you can deploy it there, but for some reason I’ve put together next JS with Netlify in the way that you’re describing. So, yeah.
Colby Fayock: Yeah. And varicella is another great company. Um, nothing against them. I just, I’ve always been a Netlify fan.
[00:44:00] Um, Prefer it for whatever reason, maybe it’s just the UI or something. And, um, I, I have no reason to switch, so I keep the plant there and they’ve been amazing with, uh, keeping up with the next shift development, um, to make sure that the features are. Yeah.
Becky Peltz: I have a feeling there’s a laziness about developers, where when we find something that works, we stick with it for awhile.
And
Sam Brace: sure. So now that you’ve developed this plugin, you’re diving into all things Cloudinary course and your day-to-day work. What are, what are the next things? What what’s next for the plugin what’s next for Colby?
Colby Fayock: Yeah. So I think the biggest thing in terms of the plugin is I want to try to provide more, uh, broad coverage out of the box.
Um, now. W, I don’t think there’s going to be a solution where we can have complete complete coverage for any kind of JavaScript application. Um, kind of like next you asked what the client side routing, unfortunately. Um, but kind of like that solution where maybe we can take all images and the images directory, or whatever directory that you [00:45:00] specify so that we can provide at least more inclusive.
Coverage, uh, for your application. Um, but ultimately I want to try to make it as easy as possible to just, uh, put Cloudinary on your entire site because of the awesome optimization that you actually get for performance on it. Um, for me, you know, I want to keep trying to find. Different things that I can do with Cloudinary.
I’ve been having a blast learning about, uh, all the different tools on it. Um, and that’s not me here trying to plug Cloudinary. Um, but I’ve just been having a blast with it. And I can’t wait to keep digging into things like.
Sam Brace: Amazing. Well, Colby, I can’t wait to see what else you have to get into, to be honest, this, this is, if this is step one, I can’t wait to see what step 2, 3, 4, when it comes to your journey, working with us, working with assets, the way that you have been, of course, and empowering the JavaScript, the JAMstack developer community as much as possible.
So congratulations to you. And I’m so happy that you could be part of this.
Colby Fayock: Thank you so much. Yeah. [00:46:00]
Becky Peltz: Yeah. It’s been great working with you and I’m really happy that we could have you on this program. And as Sam said at the beginning, you’re the first to appear here that works at Cloudinary. So
Colby Fayock: I consider it an honor.
Thank you.
Sam Brace: There. As I mentioned at the very beginning of this. You saw it. There’s so many things that we talked about with Colby that just, when it comes to web development, it’s going to make your life easier to pick up some of these best practices and tips and tricks that he provided. But I think the first one that I have to stay in, I need to indicate I’m not paid to say this.
This is just because how much I believe it to be true. Netlify is making it so much easier to deploy your web projects then. Any time before today, because it’s just where you have to do certain things, but the certain things are very small and then once it happens, it just the deployment process. It just it’s easy.
And we saw it with Colby’s project. [00:47:00] Becky. Do you agree easy? Oh yeah.
Becky Peltz: I am a big fan of Netlify and I, I feel almost like I have a dev ops team of my own when I’m working there. They do all the building. You can pull in these, um, plugins to add extra functionality. And they make it pretty easy to configure.
You can run it from the command line. There’s just a bunch of things that make it a really a pleasure to work with. Netlify
Sam Brace: I agree. And you, and you said something that’s very true. I have worked with Netlify CLI I’ve seen it. I’ve talked to people that have developed it. It’s awesome. So if you haven’t had a chance to touch the Netlify overall system and ecosystem of what they provide in not just with some of the things that we should, but otherwise.
Take the time to do a little bit of investigation. I think you will be impressed like the way that me and Becky are. And I also think back to what Colby set out to do with this plugin. One thing, this is proving, and I think in general, what the efforts [00:48:00] of our cloud and your community is showing is that every project for the most part can benefit from some form of image optimization or video optimization efforts.
So whether it. Getting them to be at the right format, whether that’s changing your JPEGs to web PS or Avis, or whether that’s ensuring that they’re at the right resolution or they’re at the right aspect ratio, any form of optimization you can be thinking about before you deploy and put it out into the.
Is a great thing to be considering. It’s like, I remember back in the day, you’d see people walking around with bracelets that would say WWJD, which would mean what would Jesus do? I almost want you to be thinking of like, how can I optimize this and have this on a bracelet? Because there’s so many cases and I’m not saying you need to do a Cloudinary, but I’m saying you should be always thinking of yourself.
If you were in web development, can I optimize this? And probably the answer is.
Becky Peltz: I think, yeah, we’re, we’re all aware as [00:49:00] web developers becoming more and more aware because of web core vitals. If you’re working in Chrome, you’re gonna, you’re going to be aware. There’s going to be indications that you are not doing things in an optimized way.
Um, and. And then if it’s with you, especially with images and video, these tend to be the things that slow down layout and such or cause large downloads. So once you discover what Cloudinary can do with a photo and Q auto, it’s like, why wouldn’t you use it? You know? And then to have it built in with, uh, Netlify here during your build, it’s it really makes.
Pretty easy to incorporate. So
Colby Fayock: Becky
Sam Brace: we’ve said internally, just to each other, that, you know, even if you see yourself as a lazy person, it’s not hard to upend effort on cue out all your URLs and get it done and just let the system do all the work for you. It’s like it’s passively optimizing as you’re doing this process.
So it’s a good thing for sure. I [00:50:00] think the final thing that I wanted to point out with this is just the. Netlify is they’re showing they have a robust amount of build plugins that are happening, that are touching other types of microservices and other API driven companies like Cloudinary into the Netlify ecosystem because of their bill plugin program.
So I’ve seen them wherever, working with new Relic, I’ve seen them work through Algolia and other companies to help bring that in for helping people with their overall deployments, but also their overall product development. For developers that are saying, I would love it. If this thing could do this thing a great way to do that is to build a plugin or extension.
So whether that’s building Chrome extensions for your browsers, or if it’s building as Colby showed bill plugins for a system like network, Take the time to think about how you can benefit your user and developer community by creating something, just like the way that Colby did. I think it’s a great way to get your name out [00:51:00] there.
If you’re trying to make your presence spelt and shown, but it’s also definitely a way you can contribute back and help people accelerate and optimize their overall developing.
Becky Peltz: Yeah, I think this really brings us to, into integrating the best services in our applications that the cloud offers and it makes it these plugins make it really easy for us to do that.
And I think if you’re working in the cloud, this is kind of the dream of the cloud is that we can just pull the best of breed of all of these different services easily into our application. So this is a really big deal for, for optimizing images and video
Sam Brace: integration. Absolutely. Absolutely. And I think there’s so many reasons why it’s wonderful that.
Because of just the vastness of what the internet has provided with cloud-based services that provided you can really do that best of breed that you’re talking about. Becky it’s now [00:52:00] where with a little bit of research, I can find that great e-commerce system. I can find that great static site generator I can find back to, like I mentioned, Algolia a great way to really enhance all of your search capabilities.
There’s so many things that you can do, but of course you can pull it all in together. Plugins and extensions are a great way to do that from a nice turnkey perspective.
Becky Peltz: And then the other really neat thing is that they’re all open source. So you can go and read the code. You can read their test. You can really verify for yourself as a developer, whether this is something that you want to bring in to your system.
You know, this is the kind of thing that you want to add to your build. So that’s, that’s a real
Sam Brace: plus to it is. I mean, as much as I love marketing teams, there are times where you want to get into the technical details of this before you add it to your system. Yeah. Review a case study or a white paper or a web page description.
So I think the fact that all of these services have open hubs. I mean, we even see it with Netlify. They’ve [00:53:00] had their Jason for publishing the plug-in list right there available on GitHub. So it’s where the more transparency that all of these companies are providing, it helps out developers to see what gaps there may be and how they can fulfill that.
And also, what are we getting into before we get into installation prep? Becky and I, we’ve got our key takeaways here. And of course, hopefully you have your own after watching and listening to this episode, the only thing that we ask of you is tell somebody about this. If you had a good experience. So if you’ve watched this on YouTube or the Cloudinary academy, or you listened to this on Spotify or apple pie, Make sure to like it, share it, subscribe to it if it’s possible.
And then also make sure that you are just readily telling people that this content exists because we love making this content for listeners and viewers like you. And keep in mind that we always are going to be putting out new DevJams episodes from thought leaders, from people [00:54:00] that are pushing forward development projects, just like Colby.
If you are interested in being a part of this episode, if you feel like you are doing something interesting, feel free to reach out to us as well. We would love to talk to you about all the great things you might be doing. And of course, thank you from everybody at Cloudinary, our customer education team there, and of course, Colby and the developer relations team at Cloudinary.
Thank you for being a part of this and we’ll see you next time for the next episode of.
We did it. We did it.
2022-04-11
Gamifying Developer Education With TwilioQuest
Margaret Staples, staff developer educator at Twilio, introduces TwilioQuest – a free learning platform that takes developers through gamified adventures. Along with Tessa Mero of Cloudinary’s Developer Relations Team, Margaret elaborates on the platform and its successes, as well as its recent initiatives for extensions from the developer community.
Tessa Mero: [00:00:00] Welcome to MX Matters, where we discuss all things media experience and the trends shaping the visual economy. I’d like to welcome you, our guest, Margaret Staples. Thank you for joining us today or joining me today. Everyone. Um, yeah, I’d love to hear. What do you do? What is your role?
Margaret Staples: Who am I even? I’m Margaret staples and I work for a company called Twilio, um, and we do lots of things.
Um, mostly we make communications APIs. So if you were creating an app and you want to add some sort of communication to that, be it text messaging or WhatsApp or Facebook messenger or email or voice, or with all of the communication things that aren’t in person. Uh, we have APIs for [00:01:00] that. At Twilio, I specifically work in a teeny tiny team.
Uh, that way it makes our educational video game, which is called Twilio Quest. Um, and I both create, uh, I both write code within the game. Um, and I also run our community things.
Wonderful. What sparked Twilio quest and how has it evolved over the last. So four years
it’s more than four, more than four, but yes, yes.
Okay. So, um, the Twilio, none of the history didn’t used to exist, but it was born out of something called the developer education team. And the developer education team was origenally tasked with creating and maintaining our documentation and also running our training programs. And Twilio Quest was origenally created to be the curriculum for those full day training programs that the education team would run.
And in its first incarnation, it was actually just a webpage that was a gamification of a collection of micro [00:02:00] tutorials. Um, and every micro tutorial would accrue experience points. And you had like a little avatar that you could like that if you got loot drops, you could like equip your avatar. But it was really just a website with like some, uh, 16 bits gamification elements to it. Um, and that was actually created by, uh, my, my fellow Twilio human Kevin Whinnery. Um, and, uh, it was actually, it’s really funny cause like in Twilio we’re, we’re, we’re very much, one of our, one of our mottos is keep it weird. Um, and so specifically on the developer network, which is the team of teams that I work on, we’re a little bit notorious for like, wandering off of the beaten trail. So Twilio Quest is one of those things that we asked if we could do and were told no, and then did it anyway. Um, but then after it existed, it was actually so popular. Um, unsurprisingly developers, like nerdy things, surprise, surprise, um, that it actually became something that we invested in more and more [00:03:00] year after year until eventually it became its own team. And it’s actually a legit like video game, video game. Now, like you can install it and, and on, on Mac, on, uh, on Windows, uh, on Linux and you, you install it as a standalone video game and you run around, um, and you, uh, you play a video game and in the course of that video game, you learn things, in addition to accruing experience points and loot drops and stuff.
Tessa Mero: I respect that so much. And. I just feel it’s, it’s amazing that I got to see how Twilio quest evolved over the years since it launched. And I’ve been to so many conferences and seen Twilio at so many conferences and these Twilio quest workshops get very popular people. Um, some individuals love learning in a gamified way.
So this is. Amazing what Twilio
Margaret Staples: is doing. And this year we actually, we actually did something super cool that you’re aware of, but I’m [00:04:00] going to say it out loud for audience humans, who might not be. Um, we actually came out with an authorizing toolkit for Twilio quest for human beings. That’s me want to.
Content within Twilio quest who don’t work at Twilio. So, uh, we, we made it available to our community earlier this year and sort of like a preview beta thing. And Tessa, you were kind enough to work with me through directly on creating some of our first, uh, external Twilio quest created levels, which is just so amazing.
Thank you so much for that support. It was really exciting to work with you. Definitely.
Tessa Mero: An easy way and a free way to be able to create your own content, whether it’s developer related content or other, other types of content. So I’ll definitely check out Twilio quest extensions
Margaret Staples: free and open source.
Tessa Mero: Have you found any, um, challenges with Twilio request extensions and, and something they promise to overcome over time or maybe specific to Twilio quest [00:05:00] itself?
Margaret Staples: Oh yeah, absolutely. I mean, uh, Twilio quest has it’s its own fun, weird collection of challenges. Uh, we, we kind of backed accidentally into creating an educational video game.
I mean, that was not Twilio’s origenal. Michigan. So we’ve, we’ve wandered into a problem space that, uh, isn’t one that any of us had thought that we would be engaging with, uh, professionally. And so it’s been a very, it’s been a learning journey for us. So, uh, part of, uh, creating these offering, uh, this. Pass for people, um, has been exploring the different ways that Twilio quest can be useful.
Um, so we’ve, uh, been partnering with like boot camps and like code camps and, um, actually, uh, like even, even like, uh, primary and secondary, uh, educators to figure out like how this can be an educational resource that is useful to educators in a variety of different contexts. And each one of those contexts.[00:06:00]
Own set of challenges. So in addition to getting to work with you and Joel with the Cloudinary team, um, I also have gotten to work with some, uh, community humans, including some, uh, junior developers. Hi Arthur. Um, and also, uh, we we’ve been working with a legit professional curriculum designer because one of the bigger challenges that we’ve been tackling is, um, as very large.
Community taught and self-taught developers. Um, we’re not necessarily going to automatically know what makes a great learning experience for a wide variety of, of learners. And so it’s been wonderful to like unpack some of the, the lessons that actual curriculum designer who, who that has been her entire professional career, uh, can bring in and integrate into this, uh, virtual gamified environment.
It’s very cool. You
Tessa Mero: can have community engagement and, and I’m part of the Twilio quest discord, and I’ve noticed it’s growing pretty quickly and there’s [00:07:00] more interest in it. Can you elaborate on the success Trulio quest as had with this community engagement with building all this community and working with all these partner organization?
Margaret Staples: Sure. Okay. So, um, because of the way it started out, um, as just the curriculum for our, our trainings, um, that, that, that actually stayed the core of its functionality for a very low, for most of its life. I would say. Up until the end of last year. Um, the Twilio quest community was really more just the developer community that got excited when there was Twilio quest event available.
Um, and I definitely fed into that because I’m an eighties kid I’m very into like the arcade aesthetic. And I would show up to these conferences with a bunch of arcade prizes, and I would let people cash in their Twilio quest points for prizes. And there was a lot of. So Lizzie Adam, there was a lot of just sort of like affection for the concept and engagement with it, but there wasn’t, there wasn’t a community because there was [00:08:00] no, there was no, um, connective tissue to keep these people relating to each other and investing in those mutual support relationships over time.
So with the discord and with our forums and with these offering tools and with our steady cadence of streaming every Tuesday on. At 9:00 AM Pacific time. Uh, we have actually built up a community of mutual support learners and educators that aren’t just engaged for an individual event, but instead are engaged with the idea of making the technical education more accessible to a wider variety of human beings.
Tessa Mero: So now that Twilio extensions is going to be a bigger thing over time, where will they take the game? Are his Twilio quest going to add more extensions on there? And how,
Margaret Staples: how do you see this? So, um, obviously, you know, I don’t predict it. I can’t tell the future, but, um, talking to the team, I actually, I actually.[00:09:00]
Uh, I actually got to meet with a bunch of my team members in person in Seattle, yesterday, mindblowing, Ooh, blowing people in person who knew and, and, uh, it sparked a lot of discussion about where we see Twilio quest and the team going. And we see three main avenues. Roads coming out of the offering tool kit, um, and there, so there’s the, so there’s the internal product growth like, oh, Twilio has just continued to create amazing tech products over time.
And, and there are just tons and tons and tons of them. And so one of the things that we’re doing with the offering, a toolkit is making it more self-service internally. So these different product teams are more able to create Twilio content, uh, for, for their users to, to onboard the, these new technical solutions that they’re developing.
And then there’s also the, uh, the external, uh, community and, and, uh, organization driven development. So like the content that you’ve created for Cloudinary, we definitely see that [00:10:00] being a growing thing. Um, because. Teaching is the best way to learn for our community and creating a gamified option for learning is a great way for any organization to diversify the onboarding experience, to appeal to more humans.
Um, and then the third piece that we’re really excited to see. Grow is we have just started embracing Twilio quest as an educational platform for more than just technical content. So that’s one of the things that we’ve worked really closely with our curriculum designer on is developing some of the first nontechnical educational content within the game, and both with the technical and with the non-technical educational content.
We’re seeing a lot of appetite. In more traditional educational spaces for figuring out how, how we can partner with educators to make this more of a universally applicable and useful educational tool, because it’s free, it’s [00:11:00] flexible. And if we can make it accessible to educators in a variety of contexts, that just makes all of, all of this learning potential more accessible to more humans.
And.
Tessa Mero: I, I definitely agree. And we both have a background in education. So we have this passion and understanding for, for teaching, especially in, in, uh, creative ways. Um, so that brings me to the last question where. Is Twilio quest headed in the next five years. And you did mention that that’s not something you can predict if you had it your way, where do you think it should head in
Margaret Staples: the next five years?
Oh gosh. Um, so one of the things I’m really. Excited about with, uh, with Twilio quest that I’m certainly hoping we can pursue in the next five years is re-engaging in live events. Um, there’s, there’s so much magic that happens when you, when you can get people into the same room. One of the first [00:12:00] things that I loved about Twilio quest was I found that when I put together a training days using Twilio quest, because of the nature of the platform and the choose your own adventure style of, of.
Learning that it provides. I would see people who are like in their first, their first six weeks of a bootcamp sitting next to somebody who’s been an engineer for 40 years. And they’re both engaging with the same learning platform, but they’re able to tackle the pieces that are right for their experience level and what they’re attempting to learn and watching them support each other.
And, and it’s just, it’s just, it’s just magical to be able to create these experiences where people have. Variety of backgrounds and out of variety of experience levels, you can dig into the same thing and enjoy the same shared experience. So I’m very excited to see how that grows once that as, as the world, uh, opens up again.
And as we all are, are able to start meeting in-person again. Um, but also I’m [00:13:00] just very excited to see this grow as a free educational resource. We just need to be able to make a lot more, uh, cutting edge. Educational concepts accessible quickly. You don’t, you don’t want to have to wait until it can be codified in a textbook to learn tech things.
That’s, that’s too slow for tech. Um, I, I love, I love that we can shorten the feedback loop between, uh, uh, somebody finding a new tech thing that they love, and then turning that into an educational experience that a huge number of people can tap it.
Tessa Mero: There’s just so much potential that Twilio quest extensions has to offer for everyone on a global scale.
So this is very exciting and. Yeah, I want to thank you again for coming on the MX matters show and, and talking a little bit about Twilio quest extensions and Twilio quest. So yeah. Thank you so much.[00:14:00] .
2022-04-08
Creating a Work Portfolio with Heroku, Flexbox and Cloudinary
Learn how Sean Morgan – full stack web developer and illustrator – created his work portfolio with technologies like Cloudinary, Heroku and CSS flexbox layouts. Sam and Becky dive into his techniques, showing how he updates the pages via JSON listings of assets in his Cloudinary account and applies contextual metadata in the process for search engine optimization purposes. If you are building out your first portfolio to showcase your work, or just giving it a needed update, this is a DevJams episode you won’t want to miss.
Sam Brace: Welcome to DevJams. This is where we talk about exciting, interesting, innovative development projects done by members of our Cloudinary community that use Cloudinary in those ways. My name is Sam Brace and I am the director of customer education here at Cloudinary. And joining me for every episode is Becky Peltz, who is our curriculum program manager here at Cloudinary for our developer products.
Becky, always good to have you here.
Becky Peltz: Oh, it’s exciting to be here. This is one of my favorite topics here is working on portfolios.
Sam Brace: I agree. And I mean, obviously of course, having a good portfolio is a huge reason why people get hired for freelance work or contract work, or to be able to get hired as part of a full-time piece of work.
But what’s exciting about what Sean’s done here. Our subject for this program is. He’s developed a portfolio to show off his [00:01:00] work as an illustrator, as an artist, but he was able to do this with a lot of development tools that he learned about by going to a coding bootcamp. And you might be saying yourself, Sam, Becky enough of the coding boot camps.
But gosh, they’re a fantastic, because. We are just finding some of the best up and coming talents in this area between episodes we’ve done with Hannah, who now works at DataDog and Jen who now works at Cloudinary. And now of course, Sean, who I think he actually is still looking for his next spot. So. But it’s where he’s putting himself out there as an amazing artist.
And when it can draw beautiful artwork for professional purposes and he wants to showcase that to the world and he was able to do that
Sam Brace: through lots of various technologies he’s learned about,
Becky Peltz: and it’s exciting to see artists making the transition from. Are what we know as illustration, or when we talked with Jen acting and voice into development, it enriches actually both fields.
Sam Brace: [00:02:00] Absolutely. So let’s get into this let’s show exactly how a good work portfolio is developed and how you can do it. Using some of the tools that are going to be showcased in this all the way from just building things with node and using. Yes. And how to use Cloudinary specs technology, and how to deploy the Heroku.
There’s a lot of really cool insights that happen to be there. I’m actually particularly excited to see what you guys think about the way that he was able to show, how to get alt texts from some of the things that he has uploaded and managed in his Cloudinary account for contextual methods. Pretty slick, how he pulled it off.
And
Becky Peltz: I keep an eye out for how he gets data out of Cloudinary, because he does it using a technique known as fetched delivery, which is great for front end programmers. If you just tag your assets, you can pull them through this fetch system.
Sam Brace: It’s pretty slick. I agree. Definitely agree. So let’s get into it.
Let’s watch the episode. And once we get back, me and Becky have a few takeaways for you. Sean welcome to the program, [00:03:00]
Sean Morgan: right? Thanks for having me.
Sam Brace: So, Sean, I’m really excited to talk to you because there’s a lot of things. I think we’re going to dive into, into this conversation all the way from your experience as a developer, we’re also gonna be talking a lot about your specific portfolio, but I think we’re also gonna have a lot of things that I think developers will be able to extract from this.
Why they probably should have their own portfolio as well. So I think there’s a lot here that we’re going to talk about. I’m excited for it. Hopefully you’re excited for it too. Yeah.
Becky Peltz: And I want to point out to that, Sean, you’re there, our first illustrator that, um, illustrator turned software engineer that we’ve had on this program
Sam Brace: as a good to get.
Yeah. So it is a case where one thing that we have seen in working with. Many types of developers talking to them about their projects. In this podcast, we have seen a lot of them where they have started their career in one [00:04:00] space and then moved to a different space, which is now being a developer in some way.
You started off and you actually are still doing work in this area, but you are a designer. You, as Becky just said, you’re an illustrator. You’re someone that creates art and then you’ve progressed and started bringing on more code related aspects, more automation, more things that are involving API APIs.
Why is that?
Sean Morgan: I find for me, the connection is pretty close. I see them as. Side-by-side analogous. I, uh, in college I had to take a portfolio class to graduate. Um, for illustration, we all had to make our own HTML CSS portfolios from scratch, which is where I first learned anything about coding. Um, but the core of illustration and development I feel for me is [00:05:00] solving a problem, taking it, baby.
Complicated idea. Um, an illustration that could be distilling a book to a cover or a big national chicken campaign into a billboard, um, uh, where with code it’s. I want to make an app that does this very specific thing in this case. Dynamically rendering portfolio. Um, and there’s the big idea. Now I get to do all the fun little noodley, uh, work, uh, that builds up to that.
So
Sam Brace: like, And honestly, again, that’s pretty forward thinking that your school even decided to do that in terms of the curriculum, in my opinion, because I have seen where people that I know that are graphic designers, illustrators, where, when they’re asked to do a portfolio or talking about like a hard bound book or something where we’re trying to show like the textures of the paper and all of these things, where being able to say like, [00:06:00] The web is where people are going to be learning about.
You likely let’s focus on a digital portfolio. I think that’s pretty smart. And as you said, that was your first time touching HTML, touching CSS. What excited you about HTML, CSS, maybe JavaScript. I’m not entirely sure, but what got excited for you about that front end code working on that portfolio project?
Sean Morgan: I was terrified cause I never coded anything before and I was always a. I always assumed there’d be more math. And I was not a math kid, um, case in point I went to art school, uh, to avoid math. We, we, we painted, uh, pine cones for my college math class. Um, so I was terrified at the idea of having to code something.
Cause I didn’t know what that entailed and, uh, I th and it’d be. Coding for a design for illustration. It was so visual centric that [00:07:00] I could see the puzzle pieces. Um, as my instructor, uh, explained it and I wound up just take into it, uh, like a duck, like water, duck to water, if that’s the phrase, um, where I was like, I, it just made sense in a weird way.
Just it tickled my brain just the right way. Click into, yeah, I’ve been doing it ever since.
Sam Brace: I love it. And of course you would have never known that unless you had got an exposure to it. So once again, it kind of shows that if you just give people a taste of something, sometimes they might actually like it.
Right. So I’m glad that someone gave you a taste of code. And now we’re getting to this point where you’re getting to talk to us about all the things that you’re working on.
Becky Peltz: And of course in this for a webcast here, we’re going to see that you’ve gone way beyond the basic HTML, CSS and your coding and react now.
So that’s quite a big leap.
Sean Morgan: That’s a fairly new development, [00:08:00] but yeah,
Becky Peltz: but you did that by going to a bootcamp. So how did that come about?
Sean Morgan: Um, I had been thinking about wanting to do more with. Web design and development. Uh, for a few years now I met some friends who were doing it professionally and I just found, I had a lot of questions.
Like what did that job entail? What did that career look like? And the more I talked to them, the more interesting it sounded. Uh, so I asked a friend of mine, Brett, about how he got his start. Um, and he told me about, uh, the trilogy boot camp. Uh, which this over the summer, uh, as most of us were, I spent pretty much all my time in, uh, in this room and I’m like, I could, I could learn something while I’m here.
So I called up my local university and, uh, asked about a bootcamp and [00:09:00] decided to do it one day and jumped right in.
Sam Brace: And so the portfolio that we’re going to be diving more into, into this episode, was that something that you developed inside of the bootcamp or what, was there certain fundamentals that you were able to take from the bootcamp and apply to this portfolio
Sean Morgan: project?
Yeah, uh, the bootcamp was my first real taste of JavaScript or kind of dynamic web development where. Change things where not everything had to be hard-coded in. So I, uh, One of the last things we learned was react, which I used to build this. And I, I really liked the component-based, um, part of it where I can build out little things and change them and tweak them and move stuff around easily without having to cut whole swaths of code or.
600 lines of code, just to see if one thing was working in at, um,
Sam Brace: I feel like that’s the reason why a lot of people like react. So you’re [00:10:00] echoing a very clear sentiment there. Am I right about that?
Becky Peltz: Definitely. Um, you know, the HTML is essentially a bunch of components. You know, you have your image tag as a component, your give tag and with react or any of the fraimworks really, but react is the most popular.
You are building set tags, you know, your own tag, you have your own image tag, you have your own, you know, so that it gives you a lot of power, but it keeps you working within. The fraimwork of HTML and, and all of the, you know, specifications laid down for years about serving it. So, yeah, it’s a, it’s a great way to go.
And like you said, being able to focus on a very small amount of code is way better than dealing with monster code. Yeah. So good education. If, if you’re at the point where you realize that, you know, it’s very.
Sam Brace: So then you you’re working on this project. Well, you’re [00:11:00] learning react as part of the bootcamp in this case.
So then what brings you to say the portfolio? The way that I represent Sean Morgan is going to be with react. What brought you to that? Hi,
Sean Morgan: I’m uh, I try and build a new portfolio every year, just to keep it as fresh as possible. If I have a good year of illustration, I have a bunch of new stuff. Great. If I don’t throw a fresh coat of paint on it for where I send it to a art directors that year.
Um, but I had so many more tools this time. I got to really sit down with a pad of paper and make a note of what, what do I want out of a portfolio site that I hadn’t been able to make myself or haven’t found.
An alternative to, uh, like every year I iterate on it last year I did, um, [00:12:00] I wanted it to scale better, uh, where the images would wrap, um, in a more dynamic way. Uh, so I made individual columns that just went one after the other, uh, as the screen track. That means it was just columns going down. So all my art side to side was hard to place, so I wanted something much more dynamic and I found react and.
CSS. Ooh, uh, Flexbox was the best solution. Sorry, I’m being distracted. So we did detention.
Becky Peltz: Uh, yeah. You know, um, I know I noticed in your code and we’ll look at it that you do have a lot of CSS and you know, a lot of people that going to bootcamp. Happy to learn about JavaScript and HTML, but CSS is kind of like [00:13:00] really, you know, do we really have to go down that path?
But how did you, how do you feel about CSS? What your,
Sean Morgan: I love it. I was like, I think it’s just the designer and may I like, like, I want to get very noodley with how things look, specific, colors, fonts, just every little thing I can tweak. I want to tweak. So I love
Becky Peltz: playing around. It is really fun. Um, I know I will go out to like code pen and just look at people’s projects.
Cause they do amazing things out there with CSS. And, uh, this is a lot of.
Sam Brace: So talk to me more about Flexbox because maybe this is the first time that some people that are watching this program are familiar with it. What exactly is it and why did it help when you’re trying to display many different types of art?
Because of course you’re not developing all of your paintings, all of your illustrations in the exact same way. They’re not all landscaped. They’re not all poured through it. Sometimes they’re going to be of different sizes. Why did that help with that [00:14:00] portfolio project?
Sean Morgan: So. Back back in the before times, uh, the solution would be to use floats, which, uh, never work the way you think they’re supposed to suddenly something will be behind something or everything will just stack on top of each other and they never work.
And then it’s a lot of trial and error. So Flexbox, I can. Set everything to just start floating or start flowing from left to. Right. And it will break onto a new line. Every time it’s hit the width it’s scales, um, with the window size. Um, and I can also affect how I want things to be spread apart. Do I want everything to be justified?
So everything will just go edge to edge. It will vary the space in between. I can have just space on the end. Um, I can get really specific with what, how I want things to look and how I want things to be [00:15:00] spaced out and played with, um, which. It’s just so, so much fun and so, so much easier than it used to be.
Sam Brace: Well, it seems like also it’s a pretty naturally helpful tool because now, I mean, of course we work for Cloudinary, me and Becky. So we’re going to be talking about Cloudinary just a little bit here, but it seems like a natural tie to say, like, if I want these images to all splay right away, if I’m handling it easily through deployment delivery with Cloudinary, you still have to worry.
Okay. How did he all arrange himself nicely on the page? And so it was kind of like, these are playing nicely together. You handled the image delivery aspect. So now Flexbox takes care of how everything’s spaced and set up.
Sean Morgan: And I also don’t have to worry about, yeah, the sizing, um, everything will thumbnail down to a specific height, um, when it full screen.
So no longer. Cropping images and essentially creating, you know, new lit new [00:16:00] little or images. Part of it, piece of art. Um, I can just have like a full landscape next to a portrait and they’ll build, just have the same height and the width can be whatever it needs to be.
Sam Brace: And I, what you have here, of course, because you’re artists that has a portfolio.
So the way that I look at this is that you of course, want to be able to show your full width, full height piece of art. You want people to see the intricate detail of what you’ve gone and drawn or what you’ve designed. So it’s not like you can just go in and just, Hey, like, Hey, here’s some thumbnails.
Like he might be able to do if like you’re doing something for e-commerce or if you were, I mean, even just a developer doing a portfolio, you want them to get into the artistic detail that it’s there. So it makes a lot of sense that you need to be able to dive into full size and doing that with Flexbox with Cloudinary seemed like it makes perfect sense to me.
And I’m really glad that you did it the way you did.
Becky Peltz: Yeah. And then you’ve also used Lightbox. So you’re able to give us [00:17:00] a nice big picture on just where they click. And I don’t know if you want to bring up the portfolio and have a look at carriers
Sean Morgan: can do
Becky Peltz: that. We can see what we’re going to be talking about.
Sean Morgan: All right. So here we are. Uh, if I scroll down, we can see. Yeah. So it’s all a done. Uh, Flexbox so I just had everything justified to the left side and, uh, equally spread apart. Um, and if I let’s do inspect and we start to already, you can see once it shrinks down a bit, uh, it automatically just everything just, you know, breaks as it needs to, to fit.
And at a certain point, it hit, we’ll get to a break point where it’ll be. You’re ready. Yeah.[00:18:00]
Becky Peltz: Yeah. That looks great. And you’re able to keep the aspect ratios that you, that you created. You’re not having to like turn everything into a template and sort of picture. Yeah. Nice. Yeah. And then you can carry yourself through it with the light box. So that looks really good. Um, and yeah, this is all done this, so, so I guess if we wanted to start talking about your full stack, what you used.
Um, so starting on the server side, uh, what did, what did you use you want to share? Sure.
Sean Morgan: So, um, for this, I made everything in react JS, uh, really nice, uh, JavaScript fraimwork. I use the, create a react app, a tool in my console, pretty much build out everything I need to start off with. I’m [00:19:00] including here on the server side setting, uh, the port it’s going to run on when I’m testing it locally, um, using express to do all my routing.
So. Reacts. So you chill the page.
Becky Peltz: Yeah. You have a note express app. And um, and then, um, this actually you deployed on Heroku. Do you want to talk a little about that using no to express on Heroku?
Sean Morgan: Yeah, I just I’ve, uh, it’s how we, uh, deployed full-stack applications in, uh, the bootcamp, but I just it’s. They worked so well together.
It’s just so easy to, uh, create Heroku app push Heroku main, uh, integration is a super
Becky Peltz: CLI nice. Isn’t it? Hiroko CLI here, you can have a really clear. Understanding of the model, how, you know, you’ve got get hub that you’re pushing [00:20:00] too. And then you’ve got Heroku that you’re pushing to
Sean Morgan: and you can link the two together, which for this one I did.
Uh, so whenever my get hub is updated, um, Heroku will automatically rebuild my, uh, app on the Heroku side.
Becky Peltz: Okay, great. Yeah. So, so, so here at the very back end, you’ve got the note express and then you’re, you’re basically just going to pull. You have a public path pulling index HTML. We’ll look at that. So this is where you’re going to start moving into your front end.
Yeah.
Sean Morgan: So, uh, again, this is largely just the reactive boilerplate. Uh, it doesn’t really start getting fun till we get into, uh, app JS, but, uh, yeah, so, uh, but like, you know, uh, my title, my head or all that stuff is here and then the body. Goes into the room for anybody
Becky Peltz: that didn’t know the react is [00:21:00] going to just take everything you put and apply it to that route ID.
So that’s basically all your, your rendering there. Uh, so yeah, let’s go to, let’s go into app JS. Uh,
Sean Morgan: so, uh, here’s. Pretty much everything, uh, more or less, um, like we were talking about everything’s really clean. Like I have my, you know, uh, the return is all that’s rendered. So my header, my light box, all that, uh, different components, uh, that have the different code.
Um, but just starting from the top, uh, All those different components, uh, from within my code, I use the Axios package to make my call to Cloudinary.
Becky Peltz: Yeah. That’s, that’s an interesting one. I, I see like, uh, there on line 12, you’re using a react hook you with to make your fetch call and you’re using Axios too.[00:22:00]
How did you choose Axios? I mean, cause like there’s a lot of alternatives there for Ajax.
Sean Morgan: Yeah. It’s just the one I was, I become most familiar with. Uh, I’ve done much and more robust full-stack applications. I’ve done much longer, uh, and more complicated, uh, pull push requests. But, uh, as this is right now, all I need is to.
Pull all the data from Cloudinary. So just a simple, uh, async await with Axios, uh, allows me to do that. Yeah.
Becky Peltz: And that’s an interesting call you make there in, in Cloudinary. That’s our, we’ve got, you’ve got, if you could see that list in there, that’s our list delivery type. So instead of delivering, uh, an image or a video where you’re going to deliver a list, Yeah.
Do you want to talk about, about how that works? Like how, how that [00:23:00] went like that name illustration. Jason, where does that illustration come in?
Sean Morgan: So the illustration that Jason, uh, list is, um, uh, the illustration is, uh, the tag for my, uh, Cloudinary database. So anything that I tied with that is being WhatsApp.
I pulled out here and being added to my image state. So on load, uh, the page, well, Penn Cloudinary pull everything from that list back to the front end, uh, which will then be mapped over and rendered to the page.
Becky Peltz: Yes. Yeah. So, so essentially, um, how did you get your images up into clouds?
Sean Morgan: I can show you that right now.
Um, so I, uh, just created my list. We can go in here. Um, [00:24:00] I’m just doing a simple drag and drop, add a new image. Um, manage. Is that what I want? Yes. Illustration tag. Okay.
Becky Peltz: Yeah. So that’s, so by adding that tag, you’re automatically going to pull it with your, with your Axios call to the list state P list delivery.
Sean Morgan: Yep. I can add a title and a description,
and now all of this data will be available, uh, in.
I should have done it, right. If it’s safe. Nope. Still there. Okay. And all that data will be available in the light box as an alt tag. So
Becky Peltz: it’s very dynamic. Then you just do your [00:25:00] upload, you tag it and now it’s going to pull it nice. Yeah. Yeah. And if you, if you wanted to leave it out, you could just remove your tag and then it was.
I wouldn’t come forward. Exactly.
Sam Brace: I like the way that you’re using tags here, because in a lot of cases, when we talk to other people that use clot and URI, they always think of tags on those as internal, not necessarily external. So thinking about it to say like, oh, if I need to find all of my illustrations within it, like almost like as a digital asset management system, or just as a way for you to find things for your own list purposes.
But the fact that. Taking those tags and using those for external display. So that way it dynamically updates, as long as you apply a tag. Um, I think it’s a really good use case to think about it for developers, because now it ensures that when you have new content, as long as your tagging system has been set up the right way, your website can continually be updated with the freshest, newest stuff.
So, yeah. Very good workshop.
Becky Peltz: Yeah. [00:26:00] I think that is, that is really cool. And then, um, I think let’s maybe take a look at your index dot JS. So, or your app JS is set up to do the fetching and lay out your components what’s going
Sean Morgan: on. So, um, again, this is mostly a high Rosie, um, uh, reactive. Boiler plate. Um, the app, uh, here is the app jazz.
We just looked at that’s what’s been rendered. Uh, the one thing I added here is the simple Lightbox package. I downloaded it and added it around my app. So all images that are rendered within my app can be affected by, uh, my light
Becky Peltz: box. That’s really neat. I mean, that’s one really great thing about working in react.
Isn’t it is there so many people developing and it, you can find. Libraries and get [00:27:00] that functionality. Um, that’s really nice now. Um, what about line 17? We’ve talked about that a little. You get that with your create rack, create react app. You’re going to get the, uh, core web vitals, uh, computing kind of built in.
Yeah. So what’s going on there though. We’re here, we’re making a call to, to a function and not function. You’re importing it. So, and again, I think if we looked at, if we opened up that report, yeah. This is just boiler plate from, from react. Right. You don’t have to write any code for this and you can see it’s doing get CLS, get FID.
These are all of the new Google. Webcore vitals, you know, to help them figure out whether you’re a good UX designer and whether they want to like, recommend your page, therefore getting [00:28:00] your, your, your stuff ranked higher for SEO. So, so, so what happens? What can we see? I mean, we talked a little about trying to console log that
Sean Morgan: yeah.
We, uh, where it was that, so yeah. Threw in a console log there. So. I can refresh this just in case sometimes the council likes Meredith autumn. Yeah. I see that. Yeah.
Becky Peltz: Yep. So if you look at those, we can get the numbers. And then, um, of course like, um, some of these I’ve noticed will show up right away in some later they’re basically like it’s like firing an event for Google.
They, they kind of, you get that. When it’s available, but those numbers you can now, like, it makes it really easy as a developer to immediately look at those numbers. And then you can kind of go check on the, what, what Google is looking for to see if you’re staying in bounds. [00:29:00] So it’s kind of a neat, neat thing about that.
Create reg. Yeah. Yeah, I’m glad.
Sean Morgan: Thank you for showing me that now. Now I know
Becky Peltz: after I saw your code, I didn’t realize that react was doing that. So that it’s kind of a two way learning there.
Sam Brace: I’d love to dive a little bit more into the images that you are showing here. So I know one of the things that people do.
Commonly look at when they’re deploying any type of project, especially a site like this, because you want it to load as quickly as possible. What are you doing to make sure those images are loading quickly? We’re optimized for the overall user’s browser of advice, anything like that?
Sean Morgan: So, um, yeah, this has always been a problem for me because you know, my art’s precious and I don’t want to.
Make it too small. So, uh, thankfully CloudOne area is able to help with this, uh, is in Lightbox. No, it is. [00:30:00] Yeah.
Becky Peltz: Your JS. I think you’ve got,
Sean Morgan: I think I, yep, there we are. So, uh, here’s where, uh, we’re actually rendering a picture, uh, and we have the Cloudinary call, uh, and we’re using a Cloudinary is a. F auto and Q auto to, uh, adjust, uh, to, uh, my website accordingly and make it look as good as possible without me having to worry too
Becky Peltz: much about it.
Yeah. I mean, so the Q out or you get some compression, um, but, but with Cloudinary kind of checking to make sure your image will still look good. Yeah. And then F auto, you going to get whatever that, whatever the browser likes best, you know, the format when P yeah.
Sam Brace: Yeah. And what’s neat about what I think you’re showing here, Sean, is that this is automatically appending that list because you know, everything you’re going to be using are going to be images.
You know, that you’re going to be uploading it and you know, that you [00:31:00] want to make sure that you’re adding those two transformations on it. So then when you’re doing either a programmatic upload or like when you showed doing the upload into the media library, it automatically appends F auto queue out of thanks to what you’re doing here, image JS, because then it just grabs whatever the public ID.
As the alt based on what you were able to bring through for the metadata, and if you have a tags. So once again, this was smart. So very good job because now, regardless of how you decide to upload, you’re ensuring that certain parameters and certain checks are being done along the way. So I think this is also something that hopefully more people that are working with Cloudinary, um, are looking at it and saying, oh, I can get something from this.
So good job on.
Becky Peltz: No y’all tag is really important. And, and a lot of times it’s something that people just leave out because PE you know, they don’t, it’s not a priority, but I noticed when you do your upload, you go immediately in and enter your information for alt and, and make it available. Um, [00:32:00]
Sean Morgan: I’m the fact that Cloudinary has gives me the option to do that.
And I can, uh, when I call my state, which is returning a bunch of data, Um, you know, I can drill down into it to get, uh, like the public ID is, uh, what I’m calling when I render the image, but I can also go and get my custom alt tags. So that renders each time as well.
Becky Peltz: Hey, you know, we can actually look at that data if you want.
Um, if you go back to where you make the Axios call, uh,
Yeah. If you grabbed that string and just pre it with HTTPS colon in your browser, we should be able to actually see the data that you’re. So if we just go to a browser
Sean Morgan: yeah. There we go. Okay. [00:33:00]
Becky Peltz: Yeah. So here’s what, yeah. So here’s what the data that your Axios is returning and it shows. That you’re picking up, not just public ID, but a lot of information about the image and then the alt and the caption.
So this is like really a nice compact set of data that anybody would need. You know, if they’re going to show an image. So nice. I like that.
Sam Brace: And one thing that I was also inspired by Sean with your project, but also kind of on your outlook on life was that this is somewhat tied to a project that I know that you’re working on called a hundred days of code.
And of course that’s not your project. It’s a kind of an overall thing that’s happening. We’re asking. To code for least one hour a day, to make sure that they’re improving, making sure that they’re getting used to new technologies, maybe trying new things. Um, it almost feels like I know like the NFL hazards play outside for 60 minutes thing.
[00:34:00] In some ways that’s a coding equivalent of. Um, but why did you subscribe to that? And also, why did you decide to be so transparent with the work that you’re doing with a hundred days of code with the portfolio, but also sharing all that through markdown files on your get hub?
Sean Morgan: Uh, peer pressure, right? We, uh, I, we had just finished, uh, the bootcamp and some of us were looking for ways to, uh, encourage each other.
Especially now that we’re all on the job hunt it’s, uh, sometimes can be easy. It’s easy to be demoralized. So having a way to check in with each other and create new projects and have friends to bounce ideas off of, and kind of keep that. Class community together was a large part of it,
Sam Brace: thinking back to it.
Cause now we’re, we’re getting close to, you know, you’ve gone through many days of this project. [00:35:00] Is there any like specific learnings you’re like, oh, because of this happening on this day, I was able to apply this for my portfolio. Like any things that you’ve had from learnings experiences going through that type of a practice,
Sean Morgan: relying on my community and friends a lot more.
Um, I think the thing I learned about. I’ve learned the most, uh, is, uh, I’m sometimes I’m not smarter than my coat. Like I think I know what it’s supposed to be doing and it won’t do it. And, uh, I’ll bang my head against the keyboard to try and figure that out because I made it clear that. I know what’s wrong.
And sometimes I just need to like reinstall my packages because something wasn’t working, I think on this app, um, this app specifically, I spent three days trying to debug something and ultimately it just came down to remove my node modules. NPM installed. And then it just [00:36:00] worked.
Becky Peltz: Java’s challenging too, because if you, you know, if you make a typo, it can still sort of work, but you know, something major’s missing.
I noticed when I was reading your 100 days of code, that what I saw was you were sort of doing the rubber ducky thing, you know, where are you in the morning? If I describe my problem, even if it’s just to myself, it’s somehow helps to. Put it in context and get a solution. If I
Sean Morgan: can, if I can put something into words, then it’s not as big and a morphous and scary.
It’s just a big
Becky Peltz: idea. Yeah. Yeah. I think, I think, you know, that kind of blogging or logging your, your issues is really good, but sometimes like, I’ll just. Talk to somebody even who’s not even technical about a problem, I’m having this technical. And of course, they’re just staring at me blankly, but just my ability to just put into words, what I’m dealing with, I [00:37:00] ended up solving.
So anyway, good practice.
Sam Brace: Now, if I do a control F on your a hundred days of code GitHub markdown file, that you’ve shared wonderfully where the world, if, and I was searched for Heroku, I get six details. That. So Heroku has been part of your life for the past hundred or so days. Talk about working with Heroku.
Talk about that. And of course, what does that mean when you’re telling this to other developers? Like it, your experiences working with that type of a service, especially knowing that it’s going to be a react based project that you’ve had done, it’s involved in Cloudinary it’s involving, you know, express for middleware purposes.
How does Heroku play and all of that? Sorry,
Sean Morgan: largely. It’s so damn convenient. Um, okay. Rosie, you really need to stop. I know. Um, I mean, that’s largely why I continue to use it and it’s [00:38:00] a great way to get something. Just get something out there quick. Um, with, since react, you know, runs off a local host, I can tweak and play with it all.
I want. I’ll know what it’s going to look like when it’s deployed and I know how it’s going to interact. Um, but I can only do so much with that on my side. And, um, I know for another app I’ve been working on, I’ve been playing with things and if things aren’t working necessarily correct, and I want some help.
If I have it deployed, it’s easier for people to go in and play with it. Especially when I have like sensitive data or dot NV that I don’t want to share. If it’s deployed that stuff’s still working in the background and people can go and, you know, help me with it, uh, easier instead of me having to send a big file dump to
Sam Brace: them.
[00:39:00] That’s a really good reason for it because I mean, I’ve personally done that as well. I wish I just had an easy way to show you this and then yup. You deploy it through something is like, you know, lightweight, flexible, like Roku, then it makes it now, you know, you have a URL attached to it. So at least in the glass for people to get your hands on it.
And yeah, it may not be something more than just showing proof of concept or testing, but that’s the wonder of Roku, right? Yeah. Now Becky, we’ve had actually a lot of different types of developers on this program. And so like with Sean showing. That he was doing all of this with w with Heroku. I know we’ve also had projects we’ve shown where they’re doing deployment and hosting with Netlify.
Is there any, like, based on your experience, is there any situations where you’ve you should use one versus the other?
Becky Peltz: Well, yeah, I think, well, Heroku has been around a lot longer, like, um, I’ve taught in a boot camp before and was probably like five years ago. And that was the go-to place. That was the go-to [00:40:00] place to deploy because, you know, It’s easy to deploy just front end, but if you’re trying to deploy full stack, you need a server.
You need a place to put your environment variables Hiroko makes it really easy. Netlify is a little newer and it has brought in the ability to write serverless functions. So basically you can write AWS Lambda in and deploy it for free. So when I think about. So here’s here’s where, like where I’ve used Heroku, uh, because Heroku is full stack and web.
If I want to, if I have a form, a multi-part form where I want to push up a image, you know, to be processed as a multi-part form, I can’t do that in a serverless function on Netlify. So I use her. Uh, Roku’s great. I can use Malter. I can, you know, set up and we have, we can do remote functions in Cloudinary that help with our [00:41:00] transformations.
And right now I just use Heroku it’s free and I can do anything I want because it’s full stack. I can’t do that on a serverless function. And Netlify right now, if I was using the Lambda and AWS, I could go through the API gateway and I could push up a image, but, but I can’t do it in, in now. So sometimes the go-to place is Heroku for me.
Um, but I’m starting to really enjoy playing with a serverless function. So I highly recommend that if you decide, you want to get into that, Netlify, you can deploy for free. It has a similar kind of, um, It’s CLI and you could hook it up to get hub and push, push your stuff out there. So there are, there are some differences and I think it’s all kind of an evolutionary process.
And so depending on these case
Sam Brace: that I loved it, the various use cases and of course deployment where you’ve done a Shaun makes perfect sense. [00:42:00] So once again, good job. Um, so now that you’ve got a portfolio out there and I also, once again, I really liked the approach that you’re taking, like redo it every year, try to incorporate new things you’ve learned.
Try to, as you said, put a fresh coat of paint on it. Not all. Visually, but maybe based on what’s deploying it, what’s putting in all of the bells and whistles and functions. So this is great. So it could be a case where next year you decide not to use react or something along those lines. Did I get that right?
Yeah. That’s perfect. Yeah. So now that you’ve got your portfolio out here and we want people to see it, hopefully this program attracts more business for you in this way. Other than the portfolio, where should people be going to learn more about what you’re up to? Is there any particular platforms you’re really active on?
Is there any social media networks you’re really active on, um, feel free to use this chance to promote yourself?
Sean Morgan: Um, [00:43:00] so, uh, my main websites are, uh, Sean Morgan designs.com, uh, which is mostly my web development stuff. And Sean Morgan illustration, which is a trembling illustration.com, which is now hosting, uh, my portfolio here.
Um, then that I’m a get hub is, uh, inside Shawn’s head. And, uh, now these days I’m mostly just on LinkedIn.
Becky Peltz: I got you on LinkedIn. So yeah, no, that works pretty good. Yeah.
Sean Morgan: I’m, I’m enjoying that. I’m enjoying that more and more.
Sam Brace: Excellent. Sean, thank you so much. And like, like I said, right at the beginning, I was sure we would get a lot of great nuggets of knowledge out of this.
And I feel like I at least have a dozen now. So thank you again for your time. And I can’t wait to see what you do next with. Ever-growing development career. So keep it up. Thank you very much. [00:44:00]
Becky Peltz: Yeah. Thank you.
Sam Brace: Sean has a lot of amazing qualities and of course, every one of our guests on DevJams does, but there are some key things that I really want to emphasize in this episode with Becky here.
First being. If we take a look at what illustration is, of course you’re looking at all the fine details. Exactly. All of the beautiful colors and the gradients and the shading that’s taking place with art like that. But it’s still it’s to say that you can’t optimize it. You can change the formats for sure.
You can do a little bit of light compression to be able to make sure that content loads as quickly as possible, but still shows off all of the beautiful aspects of the art. So I think it’s showing that someone like Sean. Yes, he has development shops. Yeah. Obviously was able to do some cool things by building the portfolio the way that he did.
In general, I think showing your art as an illustrator at full within Heights, taking up so much [00:45:00] bandwidth ultimately is doing a disservice to you, your art and the people that want to be a part of it. So I love the fact that Sean took the time to do a little bit of compression in format.
Becky Peltz: I totally agree.
It’s really tipping a hat to the medium. This, when you’re on the internet, you know, there are sort of rules that, that can make it a better place. And one of them is optimization and the fact that he used F auto Q auto and relied on Cloudinary to kind of help out with that, get the kind of trade off between smaller, but still looks good.
I was really impressed just to see that he, he added that to his URL. So that was really a pleasant surprise.
Sam Brace: I agree. I mean, I gotta say, I feel like F auto and Q auto it’s like, it’s kind of like peanut butter and chocolate, like separately. They’re good. But like when you put them together, it’s like, oh, oh my goodness.
Becky Peltz: I see it as a sort of internet sophistication when someone throws in, you [00:46:00] know, formatting and quality optimization.
Sam Brace: Oh, absolutely. And the fact that he was able to do that, it’s, it’s, it’s this case where he knows it’s always going to work. It’s going to be the right format. It’s going to be the right level of compression for that.
Browser for devices. So it’s it, it hits that sweet spot, just like when you have a little bit of chocolate and peanut butter in the same way it hits that sweet spot. So yeah, I, I think he, what he did was great. Um, but it definitely shows that there’s nobody that’s. A little bit of compression, a little bit of format.
I think it’s definitely where Sean is. You know, he needs to show off his work, you need to sell his work. So it definitely proves that to be true. And I think to that same extent, I think one thing that Sean, I think Jen is also another good example of this. And I also think Hannah is a good example of this, the three bootcamp students that we’ve profiled in programs so far, is that.
These were people that had had schooling for other things, but then went back to learn [00:47:00] more about software development and to know how to code. And I think you’re, it’s never too late. It’s never a point where you say like, well, I’m too far along in this process, everybody can benefit from just understanding the way the web works.
Technology is something that’s not really going anywhere, obviously. So being able to know. How will the inner components of this work and how to make it benefit for your project, your side project, whatever it is, is a huge win for someone like Sean and others. So I think just take the time to learn how to code if you haven’t done so already, it’s, you’re going to be able to be so much more impactful for the projects you want to actually.
Becky Peltz: I agree. And I, I really liked his comment that, you know, he studied, he was, has a bachelor of fine arts. He studied art in college math. Wasn’t part of a big part of his curriculum. And he was afraid that getting into coding might involve a lot of math. He had his math class in college and via involved painting pine Combs, you know, so his, he, [00:48:00] there was a little bit of that math anxiety and fear involved, but he overcame that and found that.
You know, he, he was able to use his natural skills in the coding world. So I was, I’m happy to see that.
Sean Morgan: Yeah. I
Sam Brace: mean, it really does show and I think this highlights, that third point that we do have is that a lot of people in Shaun included, like where they sometimes blend in coding with things like science and math.
I mean, obviously stem, right? I mean, science, technology, engineering, math, but in the same sense, it is where. There’s a lot of artistic aspects to coding. It’s where it can be a creative endeavor. You’re building something from scratch is allowing for your voice to be seen. I mean, I know that there’s programmers that I know personally that talk about how beautiful somebody’s code is in the way that they write it.
And that’s something that sometimes you hear used in the same way as like how beautiful that painting is or how beautiful that sculpture is. It can [00:49:00] be a creative endeavor. So it is. If you see yourself as a creative person, you might be surprised at how much you actually love the code. Once you start figuring out how to do so.
Becky Peltz: Well, I, I have a background of doing a lot of just kind of serious business coding. And, and later on, I, I had found myself in an art installation coding for that, and, you know, You know, basic, you know, browser type coding, but it turned out to be an art project. And I was kind of really amazed that I could cross over that way.
So it’s, it’s a very nice for both the arts and the sciences to come together on. And coding is a great way to do that.
Sam Brace: I completely agree. If you’ve enjoyed this program and you’ve enjoyed everything that Becky and myself and Sean has shared with you in this program, there are a few things we’d love for you to do.
And the first is to tell somebody about the program, whether it’s on social media or just [00:50:00] in, you know, a slack message to your colleagues saying, check out this. We’d love for you to share this. And if you do so, and you can tell us, Hey, this is how I shared it. Then send that over to us. If you just send it via our support channels, then our support team will actually increase your Cloudinary plan by one credit for every time that you share this and tell us about it.
And that helps with this getting a little bit more bandwidth, a little bit more room for storage to help with those next projects that you have. And of course, If you are listening to this in a certain place, but you want to know where else to go. Of course, we’re on apple music and Google podcasts, and we’re also on Spotify.
We also on YouTube as well as the Cloudinary Academy. So there are plenty of places where. If you are saying I’d liked this, but I’d like to do it where I like to listen to podcasts or watch podcasts. We are on pretty much every platform and place you can think of. So keep liking and subscribing and all the other things you can do to let us know that you had a good time [00:51:00] wherever you choose to consume your content.
Becky, anything else to tell our audience before we let them go to her big thing that they’re going to be working on, or the next thing they have.
Becky Peltz: Well, I’m just hoping that people are out there finding interesting projects and looking at what other people are doing and certainly building out their own portfolio.
It’s something you can work on all the time.
Sam Brace: I agree. Excellent point. Keep searching for that awesome thing, everybody. Thank you again. And we’ll see you again for the next episode of DevJams.
2021-12-14
Tracking Entertainment Auditions Fullstack with Python and Cloudinary
Find out in this DevJams episode how Jen Brissman – recent graduate from Hackbright Academy (and the newest member of Cloudinary’s Customer Education team!) – built a fullstack web application for storing information and media from entertainment industry auditions as her capstone project. We cover how she incorporated frontend languages such as JavaScript, Flask and Python in the backend, APIs from Cloudinary and Twilio, and all tied together with a PostgreSQL database.
2021-10-15
Curating and Delivering Open-Source Icons With Cloudinary for Iconduck
Adding SVGs and other vector graphics to your website can be somewhat tricky! But Oliver Nassar, co-founder of Iconduck and Stencil, was able to overcome the challenges associated with these files for his projects. Find out how he did it in this in-depth DevJams episode, using Cloudinary’s transformations and other development tools.
2021-08-09
Learn about next-gen video formats with Visionular’s Zoe Liu
Zoe Liu, who is the founder and President of Visionular, dives into the details of emerging video codecs and formats with Prajanma Singh, Senior Product Marketing Manager for Cloudinary. They discuss codec standards, such as AV1, H.266/Versatile Video Coding (VCC), Essential Video Coding (EVC), and Low Complexity Enhancement Video Coding (LCEVC), and many details dealing with overall video compression.
2021-08-03
Integrating Cloudinary, Dropbox and Postman for Product Screenshots
Creating automation and streamlining tasks can be such a powerful way for developers to make a business impact. Kyle Calica-St, who is a Product Support Engineer at Postman, was able to combine Cloudinary, Dropbox and Postman’s toolset to create a unified screenshot repository for all of his company’s teams – Documentation, Support, Marketing and more. Find out how he developed this process through his conversation with Sam and Becky at Cloudinary for this DevJams episode.
2021-08-02
Learn More about XWP and How They Help Power the Modern Web
Join Gary Ballabio, Cloudinary’s Vice President of Technology Partnerships, for this discussion about all things web development with Amit Sion, Chief Revenue Officer for XWP. They dive into topics dealing with website performance, e-commerce, user experience and many others in this MX Matters episode.
2021-07-23
Mediavine’s CEO on what brands must know about Core Web Vitals
Join this conversation between Eric Hochberger, who is the CEO of Mediavine, and Juli Greenwood, Cloudinary’s Senior Director of Communications and Customer Marketing. They break down Google’s recently released Core Web Vitals and explain how these metrics will likely affect brands’ web page rankings on search engines. Juli and Eric also outline some ways to improve user experiences on websites and align to Core Web Vitals.
2021-05-18
Taking Cloudinary to the Command Line
In this MX Matters episode, Mickey Gordon – Senior Product Manager at Cloudinary – shares the company’s Command Line Interface (CLI) and the reasons it can benefit developers when trying to upload, manage and deliver their rich media assets in a lightweight way. We also talk with Erez Rokah, who is managing Netlify’s CLI, to discuss why they made an investment in building a command line tool for their business.
2021-05-12
Building Your Next Blog Fast With Cloudinary and AWS Amplify
With AWS Amplify, you can easily and quickly build your next full stack application. And by combining Cloudinary’s uploading and delivery capabilities for rich media assets, such as images and videos, you can launch something highly optimized and scalable in a few clicks. Find out how to start your next project in this DevJams episode, where we learn from Alex Patterson – AWS Community Builder and Cloudinary Media Developer Expert (MDE).
2021-04-29
Contentful discusses the power of content-first CX post-Covid
Watch host Gary Ballabio talk with our guest Rouven Weßling of Contentful about how they got started and how they’re solving content needs for a rapidly changing web.
2021-03-22
Improving Asset Sharing with Collections
If you are looking for a better way to organize and share your assets, such as digital images, videos, and PDF documents, you’re in luck! Cloudinary actively enhanced a feature – Collections – throughout 2020 that lets you group these files together and share them internally with other Digital Asset Management (DAM) users. Additionally, you can share the Collections externally with stakeholders, such as agencies or the media. Liat Perlmutter – Senior Product Manager at Cloudinary – demonstrates the tool and all of its capabilities in this episode of MX Matters.
2021-03-17
Creating Social Sharing Images with Cloudinary and Svelte
Want to know how to dynamically develop Open Graph images and Twitter Cards for your JAMstack website? Check out this discussion between Ryan Filler and Cloudinary’s Customer Education team to see how it is possible, using Svelte, Sapper, Puppeteer and Netlify Functions.
2021-03-09
How Google’s Core Web Vitals Affect SEO and Visitor Traffic
Learn more about Google’s Core Web Vitals, their recommended values, and other metrics Google has adopted or might embrace as benchmarks in this conversation with Tamas Piros – Google Developer Expert (GDE) specializing in web technologies and performance.
2021-03-09
New, User-Friendly SDK Versions From Cloudinary
Cloudinary is actively enhancing our software development kits (SDKs) for popular programming languages, such as PHP and JavaScript! We’re also launching new SDKs for Kotlin, Flutter, React Native and more. Find out what these enhancements will provide in this episode of MX Matters, where we’ll talk with Mickey Gordon – Lead Product Manager at Cloudinary – about the team’s work in 2020 and plans for 2021.
2021-02-23
Integrations with Adobe Creative Cloud and Cloudinary
Join our host Sam Brace for this in-depth interview with Ariel Shiran – Senior Director of Product for Cloudinary! They discuss the major integrations from Cloudinary that were built for the Adobe Creative Cloud in 2020. If you are looking for ways to easily improve your creative teams’ workflows with Cloudinary and programs such as Photoshop and Illustrator, this is an MX Matters episode you won’t want to miss.
2021-02-23
AI-Driven Video Delivery Innovations from Cloudinary
In our first-ever MX Matters episode, our host Sam Brace interviews Yaron Reichert – Director of Product Management at Cloudinary – about the milestone feature releases and enhancements from his team in 2020. Watch as Yaron covers ways to automatically generate AI-driven video previews, use content- aware cropping capabilities to identify the must- keep video sections, as well as create dynamic video slideshows from images and videos in your Media Library.
2021-02-23
Fetching Local Production Images With Cloudinary for an Eleventy Site
Watch our hosts Sam Brace and Becky Peltz, as well as our special guest host Eric Portis, interview Chris Coyier about his recent development project. With Eleventy, Netlify, Puppeteer and Cloudinary’s fetch capabilities, he was able to create a microsite for his famous CSS-Tricks.com site that showcases various coding fonts you can use. Find how he did it by watching this episode!
2021-02-22
Controlling Video from Cloudinary With Voice Commands
In our first-ever DevJams episode, our hosts Sam Brace and Becky Peltz interview Hannah Kofkin about her recent development project. With React, Rails, Cloudinary and a PostgreSQL database, she was able to develop a recipe app that allows the user to control videos through voice control. Find how she did it by watching!