{"id":17597875,"url":"https://github.com/cvan/phantomhar","last_synced_at":"2025-10-28T14:06:06.971Z","repository":{"id":13438528,"uuid":"16127660","full_name":"cvan/phantomHAR","owner":"cvan","description":"a PhantomJS/SlimerJS script to generate HTTP Archive (HAR) data from captured network traffic","archived":false,"fork":false,"pushed_at":"2017-04-27T01:10:51.000Z","size":43,"stargazers_count":36,"open_issues_count":21,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-26T12:52:33.242Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cvan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-22T03:35:23.000Z","updated_at":"2019-04-18T09:40:51.000Z","dependencies_parsed_at":"2022-09-10T09:12:15.656Z","dependency_job_id":null,"html_url":"https://github.com/cvan/phantomHAR","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2FphantomHAR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2FphantomHAR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2FphantomHAR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2FphantomHAR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cvan","download_url":"https://codeload.github.com/cvan/phantomHAR/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251658041,"owners_count":21622817,"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","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":[],"created_at":"2024-10-22T09:43:56.975Z","updated_at":"2025-10-28T14:06:06.907Z","avatar_url":"https://github.com/cvan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![PhantomHAR Logo](https://raw.githubusercontent.com/cvan/phantomHAR/master/images/logo.png \"PhantomHAR Logo\")\n\nA PhantomJS script to generate\n[HTTP Archive (HAR)](https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/HAR/Overview.html)\ndata from captured network traffic.\n\n\n## Dependencies\n\nTo use PhantomJS:\n\n\u003ccode\u003e[brew](http://brew.sh/) install [phantomjs](http://phantomjs.org/)\u003c/code\u003e\n\nTo use SlimerJS:\n\n    ./install-packages.sh\n\n\n## Installation\n\nIf you'd like easier CLI invocation, you can install PhantomHAR globally:\n\n    npm install -g phantomhar\n\nOr clone the repo locally and install the Node dependencies:\n\n    git clone git@github.com:cvan/phantomHAR.git\n    npm install\n\n\n\n## Tests\n\nTo run tests:\n\n    npm test\n\n\n## Usage\n\n### Command-Line Interface\n\nTo run from the command line:\n\n    phantomhar\n\nAlternatively:\n\n    node cli.js\n\nThis will output:\n\n      Usage: phantomhar [options]\n\n      Options:\n\n        -h, --help           output usage information\n        -V, --version        output the version number\n        -u, --url \u003curl\u003e      specify the url for which to generate a HAR\n        -d, --delay [delay]  wait X seconds before generating the HAR [$PHANTOMHAR_DELAY || 1000]\n        -b, --bodies         include response bodies in the HAR [$PHANTOMHAR_BODIES || false]\n        -H, --host [host]    specify the server host [$PHANTOMHAR_HOST || 0.0.0.0]\n        -p, --port [port]    specify the server port [$PHANTOMHAR_PORT || 4000]\n\n#### Output to `stdout`\n\n##### Globally\n\n    phantomhar 'http://thephantomoftheopera.com'\n\n##### Locally\n\n    node cli.js 'http://thephantomoftheopera.com'\n\n#### Output to clipboard (Mac OS X)\n\n##### Globally\n\n    phantomhar 'http://thephantomoftheopera.com' | pbcopy\n\n##### Locally\n\n    node cli.js 'http://thephantomoftheopera.com' | pbcopy\n\n#### Output to a file\n\n##### Globally\n\n    phantomhar 'http://thephantomoftheopera.com' \u003e 'tpoto.com-'$(date +%Y.%m.%d-%H.%M.%S)'.har'\n\n##### Locally\n\n    node cli.js 'http://thephantomoftheopera.com' \u003e 'tpoto.com-'$(date +%Y.%m.%d-%H.%M.%S)'.har'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvan%2Fphantomhar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcvan%2Fphantomhar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvan%2Fphantomhar/lists"}