{"id":13741343,"url":"https://github.com/dundalek/notcurses-zig-example","last_synced_at":"2025-10-27T08:08:55.883Z","repository":{"id":43919082,"uuid":"356961762","full_name":"dundalek/notcurses-zig-example","owner":"dundalek","description":"Demo showing how to use Notcurses library for building terminal UIs with Zig","archived":false,"fork":false,"pushed_at":"2023-10-15T11:30:10.000Z","size":45,"stargazers_count":64,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-03T22:41:55.453Z","etag":null,"topics":["liz","notcurses","terminal","tui","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dundalek.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}},"created_at":"2021-04-11T19:34:51.000Z","updated_at":"2025-02-24T22:10:20.000Z","dependencies_parsed_at":"2024-10-28T11:27:12.277Z","dependency_job_id":"ccb5ae42-9bf4-4367-bb8f-bb98946a8a55","html_url":"https://github.com/dundalek/notcurses-zig-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dundalek/notcurses-zig-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dundalek%2Fnotcurses-zig-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dundalek%2Fnotcurses-zig-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dundalek%2Fnotcurses-zig-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dundalek%2Fnotcurses-zig-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dundalek","download_url":"https://codeload.github.com/dundalek/notcurses-zig-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dundalek%2Fnotcurses-zig-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281235248,"owners_count":26466163,"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-10-27T02:00:05.855Z","response_time":61,"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":["liz","notcurses","terminal","tui","zig"],"created_at":"2024-08-03T04:00:58.077Z","updated_at":"2025-10-27T08:08:55.830Z","avatar_url":"https://github.com/dundalek.png","language":"Zig","funding_links":[],"categories":["Libraries","Zig"],"sub_categories":[],"readme":"\n# Notcurses Zig example\n\n[Notcurses](https://notcurses.com/) is a moderm library for building terminal UIs with advanced graphics support.\n\nThis is a demo showing how to use it with [Zig](https://ziglang.org/) programming language.  \nThanks to Zig's seamless C interop the library can be used directly without wrapper bindings.\n\n![Notcurses Zig demo](https://user-images.githubusercontent.com/755611/114319180-d83ac400-9aff-11eb-8b50-3e9a388b91c7.png)\n\n### Dependencies\n- Install [Notcurses dependencies](https://github.com/dankamongmen/notcurses/blob/master/INSTALL.md)\n  - using [Nix](https://nixos.org/):  \n  `nix-shell`\n  - for Debian/Ubuntu:  \n  `sudo apt-get install build-essential cmake libncurses-dev libreadline-dev libunistring-dev libqrcodegen-dev zlib1g-dev`\n- [Install Zig](https://ziglang.org/download/) (version 0.11.0)\n- Get Notcurses to compile from sources (since distributions don't often package latest versions):\n```sh\ngit clone https://github.com/dankamongmen/notcurses.git deps/notcurses\ncd deps/notcurses\nmkdir build \u0026\u0026 cd build\ncmake -DUSE_MULTIMEDIA=none -DUSE_PANDOC=OFF ..\n# We just need `cmake` to generate some headers, no need to actually `make` since rest will be handled by Zig\n# In case of errors, try `git checkout v3.0.9` and re-run cmake as I tested it with this version.\n```\n\n### Build and run\n\nBuild and run the demo:\n```sh\nzig build run\n```\n\nOr build and run the binary separately:\n```sh\nzig build\n./zig-cache/run/demo\n```\n\n### Liz source\n\nThe source of this demo is actually written in [Liz](https://github.com/dundalek/liz), which is Zig dialect with [lispy syntax](https://en.m.wikipedia.org/wiki/S-expression) that transpiles down to Zig code. If you feel adventurous to explore land of parentheses you can  [download Liz](https://github.com/dundalek/liz/releases/latest) and compile sources with:\n\n```sh\nliz src/*.liz \u0026\u0026 zig build\n```\n\n### Related\n\nSee also the demo implemented in [Clojure](https://github.com/dundalek/notcurses-clojure-example).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdundalek%2Fnotcurses-zig-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdundalek%2Fnotcurses-zig-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdundalek%2Fnotcurses-zig-example/lists"}