0.1.5 β€’ Published 4 months ago

shai-analyzer v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

shai-analyzer πŸ› οΈπŸ“¦

Smart Dependency Analyzer for JavaScript/TypeScript projects Detect breaking changes before they break your app! πŸ”₯

✨ What is shai-analyzer?

shai-analyzer is a CLI tool designed to analyze your project’s dependencies and detect possible breaking changes when updating packages.

πŸš€ It uses AI (DeepSeek-R1 B7 with Ollama) to provide precise recommendations on whether updating a package might cause issues in your project.

⚑ Features

  • βœ… Scans your dependencies in package.json and detects outdated versions.
  • βœ… Checks for breaking changes using AI-powered analysis.
  • βœ… Distinguishes TypeScript support:
    • 🟒 Native TypeScript support
    • 🟑 Uses @types/package for TypeScript
    • πŸ”΄ No TypeScript support detected
  • βœ… Integrates AI to analyze changelogs for better accuracy.
  • βœ… Works locally with Ollama for privacy & offline AI analysis.

πŸ“¦ Installation

Before installing, make sure you have Ollama installed and have downloaded the required AI model:

ollama pull deepseek-r1:b7

Then, install shai-analyzer globally via NPM:

npm install -g shai-analyzer

πŸš€ Usage

πŸ” Scan your dependencies

Run the following command in the root of your project:

shai-analyzer scan

This will:

  • 1️⃣ Analyze all dependencies in package.json.
  • 2️⃣ Check if updates are available.
  • 3️⃣ Detect breaking changes with AI.
  • 4️⃣ Show TypeScript support for each dependency.

Example output: img.png

πŸ› οΈ How AI is used

  • πŸ”Ή shai-analyzer uses AI to analyze the changelog of each package before updating.
  • πŸ”Ή AI is powered by Ollama with DeepSeek-R1 B7 to determine:
    • βœ”οΈ If a package update introduces breaking changes.
    • βœ”οΈ If changes impact TypeScript compatibility.
    • βœ”οΈ If a safer version upgrade is recommended.

πŸ› οΈ Requirements

  • πŸ”Ή Node.js (v16+)
  • πŸ”Ή Ollama installed β†’ Install Ollama
  • πŸ”Ή DeepSeek-R1 B7 model β†’ Install with:
ollama pull deepseek-r1:b7

πŸ“œ License

This project is licensed under the MIT License.

πŸ“Œ Contributions are welcome! If you find a bug or want to add features, feel free to open a pull request.

0.1.5

4 months ago

0.1.4

4 months ago

0.1.3

4 months ago

0.1.2

4 months ago

0.1.1

4 months ago

0.1.0

4 months ago