{"id":18429435,"url":"https://github.com/bigpipe/plugin-domain","last_synced_at":"2025-06-17T06:04:21.887Z","repository":{"id":35684201,"uuid":"39960298","full_name":"bigpipe/plugin-domain","owner":"bigpipe","description":"Scope the resources from the compiler to a domain","archived":false,"fork":false,"pushed_at":"2020-05-23T12:04:23.000Z","size":30,"stargazers_count":1,"open_issues_count":4,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-17T06:02:48.359Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bigpipe.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":"2015-07-30T16:21:01.000Z","updated_at":"2020-06-03T22:07:55.000Z","dependencies_parsed_at":"2022-09-15T21:41:24.710Z","dependency_job_id":null,"html_url":"https://github.com/bigpipe/plugin-domain","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bigpipe/plugin-domain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigpipe%2Fplugin-domain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigpipe%2Fplugin-domain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigpipe%2Fplugin-domain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigpipe%2Fplugin-domain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigpipe","download_url":"https://codeload.github.com/bigpipe/plugin-domain/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigpipe%2Fplugin-domain/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260301967,"owners_count":22988715,"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-11-06T05:17:10.963Z","updated_at":"2025-06-17T06:04:21.830Z","avatar_url":"https://github.com/bigpipe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BigPipe - Plugin Domain\n\n[![Version npm][version]](http://browsenpm.org/package/bigpipe-domain)[![Build Status][build]](https://travis-ci.org/bigpipe/plugin-domain)[![Dependencies][david]](https://david-dm.org/bigpipe/plugin-domain)[![Coverage Status][cover]](https://coveralls.io/r/bigpipe/plugin-domain?branch=master)\n\n[version]: http://img.shields.io/npm/v/bigpipe-domain.svg?style=flat-square\n[build]: http://img.shields.io/travis/bigpipe/plugin-domain/master.svg?style=flat-square\n[david]: https://img.shields.io/david/bigpipe/plugin-domain.svg?style=flat-square\n[cover]: http://img.shields.io/coveralls/bigpipe/plugin-domain/master.svg?style=flat-square\n\nBigPipe's CSS/JS resources are exposed on `/` by default. It's possible to serve\nresources from another server or scoped domain with this plugin.\n\n### Install\n\n```bash\nnpm install bigpipe-domain --save\n```\n\n### Usage\n\nConfigure a domain on which bigpipe resources will be supplied. The `pathname` of\nthe file is merged with the `pathname` of the `domain` configuration. For example,\nthe configuration below will serve `1fb1d9e0d989a5673eb0d69c904b804b3a38f483.js` as\n`https://subdomain.bigpipe.com:1337/path/to/sub/1fb1d9e0d989a5673eb0d69c904b804b3a38f483.js`.\n\n```js\nvar domain = require('bigpipe-domain')\n  , BigPipe = require('bigpipe');\n\nBigPipe.createServer(1337, {\n  plugins: [ domain ],\n  domain: {\n    pathname: '/path/to/sub',\n    hostname: 'subdomain.bigpipe.com',\n    protocol: 'https',\n    port: 1337\n  }\n});\n```\n\nScoping the resources to just a prepended pathname is possible as well. Simply\nprovide the domain as `string`. The example below will scope\n`1fb1d9e0d989a5673eb0d69c904b804b3a38f483.js` as\n`/path/to/sub/1fb1d9e0d989a5673eb0d69c904b804b3a38f483.js`.\n\n```js\nvar domain = require('bigpipe-domain')\n  , BigPipe = require('bigpipe');\n\nBigPipe.createServer(1337, {\n  plugins: [ domain ],\n  domain: '/path/to/sub'\n});\n```\n\n### License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigpipe%2Fplugin-domain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigpipe%2Fplugin-domain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigpipe%2Fplugin-domain/lists"}