{"id":13731104,"url":"https://github.com/yui0/slibs","last_synced_at":"2026-01-28T03:01:08.034Z","repository":{"id":93064336,"uuid":"84327652","full_name":"yui0/slibs","owner":"yui0","description":"Single file libraries for C/C++","archived":false,"fork":false,"pushed_at":"2024-08-05T12:40:15.000Z","size":13563,"stargazers_count":121,"open_issues_count":1,"forks_count":11,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-05-08T03:36:30.819Z","etag":null,"topics":["aac","alsa","ascii","audio","blas","c","codec","encoder","flac","gemm","glsl","gpgpu","kms","m4a","math","mp3","mp4","mpeg","opencl","single-header-lib"],"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/yui0.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":"2017-03-08T14:12:48.000Z","updated_at":"2025-03-17T19:38:54.000Z","dependencies_parsed_at":"2023-10-03T10:12:56.148Z","dependency_job_id":"177c5828-491e-4f28-a55e-623c32155c09","html_url":"https://github.com/yui0/slibs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yui0/slibs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yui0%2Fslibs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yui0%2Fslibs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yui0%2Fslibs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yui0%2Fslibs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yui0","download_url":"https://codeload.github.com/yui0/slibs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yui0%2Fslibs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28835727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T02:10:51.810Z","status":"ssl_error","status_checked_at":"2026-01-28T02:10:50.806Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aac","alsa","ascii","audio","blas","c","codec","encoder","flac","gemm","glsl","gpgpu","kms","m4a","math","mp3","mp4","mpeg","opencl","single-header-lib"],"created_at":"2024-08-03T02:01:23.908Z","updated_at":"2026-01-28T03:01:07.936Z","avatar_url":"https://github.com/yui0.png","language":"C","readme":"# slibs 🐾\n\n![GitHub Repo stars](https://img.shields.io/github/stars/yui0/slibs?style=social)\n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/yui0/slibs)\n![Lines of code](https://img.shields.io/tokei/lines/github/yui0/slibs)\n\n🐱 Single file libraries for C/C++.\n\n![Logo](slibs.jpeg)\n\n## 💎 AI ([llm](https://github.com/yui0/slibs/tree/master/catseye), [Stable Diffusion](https://github.com/yui0/slibs/tree/master/ggml/stable-diffusion))\n| library                                                               | license              |  LoC  | description\n| --------------------------------------------------------------------- |:--------------------:|:-----:| -----------\n| **[catseye_llm.h](catseye/catseye_llm.h)**                            | MIT                  |  1874 | \u003cdetails\u003e\u003csummary\u003eLlama2 for CPU\u003c/summary\u003e[Llama2](https://github.com/yui0/slibs/tree/master/catseye), [catseye](https://github.com/yui0/catseye)\u003c/details\u003e\n| **[ggml.h](ggml/ggml.h)**                                             | MIT                  | 20352 | [Tensor library for machine learning](https://github.com/ggerganov/ggml), \u003cdetails\u003e\u003csummary\u003edetails\u003c/summary\u003e[GGML](https://github.com/yui0/slibs/tree/master/ggml), [Llama 2](https://github.com/yui0/slibs/tree/master/ggml/llama), [RedPajama](https://github.com/yui0/slibs/tree/master/ggml/redpajama), [Stable Diffusion](https://github.com/yui0/slibs/tree/master/ggml/stable-diffusion)\u003c/details\u003e\n\n## 🎶 audio ([aplay+](https://github.com/yui0/aplay-))\n| library                                                               | license              |  LoC  | description\n| --------------------------------------------------------------------- |:--------------------:|:-----:| -----------\n| **[alsa.h](alsa.h)**                                                  | public domain        |   138 | [ALSA library](https://github.com/yui0/aplay-)\n| **[uaac.h](uaac.h)**                                                  | RPSL                 | 13438 | [AAC audio decoder](https://github.com/yui0/aplay-)\n| **[uflac_enc.h](uflac_enc.h)**                                        | LGPL-2.1             |  2843 | FLAC audio encoder\n| **[wav.h](wav.h)**                                                    | public domain        |    61 | Wave format\n| **[wave.h](wave.h)**                                                  | public domain        |   304 | utility for wave format\n| **[minimp3.h](minimp3.h)**                                            | LGPL                 |  2671 | [MP3 decoder](https://oldforum.puppylinux.com/viewtopic.php?t=59417)\n| **[adpcm.h](adpcm.h)**                                                | public domain        |   320 | ADPCM\n| **[uwma.h](uwma.h)**                                                  | GPL                  |  5045 | wma\n| **[dsd.h](dsd.h)**                                                    | public domain        |   413 | DSD(DSF)\n\n## 🎥 video\n| library                                                               | license              |  LoC  | description\n| --------------------------------------------------------------------- |:--------------------:|:-----:| -----------\n| **[v4l2.h](v4l2.h)**                                                  | public domain        |   614 | video for linux\n| **[mp4parser.h](mp4parser.h)**                                        | LGPL-3.0             |  6015 | mp4 parser\n| **[jo_mpeg.h](jo_mpeg.h)**                                            | public domain        |   317 | [MPEG1/2 encoder](http://www.jonolick.com/home/mpeg-video-writer)\n\n## 🖼 image ([img2vec](https://github.com/yui0/img2vec))\n| library                                                               | license              |  LoC  | description\n| --------------------------------------------------------------------- |:--------------------:|:-----:| -----------\n| **[imgp.h](imgp.h)**                                                  | public domain        |   441 | mini image processing library\n| **[potracelib.h](potracelib.h)**                                      | GPL                  |  2466 | [Transforming bitmaps into vector graphics](http://potrace.sourceforge.net/), \u003cdetails\u003e\u003csummary\u003edetails\u003c/summary\u003e[Document](http://potrace.sourceforge.net/potracelib.pdf), [Example](https://github.com/yui0/img2vec)\u003c/details\u003e\n| **[pssub.h](pssub.h)**                                                | unknown              |  1153 | Postscript library\n| **[svg.h](svg.h)**                                                    | Apache-2.0           |   348 | SVG library\n\n## 🎮 OpenGL\n| library                                                               | license              |  LoC  | description\n| --------------------------------------------------------------------- |:--------------------:|:-----:| -----------\n| **[kms-glsl.h](kms-glsl.h)**                                          | MIT                  |  2426 | [OpenGL using the DRM/KMS](https://ttt.io/glsl-raspberry-pi)\n\n## 📈 math\n| library                                                               | license              |  LoC  | description\n| --------------------------------------------------------------------- |:--------------------:|:-----:| -----------\n| **[fft.h](fft.h)**                                                    | public domain        |   136 | Fast Fourier Transform\n| **[ifft.h](ifft.h)**                                                  | unknown              |   550 | Fixed-point in-place Fast Fourier Transform\n| **[fmath.h](fmath.h)**                                                | public domain        |   142 | Fast math library\n| **[random.h](random.h)**                                              | public domain        |    33 | XOR128 random function\n\n## 📈 math / GEMM / GPGPU ([waifu2x-glsl](https://github.com/yui0/waifu2x-glsl))\n| library                                                               | license              |  LoC  | description\n| --------------------------------------------------------------------- |:--------------------:|:-----:| -----------\n| **[sgemm_sse.h](sgemm_sse.h)**                                        | public domain        |   451 | [Fast GEMM function for SSE](https://github.com/yui0/ugemm)\n| **[sgemm_ocl.h](sgemm_ocl.h)**                                        | public domain        |   662 | [Fast GEMM function for OpenCL](https://github.com/yui0/ugemm)\n| **[sgemm_gl.h](sgemm_gl.h)**                                          | public domain        |   110 | [Fast GEMM function for OpenGL4](https://github.com/yui0/ugemm)\n| **[gpgpu_glsl.h](gpgpu_glsl.h)**                                      | public domain        |   399 | [GLSL frameworks](https://github.com/yui0/waifu2x-glsl)\n| **[gpgpu_gles.h](gpgpu_gles.h)**                                      | public domain        |   443 | \u003cdetails\u003e\u003csummary\u003eGLES 3.0 frameworks\u003c/summary\u003e[Matmul example](gpgpu_gles_matmul.c),[LLM example](https://github.com/yui0/catseye/tree/master/llm)\u003c/details\u003e\n| **[gpgpu_gles3.h](gpgpu_gles3.h)**                                    | public domain        |   264 | GLES 3.0 frameworks with TransformFeedback\n| **[gpgpu_gl4.h](gpgpu_gl4.h)**                                        | public domain        |   170 | [OpenGL compute shader frameworks](https://github.com/yui0/waifu2x-glsl)\n| **[ocl.h](ocl.h)**                                                    | public domain        |   190 | [OpenCL frameworks](https://github.com/yui0/waifu2x-ocl)\n\n## 🔧 utils\n| library                                                               | license              |  LoC  | description\n| --------------------------------------------------------------------- |:--------------------:|:-----:| -----------\n| **[alloc.h](alloc.h)**                                                | MIT                  |   116 | Safety alloc\n| **[clock.h](clock.h)**                                                | MIT                  |    31 | \u003cdetails\u003e\u003csummary\u003eclock function for linux\u003c/summary\u003e[ref.](https://github.com/yui0/waifu2x-glsl)\u003c/details\u003e\n| **[ht.h](ht.h)**                                                      | MIT                  |   330 | hash table\n| **[kbhit.h](kbhit.h)**                                                | MIT                  |    64 | \u003cdetails\u003e\u003csummary\u003ekbhit function for linux\u003c/summary\u003e[ref.](https://github.com/yui0/aplay-)\u003c/details\u003e\n| **[ls.h](ls.h)**                                                      | MIT                  |   155 | \u003cdetails\u003e\u003csummary\u003emaking list of files and directories\u003c/summary\u003e[ref.](https://github.com/yui0/aplay-)\u003c/details\u003e\n\n## 🖥 console\n| library                                                               | license              |  LoC  | description\n| --------------------------------------------------------------------- |:--------------------:|:-----:| -----------\n| **[aimage.h](aimage.h)**                                              | public domain        |   321 | Image Viewer for Console\n| **[mcurses.h](mcurses.h)**                                            | GPL-2                |  1481 | \u003cdetails\u003e\u003csummary\u003e\"[mcurses](https://github.com/ChrisMicro/mcurses)\" is a minimized version of programming library ncurses\u003c/summary\u003e[ref.](https://github.com/yui0/aplay-)\u003c/details\u003e\n| **[termbox.h](termbox.h)**                                            | MIT                  |  1719 | \u003cdetails\u003e\u003csummary\u003eLibrary for writing text-based user interfaces\u003c/summary\u003e[ref.](https://github.com/nsf/termbox)\u003c/details\u003e\n| **[qrcodegen.h](qrcodegen.h)**                                        | MIT                  |  1413 | QR Code generator library\n\n## 📝 parser\n| library                                                               | license              |  LoC  | description\n| --------------------------------------------------------------------- |:--------------------:|:-----:| -----------\n| **[csv.h](csv.h)**                                                    | public domain        |    77 | CSV file parser\n| **[ini.h](ini.h)**                                                    | BSD                  |   250 | ini file parser\n| **[parg.h](parg.h)**                                                  | CC0                  |   551 | \u003cdetails\u003e\u003csummary\u003eParser for argv that works similarly to getopt\u003c/summary\u003e[ref.](https://github.com/jibsen/parg)\u003c/details\u003e\n| **[parson.h](parson.h)**                                              | MIT                  |  2239 | \u003cdetails\u003e\u003csummary\u003eLightweight JSON library\u003c/summary\u003e[ref.](https://github.com/kgabis/parson)\u003c/details\u003e\n| **[utf8.h](utf8.h)**                                                  | GPL2                 |  1123 | \u003cdetails\u003e\u003csummary\u003eUTF8 decoder and encoder library\u003c/summary\u003e[ref.](http://www.ne.jp/asahi/maoyam/hp/UTF-8)\u003c/details\u003e\n\n## 📖 References\n- [A single-header ANSI C gui library](https://github.com/vurtun/nuklear)\n- [Sean Barretts single header libraries](https://github.com/nothings/single_file_libs)\n- [Single header libraries for C/C++](https://github.com/vurtun/mmx)\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- [GPGPU made simple.](https://github.com/turbo/js)\n- http://apoorvaj.io/\n","funding_links":[],"categories":["Libraries"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyui0%2Fslibs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyui0%2Fslibs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyui0%2Fslibs/lists"}