Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

35 Commits

Folders and files

Repository files navigation

🌸 Maisen β€” AI Feedback Intelligence Platform

Hackathon Tokyo 2026 Built with Next.js AI Powered

Transform scattered user feedback into actionable product insights.
AI clusters similar issues, generates summaries, reproduction steps, and fix suggestions β€” all in one dashboard.

Maisen (θˆžδ»™ β€” "dancing sage") automatically organizes the chaos of user feedback into clear, prioritized problem reports. Stop manually reading hundreds of comments β€” let AI group similar issues and tell you what to fix first.


🎯 Problem

Product teams drown in unstructured feedback:

β€’ Support tickets, app store reviews, surveys, and Slack messages pile up across tools
β€’ PMs spend 4-6 hours manually reading and grouping similar complaints
β€’ Critical issues get lost in noise β€” no way to see patterns
β€’ Engineers waste time asking for reproduction steps and context
β€’ Insights arrive too late β€” by the time trends emerge, users have already churned

πŸ’‘ Solution

Maisen automates the entire feedback analysis pipeline:

  1. Collect β†’ Import feedback from any source (API, CSV, manual entry)
  2. Cluster β†’ GPT-4o-mini groups similar feedback by underlying root cause
  3. Summarize β†’ AI generates problem statements, impact analysis, and fix suggestions
  4. Prioritize β†’ Severity scoring (Critical β†’ Low) based on user count and sentiment
  5. Act β†’ Engineers get reproduction steps and recommendations in one click

✨ Features

Feature Description Implementation
🧠 AI Clustering Groups similar feedback by underlying problem, not keywords GPT-4o-mini embeddings + semantic similarity
πŸ“Š Smart Summaries Problem statement, impact assessment, reproduction steps, fix suggestions Structured GPT-4o-mini prompts with JSON schema validation
🎯 Severity Scoring Auto-assigned Critical/High/Medium/Low based on user reach and sentiment AI-determined with manual override option
πŸ“ˆ Analytics Dashboard Volume trends, severity distribution, category breakdown with Recharts Real-time aggregation from feedback store
πŸ” Detail Drill-Down Click any group β†’ see AI summary + all raw feedback entries Slide-in panel with screenshot gallery
πŸ“Έ Screenshot Context Visual evidence linked to each feedback entry Image upload + lightbox viewer
🎨 Glass-Morphism UI Dark theme with frosted glass cards and smooth animations Tailwind CSS 4 + custom backdrop utilities
⚑ Sub-Second Load Optimized with React 19 concurrent rendering Next.js App Router with streaming SSR

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                        Next.js App (Port 3000)                  β”‚
β”‚                     Frontend + Backend in One                   β”‚
β”‚                                                                 β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚      Frontend (React)     β”‚  β”‚     API Routes (Node)       β”‚ β”‚
β”‚  β”‚                           β”‚  β”‚                             β”‚ β”‚
β”‚  β”‚  β€’ Landing Page           β”‚  β”‚  β€’ /api/groups              β”‚ β”‚
β”‚  β”‚  β€’ Dashboard              β”‚  β”‚  β€’ /api/groups/[id]         β”‚ β”‚
β”‚  β”‚  β€’ Analytics              β”‚  β”‚  β€’ /api/entries             β”‚ β”‚
β”‚  β”‚  β€’ Submit Feedback        β”‚  β”‚  β€’ /api/analytics           β”‚ β”‚
β”‚  β”‚  β€’ Report Detail Panel    β”‚  β”‚  β€’ /api/ai                  β”‚ β”‚
β”‚  β”‚                           β”‚  β”‚  β€’ /api/ai/status           β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚            β”‚                               β”‚                    β”‚
β”‚            β”‚  fetch() API calls            β”‚                    β”‚
β”‚            β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                    β”‚
β”‚                        β”‚                                        β”‚
β”‚            β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                           β”‚
β”‚            β”‚   In-Memory Data Store β”‚                           β”‚
β”‚            β”‚   (data/store.ts)      β”‚                           β”‚
β”‚            β”‚                        β”‚                           β”‚
β”‚            β”‚  β€’ groups.json (8)     β”‚                           β”‚
β”‚            β”‚  β€’ entries.json (47)   β”‚                           β”‚
β”‚            β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                           β”‚
β”‚                        β”‚                                        β”‚
β”‚            β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                           β”‚
β”‚            β”‚   AI Pipeline Service  β”‚                           β”‚
β”‚            β”‚   (services/ai-pipeline)β”‚                          β”‚
β”‚            β”‚                        β”‚                           β”‚
β”‚            β”‚  1. Clustering         β”‚                           β”‚
β”‚            β”‚  2. Summarization      β”‚                           β”‚
β”‚            β”‚  3. Severity Scoring   β”‚                           β”‚
β”‚            β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                         β”‚
                         β–Ό
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β”‚     OpenAI API (GPT-4o-mini)  β”‚
         β”‚                               β”‚
         β”‚  β€’ Embeddings for clustering  β”‚
         β”‚  β€’ Chat completions for text  β”‚
         β”‚  β€’ Structured JSON outputs    β”‚
         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Data Flow

  1. User submits feedback β†’ POST /api/entries β†’ Stored in in-memory store
  2. Trigger AI processing β†’ POST /api/ai β†’ Batch processes all ungrouped entries
  3. Clustering step β†’ OpenAI embeddings β†’ Semantic similarity calculation β†’ Groups formed
  4. Summarization step β†’ GPT-4o-mini analyzes each group β†’ Structured JSON output
  5. Dashboard refresh β†’ GET /api/groups β†’ Updated groups displayed
  6. Detail view β†’ User clicks group β†’ GET /api/groups/[id] β†’ Panel slides in with full context

