Skip to content

sprioleau/prettypage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social Card

Vercel Status

Pretty Page

Take pixel-perfect screenshots of any website. This project employs serverless functions to handle creating a customizable webpage screenshot. It uses a headless browser to take a screenshot and composites it with custom graphics and a user-selected background color.

🔗 Links

Screenshots

Homepage Screenshot

Color Page Screenshot

Screenshots via Pretty Page

💿 Installation

Clone this repo

git clone https://github.com/sprioleau/prettypage.git

Install via yarn

yarn install

Run developemnt server

yarn dev
Dealing with common install error

If you see the following error, you'll need to install a version of Chromium for the app to use.

Error: Could not find expected browser (chrome) locally. Run npm install to download the correct Chromium revision (884014).

To resolve, make sure you've run yarn install and run:

node node_modules/puppeteer-core/install.js

You should see something like:

Downloading Chromium r884014 - 113.6 Mb [==============      ] 71% 3.1s 

Then, re-run yarn dev to start the dev server.

🛠 Built With

Technology Used For
JavaScript -
Next.js Static site generation
Puppeteer Controlling headless Chrome browser
Chrome AWS Lambda Chrome binary
Sharp Image processing
Chakra UI 😍 UI Framework for React

✨ Features

  • Takes website screenshots with headless browser
  • Waits for idle network before screenshot capture
  • Custom-designed browser window mock-ups by resolution
  • Dark mode toggle

⬆️ Future Updates

  • Retry screenshot on timeout
  • Limit screenshot size to only desired size
  • Add some example sites for quick app demos
  • Capture another screenshot from success page

👨🏾‍💻 Author

San'Quan Prioleau

🎗 Support

Issues, and feature requests are welcome!

Give a ⭐️ if you like this project!

Acknowledgements

About

Take a pixel-perfect screenshot of any website

Resources

Stars

Watchers

Forks