{"id":24617723,"url":"https://github.com/jacoblincool/tja-rs","last_synced_at":"2025-07-25T09:38:02.740Z","repository":{"id":265761740,"uuid":"896607262","full_name":"JacobLinCool/tja-rs","owner":"JacobLinCool","description":"TJA file parser written in Rust, working in Rust, Python, and WebAssembly.","archived":false,"fork":false,"pushed_at":"2025-06-05T19:58:13.000Z","size":305,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-06T03:53:54.372Z","etag":null,"topics":["python","rust","tja","webassembly"],"latest_commit_sha":null,"homepage":"https://jacoblincool.github.io/tja-rs/report/","language":"Rust","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/JacobLinCool.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}},"created_at":"2024-11-30T20:17:39.000Z","updated_at":"2025-06-05T19:57:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e16351a-be4c-402b-8fb3-ff6a301a7231","html_url":"https://github.com/JacobLinCool/tja-rs","commit_stats":null,"previous_names":["jacoblincool/tja-rs"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/JacobLinCool/tja-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2Ftja-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2Ftja-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2Ftja-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2Ftja-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JacobLinCool","download_url":"https://codeload.github.com/JacobLinCool/tja-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2Ftja-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266988258,"owners_count":24017322,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"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":["python","rust","tja","webassembly"],"created_at":"2025-01-24T23:40:13.407Z","updated_at":"2025-07-25T09:38:02.702Z","avatar_url":"https://github.com/JacobLinCool.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tja-rs\n\nAn efficient TJA file parser, written in Rust, that supports Rust, Python, and WebAssembly environments.\n\nIt is highly optimized for speed and includes features such as a synthesizer for synthesizing music along with don/ka sound effects from a TJA file.\n\nIt's fast! (Parse thousands of TJAs in less than 1 second) [Check out the benchmark](https://jacoblincool.github.io/tja-rs/report/).\n\nYou can also use different parsing modes (e.g. metadata-only or metadata-and-header mode) to make it even faster.\n\n## Building Instructions\n\n### Rust\n\nThe Rust target requires no additional feature flags.\n\nTo build the library, run:\n\n```sh\ncargo build\n```\n\nTo build the CLI tool, run:\n\n```sh\ncargo build --bin tja\n```\n\n### Python\n\nWe use `maturin` to build the Python package. The Python package requires the `python` feature flag to be enabled.\n\nTo build the Python package `.whl`, run:\n\n```sh\nmaturin build -F python --release\n```\n\nTo develop and test, run:\n\n```sh\nmaturin develop -F python\n```\n\n\u003e Python virtual environment is necessary. (e.g. `conda`, `micromamba`, `poetry`, `pixi`)\n\n\u003e To navigate variable, please check [tja.pyi](./tja.pyi)\n\n### WebAssembly\n\nWe use `wasm-pack` to build the WebAssembly package. The WebAssembly package requires the `wasm` feature flag to be enabled.\n\nTo build the WebAssembly package, run:\n\n```sh\nwasm-pack build --features wasm\n```\n\n## Performance Benchmarks\n\nThe parser is highly optimized for performance.\n\nIt can parse a typical TJA file in under 1 ms in full mode, and in metadata-only mode in under 5 µs.\n\nFor detailed benchmarks and comparisons, check out our [benchmark report](https://jacoblincool.github.io/tja-rs/report/).\n\nTo run the benchmark:\n\n```sh\ncargo bench\n```\n\n## Synthesizer\n\nThe TJA parser includes a synthesizer binary that can synthesize music along with don/ka sound effects from a TJA file:\n\n```sh\ncargo run -F audio --bin synthesize \u003cTJA file\u003e \u003cmusic file\u003e \u003cdon sound file\u003e \u003cka sound file\u003e --course \u003ccourse\u003e --branch \u003cbranch\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacoblincool%2Ftja-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacoblincool%2Ftja-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacoblincool%2Ftja-rs/lists"}