{"id":16985784,"url":"https://github.com/r4gus/snorlax","last_synced_at":"2026-04-29T09:31:56.892Z","repository":{"id":188976147,"uuid":"679003139","full_name":"r4gus/snorlax","owner":"r4gus","description":"CouchDB client","archived":false,"fork":false,"pushed_at":"2023-08-22T18:28:36.000Z","size":23,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-08T09:05:38.053Z","etag":null,"topics":["couchdb","couchdb-client","database","zig","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/r4gus.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":"2023-08-15T22:18:50.000Z","updated_at":"2023-08-17T19:39:10.000Z","dependencies_parsed_at":"2025-01-26T19:32:31.736Z","dependency_job_id":"45da6765-92ba-467d-a959-855bb5d82e07","html_url":"https://github.com/r4gus/snorlax","commit_stats":null,"previous_names":["r4gus/snorlax"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/r4gus/snorlax","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r4gus%2Fsnorlax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r4gus%2Fsnorlax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r4gus%2Fsnorlax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r4gus%2Fsnorlax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r4gus","download_url":"https://codeload.github.com/r4gus/snorlax/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r4gus%2Fsnorlax/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32419832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"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":["couchdb","couchdb-client","database","zig","ziglang"],"created_at":"2024-10-14T02:44:11.264Z","updated_at":"2026-04-29T09:31:56.878Z","avatar_url":"https://github.com/r4gus.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snorlax\n\nA __work in progress__ [CouchDB](https://couchdb.apache.org/) client library.\n\n## Getting started\n\n1. Install [Zig](https://ziglang.org/download/) `0.11.0` on your system.\n2. Follow the CouchDB [installation instructions](https://docs.couchdb.org/en/stable/install/index.html)\nto setup CouchDB on your system.\n3. Then check out one of the [examples](examples). After running `zig build` you can find the executables in `zig-out/bin`.\n\n\u003e Note: You have to adjust the examples (e.g. username and password)!\n\n### Adding Snorlax to your application\n\nFirst add this library as dependency to your `build.zig.zon` file:\n```zon\n.{\n    .name = \"your-project\",\n    .version = 0.0.1,\n\n    .dependencies = .{\n        .snorlax = .{\n            .url = \"https://github.com/r4gus/snorlax/archive/master.tar.gz\",\n            .hash = \"\u003cyour hash\u003e\",\n        }\n    },\n}\n```\n\n\u003e The easiest way to obtain the hash is to leave it blank or enter a wrong hash and then copy the correct\n\u003e one from the error message.\n\nThen within your `build.zig`:\n```zig\n// Fetch the dependency...\nconst snorlax_dep = b.dependency(\"snorlax\", .{\n    .target = target,\n    .optimize = optimize,\n});\n// ...and obtain the module\nconst snorlax_module = snorlax_dep.module(\"snorlax\");\n\n...\n\n// Add this module to your executable\nexe.addModule(\"snorlax\", snorlax_module);\n```\n\nAfter you've added the `snorlax` module to your application, you can import it using\n`const snorlax = @import(\"snorlax\");`.\n\n## Overfiew\n\nCurrently the library supports the following operations:\n\n* Create a new database by using the `createDatabase` function\n* Delete a database (and all its documents) by using the `deleteDatabase` function\n* Create a new document by using the `createDocument` function\n* Find a document based on _selectors_ by using the `find` function\n* Read a specific document by using the `read` function\n* Update a existing document by using the `update` function\n* Delete a existing document by using the `delete` function\n\nCheck out the [examples](examples) folder for an overfiew on how to use the library.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr4gus%2Fsnorlax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr4gus%2Fsnorlax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr4gus%2Fsnorlax/lists"}