An authenticated member requests a new invite code that they can hand to an off-platform visitor. The issuance service mints a fresh code, persists it in `invite_codes`, and returns the code string to the UI. Issued rows then become the producer side of the `invite-code-registration` flow.
Submodules
-
web-get-invite-ui
UI
React page that lets a signed-in member request a new invite code.
-
public-api
API
HTTP boundary for `/api/invites` POST requests.
-
invite-issuance-service
Service
Domain service that mints and persists a single invite row per request.
-
invite-code-generator
Pure fn
Pure helper that turns random bytes into a printable invite code.
-
postgresql
DB
Owns the `invite_codes` table (producer side of the cross-feature data row).
Intra-feature edges
- web-get-invite-ui → public-apicallPOST /api/invites
- public-api → invite-issuance-servicecallIssue(ctx, userId)
- invite-issuance-service → invite-code-generatorcallencode(rand)
- invite-issuance-service → postgresqlcallINSERT invite_codes
- postgresql → invite-issuance-servicereturnrowid