Two follow-ups to the new /communities/new page: 1. Stop rendering the founder as an 'anonymous' chip at the top of the Moderators section. The row was synthesized from just a pubkey (genUserName fallback, no avatar), which looked broken even though the founder is always implicitly the first moderator on the published kind 34550. Drop the row entirely; the founder remains pubkey #0 in the moderator list when we publish, just isn't visible as a chip. 2. Wire the page to handle ?edit=<naddr> the same way CreateCampaignPage handles its edit param: - Decode the naddr, reject anything that isn't a kind 34550 with an 'Invalid edit link' guard card. - Fetch the existing community (inline useQuery against ['community', pubkey, dTag] since there's no useCommunity hook yet). Show a 'Loading community…' card while it resolves. - Prefill name, description, image, and moderators when the data lands. Resolve each moderator's kind-0 profile via the same two-step cache-then-network pattern campaigns use for recipients, so chips render with proper avatars and names instead of fallback stubs. - Show a 'Community cannot be edited' guard if the viewer isn't the founder, mirroring the campaign edit author check. - On submit, fetchFreshEvent + publish kind 34550 with prev. Strip d/name/description/image/alt and any p-with-role-moderator tags from the previous tag set; rebuild them from form state, then re-append the preserved tags (badge a-tag, relay hints, …) and a fresh alt. The implicit member badge is left alone in edit mode (matches CreateCommunityDialog's edit branch). CommunityDetailPage's 'Edit community' dropdown item now navigates to /communities/new?edit=<naddr> instead of opening CreateCommunityDialog. The dialog mount and its editCommunityOpen state are removed. The dialog file is left in the tree even though nothing imports it anymore — keeping it makes a revert cleaner if the user changes their mind.
Agora
Power to the people.
Agora is a Nostr client focused on community ownership, expressive identity, and censorship resistance. This repository (agora-3) is the Agora-branded app built from the Ditto codebase.
What This Repo Is
- Agora product identity (name, theme, assets, native IDs)
- Ditto-derived implementation with broad Nostr feature coverage
- Configurable deployment defaults via
agora.json
Features
- Community-first social client: notes, articles, comments, reposts, reactions, and rich event rendering
- Theming system: built-in presets + custom color/font/background themes that can be shared as events
- Lightning support: zaps with Nostr Wallet Connect and WebLN
- Private messaging: NIP-04 and NIP-17 direct messages
- Mobile app shell: Capacitor-powered Android/iOS wrappers
- Self-hostable: static web build + configurable relay and upload infrastructure
Getting Started
Prerequisites
- Node.js 22+
- npm 10.9.4+
Development
git clone https://gitlab.com/soapbox-pub/agora-3.git
cd agora-3
npm install
npm run dev
Development server: http://localhost:8080
Docker Getting Started
Use Docker Compose when you want the nginx reverse-proxy stack (necessary if you want decryptable media in messages - kind 15s of NIP 17):
git clone https://gitlab.com/soapbox-pub/agora-3.git
cd agora-3
cp .env.example .env
docker compose up --build
Proxy URL: http://localhost:8083
This starts:
viteservice on the internal Docker network (vite:8080)webservice (nginx) on host port8082, proxying to Vite with websocket support
Stop stack:
docker compose down
Production-style container build:
docker compose -f docker-compose.prod.yml up --build
Build
npm run build
Build output: dist/
Validate
npm test
This runs type-checking, linting, unit tests, and production build checks.
Configuration
Build-time config is read from agora.json (gitignored by default so each deployment can provide its own values).
{
"theme": "dark",
"relayMetadata": {
"relays": [
{ "url": "wss://relay.ditto.pub", "read": true, "write": true },
{ "url": "wss://relay.primal.net", "read": true, "write": true },
{ "url": "wss://relay.damus.io", "read": true, "write": true }
]
},
"blossomServers": [
"https://blossom.ditto.pub",
"https://blossom.primal.net/"
]
}
Configuration priority (highest first):
- User settings (local storage)
- Build config (
agora.json) - Hardcoded app defaults
Use a custom config path:
CONFIG_FILE=./my-config.json npm run build
Deployment
Agora builds to static files and can be deployed to any static host.
- GitLab/GitHub Pages
- Netlify/Vercel
- VPS or any web server with SPA routing fallback
For Android:
npm run build
npx cap sync
npx cap open android
Tech Stack
| Layer | Technology |
|---|---|
| Framework | React 18 |
| Build | Vite |
| Language | TypeScript |
| Styling | TailwindCSS 3 + shadcn/ui |
| Routing | React Router |
| Data | TanStack Query |
| Nostr | Nostrify + nostr-tools |
| Mobile | Capacitor |
| Testing | Vitest + React Testing Library |
Contributing
Read CONTRIBUTING.md before opening a merge request.