{"id":22202221,"url":"https://github.com/rumkin/swarm-sites","last_synced_at":"2025-03-25T01:42:13.451Z","repository":{"id":152260214,"uuid":"121516320","full_name":"rumkin/swarm-sites","owner":"rumkin","description":"🐝🐝 Github Pages for Swarm","archived":false,"fork":false,"pushed_at":"2018-05-11T00:45:44.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T03:26:18.300Z","etag":null,"topics":["ethereum-network","http","javascript","server","swarm"],"latest_commit_sha":null,"homepage":"http://swarmsites.online","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/rumkin.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":"2018-02-14T13:53:51.000Z","updated_at":"2018-05-11T00:45:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"b9d7a75a-af10-4238-b8a8-89f07ed10556","html_url":"https://github.com/rumkin/swarm-sites","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/rumkin%2Fswarm-sites","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fswarm-sites/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fswarm-sites/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fswarm-sites/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rumkin","download_url":"https://codeload.github.com/rumkin/swarm-sites/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245383118,"owners_count":20606265,"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":["ethereum-network","http","javascript","server","swarm"],"created_at":"2024-12-02T16:12:48.485Z","updated_at":"2025-03-25T01:42:13.445Z","avatar_url":"https://github.com/rumkin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swarm Sites\n\nSwarm sites is an http server for serving swarm websites and SPAs requested via\nregular DNS by non `.eth` domains. It works like Github Pages but for Swarm.\n\n[![Automated by Buddy](https://assets.buddy.works/automated-dark.svg)](https://buddy.works)\n\n**NOTE!** SwarmSite is in beta.\n\n## Usage\n\nTo link your regular domain to Swarm you need to add two DNS Records into DNS\nconfiguration file or management panel:\n\n1. Add `A` record to map requests to SwarmSites IP:\n    ```text\n    @ 3600 IN A 159.65.169.224\n    ```\n2. Add `TXT` record to match hostname with BZZ resource:\n    ```text\n    @ IN TXT swarm=2018:pre bzz=a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a type=website\n    ```\n\nRecord description:\n\n* `swarm=2018:pre` – record version `2018:pre`.\n* `bzz=...` - swarm BZZ address\n* `type=website` - _optional_ specifies resource type. Currently `website` is\ndefault and the only supported value.\n\n## Install\n\nInstall via git:\n\n```bash\ngit clone https://github.com/rumkin/swarm-sites\ncd swarm-sites\nnpm i .\nnode cli.js start\n```\n\nTo run swarm sites with nginx and systemd there is two files with example configuration:\n\n```text\nvar/swarm-sites.nginx\nvar/swarm-sites.systemd\n```\n\n## TODO\n\n* [ ] HTTPs support:\n    * [ ] Let's Encrypt certificates generation.\n    * [ ] Auto renewal.\n* [ ] Routing for sites to better support of SPA.\n* [ ] Better error pages.\n* [ ] Write tests.\n* [ ] Add Swarm API mockups for test purposes.\n* [x] Custom sites types:\n    * [x] Website.\n    * [x] SPA.\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumkin%2Fswarm-sites","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frumkin%2Fswarm-sites","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumkin%2Fswarm-sites/lists"}