{"id":13541015,"url":"https://github.com/dat-ecosystem-archive/dat-swarm-defaults","last_synced_at":"2025-04-02T08:30:56.558Z","repository":{"id":57106264,"uuid":"53006461","full_name":"dat-ecosystem-archive/dat-swarm-defaults","owner":"dat-ecosystem-archive","description":"Dat Defaults for Discovery Swarm [ DEPRECATED - More info on active projects and modules at https://dat-ecosystem.org/ ]","archived":true,"fork":false,"pushed_at":"2022-01-06T16:24:40.000Z","size":42,"stargazers_count":27,"open_issues_count":1,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-06-11T20:31:03.640Z","etag":null,"topics":["dat","dat-protocol","discovery-swarm","hyperdrive"],"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/dat-ecosystem-archive.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-03T00:14:11.000Z","updated_at":"2023-01-28T04:17:54.000Z","dependencies_parsed_at":"2022-08-21T00:31:13.349Z","dependency_job_id":null,"html_url":"https://github.com/dat-ecosystem-archive/dat-swarm-defaults","commit_stats":null,"previous_names":["datproject/dat-swarm-defaults","joehand/datland-swarm-defaults"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dat-ecosystem-archive%2Fdat-swarm-defaults","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dat-ecosystem-archive%2Fdat-swarm-defaults/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dat-ecosystem-archive%2Fdat-swarm-defaults/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dat-ecosystem-archive%2Fdat-swarm-defaults/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dat-ecosystem-archive","download_url":"https://codeload.github.com/dat-ecosystem-archive/dat-swarm-defaults/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246781919,"owners_count":20832934,"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":["dat","dat-protocol","discovery-swarm","hyperdrive"],"created_at":"2024-08-01T10:00:37.445Z","updated_at":"2025-04-02T08:30:56.275Z","avatar_url":"https://github.com/dat-ecosystem-archive.png","language":"JavaScript","funding_links":[],"categories":["Dat Core Modules"],"sub_categories":["Networking"],"readme":"[![deprecated](http://badges.github.io/stability-badges/dist/deprecated.svg)](https://dat-ecosystem.org/) \n\nMore info on active projects and modules at [dat-ecosystem.org](https://dat-ecosystem.org/) \u003cimg src=\"https://i.imgur.com/qZWlO1y.jpg\" width=\"30\" height=\"30\" /\u003e \n\n---\n\n# Dat Swarm Defaults\n\n[![npm][npm-image]][npm-url]\n[![travis][travis-image]][travis-url]\n[![standard][standard-image]][standard-url]\n\nUse Dat defaults for `dns` and `dht` servers in [hyperdiscovery](https://github.com/datproject/hyperdiscovery) or [discovery-swarm](https://github.com/mafintosh/discovery-swarm). The *dns* and *dht* servers are used to discover other peers.\n\n### Using Other Discovery Servers\n\nRun discovery servers with [dns-discovery](https://github.com/mafintosh/dns-discovery#cli) or a [bittorrent-dht](https://github.com/webtorrent/bittorrent-dht) server (such as https://github.com/hyperswarm/dht).\n\n## Usage\n\nCreate a config object and pass it to discovery swarm.\n\nAny options you specify will overwrite the defaults. See discovery swarm for options.\n\n```javascript\nvar Swarm = require('discovery-swarm')\nvar defaults = require('dat-swarm-defaults')\n\nvar config = defaults({\n  stream: function () {\n    return drive.createPeerStream()\n  }\n})\nvar swarm = Swarm(config)\n```\n\n## License\n\n[MIT](LICENSE.md)\n\n[npm-image]: https://img.shields.io/npm/v/dat-swarm-defaults.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/dat-swarm-defaults\n[travis-image]: https://img.shields.io/travis/datproject/dat-swarm-defaults.svg?style=flat-square\n[travis-url]: https://travis-ci.org/datproject/dat-swarm-defaults\n[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\n[standard-url]: http://npm.im/standard\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdat-ecosystem-archive%2Fdat-swarm-defaults","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdat-ecosystem-archive%2Fdat-swarm-defaults","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdat-ecosystem-archive%2Fdat-swarm-defaults/lists"}