{"id":13554526,"url":"https://github.com/pfrazee/dat-gateway","last_synced_at":"2025-09-13T18:32:43.864Z","repository":{"id":146206858,"uuid":"92568014","full_name":"pfrazee/dat-gateway","owner":"pfrazee","description":"Quick Dat to HTTP gateway","archived":false,"fork":false,"pushed_at":"2019-02-12T19:08:50.000Z","size":50,"stargazers_count":47,"open_issues_count":3,"forks_count":18,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-12-28T17:12:02.871Z","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/pfrazee.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":"2017-05-27T03:32:51.000Z","updated_at":"2023-06-10T06:39:43.000Z","dependencies_parsed_at":"2023-06-07T04:15:15.065Z","dependency_job_id":null,"html_url":"https://github.com/pfrazee/dat-gateway","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/pfrazee%2Fdat-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfrazee%2Fdat-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfrazee%2Fdat-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfrazee%2Fdat-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pfrazee","download_url":"https://codeload.github.com/pfrazee/dat-gateway/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232902856,"owners_count":18594353,"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-08-01T12:02:49.720Z","updated_at":"2025-01-07T15:57:29.523Z","avatar_url":"https://github.com/pfrazee.png","language":"JavaScript","readme":"# dat-gateway\n\n[![Stability](https://img.shields.io/badge/stability-experimental-orange.svg)](https://nodejs.org/api/documentation.html#documentation_stability_index)\n[![NPM Version](https://img.shields.io/npm/v/dat-gateway.svg)](https://www.npmjs.com/package/dat-gateway)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Build Status](https://travis-ci.org/garbados/dat-gateway.svg?branch=master)](https://travis-ci.org/garbados/dat-gateway)\n\n**No longer maintained. Check out the https://github.com/garbados/dat-gateway fork instead.**\n\nA configurable in-memory [Dat](https://datproject.org/)-to-HTTP gateway, so you can visit Dat archives from your browser.\n\nIf you want a browser that can visit Dat archives, check out [Beaker](https://beakerbrowser.com/).\n\n## Install\n\nTo get the `dat-gateway` command for running your own gateway, use [npm](https://www.npmjs.com/):\n\n```\nnpm i -g dat-gateway\n```\n\n## Usage\n\nYou can run `dat-gateway` to start a gateway server that listens on port 3000. You can also configure it! You can print usage information with `dat-gateway -h`:\n\n```\n$ dat-gateway -h\ndat-gateway\n\nOptions:\n  --version     Show version number                                    [boolean]\n  --config      Path to JSON config file\n  --port, -p    Port for the gateway to listen on.               [default: 3000]\n  --dir, -d     Directory to use as a cache.[string] [default: \"~/.dat-gateway\"]\n  --max, -m     Maximum number of archives to serve at a time.     [default: 20]\n  --maxAge, -M  Number of milliseconds before archives are removed from the\n                cache.                                         [default: 600000]\n  -h, --help    Show help                                              [boolean]\n```\n\nYou can visit Dat archives through the gateway using a route like this:\n\n```\nhttp://localhost:3000/{datKey}/{path...}\n```\n\nFor example:\n\n```\nhttp://localhost:3000/40a7f6b6147ae695bcbcff432f684c7bb5291ea339c28c1755896cdeb80bd2f9/assets/img/beaker-0.7.gif\n```\n\nThe gateway will even resolve URLs using [Dat-DNS](https://github.com/beakerbrowser/beaker/wiki/Authenticated-Dat-URLs-and-HTTPS-to-Dat-Discovery):\n\n```\nhttp://localhost:3000/garbados.hashbase.io/icons/favicon.ico\n```\n\n## Contributions\n\nAll contributions are welcome: bug reports, feature requests, \"why doesn't this work\" questions, patches for fixes and features, etc. For all of the above, [file an issue](https://github.com/garbados/dat-gateway/issues) or [submit a pull request](https://github.com/garbados/dat-gateway/pulls).\n\n## License\n\n[Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0)\n","funding_links":[],"categories":["JavaScript","others"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfrazee%2Fdat-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpfrazee%2Fdat-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfrazee%2Fdat-gateway/lists"}