{"id":17782735,"url":"https://github.com/ntd/zettings","last_synced_at":"2026-02-11T19:31:22.847Z","repository":{"id":259394382,"uuid":"873694659","full_name":"ntd/zettings","owner":"ntd","description":"A simple peristence layer for open62541 based OPC/UA servers in Zig","archived":false,"fork":false,"pushed_at":"2024-10-24T15:00:26.000Z","size":45,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-07T09:36:29.092Z","etag":null,"topics":["linux","mmap","persistence","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ntd.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-16T15:04:35.000Z","updated_at":"2024-12-06T19:22:56.000Z","dependencies_parsed_at":"2024-10-25T03:44:30.171Z","dependency_job_id":null,"html_url":"https://github.com/ntd/zettings","commit_stats":null,"previous_names":["ntd/zettings"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ntd/zettings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntd%2Fzettings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntd%2Fzettings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntd%2Fzettings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntd%2Fzettings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ntd","download_url":"https://codeload.github.com/ntd/zettings/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntd%2Fzettings/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29342086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T18:58:20.535Z","status":"ssl_error","status_checked_at":"2026-02-11T18:56:44.814Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["linux","mmap","persistence","zig"],"created_at":"2024-10-27T06:03:50.648Z","updated_at":"2026-02-11T19:31:22.830Z","avatar_url":"https://github.com/ntd.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"*Zettings* is the simplest persistence layer I can think of. Its name is\na portmanteau of [Zig](https://github.com/ziglang/zig), the language I\nused to implement it, and **settings**.\n\nAt its core, it maps (via POSIX `mmap`) a struct with fixed-length\nmembers to a fixed-length file. It is intended to be used as the base\nfor a basic persistence layer for OPC/UA servers, i.e. a port of the\n[XSettings project](https://github.com/ntd/xsettings) from the C world.\n\nThe demo program shows how this is supposed to work. It handles a set of\nsettings (boolean, numeric and string types) and allow to perform some\nbasic operations from command line.\n\n```sh\n# Show usage info\nzig build run -- -h\n\n# Create (-r) the schema file (demo.zettings) and dump (-d) its default values\nzig build run -- -r -d demo.zettings\n\n# Toggle all booleans (-t) and dump the new values\nzig build run -- -t -d demo.zettings\n\n# Now increment all numeric settings (-i) and dump the new values\nzig build run -- -i -d demo.zettings\n\n# Further dumps show that the last values are retained\nzig build run -- -d demo.zettings\n\n# Reset (-r) to the default values\nzig build run -- -r -d demo.zettings\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntd%2Fzettings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntd%2Fzettings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntd%2Fzettings/lists"}