Files
whoareyou/README.md
T
2026-06-05 15:34:21 +02:00

31 lines
680 B
Markdown

# whoareyou
Who is calling me? A self-hosted HTTP service that looks up Swedish phone
numbers across reverse-lookup sites. Providers are sandboxed WASM components.
## Usage
```shell
$ just run
$ curl "http://127.0.0.1:8080/api/v1/number/0700000000"
```
## Configuration (env)
| Variable | Default |
|---|---|
| `WHOAREYOU_LISTEN` | `127.0.0.1:8080` |
| `WHOAREYOU_COMPONENTS_DIR` | `components` |
| `WHOAREYOU_CACHE_TTL_HOURS` | `24` |
| `WHOAREYOU_FETCH_TIMEOUT_SECS` | `10` |
## Development
```shell
$ rustup target add wasm32-wasip2
$ just test
```
Provider contract lives in `wit/provider.wit`. See
`docs/superpowers/specs/2026-06-05-wasm-provider-service-design.md`.