[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6135":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":19,"fork":20,"defaultBranch":21,"hasWiki":19,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":16,"starSnapshotCount":16,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},6135,"nuklear","vurtun\u002Fnuklear","vurtun","A single-header ANSI C gui library","",null,"C",13996,1104,1,206,0,8,66.93,true,false,"master",[23,24,25,26,5,27],"c","c89","gui","imgui","single-header-lib","2026-06-12 04:00:27","# Nuklear\n\n## ALL DEVELOPMENT MOVED ELSEWHERE\n\nDear visitor,\n\nthis repository, issue tracker, etc. is abandoned in favor of https:\u002F\u002Fgithub.com\u002FImmediate-Mode-UI\u002FNuklear . Any activity in this issue tracker, any pull requests, etc. will be ignored.\n\nLooking forward to hearing from you in https:\u002F\u002Fgithub.com\u002FImmediate-Mode-UI\u002FNuklear\n\n*Nuklear community*\n\n[![Build Status](https:\u002F\u002Ftravis-ci.org\u002Fvurtun\u002Fnuklear.svg)](https:\u002F\u002Ftravis-ci.org\u002Fvurtun\u002Fnuklear)\n\nThis is a minimal state immediate mode graphical user interface toolkit\nwritten in ANSI C and licensed under public domain. It was designed as a simple\nembeddable user interface for application and does not have any dependencies,\na default render backend or OS window and input handling but instead provides a very modular\nlibrary approach by using simple input state for input and draw\ncommands describing primitive shapes as output. So instead of providing a\nlayered library that tries to abstract over a number of platform and\nrender backends it only focuses on the actual UI.\n\n## Features\n\n- Immediate mode graphical user interface toolkit\n- Single header library\n- Written in C89 (ANSI C)\n- Small codebase (~18kLOC)\n- Focus on portability, efficiency and simplicity\n- No dependencies (not even the standard library if not wanted)\n- Fully skinnable and customizable\n- Low memory footprint with total memory control if needed or wanted\n- UTF-8 support\n- No global or hidden state\n- Customizable library modules (you can compile and use only what you need)\n- Optional font baker and vertex buffer output\n- [Documentation](https:\u002F\u002Fcdn.statically.io\u002Fgh\u002Fvurtun\u002Fnuklear\u002Fmaster\u002Fdoc\u002Fnuklear.html)\n\n## Building\n\nThis library is self contained in one single header file and can be used either\nin header only mode or in implementation mode. The header only mode is used\nby default when included and allows including this header in other headers\nand does not contain the actual implementation.\n\nThe implementation mode requires to define  the preprocessor macro\n`NK_IMPLEMENTATION` in *one* .c\u002F.cpp file before `#include`ing this file, e.g.:\n```c\n#define NK_IMPLEMENTATION\n#include \"nuklear.h\"\n```\nIMPORTANT: Every time you include \"nuklear.h\" you have to define the same optional flags.\nThis is very important not doing it either leads to compiler errors or even worse stack corruptions.\n\n## Gallery\n\n![screenshot](https:\u002F\u002Fcloud.githubusercontent.com\u002Fassets\u002F8057201\u002F11761525\u002Fae06f0ca-a0c6-11e5-819d-5610b25f6ef4.gif)\n![screen](https:\u002F\u002Fcloud.githubusercontent.com\u002Fassets\u002F8057201\u002F13538240\u002Facd96876-e249-11e5-9547-5ac0b19667a0.png)\n![screen2](https:\u002F\u002Fcloud.githubusercontent.com\u002Fassets\u002F8057201\u002F13538243\u002Fb04acd4c-e249-11e5-8fd2-ad7744a5b446.png)\n![node](https:\u002F\u002Fcloud.githubusercontent.com\u002Fassets\u002F8057201\u002F9976995\u002Fe81ac04a-5ef7-11e5-872b-acd54fbeee03.gif)\n![skinning](https:\u002F\u002Fcloud.githubusercontent.com\u002Fassets\u002F8057201\u002F15991632\u002F76494854-30b8-11e6-9555-a69840d0d50b.png)\n![gamepad](https:\u002F\u002Fcloud.githubusercontent.com\u002Fassets\u002F8057201\u002F14902576\u002F339926a8-0d9c-11e6-9fee-a8b73af04473.png)\n\n## Example\n\n```c\n\u002F* init gui state *\u002F\nstruct nk_context ctx;\nnk_init_fixed(&ctx, calloc(1, MAX_MEMORY), MAX_MEMORY, &font);\n\nenum {EASY, HARD};\nstatic int op = EASY;\nstatic float value = 0.6f;\nstatic int i =  20;\n\nif (nk_begin(&ctx, \"Show\", nk_rect(50, 50, 220, 220),\n    NK_WINDOW_BORDER|NK_WINDOW_MOVABLE|NK_WINDOW_CLOSABLE)) {\n    \u002F* fixed widget pixel width *\u002F\n    nk_layout_row_static(&ctx, 30, 80, 1);\n    if (nk_button_label(&ctx, \"button\")) {\n        \u002F* event handling *\u002F\n    }\n\n    \u002F* fixed widget window ratio width *\u002F\n    nk_layout_row_dynamic(&ctx, 30, 2);\n    if (nk_option_label(&ctx, \"easy\", op == EASY)) op = EASY;\n    if (nk_option_label(&ctx, \"hard\", op == HARD)) op = HARD;\n\n    \u002F* custom widget pixel width *\u002F\n    nk_layout_row_begin(&ctx, NK_STATIC, 30, 2);\n    {\n        nk_layout_row_push(&ctx, 50);\n        nk_label(&ctx, \"Volume:\", NK_TEXT_LEFT);\n        nk_layout_row_push(&ctx, 110);\n        nk_slider_float(&ctx, 0, &value, 1.0f, 0.1f);\n    }\n    nk_layout_row_end(&ctx);\n}\nnk_end(&ctx);\n```\n![example](https:\u002F\u002Fcloud.githubusercontent.com\u002Fassets\u002F8057201\u002F10187981\u002F584ecd68-675c-11e5-897c-822ef534a876.png)\n\n## Bindings\nThere are a number of nuklear bindings for different languges created by other authors.\nI cannot atest for their quality since I am not necessarily proficient in either of these\nlanguages. Furthermore there are no guarantee that all bindings will always be kept up to date:\n\n- [Java](https:\u002F\u002Fgithub.com\u002Fglegris\u002Fnuklear4j) by Guillaume Legris\n- [D](https:\u002F\u002Fgithub.com\u002FTimu5\u002Fbindbc-nuklear) by Mateusz Muszyński\n- [Golang](https:\u002F\u002Fgithub.com\u002Fgolang-ui\u002Fnuklear) by golang-ui@github.com\n- [Rust](https:\u002F\u002Fgithub.com\u002Fsnuk182\u002Fnuklear-rust) by snuk182@github.com\n- [Chicken](https:\u002F\u002Fgithub.com\u002Fwasamasa\u002Fnuklear) by wasamasa@github.com\n- [Nim](https:\u002F\u002Fgithub.com\u002Fzacharycarter\u002Fnuklear-nim) by zacharycarter@github.com\n- Lua\n  - [LÖVE-Nuklear](https:\u002F\u002Fgithub.com\u002Fkeharriso\u002Flove-nuklear) by Kevin Harrison\n  - [MoonNuklear](https:\u002F\u002Fgithub.com\u002Fstetre\u002Fmoonnuklear) by Stefano Trettel\n- Python\n  - [pyNuklear](https:\u002F\u002Fgithub.com\u002Fbillsix\u002FpyNuklear) by William Emerison Six (ctypes-based wrapper)\n  - [pynk](https:\u002F\u002Fgithub.com\u002Fnathanrw\u002Fnuklear-cffi) by nathanrw@github.com (cffi binding)\n- [CSharp\u002F.NET](https:\u002F\u002Fgithub.com\u002Fcartman300\u002FNuklearDotNet) by cartman300@github.com\n\n## Credits\nDeveloped by Micha Mettke and every direct or indirect contributor to the GitHub.\n\n\nEmbeds `stb_texedit`, `stb_truetype` and `stb_rectpack` by Sean Barrett (public domain)\nEmbeds `ProggyClean.ttf` font by Tristan Grimmer (MIT license).\n\n\nBig thank you to Omar Cornut (ocornut@github) for his [imgui](https:\u002F\u002Fgithub.com\u002Focornut\u002Fimgui) library and\ngiving me the inspiration for this library, Casey Muratori for handmade hero\nand his original immediate mode graphical user interface idea and Sean\nBarrett for his amazing single header [libraries](https:\u002F\u002Fgithub.com\u002Fnothings\u002Fstb) which restored my faith\nin libraries and brought me to create some of my own. Finally Apoorva Joshi for his singe-header [file packer](http:\u002F\u002Fapoorvaj.io\u002Fsingle-header-packer.html).\n\n## License\n```\n------------------------------------------------------------------------------\nThis software is available under 2 licenses -- choose whichever you prefer.\n------------------------------------------------------------------------------\nALTERNATIVE A - MIT License\nCopyright (c) 2017 Micha Mettke\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and\u002For sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n------------------------------------------------------------------------------\nALTERNATIVE B - Public Domain (www.unlicense.org)\nThis is free and unencumbered software released into the public domain.\nAnyone is free to copy, modify, publish, use, compile, sell, or distribute this\nsoftware, either in source code form or as a compiled binary, for any purpose,\ncommercial or non-commercial, and by any means.\nIn jurisdictions that recognize copyright laws, the author or authors of this\nsoftware dedicate any and all copyright interest in the software to the public\ndomain. We make this dedication for the benefit of the public at large and to\nthe detriment of our heirs and successors. We intend this dedication to be an\novert act of relinquishment in perpetuity of all present and future rights to\nthis software under copyright law.\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\nACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-----------------------------------------------------------------------------\n```\n","Nuklear是一个用ANSI C编写的即时模式图形用户界面库。其核心功能包括单头文件集成、C89标准兼容、完全可定制和无依赖性设计，支持UTF-8编码，并且具有低内存占用的特点。该库专注于便携性、效率与简洁性，不包含默认的渲染后端或操作系统窗口及输入处理机制，而是通过简单的输入状态和描述基本形状的绘制命令来实现高度模块化。Nuklear适用于需要嵌入式GUI的应用场景，特别是那些对资源使用有严格限制或追求跨平台一致性的项目。",2,"2026-06-11 03:05:47","top_language"]