Skip to content
Projects

About

一个帮助个人开发者从社交媒体自动发现用户核心痛点的 Web 应用,支持智能聚类分析和 AI 产品方案生成。

Design & Media

How these counts are measured

Measured star growth

in 24h
0
in 7 days
+2
in 15 days
+2
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.EN.md

Original

English | 中文

DeepPoint - User Pain Point Discoverer

logo

A web application that helps indie developers automatically discover user pain points from social media, with intelligent clustering analysis and AI-powered product solution generation.

Features

Pain Point Analysis Module

  • Automatic crawling of Douyin (TikTok China) videos and comments by keywords
  • Semantic clustering algorithm based on embedding + DBSCAN
  • Deep analysis through configurable AI providers (GLM / OpenAI / Ollama / LM Studio)
  • In-depth Analysis Dimensions:
    • Pain Depth: Surface pain → Root causes → User scenarios → Emotional intensity
    • Market Landscape: Existing solutions → Unmet needs → Opportunity analysis
    • MVP Plan: Core features → Validation hypotheses → First users → Cost estimation
  • Priority Scoring System: Comprehensive evaluation of demand intensity + market size + competition
  • Data Quality Grading: exploratory (<50) / preliminary (50-200) / reliable (≥200)
  • Visual table display of analysis results
  • One-click CSV export
  • Raw Data Export: Export crawler raw data and clustered group data

AI Product Suggestion Module

  • AI product manager role auto-generates product solutions
  • Includes core features, tech stack, development roadmap
  • Evaluates implementation difficulty and market potential

Multi-language Support

  • Chinese/English interface switching
  • AI analysis results automatically output in the current language
  • Internationalized URL routing (/zh/, /en/)
  • Auto-detect browser language preference

Data Sources

Source Status Description
Douyin - Legacy Available Based on DrissionPage browser automation, supports video search and comment collection
Douyin - New Available Based on Playwright + CDP, better anti-detection, requires QR code login on first use
Xiaohongshu Paused Testing found it causes account bans, not recommended

Preview

For more screenshots and resources, browse the assets folder.

PreviewPreview

Quick Start

Requirements

  • Node.js >= 18
  • Python >= 3.10
  • npm
  • Google Chrome
  • Windows PowerShell (for the one-command local setup script)

1. Install Dependencies

git clone https://github.com/weiyf2/deeppoint-ai.git
cd deeppoint-ai

# Option A: prepare local dependencies, Python venv, Playwright Chromium, and .env.local
npm run setup:local

# Option B: manual setup
npm ci
pip install -r requirements.txt
playwright install chromium

2. Configure Environment Variables

# Only copy manually if you did not run npm run setup:local
cp .env.example .env.local

Edit .env.local:

# AI chat provider: glm | openai | ollama | lmstudio
AI_PROVIDER=glm

# Default is GLM. For OpenAI/Ollama/LM Studio, change AI_PROVIDER and configure that provider.
GLM_API_KEY=your_glm_api_key_here
GLM_MODEL_NAME=glm-4.6
GLM_EMBEDDING_MODEL=embedding-3

# Browser Configuration (set to true for server environments)
HEADLESS=false

3. Run the Project

# Development mode
npm run dev

# Production build
npm run build
npm run start

Visit http://localhost:3000

User Guide

Pain Point Analysis (Home Page)

  1. Select data source (New Douyin recommended)
  2. Enter keywords, separated by commas, e.g., camping, beginner, gear
  3. Optionally enable video comment fetching (slower but richer data)
  4. Click Start Analysis and wait for results
  5. Click any row to view detailed source content, or export CSV

New Douyin Note: On first use, a browser window will pop up requiring QR code login to Douyin. Login state is automatically saved for future use. To reduce personal data exposure, the application layer anonymizes New Douyin authors and comment usernames into stable creator_* labels.

AI Product Suggestions (/ai-product)

  1. Enter keywords for your target domain
  2. AI will analyze user feedback and generate a complete product solution
  3. View product name, features, tech stack, development plan, etc.

AI Provider

Chat analysis supports AI_PROVIDER=glm|openai|ollama|lmstudio. GLM and OpenAI require API keys; Ollama and LM Studio use local OpenAI-compatible servers by default.

Provider Key settings Default URL
GLM GLM_API_KEY, GLM_MODEL_NAME, GLM_EMBEDDING_MODEL https://open.bigmodel.cn/api/paas/v4
OpenAI OPENAI_API_KEY, OPENAI_MODEL, OPENAI_EMBEDDING_MODEL https://api.openai.com/v1
Ollama OLLAMA_MODEL, OLLAMA_EMBEDDING_MODEL http://localhost:11434/v1
LM Studio LM_STUDIO_MODEL, LM_STUDIO_EMBEDDING_MODEL http://localhost:1234/v1

EMBEDDING_PROVIDER follows AI_PROVIDER by default and can also be set separately. Semantic clustering requires an embedding model. For Ollama, run ollama pull llama3.1 and ollama pull nomic-embed-text first.

Language Switching

  • Click the language switcher in the top right corner to switch between Chinese/English
  • First visit will auto-detect browser language preference
  • AI analysis results will automatically output in the current language
  • You can also access directly via URL: /zh/ or /en/

Project Structure

