{"id":20418493,"url":"https://github.com/willnode/secure-localhost","last_synced_at":"2025-04-12T17:34:20.470Z","repository":{"id":122911773,"uuid":"426494174","full_name":"willnode/secure-localhost","owner":"willnode","description":"Proxy your specified localhost port to HTTPS, with automatic certificate installation.","archived":false,"fork":false,"pushed_at":"2024-08-03T03:15:13.000Z","size":25,"stargazers_count":22,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T11:51:14.222Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/willnode.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":"2021-11-10T05:20:42.000Z","updated_at":"2024-11-23T02:33:43.000Z","dependencies_parsed_at":"2024-11-21T03:31:53.975Z","dependency_job_id":null,"html_url":"https://github.com/willnode/secure-localhost","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/willnode%2Fsecure-localhost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnode%2Fsecure-localhost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnode%2Fsecure-localhost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnode%2Fsecure-localhost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willnode","download_url":"https://codeload.github.com/willnode/secure-localhost/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248605507,"owners_count":21132184,"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-15T06:33:11.788Z","updated_at":"2025-04-12T17:34:20.443Z","avatar_url":"https://github.com/willnode.png","language":"JavaScript","readme":"# secure-localhost 🔒\n\nProxy your specified localhost port to HTTPS, with automatic certificate installation.\n\n## Why?\n\n+ You're developing locally and stuck with [`SameSite: None` cookie problem](https://stackoverflow.com/questions/60069054/how-to-overcome-the-effect-of-chromes-samesite-cookie-update-in-the-case-of-loc)\n+ You don't want to proxy your dev [to external servers](https://ngrok.com)\n+ You just wish you could use HTTPS on your localhost\n\n## Start\n\nUsing `npx` from Node.JS allows you to [run NPM binaries](https://docs.npmjs.com/cli/v7/commands/npx) without having them installed first.\n\nForward port 443 (HTTPS default port) to 80 with HTTPS:\n\n```bash\n$ npx secure-localhost\n```\n\nForward port 443 to 8000 (pass it to args) with HTTPS:\n\n```bash\n$ npx secure-localhost 8000\n```\n\nMore options run `npx secure-localhost --help`\n\n\u003e For the first launch, you'll asked to install the HTTPS certificate. For windows it will be a dialog prompt. For unix, a sudo password will be asked.\n\n\u003e The certificate is saved to `~/.certs/secure-localhost-server.crt` and `~/.certs/secure-localhost-server.key`\n\n## Caveat\n\n+ Only tested in Windows and Linux for now (Mac users: help us!)\n+ If ran without sudo in Unix, it uses port 8443 instead of 433\n+ Requires `openssh` to be installed/available on CLI\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillnode%2Fsecure-localhost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillnode%2Fsecure-localhost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillnode%2Fsecure-localhost/lists"}