{"id":51579094,"url":"https://github.com/everythingsuckz/kosatka","last_synced_at":"2026-07-11T04:01:11.298Z","repository":{"id":369625835,"uuid":"1290520884","full_name":"EverythingSuckz/kosatka","owner":"EverythingSuckz","description":"A browser-based stem mixer for Grand Theft Auto V audio.","archived":false,"fork":false,"pushed_at":"2026-07-06T06:04:42.000Z","size":576,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-06T08:05:39.944Z","etag":null,"topics":["audio-decoder","audio-processing","awc","grand-theft-auto-v","gta","rage","rpf"],"latest_commit_sha":null,"homepage":"https://kosatka.wrench.workers.dev","language":"TypeScript","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/EverythingSuckz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-06T02:42:53.000Z","updated_at":"2026-07-06T06:08:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/EverythingSuckz/kosatka","commit_stats":null,"previous_names":["everythingsuckz/kosatka"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/EverythingSuckz/kosatka","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EverythingSuckz%2Fkosatka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EverythingSuckz%2Fkosatka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EverythingSuckz%2Fkosatka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EverythingSuckz%2Fkosatka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EverythingSuckz","download_url":"https://codeload.github.com/EverythingSuckz/kosatka/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EverythingSuckz%2Fkosatka/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35350133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-11T02:00:05.354Z","response_time":104,"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":["audio-decoder","audio-processing","awc","grand-theft-auto-v","gta","rage","rpf"],"created_at":"2026-07-11T04:01:10.149Z","updated_at":"2026-07-11T04:01:11.286Z","avatar_url":"https://github.com/EverythingSuckz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"public/logo.svg\" alt=\"Kosatka\" width=\"140\" /\u003e\n  \u003ch1\u003eKosatka\u003c/h1\u003e\n  \u003cp\u003e\n    A browser-based stem mixer for Grand Theft Auto V audio. Drop in an\n    \u003ccode\u003e.awc\u003c/code\u003e (or a \u003ccode\u003e.rpf\u003c/code\u003e archive to browse for one), and\n    Kosatka decodes the individual music stems and lays them out on a timeline\n    you can mute, balance, automate, and export. Everything runs in your\n    browser. Nothing is uploaded.\n  \u003c/p\u003e\n  \u003cp\u003e\n    Named after the Kosatka, the submarine you run the Cayo Perico heist from,\n    whose soundtrack was the reason this project started.\n  \u003c/p\u003e\n\u003c/div\u003e\n\n## What it does\n\n- Opens GTA V `.awc` audio containers and `.rpf` game archives entirely in the browser.\n- Decodes the MP3 stems (the Cayo Perico heist tracks are 16-stem, per-block encrypted).\n- Presents each stereo pair as a channel on a timeline: toggle on/off, set level, adjust stereo spread, and draw gain automation with keyframes.\n- Exports the current mix as a WAV, or the individual stems as a ZIP.\n- Works fully offline and installs as a PWA.\n\n## Screenshots\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd width=\"50%\"\u003e\u003cimg width=\"100%\" alt=\"Kosatka mixer\" src=\"https://github.com/user-attachments/assets/397ccd9e-7a28-442c-835c-7e99c75cf120\" /\u003e\u003c/td\u003e\n    \u003ctd width=\"50%\"\u003e\u003cimg width=\"100%\" alt=\"Kosatka mixer\" src=\"https://github.com/user-attachments/assets/c74e3f2b-30e9-4346-b1d7-a32d8b50c6ef\" /\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Ownership and keys\n\nKosatka does not ship any Rockstar audio, and it cannot decrypt anything on\nits own. To derive the decryption key it asks you, once, for your own\n`gta5_enhanced.exe` (or `gta5.exe` on legacy editions). The key is computed\nlocally in your browser and stored only on your device. It is never\ntransmitted anywhere.\n\nThe repository does include `public/magic.dat`, the same obfuscated\nkey-derivation blob CodeWalker uses. It is inert on its own: without the bytes\nfrom your own game executable it yields nothing usable.\n\nYou need a legitimate copy of the game to use this tool.\n\n## How it works\n\nThe pipeline mirrors CodeWalker and OpenIV, reimplemented for the browser:\n\n1. **Keys** are derived from your game exe combined with `magic.dat` (`src/keys`).\n2. **RPF7** archives are parsed and NG-decrypted to reach the `.awc` inside (`src/rpf`).\n3. **AWC** containers are parsed into per-stream metadata and byte ranges (`src/awc`).\n4. **MP3** stems are decoded by a from-scratch MPEG-1 Layer III decoder, ported and verified bit-exact against the reference (`src/codecs/nlayer`).\n5. **Mixing** happens on the Web Audio graph, with the timeline, automation, and export built on top (`src/mixer`).\n\n## Quick start\n\nRequires [Bun](https://bun.sh).\n\n```sh\nbun install\nbun run dev      # http://localhost:3000\n```\n\nOther scripts:\n\n```sh\nbun test         # run the test suite (bun:test)\nbun run lint     # eslint\nbun run build    # production build + service worker\n```\n\n## Build and deploy\n\n```sh\nbun run build\n```\n\nThe build runs Vite, then `scripts/build-sw.ts`, which generates the service\nworker and writes the SPA shell. The output is fully static: there is no server\nruntime. `wrangler.jsonc` deploys it to Cloudflare as static assets with an\nSPA fallback (`bun run deploy`).\n\n## Tech stack\n\nTanStack Start (SPA mode) and TanStack Router, React 19, Tailwind CSS v4, Vite,\nand Bun. Audio runs on the Web Audio API with stem decoding offloaded to\nworkers.\n\n## Project layout\n\n```\nsrc/awc          AWC container parser\nsrc/rpf          RPF7 archive parser + NG decryption\nsrc/keys         key derivation from the game exe + magic.dat\nsrc/codecs       MPEG-1 Layer III decoder (nlayer port) + worker\nsrc/mixer        Web Audio engine, timeline, automation, export\nsrc/routes       drop page, mix editor, rpf explorer\nsrc/settings     preferences + settings modal\nsrc/persistence  IndexedDB session and key storage\n```\n\n## Limitations\n\n- Whole-file XXTEA-encrypted AWCs are not supported yet; the encrypted\n  per-block and NG paths are.\n- Best experienced in Chromium browsers, which have the most complete Web Audio\n  and worker support.\n\n## Credits\n\nFormat and cryptography research stands on the shoulders of\n[CodeWalker](https://github.com/dexyfex/CodeWalker) and OpenIV.\n\n## License\n\nMIT. See [LICENSE](LICENSE).\n\nThe MIT license covers Kosatka's own source. It grants no rights to Grand Theft\nAuto V or any Rockstar Games assets. See \"Ownership and keys\" above.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feverythingsuckz%2Fkosatka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feverythingsuckz%2Fkosatka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feverythingsuckz%2Fkosatka/lists"}