{"id":38065999,"url":"https://github.com/sugarme/zmongo","last_synced_at":"2026-01-16T20:34:51.766Z","repository":{"id":226856721,"uuid":"768046615","full_name":"sugarme/zmongo","owner":"sugarme","description":"mongodb client ziglang","archived":false,"fork":false,"pushed_at":"2024-03-21T11:23:58.000Z","size":9511,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-03-21T12:37:28.315Z","etag":null,"topics":["mongoc","mongodb","mongodb-binding","mongodb-client","mongodb-driver","zig","zig-binding","ziglang"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sugarme.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}},"created_at":"2024-03-06T11:21:27.000Z","updated_at":"2024-03-10T05:56:56.000Z","dependencies_parsed_at":"2024-03-21T12:35:14.985Z","dependency_job_id":null,"html_url":"https://github.com/sugarme/zmongo","commit_stats":null,"previous_names":["sugarme/zmongo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sugarme/zmongo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sugarme%2Fzmongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sugarme%2Fzmongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sugarme%2Fzmongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sugarme%2Fzmongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sugarme","download_url":"https://codeload.github.com/sugarme/zmongo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sugarme%2Fzmongo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28482267,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":["mongoc","mongodb","mongodb-binding","mongodb-client","mongodb-driver","zig","zig-binding","ziglang"],"created_at":"2026-01-16T20:34:51.682Z","updated_at":"2026-01-16T20:34:51.755Z","avatar_url":"https://github.com/sugarme.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zmongo\n\n## What is it\n\n`zmongo` is a wrapper to [official mongo-c-driver](https://github.com/mongodb/mongo-c-driver.git) - client [MongoDB](https://www.mongodb.com/) library.\n\nIt is meant to be a temporary solution to use `mongodb` database for ziglang until we have a native ziglang driver for mongodb.\n\n- Current `mongo-c-driver` version **v1.26.1**.\n- Current zig version **0.12.0-dev.2711+f995c1b08**.\n- Tested only on Linux Debian 11/12. Make sure the following packages available\n    + libssl-dev\n    + openssl\n    + libsasl2-dev\n    + zstd-dev\n    + libsnappy-dev\n\n**NOTE**: package `libresolv` somehow cannot pickup when doing system library linking, [similar issue here](https://github.com/msantos/sods/issues/1#issuecomment-8002270) so its static mode is packed in `zmongo` (copied from /usr/lib/x86_64-linux-gnu/libresolv.a from Debian 11 system library).\n\n**This is work in progress**\n\n## How to use\n\nSee `example` for detail how to setup.\n\n`example` can be run as following:\n\n- Run mongodb server in docker: `bash ./libmongoc/mongodb-server.sh`.\n\n- Run the example in `example` folder: \n\n```bash\ncd example\nzig build run\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsugarme%2Fzmongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsugarme%2Fzmongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsugarme%2Fzmongo/lists"}