{"id":13566938,"url":"https://github.com/hazae41/cadenas","last_synced_at":"2025-09-06T02:48:00.858Z","repository":{"id":65281219,"uuid":"567401411","full_name":"hazae41/cadenas","owner":"hazae41","description":"Zero-copy TLS protocol for the web 🏎️ (JS + WebAssembly)","archived":false,"fork":false,"pushed_at":"2024-09-03T15:39:01.000Z","size":1685,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T13:35:19.680Z","etag":null,"topics":["browser","diffie-hellman","ed25519","encryption","esmodules","hashing","hmac","prf","protocol","rsa","security","sha1","sha256","tls","typescript","unit-testing","webassembly","zero-copy"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/hazae41.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["hazae41"],"patreon":"hazae41"}},"created_at":"2022-11-17T17:58:44.000Z","updated_at":"2024-09-03T15:42:28.000Z","dependencies_parsed_at":"2023-01-16T05:45:36.801Z","dependency_job_id":"6304b309-eedf-48c7-8868-9f1e3ed7f6b5","html_url":"https://github.com/hazae41/cadenas","commit_stats":null,"previous_names":[],"tags_count":89,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Fcadenas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Fcadenas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Fcadenas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Fcadenas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hazae41","download_url":"https://codeload.github.com/hazae41/cadenas/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249811447,"owners_count":21328804,"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":["browser","diffie-hellman","ed25519","encryption","esmodules","hashing","hmac","prf","protocol","rsa","security","sha1","sha256","tls","typescript","unit-testing","webassembly","zero-copy"],"created_at":"2024-08-01T13:02:19.991Z","updated_at":"2025-04-19T21:37:17.931Z","avatar_url":"https://github.com/hazae41.png","language":"TypeScript","funding_links":["https://github.com/sponsors/hazae41","https://patreon.com/hazae41"],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/4405263/219942873-3a630e9e-07c0-405a-99c5-e85f8f32bfc1.png\" /\u003e\n\u003c/div\u003e\n\n```bash\nnpm i @hazae41/cadenas\n```\n\n[**Node Package 📦**](https://www.npmjs.com/package/@hazae41/cadenas)\n\n## DO NOT USE\n\nThis is experimental software in early development\n\n1. It has security issues\n2. Things change quickly\n\n## Features\n\n### Current features\n- 100% TypeScript and ESM\n- Zero-copy reading and writing\n- Transport agnostic (HTTP, WebSocket)\n- WebStreams based backpressure\n- [Common CA Database](https://www.ccadb.org/) certificates\n- TLS 1.2\n\n### [Upcoming Features](https://github.com/sponsors/hazae41)\n- TLS 1.3\n- Zero RTT\n\n## Usage\n\n```typescript\nimport { TlsClientDuplex, Ciphers } from \"@hazae41/cadenas\"\n\nfunction encrypt(tcp: ReadableWritablePair\u003cOpaque, Writable\u003e): ReadableWritablePair\u003cOpaque, Writable\u003e {\n  const ciphers = [Ciphers.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384]\n  const tls = new TlsClientDuplex({ host_name: \"example.com\", ciphers })\n\n  tcp.readable.pipeTo(tls.inner.writable).catch(() =\u003e {})\n  tls.inner.readable.pipeTo(tcp.writable).catch(() =\u003e {})\n\n  return tls.outer\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazae41%2Fcadenas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhazae41%2Fcadenas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazae41%2Fcadenas/lists"}