Skip to content

StackShift is a AI powered CLI tool designed to assist developers in migrating their web applications from Vite to Next.js.

License

Notifications You must be signed in to change notification settings

PrinceMuichkine/stackshift

Repository files navigation

Stackshift

An AI powered CLI tool to help migrate web applications from Vite to Next.js.

Features

  • Intelligent analysis of Vite projects
  • Automatic migration of components and routing
  • Support for both Next.js App Router and Pages Router
  • AI-powered code transformations
  • Interactive assistance

Installation

pip install stackshift

Usage

  1. Configure your API key:
stackshift setup
  1. Scan your Vite project:
stackshift scan
  1. Validate migration progress:
stackshift validate
  1. Transform components:
stackshift transform
  1. Get interactive assistance:
stackshift chat

Options

  • --router: Choose between "app" (default) and "pages" router
  • --fix: Automatically fix validation issues
  • Project path is optional if you're inside a Vite project

Examples

# Scan current directory
stackshift scan

# Validate with Pages Router
stackshift validate --router pages

# Transform with automatic fixes
stackshift validate --fix

# Scan specific project
stackshift scan ./my-vite-project

Requirements

  • Python 3.8 or higher
  • Anthropic API key
  • Node.js and npm (for the Vite project)

License

MIT License

About

StackShift is a AI powered CLI tool designed to assist developers in migrating their web applications from Vite to Next.js.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages