Skip to content
data-fairPublic

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

132 Commits

Folders and files

Repository files navigation

Data FAIR logo @data-fair/capture

GitHub License GitHub package.json version
A simple service for capturing rendered Web pages using puppeteer.

Part of the Data Fair ecosystem.

Sponsors

Koumoul logo

Koumoul · La donnée accessible
Koumoul develops the Data Fair ecosystem and hosts it as an online service.


Click here to support the development of this project.

Developers

See CONTRIBUTING.md for the dev environment.

Build and run the docker image:

docker buildx build -t capture --progress plain --load . && docker run --rm -it --security-opt seccomp=$(pwd)/seccomp.json -p 5607:5607 -p 9090:9090 -e DEBUG=capture,timer -e ONLY_SAME_HOST=false -e SECRET_CAPTURE=capture -e HELMET_ACTIVE=false -e PORT=5607 --name capture capture

Check the service with these examples (in the dev environment, replace 5607 with DEV_API_PORT from .env):

Security

Consider reading this article https://github.com/Zenika/alpine-chrome#3-ways-to-securely-use-chrome-headless-with-this-image

We recommend using ./seccomp.json. If you trust all pages opened by capture you can use PUPPETEER_ARGS=["--no-sandbox"] environment variable.

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages