ngrok
Version, currently 0.2.03 versions
- 0.3.1latestJun 28, 2021
- 0.3.0not indexedJan 27, 2023
- 0.2.0not indexedJan 27, 2023
github.com/watzon/ngrok.cr
Ngrok wrapper for Crystal
25 stars
1 dependent
License: MIT
Nothing has been indexed for 0.2.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
ngrok:
github: watzon/ngrok.cr
version: ~> 0.2.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.2.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# Ngrok
[](https://github.com/watzon/ngrok.cr/workflows/Crystal) 
Crystal wrapper for ngrok. This library does not require ngrok be installed as it includes a downloaded which will go and fetch the version of ngrok for your system and save it locally. If you do have ngrok installed it will use the installed version.
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
ngrok:
github: watzon/ngrok.cr
```
## Usage
### Authenticate with Ngrok
```crystal
Ngrok.auth("your token")
```
### Start an Ngrok Session
```crystal
Ngrok.start(addr: "127.0.0.1:3001",
subdomain: nil,
hostname: nil,
timeout: 10.seconds,
inspect: false,
region: "us",
config: nil,
use_local_executable: true,
ngrok_bin: "./bin") do |ngrok|
# `ngrok.url` contains the http url for this session
puts ngrok.url
# `ngrok.url_https` contains the https url for this session
puts ngrok.url_https
end
```
## Usage Examples
See the `examples` directory for a couple usage examples.
## Contributing
1. Fork it ( https://github.com/watzon/ngrok.cr/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Contributors
- [watzon](https://github.com/watzon) Chris Watson - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.2.0- Tagged
- Jan 27, 2023
- Commit
1bf85053e351- Indexed
- not yet
Dependents
Repository
github.com/watzon/ngrok.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 3