goes to a random website hosted on wisp.place
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

readme

dawn 52db6a3b c80462c3

+30
+30
README.md
··· 1 + # random.wisp.place 2 + 3 + visit [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 + 5 + custom domains are resolved via the wisp.place domain API and kept in sync as records are created or deleted. 6 + 7 + you can inspect the deployed backend instance at `https://wisp-random.ptr.pet`. 8 + 9 + ## running 10 + 11 + ```sh 12 + deno task dev 13 + ``` 14 + 15 + environment 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 27 + API_URL=https://example.org deno task build 28 + ``` 29 + 30 + outputs to `dist/`.