Skip to content

avinashid/locadot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

27 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

locadot ๐Ÿ”

โœจ Features

  • โœ… Automatically generates trusted local SSL certificates
  • ๐Ÿ” Reverse proxies localhost:PORT โ†’ https://your.custom.domain.localhost
  • ๐Ÿ–ฅ๏ธ Works on Windows, macOS, and Linux
  • ๐Ÿ› ๏ธ OS-specific guidance for host setup
  • โš ๏ธ Warns and exits if domain isnโ€™t correctly mapped to a local IP
  • โŒ Only supports proxying to localhost ports โ€“ external IPs are not allowed for security

๐Ÿš€ Usage

npx locadot add --host dev.localhost --port 3350

๐Ÿ“ฆ Commands

โ–ถ๏ธ Default (Run Proxy)
Starts a reverse proxy to the specified localhost port.
npx locadot add --host <custom.localhost> --port <localhost-port>
๐Ÿงพ Update existing host
Update domains currently registered with locadot.
npx locadot update --host <your.localhost> --port <localhost-port>
๐Ÿงพ Remove existing host
Remove domains currently registered with locadot.
npx locadot remove --host <your.localhost>
๐Ÿงพ View Registered Hosts
Displays all domains currently registered with locadot.
npx locadot host
๐Ÿ“บ Watch Logs
Continuously watches and outputs proxy logs in real time.
npx locadot watch:logs
๐Ÿงน Clear Logs
Clears all saved logs.
npx locadot clear:logs
๐Ÿงน Clear Hosts
Clears all existing hosts.
npx locadot clear:hosts
๐Ÿงน Show Config Path
Print the path of config files used.
npx locadot path
๐Ÿงน Show Logs Path
Print the path of logged files used.
npx locadot path:logs
๐Ÿงน Show Hosts Path
Print the path of hosts files used.
npx locadot path:hosts
๐Ÿ”„ Restart Proxy
Restarts the proxy server and reloads configuration.
npx locadot restart
๐Ÿ›‘ Stop All
Stops all running locadot hosts and shuts down the proxy server.
npx locadot stop
๐Ÿ›‘ Kill
Stops all running locadot hosts, clear logs and host mapping and shuts down the proxy server.
npx locadot kill

๐Ÿ™Œ Contributing:

Pull requests are welcome! Feel free to open issues for bugs or feature requests. Contributions help improve locadot for everyone, so don't hesitate to get involved.


Made with โค๏ธ to make secure local development simple.

About

Secure your local development environment with HTTPS and custom domains like dev.localhost.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors