{"id":13466235,"url":"https://github.com/vurtun/lib","last_synced_at":"2025-05-14T15:07:04.251Z","repository":{"id":41529473,"uuid":"46439308","full_name":"vurtun/lib","owner":"vurtun","description":"single header libraries for C/C++","archived":false,"fork":false,"pushed_at":"2025-03-19T11:22:36.000Z","size":509,"stargazers_count":1329,"open_issues_count":14,"forks_count":96,"subscribers_count":46,"default_branch":"master","last_synced_at":"2025-04-14T03:58:19.218Z","etag":null,"topics":["ansi","c","c89","compression","deflate","header-only","json","multithreading","webserver"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vurtun.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2015-11-18T18:37:18.000Z","updated_at":"2025-04-13T06:45:02.000Z","dependencies_parsed_at":"2022-09-21T12:10:31.572Z","dependency_job_id":"de3e9c56-6602-44fb-919e-b6a40d8fea46","html_url":"https://github.com/vurtun/lib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vurtun%2Flib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vurtun%2Flib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vurtun%2Flib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vurtun%2Flib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vurtun","download_url":"https://codeload.github.com/vurtun/lib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254169418,"owners_count":22026212,"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":["ansi","c","c89","compression","deflate","header-only","json","multithreading","webserver"],"created_at":"2024-07-31T15:00:41.347Z","updated_at":"2025-05-14T15:07:04.234Z","avatar_url":"https://github.com/vurtun.png","language":"C","readme":"# mmx\n\nMy single header libraries for C/C++.\n\n|library | lastest version | category | LoC | license | description\n| --------------------- | ---- | -------- | --- | --- | --------------------------------\n|**json.h** | 1.00 | parser | 848 | zlib | non-allocating json parser\n|**sched.h** | 1.00 | multithreading | 699 | zlib | multithreaded task scheduler\n|**web.h** | 1.00 | network | 1455 | BSD |  lightweight webserver\n|**sdefl.h** | 1.00 | compression | 525 | public domain |  deflate compressor\n|**sinfl.h** | 1.00 | decompression | 320 | public domain |  deflate decompressor\n\nTotal libraries: 5  \nTotal lines of C code: 4487\n\n## FAQ\n\n#### Why single-file headers?\nWindows doesn't have standard directories where libraries\nlive. That makes deploying libraries in Windows a lot more\npainful than open source developers on Unix-derivates generally\nrealize. (It also makes library dependencies a lot worse in Windows.)\n\nThere's also a common problem in Windows where a library was built\nagainst a different version of the runtime library, which causes\nlink conflicts and confusion. Shipping the libs as headers means\nyou normally just compile them straight into your project without\nmaking libraries, thus sidestepping that problem.\n\nMaking them a single file makes it very easy to just\ndrop them into a project that needs them. (Of course you can\nstill put them in a proper shared library tree if you want.)\n\nWhy not two files, one a header and one an implementation?\nThe difference between 10 files and 9 files is not a big deal,\nbut the difference between 2 files and 1 file is a big deal.\nYou don't need to zip or tar the files up, you don't have to\nremember to attach *two* files, etc.\n\n#### Where is the documentation?\nEach file has documentation, basic ussage description and\nexamples at the top of the file. In addition each API function,\nstruct and member variables are documented as well.\nFinally each library has a corresponding test file inside the\ntest directory for additional working examples.\n\n#### Why C?\nPersonally I primarily use C instead of C++ and since I want to\nsupport both C and C++ and C++ is not useable from C I therefore focus\non C.\n\n#### Why C89?\nI use C89 instead of C99/C11 for its portability between different compilers\nand accessiblity for other languages.\n\n## References\n- [Sean Barretts single header libraries](https://github.com/nothings/stb)\n- [Other single header libraries](https://github.com/nothings/stb/blob/master/docs/other_libs.md)\n- [enkiTS: source implementation for mm_sched.h](https://github.com/dougbinks/enkiTS)\n- [Webby: source implementation for mm_web.h](https://github.com/deplinenoise/webby)\n\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvurtun%2Flib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvurtun%2Flib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvurtun%2Flib/lists"}