Nostrstack API
Use this skill when working inside apps/api.
Workflow
- •Read
references/architecture.mdfor system context and data flow. - •Consult
references/api-structure.mdfor code layout and key files. - •For Nostr endpoints or ID parsing, also read
references/nostr.md. - •Update or add tests per
references/testing.md.
Guardrails
- •Keep tenant resolution consistent (
tenant-resolver.tsand host/domain rules). - •Lightning provider changes must preserve webhook/payment flow and retry behavior.
- •Ensure Prisma migrations and seeds stay aligned with schema changes.
When to add docs
- •If routes or response shapes change, update
apps/api/openapi.jsonand relevant docs.