YouTubevideo· Jun 4, 2025· 15:02· 2,200 views on YouTube

Is Convex Chef really THAT good?

Watch on YouTube ↗
0:00

React at a moment you like. The best moments light up here.

transcript

37 moments
  1. So, this is the second time I'm recording this video. Mostly because the first time I recorded it, I failed. I thought I could beat the AI. I thought I could be faster than the AI in building out a Laravel application from start to finish before it could build out a React application from start to finish, a full stack React application.

  2. And you'll get to see why in this video that the tool that beat me and why I think it's actually pretty good. So why don't we take a look? So this is Chef by Convex and it's the tool that beat me in building out a full stack application from start to finish even deploying it before I could build out a Laravel application from start to finish even with using AI.

  3. Initially I thought okay I'm going to have this great idea for a video where I say I can build a Laravel application from start to finish faster than AI can build an application from start to finish because I thought okay yes you have to think through authentication and then you have to think through okay yes you have to have a database connected but then it needs to know how to talk to that database how does it have users authenticate and also save information to the database with those users and then you have to get into things like authorization so is

  4. this user even allowed to see or view or create specific things within the database and I thought, "Oh yeah, I could do that before AI does it, but not when it comes to something like Chef because Chef is actually really good."

  5. And I hadn't played around with it at all until I started recording that video and within I think it was like four or five minutes, it had finished the application pretty much oneshot it. I maybe added a couple of different prompts afterwards, but it even built additional features that were pretty difficult to build if you think about file upload or picture upload and things like that.

  6. And so I figured I would give it a different take in the sense of maybe making another video just talking about how cool it is and how I think we as specifically myself as a PHP as a Laravel developer and just as developers in general what we can learn from something like Chef because I really think the reason why it's so good is it gives you everything out of the box within Convex so that they can use their AI to just say hey we've already built we've already solved these problems so why we just give you the solution using the tools that they've already built.

  7. So the first thing that I I built, I gave Claude, I said, "Hey, give me a prompt so that I can use this for AI." And it built this recipe app. And I'm going to go ahead and deploy it. It looks like I had already deployed it, but it's going to deploy it again. And we'll view the site. This is a personalized recipe keeper. I added additional features that it didn't quite nail the first try, but within the first try, it didn't have the import from URL or the export all recipes.

  8. It just had an add new recipe be able to search. I don't think it had the search functionality either. I asked it to add that feature because I wanted to see okay, how difficult is this? But basically, this is their own off convex's own off. And we can dive into the source code here in a little bit.

  9. But again, I think this is why Convex by and Chef by Convex is winning when it comes to the battle of building something from start to finish, a full stack application. I've tried Vzero, I've tried bolt, I've tried replet, I've tried them all. But I think the reason why Shift by Convex wins is it has its own database. It has its own authentication. It has a way to do all the things it wants to do and most of the time you're going to prompt to do.

  10. And so it just needs to pick and choose which parts does it need to pull in. And maybe something from this exists or will exist in the Laravel world soon enough.

  11. I don't know. And but I think there should be because the solving piece things that I've already unsolved makes it a lot easier to then just take those bits and pieces when someone prompts for it. So yeah, we have authentication. So, I could create a new account and I'll say, let's say josheri.com and we'll put in this password, but it automatically signs me in. Oh, could not sign up. That's interesting. I'll sign in anonymously.

  12. There we go. We'll add a new recipe. And this is the first recipe. We'll say that it needs some one cup of flour. And we just mix it. And then we can add some tags. But this is adding the recipe. And the cool thing is, yes, this is just basic CRUD actions, but most places I've tried to have generate something like this for me, they they just fail. They don't even most of the time, especially when it comes to persisting to the database attached to a specific user, but I think it worked great for me specifically.

  13. So, I want to go ahead and take a look at the actual code. Why don't we take a look at the code together? Let's go ahead and pull this up.

  14. workbench code. Perfect. So again, I had never used Convex before and this was the first time trying it out and I think it's very interesting. One, Convex has their own templates that kind of give you a whole bunch of things from start to finish for multiple different languages. Astro, let's see, Expo, that's really interesting one. There's Tanstack, there's Stripe, there's Shaden, there's React, there's Vit specifically.

  15. And yes, Convex is at least, if I'm understanding it correctly, it is React specific. So it is, and I wonder if they even say that here. Convex open- source React database for app developers type in pure TypeScript. Okay, so you don't necessarily need to use React, but the interesting part is it's a database as well as everything else. So not only do you have this real time database, but you also have the ability to have server queries and server functions, you could have I believe what they have like some kind of a Q information as well.

  16. So yeah, backend built-ins. You can create cron jobs, kick off backend AI workflows, builtin off a growing ecosystem of components and it all just lives in this little wrapper. And the cool part is because it's all typescript and because it's all types, AI works well with it. But because they built their own AI, they know how to work with their own tools, like I said. And so really, the code itself is nice, but the fact that I could generate all this and not have to mess with pretty much anything.

  17. I didn't touch any of this code, even the ability to deploy it and view the site in a page. I didn't touch anything like it. So the cool thing is it all lives in this one convex folder.

  18. So we have convex and we have these generated folders that it gives us from that. And I believe all of this is where all that data model lives. So we have have these are all ones that are generated. So we have the API and things like that. But really it all comes from like this recipes.ts I believe. Yeah. So this is where we have all the mutations and handlers and everything like that.

  19. And then we also have like a schema say okay this is where the values from the convex tables get input. So we have the recipes. We have a search index for recipes name and then user ID. I wonder where it has the like user schema. So this is recipes but I wonder where the actual user is. Maybe it's because it's an off.ts. Like it just wraps saying okay you are using convex off. I don't know specifically.

  20. And then basically the whole application itself is one react application. the it's there's no nex.js JS or anything on top of that at least what Chef generated like I said the templates themselves I believe you can have it looks like yeah they have a NexJS template they have Astro they have

  21. Vit all of these are templates that you can definitely use and use with Convex so I know that there's a lot of content creators and YouTubers who have been talking about Convex recently some of the people that I admire webdev Cody as well as Raz Mickey have been talking about Convex and just how wonderful Convex is. And so I wanted to dive into it a little bit more. And I'm not going to build anything. This is more just like an overview mostly because I was just so impressed at how quickly it built out that full stack application with Chef itself.

  22. But I wanted to look into okay, what does the code actually look like and why do people love it? And again, this isn't something that I'm going to be maybe using in my workflow, but just the fact that it's there, it exists. And if I needed something like this, a real time database fairly quickly and up and running, then it's probably a great option. And I think that's really where it comes down to because I took a look at the convex tutorial, which is a chat app.

  23. And so you think, okay, usually that's one of the more difficult pieces of tech to build in the sense that you have real-time information that's synced. If you were building that even in Laravel, you would probably have to reach for something like Reverb or you just pull the server and stuff like that. It's not tedious by any means, but it's also not the first thing that you want to build.

  24. So, the fact that even the initial tutorial is saying, "Hey, let's build a chat app together." It says something for sure because it talks about like how Convex works here. It's a client library with another client library. These two web apps that talk to the Convex back in a sync engine of mutations and queries saying, "Okay, once this happens, let's do this and if that does happen, then let's change it everywhere." And it's all synced together. And I think that's the part that probably most people just aren't familiar with, especially when building applications.

  25. If you are learning from the get-go, you're probably learning a traditional database where I'm going to write something and then I have to find a way to then read that information. And Convex at least, the way that I'm understanding it, and I could be wrong about this, is it's a sync engine in its core. It is a real time database just with information that you don't have to think about. So when you're writing mutations like this and you're saying I'm going to send a message. Yeah, it looks like the handler just awaits this context of the database and then it just inserts that message.

  26. But I don't think you actually have to do anything in terms of okay, once this happens, I'm going to now retrieve and refresh all the messages. It just works because of how the sync engine is set up. So yeah, update your app.tsx file like so. you're sending a new message where let's see where do we okay your first query so this is the get messages query it's exposed as a public API it's a query function the first line of the handler you're quering the most recent 50 messages from newest to oldest and

  27. you're showing live updates as the new messages arrive and they said yeah that's it now go back to your app try sending messages and I think again I think the yeah they say sync engine quite a it. And I think that's the piece that probably if I had to guess, especially from the videos I've watched from people like WebDev, Cody, Theo, Rasmic, they all appreciate the fact that it just is a sync engine out of the box. You don't have to It is a new database in the sense that you're not I don't believe you can use something like a Prisma or a Drizzle with it.

  28. You are using Convex's database structure and OM to talk to the database, but it is a sync engine out of the box. So you don't have to worry about that real-time information. Any query that you retrieve database information automatically keeps it in sync. Any mutation that you send automatically then pushes to the database to stay in sync. Yeah, just the fact that the initial tutorial that they mention is a chat application.

  29. Again, if the recipe information, we'll go back to the chef because I'm curious what the code. Let's go ahead and hide this workbench. I initially said please generate the initial structure code for web application called personalized recipe keeper. This application should include user authentication implement user accounts. It should include a database schema. So recipe data basic CRUD operations for recipes create, read, update and delete. And I figured okay AI applications e even good AI applications and mostly get that wrong.

  30. They get the fact of okay here's a user but I then okay can all users read it or they can they only read their own can they can they actually delete their own can someone else delete someone else's especially that authorization piece usually for full stack applications for full stack AI created applications it struggles with it because those are all pieces usually talking from different pieces of tech it's usually never the same piece of tech and I think that's why chef did so well chef by convex They're cooking something good.

  31. And it just one shot I believe. So it walked through all these. It pushed these functions to convex. I think it had Okay, I did have a preview error that I think it automatically tries to fix it.

  32. And okay, actually I think I tried logging in, but it didn't let me log in because it was expecting recipes to already exist. So there was no like blank application state. And so I think that was the one thing that I had to fix. And then it looked good. I said, "Here's some potential enhancements that we can make to the application. Let's try to get some where all these added to make the extra special. Let's cook." And I gave it these. And it nailed about 70% of them. But again, I was super impressed.

  33. I had to basically stop the recording because I got maybe I don't know 60 70% of the way in the same amount of time that it had already finished it and then deployed it. And of course, I probably knew how to do the rest of it within Laravel. I've built applications like this. I it's not new to me, but just the fact of how fast it could move as well as a lot of the things that I I was looking at within Convex of how you define schemas of how you do even this chat application.

  34. And of course, it gives you a lot of things to start out the gate when it comes to schemas and everything like that. But even the tutorial that they give out of the box, I can see why this is so popular and why it's so inviting. You have the things that become difficult within a full stack application. Authentication, real-time sync to the database, as well as just an opinionated way to send and retrieve information.

  35. It's one of the main reasons why I think Laravel does such a wonderful job is because you have those opinions of this is how you connect to a database. This is how you send information. This is how you retrieve information. This is how you have authentication. You don't have to think about how you're going to set all that up. And when you don't have to think about it, it's easier to do from start to finish AI or not. And so, yeah, Convex is wonderful. I think Convex is great.

  36. And I'm going to be using it more because I like to experiment with things. cuz I like to figure out, okay, why are more and more people talking about this? And I definitely see why.

  37. So, chef by convex specifically and just convex in general, I think they're cooking up something good. So, maybe try it out, but anything, keep creating.

just you here