Check your tech stack compatibility from the terminal
npm install -g @devradar-dev/cliOr use with npx (no installation required):
npx @devradar-dev/cli check nextjs prismaCheck if two technologies work well together:
devradar check nextjs prismaOutput:
Nextjs + Prisma
────────────────────────────────────────
✓ Compatible
Compatible in Node.js runtime but does NOT work in Edge Runtime.
→ Learn more: https://devradar.dev/check/nextjs-prisma
Analyze your entire project for compatibility issues:
# Scan current directory
devradar scan
# Scan specific project
devradar scan ./my-app/package.jsonOutput:
Stack Compatibility Scan
────────────────────────────────────────
Score: 55/100
Detected Technologies:
✓ Nextjs
✓ Prisma
✓ Tailwind
Issues (1):
1. Nextjs + Prisma
[WARNING] Edge Runtime incompatibility detected
Suggestions:
• Consider using Turso or PlanetScale for Edge-compatible database
https://devradar.dev/check/prisma-vercel-edge
Scanned: 5 dependencies
Get machine-readable output for CI/CD:
devradar check nextjs prisma --json
devradar scan --jsonResponse:
{
"techA": "nextjs",
"techB": "prisma",
"version": "1.0",
"status": "partial",
"severity": "warning",
"message": "...",
"workaround": "...",
"docsUrl": "https://devradar.dev/check/nextjs-prisma"
}devradar --help
devradar check --help
devradar scan --helpdevradar --version| Code | Meaning |
|---|---|
| 0 | Compatible / Good score (60+) |
| 1 | Partial compatibility / Medium score (40-59) |
| 2 | Incompatible / Poor score (<40) |
Use in CI/CD:
devradar check nextjs prisma || echo "Compatibility issues found!"# .github/workflows/compatibility-check.yml
- name: Check tech stack compatibility
run: npx @devradar-dev/cli scan --json > compatibility-report.json# .git/hooks/pre-commit
devradar scan || exit 1devradar check node alpine
devradar check nextjs vercel-edgeThe CLI uses DevRadar's public API:
- Check API:
POST /api/v1/check - Scan API:
POST /api/v1/scan
Rate limits:
- Check: 60 requests/minute
- Scan: 10 requests/minute
# Clone repo
git clone https://github.com/devradar-dev/cli.git
cd cli
# Install dependencies
npm install
# Link for local testing
npm link
# Test
devradar check nextjs prisma
devradar scan@devradar-dev/cli/
├── bin/
│ └── devradar.js # CLI entry point
├── src/
│ ├── api/
│ │ └── client.ts # API client
│ ├── commands/
│ │ ├── check.ts # Check command
│ │ └── scan.ts # Scan command
│ └── output/
│ ├── text.ts # Terminal output
│ └── json.ts # JSON output
├── package.json
└── README.md
# Build (if needed)
npm run build
# Publish to @devradar-dev org
npm publish --access public- Create new repo:
github.com/devradar-dev/cli - Push code:
git remote add origin https://github.com/devradar-dev/cli.git git branch -M main git push -u origin main
MIT © DevRadar
- Website: https://devradar.dev
- Documentation: https://github.com/devradar-dev/cli/wiki
- API Docs: https://devradar.dev/api
- Report Issues: https://github.com/devradar-dev/cli/issues
Made with ❤️ for developers worldwide