npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

v2r-llm

v1.0.2

Published

vue to react, but llm

Readme

English | 中文文档

🌟 v2r-llm: The Magic Tool to Convert Vue Components to React Components 🪄

Welcome to the v2r-llm project! This is a magical CLI tool that can convert your Vue components into React components, and this conversion process is powered by a powerful large model! ✨

Project Introduction

This project is inspired by the vue-to-react project. The code is assisted by GitHub Copilot, and the conversion process is supported by LLM. Thanks to these AI tools, we can easily achieve the conversion from Vue to React!

Default Service and Model

  • Default Service: https://api.deepseek.com
  • Default Model: deepseek-chat

Quick Start

If you use the default service and model, you need a DeepSeek apiKey. See the official website for application methods. Other services and models are also supported. See transform command parameters for details.

npm install -g v2r-llm
npx v2r-llm transform -i <input-vue-file> -o <output-directory> -n <output-filename> [-k <apiKey>]

Suppose you have a Vue component file demo.vue, you can convert it like this:

npx v2r-llm transform -i ./demo.vue -o ./ -n demo.js -k your-api-key

Transform Command Parameters

You can use the v2r-llm transform command to convert Vue components to React components.

  • -i, --input <file>: Path to the input Vue component file
  • -o, --output <dir>: Path to the output React component directory
  • -n, --name <filename>: Name of the output React component file
  • -k, --key <apiKey>: (Optional) API key for authentication, can also be read from configuration
  • -b, --baseURL <url>: (Optional) Base URL for the API, defaults to https://api.deepseek.com
  • -m, --model <modelName>: (Optional) Model name for processing, defaults to deepseek-chat

Config Command Parameters

You can use the v2r-llm config command to configure parameters, so you don't need to input -b, -k, and -m every time you run the transform command, or input -k every time when using the default service and model. For example:

# Set API key
v2r-llm config set apiKey your-api-key

# Set base URL
v2r-llm config set baseURL https://api.example.com

# Set model name
v2r-llm config set model your-model-name

# View current configuration
v2r-llm config list

After configuration, you can run the transform command without specifying these parameters:

npx v2r-llm transform -i ./demo.vue -o ./ -n demo.js

Of course, you can still use -b, -k, and -m for command-line configuration, which takes precedence over v2r-llm config settings.

Local Development

git clone [email protected]:three-water666/v2r-llm.git
cd v2r-llm
npm install
node ./bin/v2r-llm.js transform -i ./demo/demo.vue -o ./demo/ -n demo.js -k your-api-key

Acknowledgements

Special thanks to the following AI tools for their support:

  • GitHub Copilot: A great helper for coding
  • DeepSeek: Powerful large model service
  • ChatGPT: Reliable chat tool

We hope you enjoy this project and that it brings convenience to your development work! If you have any questions or suggestions, feel free to submit an issue or pull request. Happy coding! 😄