Skip to content

teyit/teyitlink-archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

teyitlink-archive

This project provides the AWS Lambda function used in the teyitlink-web repository for teyit.link.

The function first loads a page using a headless browser, runs a few helper scripts on the page, takes a screenshot and extracts the HTML after a few seconds, loads and inlines most of the static assets (images, stylesheets, videos) into the HTML and uploads the resulted HTML and the screenshot to AWS S3.

We use a prebuilt PhantomJS build for the inital load and screenshots, a modified version of the awesome inliner library then loads the assets and does the actual inlining. We use the offical aws-sdk for uploading to S3.

You can build and deploy this project like any other Lambda function. If you are not on a Linux platform, run you need to set PHANTOMJS_PLATFORM environment variable to linux before running npm install.

Copyright

Teyit, teyit.org Platform which verifies rumors on the Internet info@teyit.org

About

Lambda function backend for the teyit.link project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors