Scan Endpoint
Analyze your project’s dependencies for compatibility issues. Get a comprehensive compatibility score and detailed breakdown of any problems.Endpoint
Request
Headers
| Header | Type | Required | Description |
|---|---|---|---|
Content-Type | string | Yes | Must be application/json |
Body
Provide one of the following:| Field | Type | Required | Description |
|---|---|---|---|
dependencies | string[] | Conditional | Array of package names |
packageJson | object | Conditional | Full package.json object |
Example Requests
With dependencies array:Response
Success Response (200)
Response Fields
| Field | Type | Description |
|---|---|---|
version | string | API version (always “1.0”) |
stack.detected | string[] | Recognized technology IDs |
stack.allPackages | string[] | All packages from input |
stack.score | number | Overall compatibility score (0-100) |
stack.issues | array | Compatibility issues found |
stack.suggestions | array | Improvement suggestions |
metadata.scannedAt | string | ISO 8601 timestamp |
metadata.dependencyCount | number | Total dependencies scanned |
Issue Object
| Field | Type | Description | |
|---|---|---|---|
severity | string | info, warning, error | |
pair | string | Technology pair identifier | |
message | string | Issue description | |
workaround | string | null | Suggested fix |
Suggestion Types
| Type | Description |
|---|---|
alternative | Suggests different technology |
upgrade | Suggests version upgrade |
config | Suggests configuration change |
Score Calculation
Scores are calculated based on compatibility pairs:| Status | Points |
|---|---|
| Compatible | +10 |
| Partial | +5 |
| Incompatible | -20 |
| Unknown | 0 |
Code Examples
cURL
JavaScript (fetch)
Python (requests)
Go
Error Responses
400 Bad Request - No Tech Detected
400 Bad Request - Invalid Input
429 Rate Limit Exceeded
Package Recognition
Common package patterns are automatically recognized:| Package Pattern | Detected As |
|---|---|
next | nextjs |
prisma | prisma |
@prisma/client | prisma |
tailwindcss | tailwind |
next-auth | next-auth |
@supabase/supabase-js | supabase |
allPackages.
Rate Limiting
- Limit: 10 requests per minute
- Headers:
X-RateLimit-Remaining,X-RateLimit-Reset
What’s Next
- Check Endpoint - Verify individual pairs
- Badge Endpoint - Generate badges
- Rate Limits - Usage limits
Try it now: Project Scanner →