Skip to content

Lemon AI

AI-powered digital marketing platform delivering predictive analytics, campaign performance insights, and data-driven optimization tools for growth teams.

Industry
AI
Year
March 2022
Platform
Web
Client
Lemon AI
Lemon AI product screenshot

Stack 14

  • Next.js
  • React.js
  • TypeScript
  • MUI
  • TanStack Query
  • Redux
  • Chart.js
  • Node.js
  • Jest
  • React Testing Library
  • Playwright
  • GitHub Actions
  • AWS
  • Mixpanel

01 · The product

Overview

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.

02 · Where I fit

My role

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.

03 · The hard parts

The problems I solved

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

04 · How it moves

Key flows

Flow · From prediction to decision4 steps
  1. 1

    Selectthe marketer picks campaigns and a date range

  2. 2

    FetchTanStack Query loads metrics and predictions, cached and refreshed in the background

  3. 3

    Comparepredictions are shown beside actual performance

  4. 4

    Actthe marketer adjusts the campaign based on the insight

05 · Shipped

What I built

  • 01

    Predictive analytics dashboards

    Dashboards and reporting UI presenting AI-generated predictions next to campaign performance.

  • 02

    Campaign performance tracking

    Performance tracking and visualization, with metrics over time, comparisons between campaigns and drill-downs.

  • 03

    Data layer with TanStack Query and Redux

    TanStack Query for async server data and Redux for shared dashboard state.

  • 04

    MUI component system

    MUI with custom theming as the base for a consistent analytics interface.

06 · Collaboration

Working with the team

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.

07 · Tools

Technology stack

TechnologyHow I used it
Next.jsApplication framework, routing and page structure
React.jsDashboards, reporting flows and data-driven UI
TypeScriptTyped metrics, predictions and API responses
MUIComponent library with custom theming
TanStack QueryServer data fetching, caching and background refetching for metrics
ReduxShared UI state for complex dashboard views
Chart.jsCharts that put AI predictions next to real campaign performance
Node.jsBackend endpoints serving campaign data and model output to the UI
JestUnit tests for metric calculations and data transforms
React Testing LibraryComponent tests for reports, filters and dashboards
PlaywrightEnd-to-end tests for the reporting and onboarding flows
GitHub ActionsCI for tests, type checks and preview builds
AWSHosting and storage for the web application
MixpanelMeasuring 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