πŸš€ Getting Started

Prerequisites

β€’ Node.js β‰₯ 18.0 (recommended: 20 LTS)
β€’ npm β‰₯ 9.0
β€’ OpenAI API Key (for AI clustering β€” get one here)

1. Clone & Install

git clone https://github.com/yourusername/maisen.git
cd maisen
make install

2. Environment Setup

Create a .env.local file in the project root:

# OpenAI β€” AI clustering and summarization (required)
OPENAI_API_KEY=sk-proj-...

3. Start Development Server

make dev

This starts the Next.js app at http://localhost:3000 with hot reload enabled.

4. Explore the Demo

The app comes pre-seeded with realistic data:

  1. Open http://localhost:3000 in your browser
  2. Navigate to Dashboard β†’ see 8 AI-clustered feedback groups
  3. Click any group card β†’ detail panel slides in with AI summary
  4. Go to Analytics β†’ view volume trends and severity breakdown
  5. Try Submit Feedback β†’ add new entries and trigger AI re-clustering

πŸ“¦ Makefile Commands

Command Description
make dev Start Next.js dev server (http://localhost:3000)
make install Install all dependencies (npm install)
make build Production build
make start Start production server
make lint Run ESLint
make clean Remove .next and node_modules

πŸ”§ API Reference

All API routes are Next.js Route Handlers in frontend/app/api/.

Feedback Groups

GET /api/groups

Returns all feedback groups with AI-generated summaries.

Response:

[
  {
    "id": "group-001",
    "title": "Login Button Unresponsive on Mobile Safari",
    "summary": "Users report tapping login repeatedly with no response...",
    "severity": "critical",
    "entryCount": 12,
    "affectedUsers": 450,
    "category": "Authentication"
  }
]

GET /api/groups/[id]

Returns full group details including all raw feedback entries.

Response:

{
  "id": "group-001",
  "title": "...",
  "aiSummary": {
    "problem": "The login button...",
    "impact": "450 users affected...",
    "suggestion": "Check touch event handlers...",
    "reproductionSteps": ["1. Open app on iPhone...", "2. Tap login..."]
  },
  "entries": [
    {
      "id": "entry-042",
      "text": "Can't login on my iPhone 15...",
      "timestamp": "2026-03-07T14:23:00Z",
      "screenshots": ["url1", "url2"]
    }
  ]
}

Feedback Entries

POST /api/entries

Submit new feedback.

Request Body:

{
  "text": "The search bar is broken on iPad",
  "category": "UI/UX",
  "userSegment": "premium",
  "screenshots": ["https://..."]
}

GET /api/entries

Returns all ungrouped feedback entries.

Analytics

GET /api/analytics

Aggregated statistics for dashboard charts.

Response:

{
  "totalEntries": 47,
  "totalGroups": 8,
  "severityDistribution": {
    "critical": 2,
    "high": 3,
    "medium": 2,
    "low": 1
  },
  "categoryBreakdown": {
    "UI/UX": 15,
    "Performance": 12,
    "Authentication": 8
  },
  "volumeTrend": [...]
}

AI Pipeline

POST /api/ai

Trigger AI clustering and summarization for all ungrouped entries.

Response:

{
  "status": "processing",
  "jobId": "ai-job-123"
}

GET /api/ai/status

Check AI processing status.

Response:

{
  "status": "complete",
  "progress": 100,
  "newGroupsCreated": 3,
  "entriesProcessed": 12
}

πŸ“ Project Structure

frontend/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ page.tsx                         # Landing page
β”‚   β”œβ”€β”€ layout.tsx                       # Root layout with providers
β”‚   β”œβ”€β”€ dashboard/
β”‚   β”‚   β”œβ”€β”€ layout.tsx                   # Sidebar navigation shell
β”‚   β”‚   β”œβ”€β”€ page.tsx                     # Feedback groups grid
β”‚   β”‚   β”œβ”€β”€ analytics/page.tsx           # Charts and metrics
β”‚   β”‚   β”œβ”€β”€ submit/page.tsx              # Feedback submission form
β”‚   β”‚   └── reports/[reportId]/page.tsx  # Detail panel route
β”‚   └── api/
β”‚       β”œβ”€β”€ groups/
β”‚       β”‚   β”œβ”€β”€ route.ts                 # GET /api/groups
β”‚       β”‚   └── [id]/route.ts            # GET /api/groups/:id
β”‚       β”œβ”€β”€ entries/route.ts             # POST + GET /api/entries
β”‚       β”œβ”€β”€ analytics/route.ts           # GET /api/analytics
β”‚       └── ai/
β”‚           β”œβ”€β”€ route.ts                 # POST /api/ai
β”‚           └── status/route.ts          # GET /api/ai/status
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ dashboard/
β”‚   β”‚   β”œβ”€β”€ CardGrid.tsx                 # Feedback group cards
β”‚   β”‚   β”œβ”€β”€ GroupCard.tsx                # Individual card component
β”‚   β”‚   └── StatsRow.tsx                 # Metrics display
β”‚   β”œβ”€β”€ detail/
β”‚   β”‚   β”œβ”€β”€ DetailPanel.tsx              # Slide-in detail view
β”‚   β”‚   β”œβ”€β”€ SummaryView.tsx              # AI summary display
β”‚   β”‚   └── EntryList.tsx                # Raw feedback entries
β”‚   β”œβ”€β”€ analytics/
β”‚   β”‚   β”œβ”€β”€ VolumeChart.tsx              # Time-series chart
β”‚   β”‚   β”œβ”€β”€ SeverityChart.tsx            # Pie chart
β”‚   β”‚   └── CategoryChart.tsx            # Bar chart
β”‚   β”œβ”€β”€ layout/
β”‚   β”‚   β”œβ”€β”€ Header.tsx                   # Top navigation
β”‚   β”‚   └── Sidebar.tsx                  # Animated sidebar
β”‚   └── ui/                              # shadcn/ui components
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ store.ts                         # In-memory data store
β”‚   β”œβ”€β”€ groups.json                      # Pre-seeded groups (8)
β”‚   └── entries.json                     # Pre-seeded entries (47)
β”œβ”€β”€ services/
β”‚   └── ai-pipeline.ts                   # OpenAI clustering + summarization
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ api.ts                           # Client-side fetch helpers
β”‚   β”œβ”€β”€ types.ts                         # Shared TypeScript interfaces
β”‚   └── utils.ts                         # Utility functions
└── public/
    └── screenshots/                     # Feedback screenshot assets

πŸ› οΈ Tech Stack

Category Technology Purpose
Framework Next.js 16 (App Router) Full-stack React with API routes, SSR, and streaming
Frontend React 19 + TypeScript 5.8 Type-safe UI components with concurrent rendering
Styling Tailwind CSS 4 Utility-first styling with JIT compilation
UI Components shadcn/ui Accessible Radix UI primitives with Tailwind
Charts Recharts 2.15 Composable charting library for analytics
Icons Lucide React Consistent, beautiful icon system
Animations Framer Motion Smooth transitions and interactions
Font Geist Variable Clean, modern variable font
AI OpenAI GPT-4o-mini Clustering, summarization, and structured outputs
State In-Memory Store Fast prototyping with JSON file persistence
Validation Zod (optional) Runtime type checking for API inputs

🧠 Key Implementation Details

Two-Stage AI Pipeline

Maisen uses a sophisticated two-phase approach:

Phase 1: Clustering

  1. Extract text embeddings for all ungrouped feedback entries
  2. Calculate cosine similarity matrix
  3. Apply hierarchical clustering with dynamic threshold
  4. Form groups based on semantic similarity (not keyword matching)

Phase 2: Summarization For each cluster, GPT-4o-mini generates:

{
  "problem": "Root cause analysis in 2-3 sentences",
  "impact": "Business impact and affected user count",
  "suggestion": "Concrete fix recommendations for engineers",
  "reproductionSteps": ["Step 1...", "Step 2...", "Step 3..."],
  "severity": "critical | high | medium | low"
}

Severity Scoring Logic

AI considers: β€’ User Count β€” How many users reported this issue? β€’ Sentiment β€” Frustration level detected in text β€’ Business Impact β€” Premium users vs. free users β€’ Frequency β€” Recurring vs. one-time complaints

Pre-Seeded Demo Data

The app includes production-quality seed data: β€’ 8 feedback groups covering common UX pain points β€’ 47 raw entries with realistic user complaints β€’ Screenshots demonstrating visual context β€’ Works 100% offline β€” no API key required for browsing


πŸ§ͺ Example Usage

Typical Workflow

# 1. User submits feedback
curl -X POST http://localhost:3000/api/entries \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Search results are completely broken on Chrome",
    "category": "Search",
    "userSegment": "free"
  }'

