{"id":17597857,"url":"https://github.com/cvan/fasthar-api","last_synced_at":"2025-04-30T06:07:53.158Z","repository":{"id":13444002,"uuid":"16133289","full_name":"cvan/fastHAR-api","owner":"cvan","description":"an API server that returns aggregated data from HTTP Archive (HAR) data from captured network traffic","archived":false,"fork":false,"pushed_at":"2014-04-08T00:00:46.000Z","size":296,"stargazers_count":10,"open_issues_count":6,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T06:07:46.427Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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-22T08:29:37.000Z","updated_at":"2024-09-12T03:28:22.000Z","dependencies_parsed_at":"2022-09-26T19:30:54.345Z","dependency_job_id":null,"html_url":"https://github.com/cvan/fastHAR-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2FfastHAR-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2FfastHAR-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2FfastHAR-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2FfastHAR-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cvan","download_url":"https://codeload.github.com/cvan/fastHAR-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251651233,"owners_count":21621716,"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:51.770Z","updated_at":"2025-04-30T06:07:53.133Z","avatar_url":"https://github.com/cvan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastHAR-api\n\nAn API server that returns aggregated data from\n[HTTP Archive (HAR)](https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/HAR/Overview.html)\ndata from captured network traffic. This is the API for\n[fastHAR](https://github.com/cvan/fastHAR).\n\n\n# Dependencies\n\nInstall phantomjs on Mac OS X:\n\n    brew install phantomjs\n\nOr on Linux:\n\n    apt-get install phantomjs\n\n\n# Installation\n\nInstall dependencies:\n\n    npm install\n\nSet up settings:\n\n    cp settings_local.js.dist settings_local.js\n\nRun server:\n\n    PORT=5000 node app.js\n\n\n# API usage\n\n## Fetch a site to record its network traffic\n\nEach fetch becomes a new record in the database and can be looked up later.\n\n### `GET`\n\n    curl 'http://localhost:5000/har/fetch?name=The Phantom of the Opera\u0026url=http://thephantomoftheopera.com'\n\nOr by specifying a `ref` identifier (e.g., a SHA or some unique identifier):\n\n    curl 'http://localhost:5000/har/fetch?ref=badc0ffee\u0026url=http://thephantomoftheopera.com'\n\nOr even simpler:\n\n    curl 'http://localhost:5000/har/fetch?url=http://thephantomoftheopera.com'\n\n### `POST`\n\n    curl -X POST 'http://localhost:5000/har/fetch' -d 'name=The Phantom of the Opera\u0026ref=badc0ffee\u0026url=http://thephantomoftheopera.com'\n\nOr even simpler:\n\n    curl -X POST 'http://localhost:5000/har/fetch' -d 'url=http://thephantomoftheopera.com'\n\n## Return a site's network traffic history\n\n### HAR data\n\n    curl 'http://localhost:5000/har/history?url=http://thephantomoftheopera.com'\n\n### Statistics data (response size, times, totals)\n\n    curl 'http://localhost:5000/stats/history?url=http://thephantomoftheopera.com'\n\n### Charts data (normalised statistics data)\n\nNote: the following endpoints can all be filtered by `ref`.\n\n#### Filter by response size\n\n    curl 'http://localhost:5000/charts/sizes?url=http://thephantomoftheopera.com'\n\nTo filter by resource type (e.g., `css`):\n\n    curl 'http://localhost:5000/charts/sizes?resource=css\u0026url=http://thephantomoftheopera.com'\n\n#### Filter by response time\n\n    curl 'http://localhost:5000/charts/times?url=http://thephantomoftheopera.com'\n\nTo filter by resource type (e.g., `css`):\n\n    curl 'http://localhost:5000/charts/times?resource=css\u0026url=http://thephantomoftheopera.com'\n\n#### Filter by total counts\n\n    curl 'http://localhost:5000/charts/totals?url=http://thephantomoftheopera.com'\n\nTo filter by resource type (e.g., `css`):\n\n    curl 'http://localhost:5000/charts/totals?resource=css\u0026url=http://thephantomoftheopera.com'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvan%2Ffasthar-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcvan%2Ffasthar-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvan%2Ffasthar-api/lists"}