{"id":25442092,"url":"https://github.com/azot-labs/dasha","last_synced_at":"2025-11-01T14:30:24.044Z","repository":{"id":62354772,"uuid":"458454820","full_name":"vitalygashkov/dasha","owner":"vitalygashkov","description":"🔍 Parser for MPEG-DASH \u0026 HLS manifests","archived":false,"fork":false,"pushed_at":"2024-04-13T18:01:14.000Z","size":348,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-14T11:19:46.971Z","etag":null,"topics":["dash","hls","m3u8","manifest","mpd","mpeg","streaming"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vitalygashkov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"patreon":"vitalygashkov","custom":["boosty.to/vitalygashkov/donate"]}},"created_at":"2022-02-12T07:42:27.000Z","updated_at":"2024-04-20T16:36:47.536Z","dependencies_parsed_at":"2024-03-23T18:26:37.711Z","dependency_job_id":"c5e21af7-dbfd-44cf-9e6a-ab562c352551","html_url":"https://github.com/vitalygashkov/dasha","commit_stats":{"total_commits":52,"total_committers":5,"mean_commits":10.4,"dds":0.4423076923076923,"last_synced_commit":"8d0cde761db0011148ccfa2b9f91558ba3126a04"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalygashkov%2Fdasha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalygashkov%2Fdasha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalygashkov%2Fdasha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalygashkov%2Fdasha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vitalygashkov","download_url":"https://codeload.github.com/vitalygashkov/dasha/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239293932,"owners_count":19615043,"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":["dash","hls","m3u8","manifest","mpd","mpeg","streaming"],"created_at":"2025-02-17T13:16:47.587Z","updated_at":"2025-11-01T14:30:23.983Z","avatar_url":"https://github.com/vitalygashkov.png","language":"JavaScript","funding_links":["https://patreon.com/vitalygashkov","boosty.to/vitalygashkov/donate"],"categories":[],"sub_categories":[],"readme":"# dasha\n\n[![npm version](https://img.shields.io/npm/v/dasha?style=flat\u0026color=black)](https://www.npmjs.com/package/dasha)\n[![npm downloads/month](https://img.shields.io/npm/dm/dasha?style=flat\u0026color=black)](https://www.npmjs.com/package/dasha)\n[![npm downloads](https://img.shields.io/npm/dt/dasha?style=flat\u0026color=black)](https://www.npmjs.com/package/dasha)\n\nLibrary for parsing MPEG-DASH (.mpd) and HLS (.m3u8) manifests. Made with the purpose of obtaining a simplified representation convenient for further downloading of segments.\n\n## Install\n\n```shell\nnpm i dasha\n```\n\n## Quick start\n\n```js\nimport fs from 'node:fs/promises';\nimport { parse } from 'dasha';\n\nconst url =\n  'https://dash.akamaized.net/dash264/TestCases/1a/sony/SNE_DASH_SD_CASE1A_REVISED.mpd';\nconst body = await fetch(url).then((res) =\u003e res.text());\nconst manifest = await parse(body, url);\n\nfor (const track of manifest.tracks.all) {\n  for (const segment of track.segments) {\n    const content = await fetch(url).then((res) =\u003e res.arrayBuffer());\n    await fs.appendFile(`${track.id}.mp4`, content);\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazot-labs%2Fdasha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazot-labs%2Fdasha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazot-labs%2Fdasha/lists"}