{"id":22374332,"url":"https://github.com/rootedglobal/node-phantomjs-aws-lambda","last_synced_at":"2025-07-30T21:33:17.804Z","repository":{"id":101875595,"uuid":"50583900","full_name":"RootedGlobal/node-phantomjs-aws-lambda","owner":"RootedGlobal","description":"A PhantomJS node.js app for Amazon (AWS) Lambda","archived":false,"fork":false,"pushed_at":"2016-01-28T13:27:16.000Z","size":30370,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T22:50:06.865Z","etag":null,"topics":["amazon-lambda","aws","node-lambda","nodejs","phantomjs","phantomjs-lambda-template","phantomjs-node"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RootedGlobal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-28T13:14:45.000Z","updated_at":"2023-02-24T03:06:56.000Z","dependencies_parsed_at":"2023-04-22T13:05:02.698Z","dependency_job_id":null,"html_url":"https://github.com/RootedGlobal/node-phantomjs-aws-lambda","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RootedGlobal/node-phantomjs-aws-lambda","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RootedGlobal%2Fnode-phantomjs-aws-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RootedGlobal%2Fnode-phantomjs-aws-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RootedGlobal%2Fnode-phantomjs-aws-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RootedGlobal%2Fnode-phantomjs-aws-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RootedGlobal","download_url":"https://codeload.github.com/RootedGlobal/node-phantomjs-aws-lambda/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RootedGlobal%2Fnode-phantomjs-aws-lambda/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267945158,"owners_count":24170215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amazon-lambda","aws","node-lambda","nodejs","phantomjs","phantomjs-lambda-template","phantomjs-node"],"created_at":"2024-12-04T21:16:48.281Z","updated_at":"2025-07-30T21:33:12.787Z","avatar_url":"https://github.com/RootedGlobal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PhantomJS Lambda Template\n\nA [PhantomJS](http://phantomjs.org/) node.js app for [Amazon Lambda](http://aws.amazon.com/lambda/). Based on [node-lambda-template](https://github.com/rebelmail/node-lambda-template) using [node-lambda](https://github.com/rebelmail/node-lambda). The app includes a PhantomJS binary (`phantomjs`) compiled for AWS Linux (https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2).\n\n## Setup\n\nInstall dependencies using npm. It'll install the AWS SDK as well as PhantomJS on the development machine.\n\n```shell\nnpm install\n```\n\n## Usage\n\nAfter installing use the following `npm` commands as described below. They're only wrapping the `node-lambda` functionality to allow `node-lambda` to be installed only locally. Additional params can be provided using `-- args`. For a list of available options see the `node-lambda` [documentation](https://github.com/RebelMail/node-lambda).\n\nRun the setup command to generate the environment file with the configuration used for the Amazon Lambda function. Edit the resulting `.env.` file with your custom settings.\n\nFor this you need to have aws account and fill out confuguration in `.env` file:\n\nAWS_ACCESS_KEY_ID=your_aws_key_id\nAWS_SECRET_ACCESS_KEY=your_aws_secret_access_key\nAWS_ROLE_ARN=your_amazon_role\nAWS_REGION=us-east-1\n....\n```shell\nnpm run setup\n```\n\nTo run the function locally execute the following command.\n```shell\nnpm run start\n```\n\nRun the following command to deploy the app to Amazon Lambda. \n```shell\nnpm run deploy\n```\n\n\u003e **Note:** npm version 2.x or newer required to pass arguments to the scripts using `-- args`\n\n## Building phantomjs\n\nIf you want to use a different version of phantomjs or have trouble with the included version, follow the instructions in [build-phantomjs.sh](build-phantomjs.sh).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootedglobal%2Fnode-phantomjs-aws-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frootedglobal%2Fnode-phantomjs-aws-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootedglobal%2Fnode-phantomjs-aws-lambda/lists"}