Skip to content

payload-bot/screenshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

payload.tf logo

screenshot

Screenshotting Popular TF2 Services

MIT license

Description

This project is split out from Payload and is intended to provide a set of APIs and methods to screenshot popular TF2 websites.

Running

You can run the service locally using Deno:

deno task dev

This will install all dependencies, including a chrome browser. If you wish to use a local binary for chrome instead, use the CHROME_PATH environment flag to the path of the chrome executable.

Production

This service is ran using Docker. To run locally, first build the service:

docker build . -t "screenshot"

Then run the container:

docker run --name "screenshot" --init -it --rm screenshot

Issues, Questions

Any issues or questions should be posted on GitHub issues, where they can be more easily tracked. Feature requests are welcome!

Support this Project

You may back me on my Patreon. Direct sponsorship of this project can be discussed on Discord (24#7644) or by another medium.

Contributing

Before contributing, please make sure no one else has stated against your proposal. Otherwise, make a Pull Request detailing your proposal and any relevant code changes. If you are committing code, try to create test cases, as going foward we'd like to have stable tests.

Useful Links

OpenTelemetry

You can use the following command for debugging and tracing using the Grafana LGTM stack:

docker run --name lgtm -p 3000:3000 -p 4317:4317 -p 4318:4318 --rm -ti -v ${PWD}/lgtm/grafana:/data/grafana -v ${PWD}/lgtm/prometheus:/data/prometheus -v ${PWD}/lgtm/loki:/data/loki -e GF_PATHS_DATA=/data/grafana docker.io/grafana/otel-lgtm:0.9.1

License

This project is MIT licensed.

About

Service for Payload to handle screenshots of various sites.

Resources

License

Stars

Watchers

Forks

Contributors