AI-powered UX analysis tool that generates persona-based website feedback and actionable feature recommendations.
treeminspls uses AI agents to automatically navigate your website as a specific user persona, collecting UX critiques and generating detailed improvement recommendations. It can even create GitHub Pull Requests with AI-generated code fixes.
- 🎭 Persona-Based Analysis - Define a user persona and watch the AI agent browse your site from their perspective
- 🤖 Visual Agent - Automated browser navigation with real-time screenshot capture
- 📊 UX Synthesis - AI-generated summary with UX scores, strengths, and weaknesses
- 💡 Feature Recommendations - Actionable feature/bugfix proposals with technical specs
- 🔗 GitHub Integration - Automatically trigger GitHub Actions to generate code and create PRs
- Frontend: Next.js 15, React 19, TypeScript, Tailwind CSS
- UI Components: shadcn/ui
- AI: Google Gemini (2.5 Flash, 3.0 Gemini Pro, 3.0 Gemini Pro Image Preview)
- Browser Automation: Playwright
- CI/CD: GitHub Actions for automated code generation
- Node.js 20+
- Google Gemini API Key
- (Optional) GitHub Personal Access Token for PR automation
# Clone the repository
git clone https://github.com/w3joe/treeminspls.git
cd treeminspls
# Install dependencies
npm install --legacy-peer-deps
# Set up environment variables
cp .env.example .env.localCreate a .env.local file:
GOOGLE_API_KEY=your_gemini_api_key
# or
GEMINI_API_KEY=your_gemini_api_keynpm run devOpen http://localhost:3000 in your browser.
Navigate to /github to set up:
- GitHub Personal Access Token
- Repository (username/repo)
- Deployed Website URL
- (Optional) Gemini API Key for workflows
- Enter a persona description (e.g., "A 30-year-old developer looking for a project management tool")
- Click Start Analysis
- Watch the AI agent navigate your site
- View real-time screenshots and agent logs
- The sitemap visualization shows visited pages
- UX Summary: Overall score, strengths, and weaknesses
- Feature Proposals: Detailed recommendations with technical specs
- Create PR: (If GitHub connected) Trigger automated code generation
treeminspls/
├── app/
│ ├── api/
│ │ ├── analyze/ # Persona analysis endpoint
│ │ ├── navigate/ # Visual agent browser automation
│ │ ├── synthesize/ # UX synthesis & recommendations
│ │ ├── sitemap/ # Sitemap generation
│ │ └── github/ # GitHub integration APIs
│ ├── github/ # GitHub settings page
│ └── result/ # Analysis results page
├── components/
│ ├── PersonaGenerator.tsx
│ ├── ScreenshotCard.tsx
│ ├── SitemapVisualizer.tsx
│ ├── FeedbackSummary.tsx
│ ├── FeatureProposals.tsx
│ └── ui/ # shadcn/ui components
└── lib/
└── hooks/ # Custom React hooks
- Persona Generation: AI creates a detailed user profile based on your description
- Visual Agent: Playwright-powered browser navigates your site, taking screenshots and generating critiques
- Synthesis: Gemini analyzes all critiques and generates a comprehensive UX report
- Code Generation: (Optional) GitHub Actions workflow uses Gemini to generate code and create PRs
The app uses Google Gemini APIs. To manage costs:
- Vision analysis and image generation can be toggled in
app/api/synthesize/route.ts - Feature count is configurable (default: 2 recommendations)
MIT
Built with 🌲 by treeminspls