An AI-powered marketing analytics platform that simplifies Google and Meta Ads analysis through a beautiful dashboard and a conversational chat interface.
Clarity AI is a sophisticated, AI-powered marketing analytics dashboard designed for C-level executives and mid-level managers. It provides a unified, visually stunning interface to analyze performance across Google Analytics, Google Ads, and Meta Ads. The core experience revolves around a clean, information-dense dashboard and an intuitive chat interface, allowing users to ask natural language questions and receive simple, yet detailed, analyses of their campaigns, ad sets, and creatives.
- Unified Dashboard: A high-level overview of key performance indicators (KPIs) from all connected marketing platforms in one place.
- AI-Powered Chat: A conversational interface to get specific insights using natural language queries.
- Seamless Integrations: Easily connect and manage data sources like Google Analytics, Google Ads, and Meta Ads.
- Subscription Management: A dedicated section for users to manage their subscription plans and view billing history.
- Visually Stunning UI: A clean, professional, and data-forward design built for clarity and ease of use.
- Responsive Perfection: Flawless layouts across all device sizes, from mobile to desktop.
- Frontend: React, Vite, TypeScript, React Router
- Backend: Hono on Cloudflare Workers
- State Management: Zustand
- Styling: Tailwind CSS, shadcn/ui
- UI & Interaction: Framer Motion, Lucide React
- Data Visualization: Recharts
- Storage: Cloudflare Durable Objects
The project is a monorepo with three main parts:
src/: The frontend React application.worker/: The Hono backend API running on a Cloudflare Worker.shared/: TypeScript types and mock data shared between the frontend and backend.
Follow these instructions to get the project up and running on your local machine for development and testing purposes.
- Bun installed on your machine.
- A Cloudflare account.
- Wrangler CLI installed and configured:
bun install -g wrangler.
-
Clone the repository:
git clone <repository-url> cd clarity_ai_analytics_dashboard
-
Install dependencies:
bun install
To start the local development server, which includes both the Vite frontend and the Wrangler dev server for the worker, run:
bun devThis will start the Vite development server, typically on http://localhost:3000, which will proxy API requests to the Cloudflare Worker running locally.
bun dev: Starts the local development server.bun build: Builds the frontend application for production.bun lint: Lints the codebase.bun deploy: Deploys the application to your Cloudflare account.
This project is designed to be deployed on the Cloudflare network.
-
Authenticate with Wrangler:
wrangler login
-
Deploy the application: Run the deploy script from the root of the project:
bun deploy
This command will build the frontend application and deploy both the static assets and the worker to your Cloudflare account.
Alternatively, you can deploy your own version of this project with a single click: