Socket
Book a DemoInstallSign in
Socket

web-clone-cli

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-clone-cli

A CLI tool to clone websites

latest
npmnpm
Version
1.1.3
Version published
Weekly downloads
12
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

🌐 WebClone CLI ✨

🤖 A powerful command-line tool to clone websites and apply AI-powered changes with ease!

npm version License: MIT Node.js Version

📑 Table of Contents

✨ Features

🎯 Clone websites quickly and easily
Downloads the HTML, CSS, JavaScript, and images of any website with a single command

🤖 AI-powered website modifications
Uses OpenAI's GPT models to intelligently modify cloned websites based on your natural language instructions

💬 Interactive command-line interface
Provides an intuitive, user-friendly interface that makes website cloning accessible to everyone

🛠️ Comprehensive file manipulation tools
Offers a complete suite of tools for creating, reading, writing, and manipulating files and directories

🔄 Iterative refinement
Apply changes step-by-step, refining the output until you achieve exactly what you envision

🌍 Environment-based configuration
Simple setup using environment variables for API keys and model preferences

🔧 Prerequisites

Before you begin, ensure you have the following installed:

RequirementVersionDownload Link
🟢 Node.js18+nodejs.org
🥖 Bun1.2.18+bun.sh
🔑 OpenAI API Key-OpenAI Platform

📦 Installation

npm i -g web-clone-cli

🛠️ Development Setup

# Clone the repository
git clone https://github.com/ashu-dwd/web-clone-cli.git

# Navigate to the project directory
cd web-clone-cli

# Install dependencies
bun install

⚙️ Configuration

📝 Environment Setup

  • Create environment file:

    touch .env
    
  • Add your API credentials:

    # 🔑 Required: OpenAI Configuration
    OPENAI_API_KEY=your_openai_api_key_here
    OPENAI_MODEL_NAME=gpt-4o-mini
    
    # 🌟 Optional: Gemini Configuration (Future Updates)
    GEMINI_API_KEY=your_gemini_api_key_here
    GEMINI_MODEL_NAME=your_gemini_model_name
    

🔑 API Key Details

VariableDescriptionStatus
OPENAI_API_KEYYour OpenAI API key for AI-powered modificationsRequired
OPENAI_MODEL_NAMEOpenAI model to use (recommended: gpt-4o-mini)Required
GEMINI_API_KEYGemini API key for future features🔮 Optional
GEMINI_MODEL_NAMEGemini model name for future features🔮 Optional

💡 Pro Tip: Get your OpenAI API key from platform.openai.com

🚀 Usage

🎬 Getting Started

Launch the CLI and start creating:

webclone-cli

The interactive interface will guide you through the process! 🎯

💫 Example Commands

Here are some inspiring examples to get you started:

🎨 Design Changes
"Clone https://example.com and change the title to 'My Awesome Website'"
"Clone https://example.com and make the background a beautiful gradient"
"Clone https://example.com and add a modern dark theme"
🔧 Interactive Elements
"Clone https://example.com and add a button that says 'Click Me'"
"Clone https://example.com and add a contact form with validation"
"Clone https://example.com and create a responsive navigation menu"
🎪 Advanced Modifications
"Clone https://example.com and add smooth scrolling animations"
"Clone https://example.com and integrate a modern card layout"
"Clone https://example.com and add interactive hover effects"

🔄 Iterative Workflow

  • Clone your target website 📥
  • Describe your desired changes 💬
  • Review the AI-generated modifications 👀
  • Refine with additional changes 🔧
  • Repeat until perfect! ✨

🛠️ Tools

Our comprehensive toolkit includes:

ToolPurposeInputOutput
📂 readDirBrowse directory contentsDirectory pathFile/folder list
📄 createFileCreate new filesFile pathSuccess confirmation
✍️ writeFileWrite content to filesFile path + contentUpdated file
📁 createFolderCreate new directoriesFolder pathNew directory
📖 readFileRead file contentsFile pathFile content
🌐 cloneWebsiteClone entire websitesWebsite URLCloned site path

🎯 Tool Usage Examples

# 📂 Explore cloned website structure
readDir ./cloned-website

# ✍️ Modify specific files
writeFile ./cloned-website/index.html "<updated content>"

# 🌐 Clone your favorite website
cloneWebsite https://your-favorite-site.com

🔍 Troubleshooting

🚨 Common Issues & Solutions

ProblemSolution
🔴 CLI not working✅ Verify all prerequisites are installed and environment variables are configured
🤖 AI not generating desired output💡 Try rephrasing your request with more specific instructions or examples
🔑 Authentication errors🔧 Double-check your API keys in the .env file
📦 Installation failures🔄 Try clearing npm cache: npm cache clean --force

🆘 Need More Help?

🤝 Contributing

We welcome contributions from the community! 🎉

🌟 How to Contribute

  • 🍴 Fork the repository
  • 🌿 Create a feature branch (git checkout -b feature/amazing-feature)
  • ✍️ Commit your changes (git commit -m 'Add some amazing feature')
  • 📤 Push to the branch (git push origin feature/amazing-feature)
  • 🔀 Open a Pull Request

📋 Contribution Guidelines

  • ✅ Use clear and concise commit messages
  • 🎨 Follow the existing coding style
  • 🧪 Write tests for your changes
  • 📚 Update documentation as needed
  • 🔍 Ensure your code passes all existing tests

🏆 Contributors

Thanks to all the amazing people who have contributed to this project!

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🌟 Star this repo if you found it helpful!

Made with ❤️ by Raghvendra Dwivedi

🐛 Report Bug✨ Request Feature💬 Discussions

Happy cloning! 🚀

Keywords

web clone

FAQs

Package last updated on 18 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts