{"id":13514736,"url":"https://github.com/Barthandelous01/redocx","last_synced_at":"2025-03-31T03:31:15.723Z","repository":{"id":218791199,"uuid":"244418824","full_name":"Barthandelous01/redocx","owner":"Barthandelous01","description":"A blazing-fast C docx decoder","archived":false,"fork":false,"pushed_at":"2021-01-03T21:37:53.000Z","size":2289,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-01T18:37:48.193Z","etag":null,"topics":["c","docx","microsoft-word"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Barthandelous01.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}},"created_at":"2020-03-02T16:27:05.000Z","updated_at":"2022-12-12T14:59:38.000Z","dependencies_parsed_at":"2024-01-23T21:39:26.941Z","dependency_job_id":null,"html_url":"https://github.com/Barthandelous01/redocx","commit_stats":null,"previous_names":["barthandelous01/redocx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Barthandelous01%2Fredocx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Barthandelous01%2Fredocx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Barthandelous01%2Fredocx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Barthandelous01%2Fredocx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Barthandelous01","download_url":"https://codeload.github.com/Barthandelous01/redocx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246413377,"owners_count":20773053,"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":["c","docx","microsoft-word"],"created_at":"2024-08-01T05:01:01.077Z","updated_at":"2025-03-31T03:31:12.613Z","avatar_url":"https://github.com/Barthandelous01.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# redocx\nA blazing-fast `.docx` decoder\n\n## Usage\n`redocx` is super simple to use! Just run:\n```bash\n$ redocx -f path/to/input/file.docx [-o path/to/optional/output/file.txt]\n```\n## Installation\nThere are two dependencies for `redocx`: `libzip` and `libxml2`. Both of these libraries must also be registered with pkg-config. How those two things are installed varies based on your system. For example:\n\n* MacOS\n```bash\nbrew install libxml2\nbrew install libzip\n```\n\n* Arch Linux\n```bash\nsudo pacman -S libxml2\nsudo pacman -S libzip\n```\nOnce those are installed, clone the repo, and move into the directory. Then follow the ritual:\n```bash\n./configure\nmake\nsudo make install\n```\n\n## Inspiration\nI have, like most developers, read the famous [webiquitte article](http://www.catb.org/esr/faqs/smart-questions.html). While reading it, I was thinking, \"Surely someone out there has made a Word Document decoder for these hackers?! Why would they be annoyed, if they could just decode it?\" So I got to searching. The best I was able to find was [this project](https://github.com/DecentM/undocx/blob/master/undocx) which, with all due respect to [the creator](https://github.com/DecentM), does not create neat or readable code. Newlines are not, for example, carried over. So, I set about to make my own.\n## Benchmarks\n`redocx` lives up to its description as a \"blazing fast\" decoder. For a small (~13kb) word document (Around one average length paragraph)... well, you can see the results yourself.\n\u003cimg src=\"res/bench_small.png\"\u003e\nFor a larger document, it takes slightly longer, but...\n\u003cimg src=\"res/bench_large.png\"\u003e\nFor a huge novel (115kb):\n\u003cimg src=\"res/bench_huge.png\"\u003e\nIt's faster than anything else out there for decoding text from a `.docx` archive.\nIt may also be intiresting to note that I wrote a `rust` version of this program. However, it was abandoned because `redocx` performed 13.55 times (on average) better.\nThanks to [sharkdp](https://github.com/sharkdp) for the [utility](https://github.com/sharkdp/hyperfine) used in the benchmarking.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBarthandelous01%2Fredocx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBarthandelous01%2Fredocx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBarthandelous01%2Fredocx/lists"}