# 2. Trigger AI processing
curl -X POST http://localhost:3000/api/ai

# 3. Check status
curl http://localhost:3000/api/ai/status

# 4. Fetch updated groups
curl http://localhost:3000/api/groups

Sample Prompts for Testing

"The login button doesn't work on my iPhone 15"
"App crashes every time I upload a photo"
"Search is super slow β€” takes 10+ seconds"
"Can't change my password β€” error message unclear"
"Dark mode doesn't apply to settings page"

🚒 Deployment

Deploy to Vercel (Recommended)

# Install Vercel CLI
npm i -g vercel

# Deploy
cd frontend
vercel --prod

Add your OPENAI_API_KEY in Vercel dashboard β†’ Settings β†’ Environment Variables.

Deploy with Docker

# Build
docker build -t maisen .

# Run
docker run -p 3000:3000 -e OPENAI_API_KEY=sk-... maisen

πŸ‘₯ Team

Maisen β€” Built at c0mpiled Tokyo 2026 Hackathon (March 8, 2026)


πŸ“„ License

This project is open source and available under the MIT License.


πŸ™ Acknowledgments

β€’ OpenAI β€” GPT-4o-mini for intelligent clustering
β€’ Vercel β€” Next.js framework and hosting
β€’ shadcn β€” Beautiful UI component primitives
β€’ Recharts β€” Composable charting library
β€’ Lucide β€” Icon system
β€’ c0mpiled Tokyo 2026 β€” Hackathon organizers


🌸 Maisen β€” From Chaos to Clarity in Seconds 🌸

πŸš€ Live Demo | πŸ“– Documentation | 🎬 Video Tour

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages