{"id":50969883,"url":"https://github.com/vianch/smooth-server","last_synced_at":"2026-06-19T01:01:51.164Z","repository":{"id":57364274,"uuid":"79837257","full_name":"vianch/smooth-server","owner":"vianch","description":"A server to deploy local environments or static code ","archived":false,"fork":false,"pushed_at":"2024-03-16T15:22:50.000Z","size":126,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T20:52:55.651Z","etag":null,"topics":["node","nodejs","server"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/smooth-server","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vianch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-23T19:06:08.000Z","updated_at":"2023-08-24T20:26:49.000Z","dependencies_parsed_at":"2022-09-13T21:11:07.242Z","dependency_job_id":null,"html_url":"https://github.com/vianch/smooth-server","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/vianch/smooth-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vianch%2Fsmooth-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vianch%2Fsmooth-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vianch%2Fsmooth-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vianch%2Fsmooth-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vianch","download_url":"https://codeload.github.com/vianch/smooth-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vianch%2Fsmooth-server/sbom","scorecard":{"id":919851,"data":{"date":"2025-08-11","repo":{"name":"github.com/vianch/smooth-server","commit":"bb5e745021548e2d4400420452be98043a0a8aa0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-r7jx-5m6m-cpg9","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-25T00:46:34.172Z","repository_id":57364274,"created_at":"2025-08-25T00:46:34.172Z","updated_at":"2025-08-25T00:46:34.172Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34513029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["node","nodejs","server"],"created_at":"2026-06-19T01:01:49.581Z","updated_at":"2026-06-19T01:01:51.153Z","avatar_url":"https://github.com/vianch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# smooth-server\n\nA simple local development HTTP server optimized for productivity.\n\n## Installation\n\n#### Local Installation \n```sh\n$ npm install smooth-server --save-dev\n$ yarn add smooth-server --dev\n```\nAfter installing, add following \"script\" entry within your project's `package.json` file:  \n\n```json\n{\n  \"scripts\": {\n    \"dev\": \"smooth-server\"\n  },\n}\n```\nWith the above script entry, you can then start `smooth-server` via:  \n```sh\n$ npm run dev\n```\nYou can also specify a configuration file: \n```json\n{\n  \"scripts\": {\n    \"dev\": \"smooth-server --config path/config.json\"\n  },\n}\n```\nIf a config file is not found the default port will be `3333` and the listened files will be `[\"./**/*.{html,htm,css,js}\"]`.\n\n#### Global Installation\n```sh\n$ npm install -g smooth-server\n```\nYou can run it directly from the command line: \n```sh\n$ smooth-server\n$ smooth-server --config path/smooth-server.config.json\n```\n\n## Custom Configuration\n\nThe default behavior serves from the current directory, opens a browser, and applies a HTML5 route fallback to `./index.html`.\n\n`smooth-server` uses [BrowserSync](https://www.browsersync.io/), and allows for configuration overrides via a local `bs-config.json` or `bs-config.js` file in your project. If these files do not exist, it will use the default configuration.\n\nYou can provide custom path to your config file via `-c` or `--config=` command line options:\n```sh\nsmooth-server -c configs/my-bs-config.js\n```\n\n#### Configuring via `bs-config.json` \n```json\n{\n  \"port\": 8081,\n  \"files\": [\"./www/**/*.{html,htm,css,js}\"],\n  \"server\": { \"baseDir\": \"./src\" }\n}\n```\n\n#### Configuring via `bs-config.js`\nThis approach is more flexible and allows using JavaScript instead of a static JSON.\n```js\nmodule.exports = {\n  server: {\n    middleware: {\n      // overrides the second middleware default with new settings\n      1: require('connect-history-api-fallback')({index: '/index.html', verbose: true})\n    }\n  }\n};\n```\n\nFull list of BrowserSync options can be found in its docs: \u003chttp://www.browsersync.io/docs/options/\u003e\n\n\u003e **Note:** When using middleware overrides the specific middleware module must be installed in your project. For the above example, `connect-history-api-fallback` package needs to be installed in your project:\n\n```sh\n$ npm install connect-history-api-fallback --save-dev\n```\n\nOr else, you will get an error:\n```shell\nError: Cannot find module 'connect-history-api-fallback'\n```\n\n\u003e **TIP:** To remove one of the default middlewares such as `connect-logger`, set its array index to `null`:\n```js\nmodule.exports = {\n  server: {\n    middleware: {\n      0: null     // removes default `connect-logger` middleware\n    }\n  }\n};\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvianch%2Fsmooth-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvianch%2Fsmooth-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvianch%2Fsmooth-server/lists"}