Something went wrong. Try again.
decentralized and customizable links page on top of atproto ligo.at
Something went wrong. Try again.
Files
- Python 61%
- Jinja-like 19%
- JavaScript 13%
- CSS 7%
- Makefile <1%
- 1 more language <1%
README.md
# ligo.at
Decentralized and customizable links page on top of [AT Protocol][atproto].
Try it out at [ligo.at](https://ligo.at)!
## dependencies
Install [uv][uv] and run `uv sync`.
## generate secrets
Use the `etc/generate_secrets.py` script or run `make .env`.
## synchronization
`ligo.at` reads directly from the users' PDS. A small cache is used to serve profile pages quicker. The cache is updated on every profile write, and when requesting a profile with the `?reload` query parameter (any value, even empty). `ligo.at` also reads from the [Jetstream][jetstream], so updates made to a profile outside of `ligo.at` should also be available instantly.
## run
Either start a debug server with `make debug` or a production one with `make run`. Production needs the `PORT` environment variable.
The Jetstream ingestor can be started with `make ingestor`.
Some example configuration files are provided in the `etc` folder. They assume the code will live at `/var/www/ligoat`. Keep this in mind if you want to place it somewhere else.
- A `Caddyfile` that configures a [caddy][caddy] reverse proxy.
- Two systemd service files. They can be used to run both the server and the jetstream ingestor.
## thanks
Libraries and projects used to build `ligo.at`.
- [actor-typeahead.js][atjs] -- Handle autocompletion JavaScript library, [forked](src/static/actor-typeahead.js).
- [typeahead.waow.tech][twt] -- Alternative `searchActorsTypeahead` provider.
[atproto]: https://atproto.com
[caddy]: https://caddyserver.com/
[jetstream]: https://atproto.wiki/en/wiki/reference/networking/jetstream
[uv]: https://docs.astral.sh/uv/
[atjs]: https://tangled.org/jakelazaroff.com/actor-typeahead
[twt]: https://typeahead.waow.tech