{"id":19084700,"url":"https://github.com/wutility/servino","last_synced_at":"2025-04-30T09:25:14.345Z","repository":{"id":60775168,"uuid":"387863806","full_name":"wutility/servino","owner":"wutility","description":"👨‍💻 📦 Fast and simple zero-configuration HTTP server with hot reload ⚡️","archived":false,"fork":false,"pushed_at":"2022-10-11T06:29:10.000Z","size":231,"stargazers_count":12,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-18T23:59:55.070Z","etag":null,"topics":["hacktoberfest","hot-reload","http","http-server","live-reload","live-server","server","static","websocket"],"latest_commit_sha":null,"homepage":"https://wutility.github.io/servino","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/wutility.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":"2021-07-20T17:16:58.000Z","updated_at":"2025-03-01T00:10:10.000Z","dependencies_parsed_at":"2023-01-19T20:03:12.739Z","dependency_job_id":null,"html_url":"https://github.com/wutility/servino","commit_stats":null,"previous_names":["wutility/servino-live"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wutility%2Fservino","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wutility%2Fservino/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wutility%2Fservino/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wutility%2Fservino/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wutility","download_url":"https://codeload.github.com/wutility/servino/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251675606,"owners_count":21625847,"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":["hacktoberfest","hot-reload","http","http-server","live-reload","live-server","server","static","websocket"],"created_at":"2024-11-09T02:52:20.504Z","updated_at":"2025-04-30T09:25:14.321Z","avatar_url":"https://github.com/wutility.png","language":"JavaScript","readme":"# ⚡️ Servino\n[Servino](https://wutility.github.io/servino) is zero-configuration http server with hot reload.\n\n![][version] ![][downloads] ![][dependency] ![][license]\n\n## Install\n```shell\n$ npm i -g servino\n# or\n$ npm i servino --save-dev\n```\n\n## CLI\n```shell\n# Getting start\nsv -r src -p 3000\n\n# long command\nsv --port 8125 --delay 500 --inject --wdir tests,public --ignore node_modules,.git\n\n# short\nsv -p 8125 -d 500 -w tests,public -i node_modules,.git -s tests/cert.pem,tests/key.pem\n```\n\n## API\n```js\nconst Servino = require('Servino')\n\nconst servino = Servino(options?: object) : void\n\nservino.start() // start server\nservino.stop() // stop server\n```\n\n## Available Options\n\n| options/Command     | Example                         | Description                   |\n|----------|---------------------------------|-------------------------------|\n|`--config` or `-c`      | `null`                   | specify where config json file is located (directory)     |\n|`--host` or `-H`      | `'127.0.0.1'`                   | Set the server address      |\n|`--port` or `-p`      | `8125`                          | Set the server port. |\n|`--root` or `-r`     | `'public'`                      | Set root directory that\\'s being served. Default: current working directory |\n|`--ignore` or `-i`  | `node_modules,.git` | which\\'s files or folders should be ignored (Watch ignore) |\n|`--wdir` or `-w`     | `tests,public`            | Paths to watch for changes. Default: watch everything under root directory |\n|`--delay` or `-d`      | `200`                           | Realod time between changes (ms). |\n|`--inject` or `-I`  | `true`                         | Inject Css and Javascript files without refresh the browser |\n|`--open` or `-o`      | `true`                          | Open url on the browser |\n|`--verbose` or `-V`  | `true`                         | Show logs |\n|`--ssl` or `-s`  | `tests/cert.pem,tests/key.pem`                         | ssl certifications |\n\n## Config file: [servino.json](tests/servino.json)\n```js\n/*\n  command: sv -c tests\n  A config file can take any of the command line arguments as JSON key values, for example:\n*/\n{\n  \"host\": \"0.0.0.0\",\n  \"port\": 8125,\n  \"root\": \".\",\n  \"wdir\": [\n    \"app\",\n    \"src\"\n  ],\n  \"delay\": 100,\n  \"ignore\":[\n    \"node_modules\",\n    \"dist\",\n    \".git\"\n  ],\n  \"inject\": true,\n  \"open\": true,\n  \"verbose\": true,\n  \"ssl\": [\n    \"tests/cert.pem\",\n    \"tests/key.pem\"\n  ]\n}\n```\n\n## TLS/SSL\nFirst, you need to make sure that openssl is installed correctly, and you have key.pem and cert.pem files. You can generate them using this command:\n\n```\nopenssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem\n```\n\nThen you need to run the server with -s for your certificate files.\n```shell\n# Note: order important\nservino -s tests/cert.pem,tests/key.pem\n```\n\n## Notes\n- All pull requests are welcome, feel free.\n\n## Author\n- [Haikel Fazzani](https://github.com/haikelfazzani)\n\n## License\nMIT\n\n[downloads]: https://badgen.net/npm/dt/servino\n[version]:       http://img.shields.io/npm/v/servino.svg?style=flat-square\n[dependency]:       https://badgen.net/bundlephobia/dependency-count/react\n[license]: https://badgen.net/npm/license/servino","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwutility%2Fservino","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwutility%2Fservino","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwutility%2Fservino/lists"}