Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codinewbie/webpage-screenshot-generator
A web app to capture full/single page website screenshots in PNG, JPG, or PDF formats.
https://github.com/codinewbie/webpage-screenshot-generator
capture-screenshots expressjs javascript nodejs playwright reactjs screen-capture tailwindcss webpage-capture webpage-screenshot
Last synced: 28 days ago
JSON representation
A web app to capture full/single page website screenshots in PNG, JPG, or PDF formats.
- Host: GitHub
- URL: https://github.com/codinewbie/webpage-screenshot-generator
- Owner: Codinewbie
- Created: 2024-10-15T19:15:36.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-12-09T14:14:30.000Z (2 months ago)
- Last Synced: 2024-12-09T15:25:34.254Z (2 months ago)
- Topics: capture-screenshots, expressjs, javascript, nodejs, playwright, reactjs, screen-capture, tailwindcss, webpage-capture, webpage-screenshot
- Language: JavaScript
- Homepage: https://webpage-screenshot-generator.vercel.app
- Size: 3.63 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Webpage Screenshot Generator
A modern web application that allows users to capture full-page or single-page screenshots of any website. This tool supports multiple formats (PNG, JPG, PDF) and offers a smooth user experience with a responsive design. Built using React for the frontend and Node.js with Playwright for the backend, it ensures fast and efficient rendering.
🌐 **[Live Demo](https://webpage-screenshot-generator.vercel.app/)**
## 📌 Features1. **Screenshot Capture:** Capture full-page or single-page screenshots by entering any URL.
2. **Multiple Formats:** Download screenshots in **3 formats**: PNG, JPG, or PDF.
3. **Clipboard Copy:** "Copy Image" button to copy screenshots directly to the clipboard, even after scrolling.
4. **Responsive Design:** Optimized for desktops, tablets, and mobile devices.
5. **Download Button:** Instant download option for all captured screenshots.## 🚀 Technologies Used
### **Frontend**
- React
- JavaScript / TypeScript
- Tailwind CSS (for responsive styling)
- Vite (for fast builds and development)### **Backend**
- Node.js
- Express.js
- Playwright (for automated browser interactions)## 🛠️ Getting Started
### Prerequisites
- Node.js (v14 or higher)### Installation
1. **Clone the repository:**
```bash
git clone https://github.com/your-username/webpage-screenshot-generator.git
cd webpage-screenshot-generator2. **Install Dependencies**
```bash
npm install
3. **Run the Application**
- For Development
```bash
npm run dev
- For Production:
```bash
npm run build
npm start4. Access the Application:
- Open your browser and visit:
```bash
http://localhost:3000
## 📄 API Endpoints### `POST /screenshot`
Captures a screenshot based on the provided URL and format.
- Request Body:
```bash
{
"url": "https://example.com",
"format": "png" // Options: 'png', 'jpg', 'pdf'
}- Request Body:
- Returns the screenshot as a downloadable file.