An Open Source Lovable Backend

An Open Source Lovable Backend

Vibe coding is obviously the thing in 2025, and that's totally understandable. For decades programming has been a dark and mystical craft, unavailable for 99.5% of the world's population. So when the AI now can generate code and create software, giving "citizen" the ability to create software, this is obviously a really big deal.

Most vibe coding tools allows you to create beautiful frontends, websites, and React apps. But very few allows you to generate and host your backend. This is where Magic is different, because it is a cloud system. Implying we've always had the ability to host both backends and frontends.

This allows you to create a backend prompt such as illustrated below, and have the AI simply take care of it, 100% automatically.

HTTP endpoint that allows users to login, returning a valid JWT token if successful

Vibe coding an HTTP endpoint

The above is a screenshot from Hyper IDE, where only the comment was provided by the developer, and the rest was done by the AI. And yes, it's 100% correct code! Watch the following video to see how I created it.

Why not use ChatGPT?

I get it, you're already paying for ChatGPT, and you don't want to pay for something else. However, regardless of what you ask ChatGPT to create for you, it will never be able to deploy it, or allow you to test it. With Magic Cloud you can actually test the above HTTP endpoints immediately after the AI is done generating your code. No need to connect to Supabase, no need to compile or wait for deployments - Just instant gratification.

  1. Write a prompt
  2. Click "generate"
  3. Run and test your code!

Testing a vibe coded API endpoint

Regardless of how much beautiful code ChatGPT creates for you, there is simply no way you can have it host your code. Magic allows you to create and host databases, securely connect to your existing databases, generate CRUD apps, and have Magic host the result - And one second after the AI is done generating your prompt, you can test the code.

Lovable for your Backend

Lovable has signed up millions of people since they started. It's a great tool for your frontend, but it doesn't really have a great backend story. Even if you connect it to Supabase, you still have to create your database, make sure your backend works, and that your Lovable frontend is somehow able to correctly connect to it.

When you're generating frontend code with Lovable, it will show you how your frontend looks like in "preview" mode. You can't really "show" a backend visually, but Magic gives you the second best option - Being that it allows you to test your APIs and backend immediately from within the same tool you're using to create it.

This allows you to use Magic for your backend, and create highly complex applications in some few seconds, while connecting your Lovable frontend to Magic by simply passing in the OpenAPI specification, and create your frontend based upon your backend. Getting the OpenAPI specification for a Magic endpoint is as simple as clicking a button.

Retrieving OpenAPI specification for endpoint

Conclusion

Lovable and other similar tools are great for generating frontends, but it's not the optimal tool to create your backend. And since the backend is the foundation of your app, it's typically much smarter to create it first. With Magic Cloud you can create said backends in seconds, and test them immediately after creating them. This simply provides a superior development model, where you can work "in the flow" 100% of your time, without having to wait for pipelines to deploy, come up with complex server configurations, etc, etc, etc. And to sugar the pill, you can even host your frontend using Magic.

If you're interested in playing around with it, you can find its open source repository below, or contact us to get started.

Thomas Hansen

Thomas Hansen

I am the CEO and Founder of AINIRO.IO, Ltd. I am a software developer with more than 25 years of experience. I write about Machine Learning, AI, and how to help organizations adopt said technologies. You can follow me on LinkedIn if you want to read more of what I write.

This article was published 2. Oct 2025

How to sell Your Product with ChatGPT

OpenAI will start selling products through ChatGPT by integrating with your e-commerce platform. This allows for instant checkouts directly in ChatGPT.

Hyperlambda is Faster than C#

Hyperlambda is actually faster than C#, which doesn't make any sense what so ever, but it's the truth. So why is this?

AI for Tour Guide Companies

Few would imagine that tour guide companies are at the cutting edge of AI technology, but our experiences here is that the benefits are simply too large to ignore.

Copyright © 2023 - 2025 AINIRO.IO Ltd