{"id":22126110,"url":"https://github.com/joffrey-bion/har-parser","last_synced_at":"2025-03-24T08:18:48.657Z","repository":{"id":181414865,"uuid":"666730938","full_name":"joffrey-bion/har-parser","owner":"joffrey-bion","description":"A Kotlin library to parse HAR (HTTP Archive) files","archived":false,"fork":false,"pushed_at":"2025-03-20T21:43:27.000Z","size":419,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-20T22:27:46.235Z","etag":null,"topics":["har","kotlin","multiplatform-kotlin-library"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/joffrey-bion.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"joffrey-bion","custom":"https://paypal.me/joffreybion"}},"created_at":"2023-07-15T11:42:41.000Z","updated_at":"2025-03-20T21:43:29.000Z","dependencies_parsed_at":"2023-07-15T12:53:20.670Z","dependency_job_id":"58cfdb2b-abe1-4f5d-bc98-6745d3732e97","html_url":"https://github.com/joffrey-bion/har-parser","commit_stats":null,"previous_names":["joffrey-bion/har-parser"],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joffrey-bion%2Fhar-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joffrey-bion%2Fhar-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joffrey-bion%2Fhar-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joffrey-bion%2Fhar-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joffrey-bion","download_url":"https://codeload.github.com/joffrey-bion/har-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245232933,"owners_count":20581704,"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":["har","kotlin","multiplatform-kotlin-library"],"created_at":"2024-12-01T16:50:53.781Z","updated_at":"2025-03-24T08:18:48.626Z","avatar_url":"https://github.com/joffrey-bion.png","language":"Kotlin","funding_links":["https://github.com/sponsors/joffrey-bion","https://paypal.me/joffreybion"],"categories":[],"sub_categories":[],"readme":"# har-parser\n\n[![Maven central version](https://img.shields.io/maven-central/v/org.hildan.har/har-parser.svg)](https://search.maven.org/artifact/org.hildan.har/har-parser)\n[![Github Build](https://img.shields.io/github/actions/workflow/status/joffrey-bion/har-parser/build.yml?branch=main\u0026logo=github)](https://github.com/joffrey-bion/har-parser/actions/workflows/build.yml)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/joffrey-bion/har-parser/blob/main/LICENSE)\n\nA Kotlin multiplatform library to parse HAR (HTTP Archive) files, including support for the web socket traffic format.\n\n## Setup\n\nAdd the dependency:\n\n```kotlin\ndependencies {\n    implementation(\"org.hildan.har:har-parser:$version\")\n}\n```\n\n## Usage\n\n### Parse HAR text\n\nYou can get the data as text first, and then parse it using:\n\n```kotlin\nimport org.hildan.har.*\n\nval harText: String = TODO(\"get some textual HAR-encoded data\")\nval har: Har = Har.parse(harText)\n```\n\n### Parse HAR files\n\nOn the JVM, you can use the `Path.readHar()` extension to read a HAR file:\n\n```kotlin\nimport kotlin.io.path.*\nimport org.hildan.har.*\n\nval harPath = Path(\"./my-recording.har\")\nval har: Har = harPath.readHar()\n\nhar.log.entries.forEach {\n    println(\"${it.request.method} ${it.response.status} ${it.request.url}\")\n}\n```\n\nYou can also write a HAR file using `Path.writeHar(Har)`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoffrey-bion%2Fhar-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoffrey-bion%2Fhar-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoffrey-bion%2Fhar-parser/lists"}