goes to a random website hosted on wisp.place
at main 30 lines 1.1 kB view raw view rendered
1# random.wisp.place 2 3visit [random.wisp.place](https://random.wisp.place) and you'll be redirected to a random [wisp.place](https://wisp.place) site. under the hood, a [hydrant](https://tangled.org/did:plc:dfl62fgb7wtjj3fcbb72naae/hydrant) instance indexes `place.wisp.fs` and `place.wisp.domain` records from the network, keeping a database of known sites, allowing the backend to pick a random website to redirect you to. 4 5custom domains are resolved via the wisp.place domain API and kept in sync as records are created or deleted. 6 7you can inspect the deployed backend instance at `https://wisp-random.ptr.pet`. 8 9## running 10 11```sh 12deno task dev 13``` 14 15environment variables: 16 17| variable | default | description | 18| :--- | :--- | :--- | 19| `PORT` | `8080` | port to listen on | 20| `WISP_API_URL` | `https://wisp.place` | wisp.place appview base URL | 21| `HYDRANT_BIN` | `hydrant` | path to the hydrant binary | 22| `KV_PATH` | `random-wisp-place.kv` | deno KV database path | 23 24## building the frontend 25 26```sh 27API_URL=https://example.org deno task build 28``` 29 30outputs to `dist/`.