{"id":47992917,"url":"https://github.com/softadastra/transport","last_synced_at":"2026-05-31T09:01:00.675Z","repository":{"id":328137754,"uuid":"1114333614","full_name":"softadastra/transport","owner":"softadastra","description":"Transport primitives for reliable Softadastra peer messaging and sync delivery.","archived":false,"fork":false,"pushed_at":"2026-05-30T20:48:35.000Z","size":176,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T22:19:37.790Z","etag":null,"topics":["backend","backend-api","tcp","tcp-backend","tcp-client","tcp-server","transport"],"latest_commit_sha":null,"homepage":"https://softadastra.com","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/softadastra.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-11T08:19:11.000Z","updated_at":"2026-05-30T20:48:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/softadastra/transport","commit_stats":null,"previous_names":["softadastra/registry","softadastra/transport"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/softadastra/transport","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softadastra%2Ftransport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softadastra%2Ftransport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softadastra%2Ftransport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softadastra%2Ftransport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softadastra","download_url":"https://codeload.github.com/softadastra/transport/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softadastra%2Ftransport/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33725060,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"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":["backend","backend-api","tcp","tcp-backend","tcp-client","tcp-server","transport"],"created_at":"2026-04-04T11:50:23.664Z","updated_at":"2026-05-31T09:01:00.663Z","avatar_url":"https://github.com/softadastra.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# softadastra/transport\n\n\u003e Transport primitives for moving Softadastra sync messages between peers.\n\n`softadastra/transport` provides the network delivery layer of the Softadastra C++ stack.\n\nSoftadastra builds reliability-first products for local-first, offline-first, and distributed applications. This module moves sync messages between peers while keeping networking separate from synchronization logic.\n\n## Purpose\n\n`softadastra/transport` exists to connect peers and deliver sync messages.\n\nIt is used by higher-level SDKs, product APIs, and distributed Softadastra infrastructure.\n\nThe core rule is simple:\n\n\u003e Transport moves bytes. Sync owns meaning.\n\nIt is designed to be:\n\n- Transport-focused\n- Payload-agnostic\n- Peer-aware\n- Observable\n- Backend-ready\n- Product-ready\n\n## What it provides\n\nThis module provides transport primitives such as:\n\n- Transport messages\n- Transport envelopes\n- Message framing\n- Message encoding and decoding\n- Peer identity\n- Peer registry\n- Client and server wrappers\n- Backend interface\n- TCP backend\n- Message dispatcher\n- Transport engine\n\n## What it does not do\n\n`softadastra/transport` does not contain:\n\n- Store logic\n- WAL persistence\n- Conflict resolution\n- Sync queueing policy\n- Peer discovery\n- Encryption\n- Distributed consensus\n- Product-specific logic\n\nIt delivers messages between peers. Higher-level modules decide what those messages mean.\n\n## Core model\n\n```txt\nSync envelope\n      |\nTransport message\n      |\nEncoded frame\n      |\nTransport backend\n      |\nRemote peer\n```\n\nThe transport layer keeps message delivery separate from sync, storage, and durability.\n\n## Where it fits\n\n```txt\nSoftadastra products\n        |\nSDKs and product APIs\n        |\nsoftadastra/transport\n        |\nsoftadastra/sync\n        |\nsoftadastra/store\n        |\nsoftadastra/wal\n        |\nsoftadastra/core\n```\n\n`softadastra/transport` depends on `softadastra/sync`, `softadastra/store`, and `softadastra/core`. It provides peer-to-peer message delivery for higher-level products and adapters.\n\n## Installation\n\n```bash\nvix add @softadastra/transport\n```\n\n## Usage\n\n```cpp\n#include \u003csoftadastra/transport/Transport.hpp\u003e\n```\n\nFor full sync integration:\n\n```cpp\n#include \u003csoftadastra/store/Store.hpp\u003e\n#include \u003csoftadastra/sync/Sync.hpp\u003e\n#include \u003csoftadastra/transport/Transport.hpp\u003e\n```\n\n## Example\n\n```cpp\n#include \u003csoftadastra/transport/Transport.hpp\u003e\n\n#include \u003ciostream\u003e\n\nint main()\n{\n    auto peer = softadastra::transport::core::PeerInfo{\n        \"node-b\",\n        \"127.0.0.1\",\n        7001\n    };\n\n    if (!peer.is_valid())\n    {\n        std::cout \u003c\u003c \"invalid peer\\n\";\n        return 1;\n    }\n\n    auto message = softadastra::transport::core::TransportMessage::ping(\"node-a\");\n    message.to_node_id = peer.node_id;\n    message.correlation_id = \"ping-1\";\n\n    auto frame = softadastra::transport::encoding::MessageEncoder::encode_frame(message);\n\n    if (frame.empty())\n    {\n        std::cout \u003c\u003c \"failed to encode message\\n\";\n        return 1;\n    }\n\n    std::cout \u003c\u003c \"Encoded transport frame: \" \u003c\u003c frame.size() \u003c\u003c \" bytes\\n\";\n    return 0;\n}\n```\n\n## Requirements\n\n- C++20\n- `softadastra/core`\n- `softadastra/store`\n- `softadastra/sync`\n- Platform socket APIs when TCP backends are enabled\n\n## Documentation\n\nFor the full documentation, visit [docs.softadastra.com](https://docs.softadastra.com).\n\n## License\n\nLicensed under the Apache License, Version 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftadastra%2Ftransport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftadastra%2Ftransport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftadastra%2Ftransport/lists"}