{"id":20237752,"url":"https://github.com/ragmaanir/id3","last_synced_at":"2026-06-11T07:31:34.020Z","repository":{"id":198594084,"uuid":"627571113","full_name":"Ragmaanir/id3","owner":"Ragmaanir","description":"ID3 tag reader written in crystal","archived":false,"fork":false,"pushed_at":"2023-10-06T19:56:03.000Z","size":641,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T14:47:27.133Z","etag":null,"topics":["crystal","id3","id3-reader","id3v1","id3v2"],"latest_commit_sha":null,"homepage":"","language":"Crystal","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/Ragmaanir.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}},"created_at":"2023-04-13T18:38:27.000Z","updated_at":"2023-10-06T09:21:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"5a583ad9-2dec-4efc-ad4b-ebf2a792e021","html_url":"https://github.com/Ragmaanir/id3","commit_stats":null,"previous_names":["ragmaanir/id3"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Ragmaanir/id3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ragmaanir%2Fid3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ragmaanir%2Fid3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ragmaanir%2Fid3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ragmaanir%2Fid3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ragmaanir","download_url":"https://codeload.github.com/Ragmaanir/id3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ragmaanir%2Fid3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34188272,"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-06-11T02:00:06.485Z","response_time":57,"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":["crystal","id3","id3-reader","id3v1","id3v2"],"created_at":"2024-11-14T08:28:41.141Z","updated_at":"2026-06-11T07:31:33.988Z","avatar_url":"https://github.com/Ragmaanir.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Id3 [![Crystal CI](https://github.com/Ragmaanir/id3/actions/workflows/crystal.yml/badge.svg)](https://github.com/Ragmaanir/id3/actions/workflows/crystal.yml)\n\n### Version 0.1.2\n\nID3 reader library written in pure crystal.\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     id3:\n       github: ragmaanir/id3\n   ```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"id3\"\n```\n\n```crystal\nr = Reader.new(Path[\"spec/Ragmaanir - Crystal.mp3\"])\nm = Meta.read(r, fast: false)\n\nm.tags        # access id3 v1 and v2\nm.xing_header # access xing header\n\nassert m.approximate_duration == Time::Span.new(seconds: 27, nanoseconds: 507_257_856)\nassert m.duration == Time::Span.new(seconds: 27, nanoseconds: 455_012_352)\n\nassert m.approximate_frame_count == 1053\nassert m.frame_count == 1051\n\n```\n\n```crystal\nt = Id3::TaggedFile.read(Path[\"spec/Ragmaanir - Crystal.mp3\"])\n\nassert t.title == \"Crystal\"\nassert t.artist == \"Ragmaanir\"\nassert t.album == \"None\"\nassert t.track == \"1\"\nassert t.year == \"2023\"\nassert t.genre == \"Black Metal\"\nassert t.comment == \"Created with LMMS\"\n\nv2 = t.v2.not_nil!\n\nassert v2.title == \"Crystal\"\nassert v2.artist == \"Ragmaanir\"\nassert v2.album == \"None\"\nassert v2.track == \"1\"\nassert v2.year == \"2023\"\nassert v2.genre == \"Black Metal\"\nassert v2.comment == \"Created with LMMS\"\n\n# access frames of v2\nassert v2.frames.size == 9\n\n# access TLEN frame\nlen = v2.first(\"TLEN\").as(Id3::V2::TextFrame)\n\nassert len.content == \"100\" # content of first TLEN frame\n\n```\n\n\n## Features\n\n- 🟢 Read basic v1 and v2 tag information (title, artist, album, track, year, genre)\n- 🟢 Read unsynchronized frames\n- 🟢 Calculate mp3 length using Xing header or by counting the frames in the file\n\nUse `./cli` for these tasks:\n\n```bash\n./cli\n\nCommands:\n\n  readme          Generate README.md from README.md.ecr\n  inspect         Print ID3 metadata of a mp3 file\n  frames          Print metadata of the file, like approximate duration, exact duration, frames, ...\n\n\n```\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/ragmaanir/id3/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\nWhen changing the `README.md`, change `README.md.ecr` instead and run `./cli readme` to generate `README.md`.\n\n## Contributors\n\n- [Ragmaanir](https://github.com/ragmaanir) - creator and maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragmaanir%2Fid3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fragmaanir%2Fid3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragmaanir%2Fid3/lists"}