tangled-pages#
A simple way to host a website via a tangled repo. You can run it as a cloudflare worker or as an express server.
Create .env pointing to your repo:
KNOT_DOMAIN=knot.gracekind.net
OWNER_DID=did:plc:p572wxnsuoogcrhlfrlizlrb
REPO_NAME=tangled-pages-example
Run server:
npm install
npm start
Config#
You can configure the pages service by creating a pages_config.yaml file in the root of the repo.
baseDir: "/public"
notFoundFilepath: "404.html"
Limitations#
It fetches files from the repo on request, so it might be slow. In the future, we could cache the files and use a CI to update the cache.