{"id":24745999,"url":"https://github.com/chausner/pritools","last_synced_at":"2025-11-10T16:06:00.183Z","repository":{"id":111426280,"uuid":"71825793","full_name":"chausner/PriTools","owner":"chausner","description":"Tools for parsing and exploring PRI (Package Resource Index) files","archived":false,"fork":false,"pushed_at":"2025-06-07T15:19:30.000Z","size":193,"stargazers_count":42,"open_issues_count":3,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-27T23:25:41.487Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chausner.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":"2016-10-24T19:44:00.000Z","updated_at":"2025-10-03T22:21:12.000Z","dependencies_parsed_at":"2024-08-26T23:41:04.727Z","dependency_job_id":"de768601-ad3b-4a7c-86e0-f6ceadac7e12","html_url":"https://github.com/chausner/PriTools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chausner/PriTools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chausner%2FPriTools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chausner%2FPriTools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chausner%2FPriTools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chausner%2FPriTools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chausner","download_url":"https://codeload.github.com/chausner/PriTools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chausner%2FPriTools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283707520,"owners_count":26880777,"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-11-10T02:00:06.292Z","response_time":53,"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":[],"created_at":"2025-01-28T03:36:35.160Z","updated_at":"2025-11-10T16:06:00.163Z","avatar_url":"https://github.com/chausner.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PriTools\n\nTools for parsing and exploring PRI (Package Resource Index) files\n\n## PRIExplorer\n\nThis sample application allows to open and browse the contents of PRI files.\nIt is also possible to export individual resources.\n\nThe application leverages the [XbfAnalyzer](https://github.com/chausner/XbfAnalyzer)\n(originally by [misenhower](https://github.com/misenhower/XbfAnalyzer))\nto provide on-the-fly decompilation of XBF2 resources back to XAML.\n\n## PriFormat\n\nThis project implements a PRI file reader in C# for low-level access to pretty much all structures in the PRI file format.\nOnly file reading, not writing, is supported at the moment.\n\n### Sample usage\n\nYou can use the following code to open a PRI file and print the names of all resource map items:\n\n```csharp\nusing (FileStream stream = File.OpenRead(path))\n{\n    PriFile priFile = PriFile.Parse(stream);\n\n    ResourceMapSection resourceMapSection = priFile.GetSectionByRef(priFile.PriDescriptorSection.PrimaryResourceMapSection.Value);\n\n    foreach (CandidateSet candidateSet in resourceMapSection.CandidateSets.Values)\n    {\n        ResourceMapItem resourceMapItem = priFile.GetResourceMapItemByRef(candidateSet.ResourceMapItem);\n\n        Console.WriteLine(resourceMapItem.FullName);\n    }\n}\n```\n\nFor more sample code, see the [PriInfo project](PriInfo/Program.cs).\n\n## PRI File Format Specification\n\n[Package Resource Index File Format.md](Package%20Resource%20Index%20File%20Format.md) contains a reasonably complete (but unofficial) description of data structures in the PRI file format.\n\n## License\n\nApache 2.0, see LICENSE.\n\nXBF2 decompilation code is originally based on the implementation by [misenhower](https://github.com/misenhower/XbfAnalyzer).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchausner%2Fpritools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchausner%2Fpritools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchausner%2Fpritools/lists"}