https://github.com/a1ecbr0wn/id
External IP Address Cloudflare Worker
https://github.com/a1ecbr0wn/id
cloudflare-workers rust rust-lang serverless web webassembly workers-rs
Last synced: 12 months ago
JSON representation
External IP Address Cloudflare Worker
- Host: GitHub
- URL: https://github.com/a1ecbr0wn/id
- Owner: a1ecbr0wn
- License: apache-2.0
- Created: 2023-02-09T00:07:56.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-13T23:03:16.000Z (about 1 year ago)
- Last Synced: 2025-04-13T16:06:24.220Z (12 months ago)
- Topics: cloudflare-workers, rust, rust-lang, serverless, web, webassembly, workers-rs
- Language: Rust
- Homepage: https://id.a1ecbr0wn.com
- Size: 103 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ID: External IP Address Cloudflare Worker
[](https://github.com/a1ecbr0wn/id/blob/main/LICENSE) [](https://github.com/a1ecbr0wn/id/actions/workflows/build.yml) [](https://deps.rs/repo/github/a1ecbr0wn/id)
[Site: id.a1ecbr0wn.com](https://id.a1ecbr0wn.com)
A simple ip address webservice using [Cloudflare's workers service](https://developers.cloudflare.com/workers/). For use by [r53-ddns](https://r53-ddns.noser.net/).
This project uses the [`workers-rs`](https://github.com/cloudflare/workers-rs) crate to provide a simple rust WebAssembly binary that runs as a Cloudflare worker. This is based off the standard [`worker-rust` template](https://github.com/cloudflare/templates/tree/main/worker-rust)
## Install Wrangler
``` sh
npm install -g wrangler
```
## Deployment
The project is built and deployed to the [test environment](https://test-id.br0wn.workers.dev/) every time it is pushed via the `build.yml` github worflow, but it can also be deployed manually to the [dev environment](https://dev-id.a1ecbr0wn.workers.dev) if you have [`wrangler` installed](https://developers.cloudflare.com/workers/get-started/guide/#1-install-wrangler-workers-cli) by running:
```sh
wrangler deploy --env=test
```
## Testing
The project can be run locally in a test instance of `wrangler` by running:
```sh
npm run dev
```
## Usage
```sh
curl https://id.a1ecbr0wn.com
```