Lemon AI is an AI-powered digital marketing platform that uses machine learning predictions to help growth teams optimize ad campaigns, improve ROAS and make data-informed decisions. Its value depends on one thing the frontend controls: whether marketers can understand a prediction quickly enough to act on it.
I built the analytics-focused frontend with Next.js, React.js and TypeScript, using MUI, TanStack Query and Redux. My job was to turn AI-generated predictions and campaign metrics into dashboards and reports that are clear, fast and actionable.
Making AI predictions readable for non-technical users
Situation
Model output is numbers and probabilities. Marketers running campaigns need to know what it means for their budget today, not how the model works.
How I handled it
I designed reporting UI that puts the prediction next to actual campaign performance, so users compare what the model expects with what happened, and I worked with the team on wording and layout until the insight was obvious at a glance.
Outcome
Dashboards where AI-generated insights read as decisions, not raw data.
- Product thinking
- Data visualization
- Communication
Fresh metrics without hammering the API
Situation
Campaign metrics change through the day and several dashboard widgets need the same data. Fetching it separately in every component wastes requests and leaves widgets disagreeing with each other.
How I handled it
I used TanStack Query for server data, with caching, background refetching and shared queries, and kept Redux only for UI state shared across components, such as selected campaigns, date ranges and filters.
Outcome
Dashboards that stay fresh and consistent, with a clean split between server data and UI state that the team could follow.
- TanStack Query
- State architecture
- Performance
Shipping new views quickly without design drift
Situation
An analytics product keeps growing new reports and views. Building each one from scratch makes the UI inconsistent and slows the team down.
How I handled it
I implemented MUI component patterns with custom theming and built reusable data-driven UI patterns for AI-generated insights.
Outcome
A polished, consistent interface and faster delivery of new analytics views.
- Design systems
- MUI
- Scalability
- 1
Selectthe marketer picks campaigns and a date range
- 2
FetchTanStack Query loads metrics and predictions, cached and refreshed in the background
- 3
Comparepredictions are shown beside actual performance
- 4
Actthe marketer adjusts the campaign based on the insight
- 01
- 02
- 03
- 04
On an AI product, the frontend is where the model meets the customer, so I worked closely with the people who understood the data and the people who understood the marketers. I asked what each number should help a user decide before building the chart, which kept discussions focused and saved rework.
| Technology | How I used it |
|---|---|
| Next.js | Application framework, routing and page structure |
| React.js | Dashboards, reporting flows and data-driven UI |
| TypeScript | Typed metrics, predictions and API responses |
| MUI | Component library with custom theming |
| TanStack Query | Server data fetching, caching and background refetching for metrics |
| Redux | Shared UI state for complex dashboard views |
| Chart.js | Charts that put AI predictions next to real campaign performance |
| Node.js | Backend endpoints serving campaign data and model output to the UI |
| Jest | Unit tests for metric calculations and data transforms |
| React Testing Library | Component tests for reports, filters and dashboards |
| Playwright | End-to-end tests for the reporting and onboarding flows |
| GitHub Actions | CI for tests, type checks and preview builds |
| AWS | Hosting and storage for the web application |
| Mixpanel | Measuring which insights users open and act on |
Key areas of work:
- Predictive analytics dashboards and reporting UI
- Campaign performance tracking and visualization
- TanStack Query data management for real-time metrics
- MUI component library integration with custom theming
- Scalable data-driven UI patterns for AI-generated insights



