{"id":20597111,"url":"https://github.com/tradle/sendy-otr","last_synced_at":"2026-04-20T11:03:42.768Z","repository":{"id":66294791,"uuid":"53332783","full_name":"tradle/sendy-otr","owner":"tradle","description":null,"archived":false,"fork":false,"pushed_at":"2016-07-02T01:16:18.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-14T13:16:01.436Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/tradle.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":"2016-03-07T14:44:15.000Z","updated_at":"2016-03-24T19:27:31.000Z","dependencies_parsed_at":"2023-02-25T22:46:02.063Z","dependency_job_id":null,"html_url":"https://github.com/tradle/sendy-otr","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/tradle%2Fsendy-otr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Fsendy-otr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Fsendy-otr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Fsendy-otr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tradle","download_url":"https://codeload.github.com/tradle/sendy-otr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242231441,"owners_count":20093636,"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":[],"created_at":"2024-11-16T08:20:21.052Z","updated_at":"2026-04-20T11:03:42.725Z","avatar_url":"https://github.com/tradle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# sendy-otr\n\nAn OTR layer for [sendy](https://github.com/tradle/sendy)\n\n# Example\n\n```js\nvar OTRClient = require('sendy-otr') // OTR layer\nvar MessageClient = require('sendy') // enables message reassembly from UTP packets\nvar Connection = Sendy.Connection    // symmetric UTP protocol\nvar networkClient = ...              // must implement `send` method and 'receive' event\n\nvar client = new OTRClient({\n  key: new DSA(),\n  theirFingerprint: 'their otr fingerprint',\n  client: new MessageClient({\n    client: new Connection({\n      mtu: 1500\n    })\n  })\n})\n\nclient.on('send', function (msg) {\n  // use unreliable network client\n  // and guarantee delivery\n  networkClient.send(msg)\n})\n\nnetworkClient.on('receive', function (msg) {\n  // get a message from the network\n  // process it through pipeline\n  client.receive(msg)\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradle%2Fsendy-otr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftradle%2Fsendy-otr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradle%2Fsendy-otr/lists"}