A very simple single-file PDS home page to list active users
HTML 36.5%
TypeScript 34.1%
CSS 29.3%
6 1 0

Clone this repository

https://tangled.org/finxol.io/pds-home
git@knot.finxol.io:finxol.io/pds-home

For self-hosted knots, clone URLs may differ based on your setup.

README.md

PDS Home#

Very simple single-file PDS home page.

Why?#

By default, the PDS home page isn't very nice, especially on mobile. It's fine as a default, but we can do better.

The approach here is to make it into a single glorious HTML file to avoid overriding too many routes on the PDS, and make deployment as simple as possible.

There's still a build step involved because there's some dependencies involved (atcute), and working with types and CSS/JS in separate files is so much nicer.

How to use#

Before you deploy, you may want to fork this repository to customise the welcome message and/or PDS owner listed.

  • Install dependencies with pnpm i

  • Build the file with pnpm run build

  • Upload the dist/index.html file to static hosting.

The most straighforward solution is to host it on the same server as your PDS.

You can simply add this directive to your Caddyfile:

@home path /
handle @home {
    root /<the directory where the file is>
    file_server
}

You will now see a pretty little home page for your PDS!