deeppoint-ai/
├── src/
│   ├── app/
│   │   ├── [locale]/             # Internationalized dynamic routes
│   │   │   ├── page.tsx          # Home - Pain Point Analysis
│   │   │   ├── ai-product/page.tsx # AI Product Suggestions
│   │   │   └── layout.tsx        # i18n layout (NextIntlClientProvider)
│   │   ├── layout.tsx            # Root layout
│   │   └── api/
│   │       ├── analyze/          # Create analysis job
│   │       ├── jobs/[jobId]/     # Query job status
│   │       ├── analyze-ai-product/
│   │       ├── ai-product-jobs/[jobId]/
│   │       └── health/           # Health check
│   ├── components/
│   │   ├── AnalysisForm.tsx      # Analysis form
│   │   ├── JobStatus.tsx         # Job status display
│   │   ├── ResultsTable.tsx      # Results table
│   │   ├── DetailModal.tsx       # Pain point detail modal
│   │   ├── LoadingAnimation.tsx  # Loading animation
│   │   ├── DataQualityBanner.tsx # Data quality indicator
│   │   ├── AIProductCard.tsx     # AI product card
│   │   ├── AIProductDetailModal.tsx
│   │   ├── ExportButton.tsx      # CSV export
│   │   ├── RawDataExportButton.tsx # Raw data export
│   │   └── LanguageSwitcher.tsx  # Language switcher
│   ├── i18n/                     # Internationalization config
│   │   ├── config.ts             # Language config (supported locales)
│   │   ├── navigation.ts         # i18n navigation utilities
│   │   └── request.ts            # Translation message loading
│   ├── messages/                 # Translation files
│   │   ├── zh.json               # Chinese translations
│   │   └── en.json               # English translations
│   ├── middleware.ts             # i18n routing middleware
│   └── lib/
│       └── design-tokens.ts      # Design system tokens
├── lib/
│   ├── crawlers/
│   │   └── douyin_new/           # New Douyin crawler module
│   ├── services/
│   │   ├── job-manager.ts        # Job management core
│   │   ├── douyin-service.ts     # Douyin data service
│   │   ├── xhs-service.ts        # Xiaohongshu service (paused)
│   │   ├── ai-provider.ts        # AI provider adapter
│   │   ├── glm-service.ts        # Deep analysis service
│   │   ├── clustering-service.ts # Clustering service (Python integration)
│   │   ├── priority-scoring.ts   # Priority scoring system
│   │   ├── ai-product-service.ts # AI product analysis
│   │   ├── ai-product-job-manager.ts
│   │   ├── data-source-factory.ts
│   │   └── data-source-interface.ts
│   ├── utils/
│   │   └── python-detector.ts    # Python command detection
│   ├── douyin_tool.py            # Douyin crawler script
│   ├── xiaohongshu_tool.py       # Xiaohongshu crawler script (paused)
│   └── semantic_clustering.py    # Semantic clustering (embedding + DBSCAN)
├── .env.example                  # Environment variable template
├── scripts/setup-local.ps1        # Windows local setup script
├── package.json
├── requirements.txt              # Python dependencies
└── tsconfig.json

Tech Stack

Category Technology
Frontend Framework Next.js 15 + React 19
Styling Tailwind CSS 4
Internationalization next-intl
Data Fetching SWR (job status polling)
Backend Next.js API Routes
Data Collection Python + DrissionPage / Playwright
AI Analysis GLM / OpenAI / Ollama / LM Studio (OpenAI-compatible chat + embedding)
Clustering Algorithm Embedding + DBSCAN semantic clustering

API Configuration

AI Provider

GLM is the default provider:

  1. Register at: https://open.bigmodel.cn/
  2. Create an API Key
  3. Configure in GLM_API_KEY environment variable

To switch providers, set values like this in .env.local:

AI_PROVIDER=ollama
EMBEDDING_PROVIDER=ollama
OLLAMA_MODEL=llama3.1
OLLAMA_EMBEDDING_MODEL=nomic-embed-text

FAQ

Q: Why is Douyin data collection slow?

A: Douyin uses browser automation to simulate real users, so slower speed is normal. Deep crawling mode is even slower but provides more complete data.

Q: How to deploy on a server?

A: Set HEADLESS=true environment variable to enable headless browser mode.

Q: Can I use fully local models?

A: Yes. Use AI_PROVIDER=ollama or AI_PROVIDER=lmstudio, and make sure the local server exposes both chat and embedding OpenAI-compatible endpoints.

Q: Too few clustering results?

A: Try more keywords, or adjust the minClusterSize parameter in clustering-service.ts.

Q: Can I use Xiaohongshu?

A: Not recommended. Testing found it causes account bans.

Roadmap

  • Douyin data source support
  • Pain point clustering analysis
  • AI product solution generation
  • AI Provider abstraction (GLM / OpenAI / Ollama / LM Studio)
  • Deep crawling (with comments)
  • Multi-language support (Chinese/English)
  • More data sources (Zhihu, Weibo)
  • History record saving

License

This project is licensed under the MIT License.

Note: The crawler code under lib/crawlers/douyin_new/ is based on the MediaCrawler project, licensed under NON-COMMERCIAL LEARNING LICENSE 1.1, for non-commercial learning and research purposes only. See NOTICE.md for third-party license boundaries and UPSTREAM.md for upstream sync maintenance.

Acknowledgments

  • New Douyin crawler based on MediaCrawler (NON-COMMERCIAL LEARNING LICENSE 1.1, for learning and research only)

Explore related projects

Loading…