@merlean/analyzer
v3.2.0
Published
AI-powered codebase analyzer - generates site maps for AI assistant integration
Readme
@merlean/analyzer
AI-powered codebase analyzer that generates site maps for the Merlean AI assistant widget.
Installation
npm install -g @merlean/analyzerUsage
# Analyze current directory
merleanalyze --name "My App"
# Analyze specific path
merleanalyze ./my-project --name "My App"
# Merge into existing site map
merleanalyze ./admin-panel --merge-with site_abc123Or use with npx (no installation required):
npx @merlean/analyzer ./my-project --name "My App"Options
| Option | Description |
|--------|-------------|
| --name, -n <name> | Site name (required for new analysis) |
| --merge-with, -m <siteId> | Merge into existing site map |
| --backend, -b <url> | Custom backend URL |
| --output, -o <file> | Save site map locally |
| --help, -h | Show help |
Supported Frameworks
- JavaScript/TypeScript: Express, Fastify, NestJS, React, Vue, Angular
- PHP: CodeIgniter, Laravel, Symfony
- Python: Flask, FastAPI, Django
- Ruby: Rails, Sinatra
- Go: Gin, Echo, Chi
- Java/Kotlin: Spring Boot
How It Works
- Scans your codebase for API patterns
- Extracts route definitions and request schemas
- Uploads to Merlean backend for AI analysis
- Returns a site ID for widget integration
Integration
After analysis, add the widget to your site:
<script src="https://merlean-backend.fly.dev/bot.js" data-site-id="YOUR_SITE_ID"></script>Platform Support
Pre-compiled binaries are available for:
- macOS (Apple Silicon / ARM64)
- macOS (Intel / x64)
- Linux (x64)
- Windows (x64)
