Skip to content

xmsz-stu/npm-upgrade

Repository files navigation

NPM Upgrade Assistant 🚀

🤖 一个由 AI 驱动的现代化 NPM 包升级助手,帮助开发者轻松管理和升级项目依赖。

🤖 An AI-powered modern NPM package upgrade assistant to help developers easily manage and upgrade project dependencies.

✨ 特性 Features

智能依赖分析 Smart Dependency Analysis

  • 🎯 自动检测过时的依赖包 Automatically detect outdated dependencies
  • 🔍 深度分析依赖关系 Deep analysis of dependency relationships
  • 📊 生成详细的依赖报告 Generate detailed dependency reports

安全更新建议 Security Updates

  • 🛡️ 识别安全漏洞 Identify security vulnerabilities
  • ⚠️ 提供修复建议 Provide repair suggestions
  • ✅ 验证更新兼容性 Verify update compatibility

便捷操作 Easy Operations

  • 🔄 一键批量更新 One-click batch updates
  • 📦 版本锁定管理 Version lock management
  • ⚡ 快速回滚功能 Quick rollback feature

🚀 快速开始 Quick Start

安装 Installation

# 克隆项目 Clone the project
git clone https://github.com/your-username/npm-upgrade.git

# 进入项目目录 Enter project directory
cd npm-upgrade

# 安装依赖 Install dependencies
pnpm install

开发 Development

# 启动开发服务器 Start development server
pnpm dev

# 构建生产版本 Build for production
pnpm build

# 启动生产服务器 Start production server
pnpm start

🛠️ 技术栈 Tech Stack

  • 前端框架 Frontend Framework

    • Next.js 15
    • React 19
    • TypeScript
  • 样式与UI Styling & UI

    • Tailwind CSS
    • Radix UI
    • Lucide Icons
  • AI 集成 AI Integration

    • OpenAI API

📦 项目结构 Project Structure

├── app/              # 应用主目录 Main application directory
├── components/       # React 组件 React components
├── lib/             # 工具函数和库 Utility functions and libraries
├── public/          # 静态资源 Static assets
└── ...

🔧 环境配置 Environment Setup

  1. 复制环境配置文件 Copy environment configuration
cp .env.local.example .env.local
  1. 配置必要的环境变量 Configure required environment variables
OPENAI_API_KEY=your_api_key_here

📝 使用说明 Usage Guide

基本使用 Basic Usage

  1. 启动项目 Start the project
pnpm dev
  1. 访问应用 Access the application
http://localhost:3000
  1. 上传 package.json Upload package.json
  2. 查看分析结果 View analysis results
  3. 执行更新操作 Perform updates

高级功能 Advanced Features

  • 自定义更新规则 Custom update rules
  • 依赖关系图可视化 Dependency graph visualization
  • 更新历史记录 Update history tracking

🤝 贡献指南 Contributing

欢迎提交 Pull Request 或创建 Issue! Contributions are welcome! Feel free to submit Pull Requests or create Issues.

📄 许可证 License

MIT License

🙏 致谢 Acknowledgments

感谢所有贡献者和用户的支持! Thanks to all contributors and users for their support!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published