
Shotlink
Shotlink is a REST API service that allows capture websites screenshots.
Shotlink
Gausix/Shotlink
Just deployed
Deploy and Host Shotlink on Railway
Shotlink is a lightweight and efficient REST API service written in Go that allows you to capture high-quality screenshots of websites programmatically. It uses Chrome Headless via chromedp
to render dynamic pages with JavaScript, custom styles, and interactivity. Ideal for developers and automation workflows.
About Hosting Shotlink
Hosting Shotlink involves running a Go-based web service that interfaces with Chrome Headless to process screenshot requests. Once deployed, Snaptor exposes an HTTP API endpoint where clients can send URLs and receive rendered screenshots in return. The service is stateless and lightweight, making it well-suited for deployment on container-based platforms like Railway. You’ll need to ensure a headless browser environment is available and accessible by the Go application.
Common Use Cases
- Automating screenshot generation for dashboards or monitoring systems
- Capturing visual reports or snapshots for marketing tools
- Visual regression testing in CI/CD pipelines
Dependencies for Shotlink Hosting
- Go runtime (version 1.20 or later recommended)
- Chrome Headless (used internally via
chromedp
)
Deployment Dependencies
Implementation Details
You can deploy Shotlink by building the Go binary and running it alongside a headless Chrome instance. For example:
go build -o shotlink main.go
./shotlink
Ensure the container or Railway environment has Chrome installed:
apt-get update && apt-get install -y chromium
Why Deploy Shotlink on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Snaptor on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
Shotlink
Gausix/Shotlink