Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
WRP - Web Rendering Proxy
A browser-in-browser proxy server that allows you to use historical / vintage web browsers on the modern web.
Modes of operation
Access Types
- Browser-in-browser, navigate to the address of WRP and use the built-in web form to browse the web.
- HTTP proxy mode which offers more seamless, but also limited use. Semi-compatible with https://.
- Dedicated client, Archaic web browser, a tiny native WRP client for vintage computers.
Get it from WRP with curl or wget:
/archaic-downloadlists the files. - VNC server,
-vnc :5901, a live interactive browser for any VNC viewer.
Render modes
- ISMAP "graphical" mode, renders the web page into a GIF/PNG/JPG image with clickable imagemap.
- Simple HTML mode converts pages into simplified HTML for old browsers.
Different modes have different uses. ISMAP mode will be better for the flashy modern web. Simple HTML mode will be better for reading articles or documentation.
Usage Instructions
- Download a WRP binary and run it on a machine that will become your WRP gateway/server. This should be modern hardware and OS. Google Chrome / Chromium / Brave Browser is required to be preinstalled. Do not run WRP on an old machine like Windows XP or 98.
- Make sure you have disabled the firewall or opened the port WRP is listening on (by default 8080).
- Point your legacy browser to
http://address:portof the WRP server or set your proxy address there. - Type a search string or a full http/https URL and click Go.
- Select whether you want to use graphical (ISMAP) or simple HTML mode.
Proxy mode
- You can use
/proxy.pacautomatic configuration mode. - Stick to
http://addresses only, the proxy will automatically rewrite them tohttps://as needed. https://addresses are limited in functionality (no /suffix or paths).- Proxy mode doesn't have a customizable web interface with html forms. All configuration is done via flags.
Image Map Mode
- Adjust your screen Width/Height/Scale/Colors to fit in your old browser.
- Scroll web page by clicking on the in-image scroll bar on the right.
- WRP also allows a single tall image without the vertical scrollbar, with client scrolling. To enable this, simply set height H to
0(or flag-g 1152x0x216). However, this should not be used with old and low spec clients. Such tall images will be very large, take a lot of memory and a long time to process, especially for GIFs. - Slices (
sl=1): WRP renders the page once and sends only the rows the client asks for. A GIF gets its colors and dither first for the rows the client asks for, then for the rest of the page in the background, so a very long page does not wait for them. For clients that scroll themselves, like Archaic. - ABM (
Accept: image/x-abm): fast 1-bit images for black and white clients with a slow CPU. Seeabm.go. - Keys as you type (
/keys): a client with its own window, like Archaic, sends keys as they are typed, and WRP types them into the page with no new image. The form's hiddenkbsays what has the keyboard (text,passwordornone). WRP logs only how many keys came. Seekeys.go. - Colors for GIFs come with a letter for the dither:
ddithers everything,nnothing, and for 2 colorsp(default) dithers only photos so text stays sharp. 216 is not dithered by default (216n), the others are (256d). - Do not use client browser history-back, instead use the Bk button in the app.
- You can re-capture the screenshot without reloading the page by using St (Stop). This is useful if the page didn't render fully before the screenshot was taken.
- You can also reload the page and re-capture the screenshot with Re (Reload).
- To send keystrokes, fill the K input box and press Go. There are also buttons for backspace, enter and arrow keys.
- The default image type is
GIP- an ultra fast, optimized, parallel encoded GIF type. - If your browser supports it, prefer PNG over GIF/JPG. PNG is much faster, whereas GIF/JPG requires a lot of additional processing on both client and server to compress/uncompress.
- GIF images are by default encoded with 216 colors, "web safe" palette. This uses an ultra fast encoding algorithm optimized mostly for text. Images have rather wonky colors. If you want better color representation switch to 256 color mode (
256d).
Simple HTML mode
- Select image type PNG/GIF/JPG. Each individual image from the original web site will be converted to the selected format.
- Type maximum image size in pixels.
UI explanation
The first unnamed input box is either a search (Google) or a URL starting with http/https
Go Navigate to the url or perform a search
Bk History Back
St Stop, also re-capture the screenshot without refreshing the page, for example if the page
render takes a long time or it updates / changes periodically
Re Remote Reload / Refresh
Up Page Up (not shown with slices, sl=1)
Dn Page Down (not shown with slices, sl=1)
W is width in pixels, adjust it to get rid of the horizontal scroll bar
H is height in pixels, adjust it to get rid of the vertical scroll bar.
It can also be set to 0 to produce one very tall image and use
client scroll. This 0 size is experimental, buggy and should be
used with PNG and lots of memory on the client side.
Z Zoom or scale
M Mode - ISMAP (clickable imagemap) or simple HTML mode
T Image type PNG / GIF / JPEG
C Colors and dither, for GIF images only: d dither, n no dither, p only photos (2 colors)
K Keystroke input, you can type some letters in it and when you click Go it will be typed in the remote browser.
Bs Backspace
Rt Return / enter
UI Customization
WRP supports customizing its own UI using an HTML template file. Download wrp.html, place it in the same directory as the wrp binary and customize it to your liking.
Docker
https://hub.docker.com/r/tenox7/wrp
$ docker run -d --rm -p 8080:8080 tenox7/wrp:latest
AWS
It's possible to run WRP on AWS App Runner.
First you need to upload the Docker image to ECR - Instructions.
Create an App Runner service with the uploaded image, using the AWS Console or CLI.
aws apprunner create-service --service-name my-app-runner-service --source-configuration '{
"ImageRepository": {
"ImageIdentifier": "<account_id>.dkr.ecr.<region>.amazonaws.com/wrp:latest",
"ImageRepositoryType": "ECR",
"ImageConfiguration": {"Port": "8000"},
"AutoDeploymentsEnabled": true
}
}' --instance-configuration '{
"Cpu": "1024",
"Memory": "2048",
"InstanceRoleArn": "arn:aws:iam::<account_id>:role/AppRunnerECRAccessRole"
}'
Azure Container Instances
CLI:
$ az container create --resource-group wrp --name wrp --image tenox7/wrp:latest --cpu 1 --memory 2 --ports 80 --protocol tcp --os-type Linux --ip-address Public --command-line '/wrp -l :80 -t png -g 1280x0x256'
Google Cloud Run
$ gcloud run deploy --platform managed --image=tenox7/wrp:latest --memory=2Gi --args='-t=png','-g=1280x0x256'
Unfortunately Google Cloud Run forces you to use HTTPS, which likely won't work with old browsers.
Flags
-l listen address:port (default :8080)
-m mode, either ismap (graphical) or html
-t image type gif, png or jpg (default gif)
-g image geometry, WxHxC, height can be 0 for unlimited (default 1152x600x216)
C (number of colors) is only used for GIF
-d dither of 2 color GIFs: all, pics (only photos) or none (default pics)
-q JPEG image quality, default 75%
-h headless mode, hide browser window on the server (default true)
-n do not free maps and images after use (default false)
-ui html template file (default "wrp.html")
-ua user agent, override the default "headless" agent (only for ismap mode)
-s delay/sleep after page is rendered before screenshot is taken (default 2s)
-b browser executable path (e.g., for Brave Browser)
-profile Chrome user-data dir, persists cookies/logins and the session between runs
-archaic GitHub release (API address) for Archaic's self-updates at /archaic-update
and downloads at /archaic-download, empty turns them off
(default: the latest release of tenox7/archaic)
-vercheck GitHub release (API address) of WRP: at start and once a day, WRP checks for
a newer WRP, and says so in its log and on its page. It does not update itself.
Empty turns the check off (default: the latest release of tenox7/wrp)
Minimal Requirements
- Server/Gateway requires modern hardware and operating system that is supported by Go language and Chrome/Chromium Browser, which must be installed.
- Client Browser needs to support
HTML FORMsandISMAP. Typically Mosaic 2.0 would be the minimum version for forms. However ISMAP was supported since 0.6B, so if you manually enter the URL using?url=..., you can use the earlier version.
FAQ
I can't get it to run
This program does not have a GUI and is run from the command line. After downloading, you may need to enable the executable bit on Unix systems, for example:
$ cd ~/Downloads
$ chmod +x wrp-amd64-macos
$ ./wrp-amd64-macos
Pages are chopped off
Click St to re-capture the screenshot. You may want to increase the page delay using -s flag.
Websites are blocking headless browsers
This is a well known issue. WRP has some provisions to work around it, but it's a cat and mouse game. By default WRP sends the browser's own User Agent without "Headless", with client hints to match. -ua jnrbsn uses a current one from https://github.com/jnrbsn/user-agents. You can also use your own, for example:
$ wrp -ua="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
Staying logged in to Gmail and other sites
Use -profile ~/.wrp-chrome to persist cookies/logins between runs. Log in once with -h=false, then restart headless. Run WRP on the same machine you logged in on (the cookie key lives in the OS keychain).
Saving and restoring the session
With -profile WRP also remembers the session in wrp-session.json inside the profile dir and restores it on the next run: image geometry, zoom, image type, colors, dither, quality and mode for the ISMAP/HTML UI, the VNC framebuffer size and zoom, plus the open tabs, which are reopened where you left off. Flags given on the command line always win, for example -g 1024x768x256 overrides the saved geometry and -vncpage skips reopening tabs.
Why isn't there a Docker image for armv6
Because https://hub.docker.com/r/chromedp/headless-shell/ doesn't have one. WRP uses that image. If you have a fork that builds for armv6 let me know.
WTF is GIP image format
It's just GIF but optimized. Avoids dithering, uses fast color palette and parallel encoding. https://github.com/tenox7/gip
History
- Version 1.0 (2014) started as a cgi-bin script, adaptation of
webkit2png.pyandpcidade.py, blog post. - Version 2.0 became a standalone http-proxy server, supporting both Linux and MacOS, another post.
- In 2016 thanks to Let's Encrypt the whole internet migrated to HTTPS/SSL/TLS and WRP largely stopped working. Python code became unmaintainable and there was no easy way to make it work on Windows, even under WSL.
- Version 3.0 (2019) has been rewritten in Go using Chromedp as browser-in-browser instead of http-proxy. The initial version was less than 100 lines of code.
- Version 4.0 has been completely refactored to use mouse clicks via imagemap instead of parsing a href nodes.
- Version 4.1 added sending keystrokes into input boxes. You can now log in to Gmail. Also now runs as a Docker container and on Cloud Run/Azure Containers.
- Version 4.5 introduces rendering whole pages into a single tall image with client scrolling.
- Version 4.6 adds blazing fast gif encoding by Hill Ma.
- Version 4.6.3 adds arm64 / aarch64 Docker container support - you can run it on Raspberry Pi!
- Version 4.7 adds simple html aka reader aka text mode.
- Version 4.8 adds image support to simple html mode.
- Version 4.9 adds support for ultra fast, parallel encoded gif image (GIP)
- Version 4.10 re-adds support for http proxy mode
Credits
- Uses chromedp, thanks to mvdan for dealing with my issues
- Uses go-quantize, thanks to ericpauley for developing the missing go quantizer
- Thanks to Jason Stevens of Fun With Virtualization for graciously hosting my ramblings
- Thanks to claunia for help with the Python/Webkit version in the past
- Thanks to Hill Ma for ultra fast gif encoding algorithm
- Historical Python/Webkit versions and prior art can be seen in wrp-old repo
Related
You may also be interested in:
Legal Stuff
License: Apache 2.0
Copyright (c) 2013-2026 Antoni Sawicki
