{"id":15601268,"url":"https://github.com/hacknlove/autarchy-server","last_synced_at":"2025-09-10T00:22:31.725Z","repository":{"id":77995919,"uuid":"395541488","full_name":"hacknlove/autarchy-server","owner":"hacknlove","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-20T14:11:28.000Z","size":111,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-08T20:50:58.988Z","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/hacknlove.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":"2021-08-13T06:21:03.000Z","updated_at":"2024-04-25T02:41:02.000Z","dependencies_parsed_at":"2023-03-12T03:10:00.380Z","dependency_job_id":null,"html_url":"https://github.com/hacknlove/autarchy-server","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"7df2504f11f7425ffe394f481f37bd7de410229d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacknlove%2Fautarchy-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacknlove%2Fautarchy-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacknlove%2Fautarchy-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacknlove%2Fautarchy-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hacknlove","download_url":"https://codeload.github.com/hacknlove/autarchy-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240810776,"owners_count":19861304,"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-10-03T02:20:32.863Z","updated_at":"2025-02-26T07:29:24.727Z","avatar_url":"https://github.com/hacknlove.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# autarchy-server\n\n## Server behaviour\n\nIt listen at the port `CHANNEL` and at the port `PORT`\n\nFirst connection to the port `CHANNEL` is consider main connection with the client\n\nWhen any connection `P` arrives at `PORT` the server sends an `iv` to the client and pushes `P` in a fifo\n\nThe client connects again (`C`) the server pulls the first item (`P`) of the FIFO and creates a encrypted pipe `P\u003c--\u003eC`\n\nThe server encrypts the data before sending it to the client with some `PASSWORD` and a `iv` equals to a sha256 hash of `SECRET` + `iv`\n\nThe server decrypts the data before sending it to the origen of the request with some `PASSWORD` and a `iv` equals to a sha256 hash of `iv` + `SECRET`\n\n## Client behaviour\n\nThe client is responsible for reading the request, sending it to the specific service and returning the response through the same socket.\n\n## Server configuration\n\n```javascript\n// ./config.js\nmodule.exports = {\n  clients: {\n    '00000000': {\n      domains: [\n        'foo.autarchy.dev',\n        'bar.autarchy.dev',\n      ],\n      secret: 'SECRET'\n    },\n    ...\n  }\n}\n```\n\n* clientId is any 8 bytes length string\n* domains is an array with the domains that can be redirected to the user\n* secret is used for hashing and encryption\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacknlove%2Fautarchy-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhacknlove%2Fautarchy-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacknlove%2Fautarchy-server/lists"}