{"id":15451798,"url":"https://github.com/willscott/connecttor","last_synced_at":"2026-02-12T14:09:43.068Z","repository":{"id":57205873,"uuid":"49333931","full_name":"willscott/connecttor","owner":"willscott","description":"Node Tor Dependency","archived":false,"fork":false,"pushed_at":"2016-01-17T23:55:41.000Z","size":15,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-18T15:39:44.518Z","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/willscott.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}},"created_at":"2016-01-09T17:26:32.000Z","updated_at":"2017-10-09T14:06:19.000Z","dependencies_parsed_at":"2022-09-18T01:22:18.436Z","dependency_job_id":null,"html_url":"https://github.com/willscott/connecttor","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/willscott/connecttor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willscott%2Fconnecttor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willscott%2Fconnecttor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willscott%2Fconnecttor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willscott%2Fconnecttor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willscott","download_url":"https://codeload.github.com/willscott/connecttor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willscott%2Fconnecttor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29367971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-01T21:39:33.084Z","updated_at":"2026-02-12T14:09:43.041Z","avatar_url":"https://github.com/willscott.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Connect-tor\n===========\n\nConnect to a local tor binary on the system. Do path discovery and provide\na common interface to remove platform-specific clumsiness when dealing with the\nexternal process.\n\nUsage\n------\n\n```javascript\nvar connecttor = require('connecttor');\nconnecttor.connect(function (socket) {\n  // returns a net.socket connected to Tor's control port.\n});\n```\n\nDesign\n------------\nConnecttor uses a platform-dependent mechanism to connect with tor. Sorry.\n\nBy default, and as part of an `npm install`, Connecttor will download a platform\ndependent copy of the Tor Browser Bundle, and will use the tor packaged in that\ndistribution as a daemon to connect with.\n\nIf you wish to use connecttor with an external instance of tor, you can either\ndo this by passing a `tor` option or setting the `tor` environmental variable\nto point to where the tor binary is on your system.\n\nExample:\n```javascript\nrequire('connecttor').connect({tor: \"/usr/bin/tor\"}, function (socket) {...});\n```\n\nIf you wish to have connecttor interact with the control port of an already\nrunning tor distribution, you can specify the `useSystem` option.\n\nExample:\n```javascript\nrequire('connecttor').connect({useSystem: true}, function (socket) {...});\n```\n\nSeveral Caveats apply to working with a system-tor installation to get the\nadditional security properties it provides. They are documented below.\n\nSystem Tor Configuration\n------------------------\n\nThis is tested on a current version of ubuntu, using the tor project's debian\nrepository. Note that the system repositories as of 2016 use a 0.2.6 version of\nTor, which can't easily do things like create hidden services from the control\nport. For configuration, you will need to add the\n[tor repository](https://www.torproject.org/docs/debian.html.en), and\nupdate tor. In addition, the user running node will need to be\nin the `debian-tor` unix group in order to connect to the control socket.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillscott%2Fconnecttor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillscott%2Fconnecttor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillscott%2Fconnecttor/lists"}