
Company News
Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development
Socket is scaling to defend open source against supply chain attacks as AI accelerates software development.
sameweb-cli
Advanced tools
A CLI tool to clone websites into local folders using Puppeteer and AI. Useful for developers, researchers, and learners who want to quickly grab a site's structure and assets.
A powerful CLI tool to clone websites and modify them with AI using Puppeteer + OpenAI.
With sameweb CLI, you can scrape websites, save them locally, and then use natural language queries to modify the cloned content — perfect for prototyping, experimentation, and rapid website iteration.
npm install -g sameweb-cli
# or using pnpm
pnpm add -g sameweb-cli
Simply run the command to start the interactive setup:
sameweb
On first run, you'll be guided through:
OPENAI_API_KEY in .env)$ sameweb
🚀 Welcome to sameweb-cli!
📌 First time setup: You need to clone a website.
🌐 Enter website URL to clone: https://example.com
🔑 Enter your OpenAI API key: sk-...
⚡ Cloning website, please wait...
✅ Website cloned successfully into 'https://example.com'. Now you can ask queries to modify it.
💬 Enter a query (or type 'exit' / 'reset' ):
> Change the header color to blue and add a contact form
Create a .env file in your project root to avoid entering your API key each time:
OPENAI_API_KEY=sk-your-openai-api-key-here
sameweb CLI automatically saves your session state in ~/.sameweb-state.json, including:
Once you've cloned a website, you can enter natural language queries to modify it:
"Change the background color to dark blue""Add a navigation menu with Home, About, Contact links""Remove all images and replace with placeholder text""Make the layout responsive for mobile devices"exit - Quit the CLIreset - Clear saved state and start fresh (will require re-cloning)Clone the repository
git clone https://github.com/your-username/sameweb-cli.git
cd sameweb-cli
Install dependencies
npm install
# or
pnpm install
Create environment file
cp .env.example .env
# Edit .env with your OpenAI API key
Run in development mode
node cli.js
# or if you have a dev script
npm run dev
sameweb-cli/
├── cli.js # Main CLI interface
├── cloner.js # Core cloning and AI logic
├── package.json # Dependencies and scripts
├── .env.example # Environment template
└── README.md # This file
You'll need an OpenAI API key to use the AI modification features:
export OPENAI_API_KEY=sk-your-key-here
Or create a .env file as shown aboveMIT License - see LICENSE file for details
Contributions welcome! Please feel free to submit a Pull Request.
reset command if you want to start fresh with a new websiteFAQs
A CLI tool to clone websites into local folders using Puppeteer and AI. Useful for developers, researchers, and learners who want to quickly grab a site's structure and assets.
The npm package sameweb-cli receives a total of 28 weekly downloads. As such, sameweb-cli popularity was classified as not popular.
We found that sameweb-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
Socket is scaling to defend open source against supply chain attacks as AI accelerates software development.

Research
/Security News
A long-running Go typosquat impersonated the popular shopspring/decimal library and used DNS TXT records to execute commands.

Research
Active npm supply chain attack compromises @antv packages in a fast-moving malicious publish wave tied to Mini Shai-Hulud.