I had the same questions, so I went through the source (GitHub: ShadowySupercode/gc-alexandria). Here's how it fits together:
• What it is: a web client. It reads from your own relay list plus some defaults. In the repo's consts.ts that's theforest.nostr1.com as the community relay, with thecitadel.nostr1.com, nostr.wine, damus and a few others used for search. The library is whatever those relays hold.
• How documents get there: people publish them as ordinary signed events. A book or paper is one kind 30040 "index" event that lists its sections in order, and each section is a separate kind 30041 event (wiki pages are 30818). The reader fetches the index, pulls the sections in that order and shows them as one document. Each section is also an entry in the table of contents.
• NIP-23 or 54? The publication format is GitCitadel's own NKBIP-01, not either of those. NIP-54 is the wiki NIP (kind 30818), so wiki pages do follow it. NIP-23 long-form (30023) is one of the kinds it can display too.
• AsciiDoc to web page: the event stores plain AsciiDoc text, and your browser converts it to HTML with Asciidoctor.js (asciidoctor 3.0.x in package.json). That's where the tables, footnotes and math come from.
• Publishing: log in with your Nostr key or signer and open Compose (
#/compose on the new build, /new/compose on next-alexandria.gitcitadel.eu). You write one AsciiDoc document and the headings (==, ===) split it into sections. It publishes the 30040 index first, then the 30041 sections.
• The feed: on the new build it isn't only new books. It's a live relay feed of many kinds: notes (1), comments (1111), highlights (9802), articles (30023), publications (30040) and more. That's why it feels like a general timeline.
The best "directions" are the app's Getting Started page:
https://next-alexandria.gitcitadel.eu/start