Instead of starting from a blank page, ask WeWeb AI to generate the initial layout for you.
Since we’re starting from scratch, leave the AI's mode set to Build and pass the entire project as context:
You can use natural language prompts, and if you’ve got a wireframe or UI reference, you can even upload it as an image:
💡Prompt💡
I want to create a one page meme editor where users can pick a meme template from the left side menu and using an image editor on the right side add captions. The design should be clean, modern, and Notion-like.
Step 2: Fetch meme templates
Once the AI generates the design, it’s time to replace the dummy templates with real meme templates.
We’ll use ImgFlip’s API to fetch popular meme templates for free:
Add the REST API plugin to your WeWeb project:
Create a page workflow, like so:
Switch to the AI tab. WeWeb AI will automatically flip into Workflow mode so it only edits the opened workflow:
Add the memeTemplates variable as context so the AI knows where to store the data:
Then, prompt AI to set up the logic:
💡Prompt💡
Using ImgFlip's free API, https://api.imgflip.com/get_memes, get 100 popular meme templates using REST API GET request and save it in the memeTemplates variable. Display an error message when the API request fails.
Finally, test the workflow and verify the response status in the Logs tab:
⚠️ If the logic doesn’t work as expected, double-check the following:
In edit mode, enable Proxy request server side to handle CORS:
Confirm your branching logic is correct:
Step 3: Create a custom image editor
Why not just use ImgFlip’s caption API? Two reasons:
it's a paid feature, and we want to keep this meme generator app free, and
the styling options offered are limited.
So instead, let’s build a custom image editor.
Switch WeWeb AI to Coded component mode and give it a clear prompt:
💡Prompt💡
Prompt: Create an image editor component that takes an image input that is bindable. Let's users: add text on top of the image. Choose the text’s font, size, color, and outline (stoke color + width). Drag and place the text anywhere on the image. Rotate the text to whatever angle that suits them. Finally, export and download the final image with text as PNG. The design should be clean and Notion-like.
Once the AI generates the component:
Drag and drop it into the editor and remove the placeholder image:
Now bind the selectedTemplate image to the editor:
From here, you can keep iterating with AI to refine the editor:
But sometimes the iterations won’t match your vision, that’s when it’s best to switch to the no-code editor and take over manually.
Step 4: Understand AI code & make manual edits
To tweak things yourself:
Check the AI.md file to better understand the component and use code-specific words in your prompt (e.g., use imageRotation instead of “image rotation”):
Dig into the actual code. Copy-paste it into ChatGPT or Claude and ask for a breakdown, like so:
Tell ChatGPT or Claude the features you want to modify or add, ask for the updated code for specific sections, refactor the code suggestion, and then copy-paste:
Next steps: Customize & monetize
Hopefully, this guide helps you get your meme generator up and running.
Right now, it’s a simple meme generator app with an intuitive interface where users can freely customize meme templates. But this is just the starting point.
Here are some ideas to take it further (and maybe even turn it into a SaaS product):
Build a backend to store and manage your own meme templates.
Add AI-powered categorization to sort memes by type (funny, political, gaming, movie-related, etc.).
Introduce an AI chat assistant where users can describe a scenario and receive meme template recommendations.
Enhance the image editor to automatically place dummy text in predefined spots on the canvas based on the selected template.
Implement authentication and permissions so users can create accounts and manage their content.
Polish the UI/UX to make it more branded, professional, and visually engaging.