neiam
/recourse
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
README: describe recourse instead of the scaffold it grew from
5daaf12 · gmorell · 2026-12-03 03:56
Files changed
modified
README.md
+12
−5
@@ -1,8 +1,16 @@
| 1 | 1 | # recourse |
| 2 | 2 | |
| 3 | −A small axum web application scaffold with: | |
| 3 | +A small forum in the spirit of Discourse, built with Rust, htmx and | |
| 4 | +Postgres: nested categories, topics and replies in Markdown, tags, | |
| 5 | +reactions, bookmarks, watches and notifications, trust levels, invites, and | |
| 6 | +moderation (staff edits, locks, posting rules, flags, cooldowns, a | |
| 7 | +lameness filter, a moderation log). Two layouts: **Classic** lists and a | |
| 8 | +full-screen **Focus** mode. There is an Android app (`android/`) using the | |
| 9 | +`/api/v1` API. | |
| 4 | 10 | |
| 5 | −- **axum** web stack with `minijinja` templates (embedded at build time, hot-reloaded from `templates/` in dev) | |
| 11 | +Built with: | |
| 12 | + | |
| 13 | +- **axum** and `minijinja` templates (embedded at build time, hot-reloaded from `templates/` in dev), **htmx** for partial updates | |
| 6 | 14 | - **sea-orm + Postgres** with a `migration` crate (auto-migrates on boot) |
| 7 | 15 | - The migrations run `CREATE EXTENSION IF NOT EXISTS pg_trgm`, used by |
| 8 | 16 | search's trigram indexes. It ships in contrib with the stock |
@@ -13,7 +21,7 @@ A small axum web application scaffold with:
| 13 | 21 | - Search needs at least 3 characters, the shortest pattern a trigram |
| 14 | 22 | index can serve. |
| 15 | 23 | - **Auth**: Argon2 password hashing, cookie sessions, invite-only registration, email verification (mail through mail-prism), optional "Sign in with NEIAM" (OIDC), and per-device bearer tokens (hashed, 90-day sliding expiry) for the Android app and scripts |
| 16 | −- **Tailwind + DaisyUI** front-end with a theme switcher (`just assets` to build) | |
| 24 | +- **Tailwind + DaisyUI** with light and dark themes and a theme switcher (`just assets` to build) | |
| 17 | 25 | - Prometheus metrics at `/metrics`, health check at `/healthz` |
| 18 | 26 | - A `Dockerfile` (assets → cargo → debian-slim) and `compose.yml` (Postgres + web) |
| 19 | 27 |
@@ -380,8 +388,7 @@ the link; `manage user resend-verification <name>` prints a fresh one;
| 380 | 388 | ## Sign in with NEIAM |
| 381 | 389 | |
| 382 | 390 | [`neiam-auth`](https://gg.neiam.co/neiam/neiam-auth) v0.4.0 (git dependency, |
| 383 | −pinned to the tag, `sea-orm` feature for sea-orm 1.1), wired as in the | |
| 384 | −neiam-htmx template. **Off by default**: until `OIDC_ENABLED=true` there is no | |
| 391 | +pinned to the tag, `sea-orm` feature for sea-orm 1.1). **Off by default**: until `OIDC_ENABLED=true` there is no | |
| 385 | 392 | button and `/auth/oidc/*` returns 404 (except `/auth/oidc/health`). The |
| 386 | 393 | `oidc_identities` migration always runs. |
| 387 | 394 |
Parents: d2a7016