Back to Portfolio
AI Vibe Coding May 2026

MajinBu - AI-Powered Food Inspiration

A web app that turns one sentence about what you feel like eating into illustrated Indonesian dishes, then full recipe detail and an AI-made tutorial video. Built in five hours for the TRAE SOLO hackathon; it placed third.

Client
Unbound Creativity with TRAE SOLO @ Indonesia
Role
AI Vibe Coding
Duration
5 Hours
Team
Solo (1 Developer)
Completed
May 2026
Challenge

Five hours was all I had, and most of them went into things you never see on screen. The model had to answer in structured data, candidate images had to actually look like the dish, and video generation could not leave the page hanging. All of it also had to hold together in front of the demo wall.

Solution

I split the flow into three small endpoints (candidates, detail, video status), pushed AI output through Zod schemas, generated candidate images with PixVerse and fell back to a placeholder when that failed, and ran video as a background job the frontend polls. Everything is stored in PostgreSQL under a prompt hash, so the same request never calls the model twice.

Project Overview

MajinBu was my entry for Unbound Creativity with TRAE SOLO @ Indonesia, a one-day hackathon TRAE ran in Jakarta on 30 May 2026. The brief was simple: take an idea to a demo that actually works within a single session, then put it on the demo wall. I spent about five hours on it, vibe coding with TRAE SOLO, starting from an empty folder and ending with something worth showing other participants. By the end of the day it had placed third in the Demo Wall Popularity Track.

Why it exists

Recipe apps tend to follow the same pattern: pick a category, tick off the ingredients you happen to have, then scroll through a long list. The problem people actually have is smaller and fuzzier than that — not knowing what they feel like eating.

MajinBu turns the order around. There is no menu to choose from, just one box where you describe what you want in everyday language, something like “West Javanese food that tastes good on a rainy day”. The AI turns that sentence into concrete options, pictures included. I pointed its knowledge at Indonesian food on purpose, so what comes back is something you could actually go and eat, not a list of international dishes.

How it works

The flow is three steps, short enough to explain on stage in a few seconds.

  1. Say what you want. One text field, capped at 500 characters, with a small counter in the corner. The placeholder carries an example prompt so visitors are not left staring at an empty box.
  2. Pick a candidate. The AI returns Indonesian dishes, each with a short description and an image. The schema allows up to six; in the demo, three cards filled the screen.
  3. Open the detail. Choose one and the detail view lays out the description, how it tastes, its texture, the main ingredients, the recipe list, the cooking steps, when the dish fits, and a short tutorial video.

Under the hood

The app runs on Next.js 15 (App Router) and TypeScript, with Tailwind for the interface. Data sits in PostgreSQL behind Prisma, across four tables: request, candidate, food detail, and video asset.

A handful of decisions did most of the work:

  • Structured AI output. The model is asked for JSON that matches a schema, and Zod validates it before anything is stored. Without that, every part of the page would be guessing at free-form text, and the layout would fall apart the moment the model changed its tone.
  • No lock-in to one provider. Calls go through an OpenAI-compatible interface, so moving from Gemini to OpenAI or DeepSeek means changing the API key, base URL, and model name. That came in handy during testing, when one provider’s quota ran out halfway through the event.
  • The images are generated too. Each candidate gets a PixVerse image job from an Indonesian food <dish name> prompt, and the result is polled before it is stored. If the job fails, the card shows a placeholder instead of stalling. Images go through an internal proxy so CORS and referrer rules do not get in the way.
  • Video never blocks the page. The AI’s visual description goes to PixVerse through its CLI, which renders a 12-second clip (the duration comes from an environment variable). Rendering is not instant, so the detail endpoint only kicks the job off in the background; the frontend checks the status every four seconds and swaps in the player once the video is ready.
  • Caching on a prompt hash. Candidates are cached from the prompt hash alone, while details and videos use a hash of the prompt plus the dish name. The same request therefore skips both the model call and the render.
  • Usage limits, kept simple. The three main endpoints are rate limited per IP per minute — 10 candidate requests, 12 detail requests, and 20 status checks — so one curious visitor cannot burn the AI quota for everyone else.

What five hours taught me

Vibe coding makes the typing fast, but it does not make the work disappear. Most of my time went into the specification: which flow has to work, what the AI must return, and what I could afford to cut. Once that was settled, the agent could finish a whole slice in one go and I only had to test it in the browser.

Some features were dropped on purpose, too. The first version leaned toward location-based recommendations, but the data and API costs made no sense for the hours I had left, so I pivoted to food inspiration without location. Cutting that is what got the app finished; a longer feature list would not have.

The demo made one thing obvious: the main path has to fail as rarely as possible. AI calls retry with exponential backoff, candidate cards hold a placeholder while their images are missing, and the video section has a clear loading state because rendering does not finish instantly. The audience votes on what they see running, so one error on screen costs more than a feature that never got built.

The result

MajinBu placed third in the Demo Wall Popularity Track. The part I value more is the proof that one person with the right AI tools can ship a whole product — interface, API, database, model integration, video — in a single working day. The code is at github.com/fadilahonespot/majinbu.

If I pick it up again, the first things I would fix are image consistency for regional dishes the image model barely knows, and moving video generation onto its own queue so it no longer depends on a single server process.

Technologies Used

Next.js 15 TypeScript PostgreSQL + Prisma AI OpenAI-compatible PixVerse Image PixVerse CLI
Home
Portfolio
Blog
About
Resume
Contact