{"id":13819752,"url":"https://github.com/cvan/fetch-manifest","last_synced_at":"2025-04-30T05:48:03.873Z","repository":{"id":28771779,"uuid":"32294197","full_name":"cvan/fetch-manifest","owner":"cvan","description":"A nifty tool for fetching W3C Web-App Manifests","archived":false,"fork":false,"pushed_at":"2017-12-22T12:54:07.000Z","size":462,"stargazers_count":4,"open_issues_count":26,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-26T12:52:32.412Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://fetchmanifest.org/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cvan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-16T01:29:43.000Z","updated_at":"2024-02-06T08:52:24.000Z","dependencies_parsed_at":"2022-09-15T04:23:04.804Z","dependency_job_id":null,"html_url":"https://github.com/cvan/fetch-manifest","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2Ffetch-manifest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2Ffetch-manifest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2Ffetch-manifest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2Ffetch-manifest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cvan","download_url":"https://codeload.github.com/cvan/fetch-manifest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251253133,"owners_count":21559784,"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-04T08:00:52.562Z","updated_at":"2025-04-30T05:48:03.846Z","avatar_url":"https://github.com/cvan.png","language":"JavaScript","funding_links":[],"categories":["Tools"],"sub_categories":[],"readme":"[\u003cimg src=\"https://raw.githubusercontent.com/cvan/fetch-manifest/master/public/img/logo.png\" alt=\"FetchManifest\" title=\"FetchManifest\" width=\"200\"\u003e](https://fetchmanifest.org/)\n\n# [FetchManifest](https://fetchmanifest.org/)\n\nA nifty tool for fetching metadata from [W3C Web-App Manifests](http://w3c.github.io/manifest/).\n\n**[Try it out now!](https://fetchmanifest.org/)**\n\n\n## Features\n\n* fetches [web-app manifests](http://w3c.github.io/manifest/)\n* replaces relative URLs in the manifest with absolute ones (i.e., `start_url`, `src` keys)\n* sets [CORS](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing) headers on manifest responses\n\n\n## Installation\n\nTo install from npm:\n\n```bash\nnpm install fetch-manifest\n```\n\nTo install the Node dependencies from the git repository:\n\n```bash\nnpm install\n```\n\nGenerate a local settings file:\n\n```bash\ncp settings_local.js{.dist,}\n```\n\n\n## Usage\n\nHere's a basic example of how to use this library in your project:\n\n```js\nvar manifestFetch = require('manifest-fetch');\n\nfetchManifest.fetchManifest('https://webvr.rocks/').then(function (data) {\n  console.log(JSON.stringify(data, null, 2));\n}).catch(function (err) {\n  console.error(JSON.stringify({error: err.message}, null, 2));\n});\n```\n\nTo create an HTTP server (using [__hapi__](http://hapijs.com/)) that serves the fetched manifests:\n\n```js\nvar manifestFetch = require('manifest-fetch');\n\nfetchManifest.createServer();\n```\n\nTo attach the controller routes to an existing __hapi__ server:\n\n```js\nvar Hapi = require('hapi');\nvar manifestFetch = require('manifest-fetch');\n\nvar myServer = new Hapi.server();\n\nfetchManifest.createServer({\n  server: myServer\n});\n```\n\n\n## Development\n\nTo clone this repo:\n\n```bash\ngit clone git@github.com:cvan/fetch-manifest.git\n```\n\nServe the site from the simple server:\n\n```bash\nnpm run dev\n```\n\nThen, launch the site from your favourite browser:\n\n[__http://localhost:3000/__](http://localhost:3000/)\n\nIf you wish to serve the site from a different port:\n\n```bash\nFETCH_MANIFEST_PORT=8000 npm run dev\n```\n\n\n## Deployment\n\nIn production, the server is run like so:\n\n```bash\nNODE_ENV=production node ./app.js\n```\n\nAlternatively:\n\n```bash\nnpm run prod\n```\n\nTo run the server à la Heroku:\n\n```bash\nforeman start web\n```\n\n\n## Contributing\n\n[Contributions are very welcome!](CONTRIBUTING.md)\n\n\n## License\n\nAll code and content within this source-code repository is licensed under the [**Creative Commons Zero v1.0 Universal** license (CC0 1.0 Universal; Public Domain Dedication)](LICENSE.md).\n\nYou can copy, modify, distribute, and perform this work, even for commercial purposes, all without asking permission.\n\nFor more information, refer to these following links:\n\n* a copy of the [license](LICENSE.md) in [this source-code repository](https://github.com/webvrrocks/webvr-agent)\n* the [human-readable summary](https://creativecommons.org/publicdomain/zero/1.0/) of the [full text of the legal code](https://creativecommons.org/publicdomain/zero/1.0/legalcode)\n* the [full text of the legal code](https://creativecommons.org/publicdomain/zero/1.0/legalcode)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvan%2Ffetch-manifest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcvan%2Ffetch-manifest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvan%2Ffetch-manifest/lists"}