{"id":20305782,"url":"https://github.com/bitpay/foxtrot","last_synced_at":"2026-03-12T08:36:42.517Z","repository":{"id":22486104,"uuid":"25825335","full_name":"bitpay/foxtrot","owner":"bitpay","description":"Simple and secure routing based on Bitcoin cryptography.","archived":false,"fork":false,"pushed_at":"2023-03-08T09:04:35.000Z","size":255,"stargazers_count":115,"open_issues_count":6,"forks_count":39,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-12-08T21:45:48.512Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitpay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2014-10-27T15:22:29.000Z","updated_at":"2023-08-14T05:12:01.000Z","dependencies_parsed_at":"2023-10-20T18:27:18.819Z","dependency_job_id":null,"html_url":"https://github.com/bitpay/foxtrot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Ffoxtrot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Ffoxtrot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Ffoxtrot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Ffoxtrot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitpay","download_url":"https://codeload.github.com/bitpay/foxtrot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230527875,"owners_count":18240052,"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-14T17:09:52.221Z","updated_at":"2026-03-12T08:36:37.477Z","avatar_url":"https://github.com/bitpay.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Foxtrot\n[![NPM Package](https://img.shields.io/npm/v/foxtrot.svg?style=flat-square)](https://www.npmjs.org/package/foxtrot)\n[![Build Status](https://img.shields.io/travis/bitpay/foxtrot.svg?branch=master\u0026style=flat-square)](https://travis-ci.org/bitpay/foxtrot)\n[![Coverage Status](https://img.shields.io/coveralls/bitpay/foxtrot.svg?style=flat-square)](https://coveralls.io/r/bitpay/foxtrot)\n\nA simple and secure routing network based on bitcoin cryptography.\nFoxtrot enables easy p2p communications and has built-in mechanisms\nfor peer discovery, creation of services addressable by public keys,\nand establishing encrypted connections.\n\n\n## Installation\n`npm install foxtrot`\n\n## Example\n\nThe easiest way to connect to the foxtrot network and send some\ndata is to spawn a server:\n\n```\nvar foxtrot = require('foxtrot');\n\nvar server = foxtrot.createServer();\nconsole.log('server listening on '+server.key.public.toString('hex'));\nserver.on('connect', function(socket) {\n  socket.write('hello from server!\\n');\n  socket.on('data', function(data) {\n    socket.write(data);\n  }); \n});\n```\n\nand have a client connect to it:\n```\nvar foxtrot = require('foxtrot');\n\nvar server = '024a4bf8759a8a28714d099e044dea99b20dd93bc86168568a0a97cd9d205e844a'; // server foxtrot address\nvar client = foxtrot.connect({\n  address: new Buffer(server, 'hex')\n}, function() {\n  console.log('connected to server!');\n  process.stdin.pipe(client);\n  client.pipe(process.stdout);\n});\n```\n\nFor more advanced examples and configuration, see the examples folder\n\n#License\n\n**Code released under [the MIT license](https://github.com/bitpay/foxtrot/blob/master/LICENSE).**\n\nCopyright 2014 BitPay, Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitpay%2Ffoxtrot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitpay%2Ffoxtrot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitpay%2Ffoxtrot/lists"}