{"id":18261865,"url":"https://github.com/stripedpajamas/sbotz","last_synced_at":"2025-04-09T00:45:09.485Z","repository":{"id":89784492,"uuid":"322956556","full_name":"stripedpajamas/sbotz","owner":"stripedpajamas","description":"a simple (functional) scuttlebutt client in zig","archived":false,"fork":false,"pushed_at":"2021-01-09T00:31:12.000Z","size":83,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-01T19:06:52.779Z","etag":null,"topics":["scuttlebutt","secure-scuttlebutt","ssb","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stripedpajamas.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":"2020-12-19T23:25:42.000Z","updated_at":"2022-02-04T08:11:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"4153fc21-758a-496f-92fe-520942086bda","html_url":"https://github.com/stripedpajamas/sbotz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripedpajamas%2Fsbotz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripedpajamas%2Fsbotz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripedpajamas%2Fsbotz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripedpajamas%2Fsbotz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stripedpajamas","download_url":"https://codeload.github.com/stripedpajamas/sbotz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247953103,"owners_count":21023945,"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","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":["scuttlebutt","secure-scuttlebutt","ssb","ziglang"],"created_at":"2024-11-05T11:05:53.221Z","updated_at":"2025-04-09T00:45:09.451Z","avatar_url":"https://github.com/stripedpajamas.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sbotz\n\na simplistic secure-scuttlebot client written in Zig\n\n## use\n1. install Zig (at time of writing, only works with master version of Zig)\n1. clone repo `git clone https://github.com/stripedpajamas/sbotz.git \u0026\u0026 cd sbotz`\n1. run the example: `zig run src/example.zig`. the example tries to connect to local ssb-server and calls `createLogStream`\n\nthe `src/example.zig` file shows how the client library could be used.\n\ni don't really know how `build.zig` files work yet so there isn't one.\n\n## what is it\ni mostly just tried to implement what [the protocol guide](https://ssbc.github.io/scuttlebutt-protocol-guide) says.\n\n- `shs.zig` implements the handshake / session key generation logic\n- `box.zig` uses the SHS module to run the handshake and then wraps some reader/writer (e.g. socket)'s read/write methods with boxed versions\n- `rpc.zig` wraps some reader/writer with the RPC stuff\n- `client.zig` takes in a reader/writer (socket), uses box to orchestrate the handshake, and exposes `call` to make ssb calls to the other end (e.g. `whoami`, `createHistoryStream`, etc.)\n- `keys.zig` a small helper library to load up local keys from `~/.ssb/secret`\n\n## license\nGPLv3\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstripedpajamas%2Fsbotz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstripedpajamas%2Fsbotz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstripedpajamas%2Fsbotz/lists"}