A single-page deployment helper for Nostr CMS. It provides an interactive form that collects the required environment variables and generates a ready-to-paste deployment prompt for LLMs.
-
Collects configuration — walks the user through three required fields:
VITE_MASTER_PUBKEY— the owner/admin Nostr public key (supports npub or hex input, with automatic conversion).VITE_REMOTE_NOSTR_JSON_URL— URL to a remotenostr.jsonfile used for admin authentication (e.g.https://yourdomain.com/.well-known/nostr.json).VITE_DEFAULT_RELAY— the primary Nostr relay for reading and publishing content (e.g.wss://relay.damus.io).
-
Nostr Login integration — users can log in with a Nostr extension (NIP-07) or Nostr Connect to auto-fill their public key.
-
Generates a deploy prompt — produces a text block that can be copied and pasted into any AI assistant to deploy the Nostr CMS with the configured environment variables.
| Variable | Required | Description |
|---|---|---|
VITE_MASTER_PUBKEY |
Yes | Hex public key of the site owner/admin |
VITE_REMOTE_NOSTR_JSON_URL |
Yes | URL to a nostr.json file for admin role mapping |
VITE_DEFAULT_RELAY |
Yes | Primary Nostr relay (websocket URL starting with wss://) |
VITE_SWARM_API_URL |
No | Swarm relay API URL for scheduled posts support (auto-derives from VITE_DEFAULT_RELAY as https://<relay-host>/api if unset) |
VITE_ENABLE_NSEC_LOGIN |
No | Set to true to show the nsec paste/import login option (hidden by default; NIP-07 extension and NIP-46 bunker logins are always available) |
VITE_REMOTE_NOSTR_JSON_URL must point to a URL that returns valid JSON conforming to NIP-05. You can verify it with:
curl -s "https://yourdomain.com/.well-known/nostr.json" | python3 -m json.toolThe response should contain at least a names object mapping usernames to hex public keys:
{
"names": {
"alice": "abc123..."
}
}VITE_DEFAULT_RELAY must be a working Nostr relay. You can verify it with nak:
nak req -l 1 -k 1 wss://relay.damus.ioA successful response returns a JSON Nostr event, confirming the relay is live.
Some well-known public relays:
wss://relay.damus.iowss://relay.primal.netwss://nos.lol
nostr-cms-deploy/
├── index.html # Single-page deploy helper (HTML + CSS + JS)
├── .gitignore
└── README.md
- Open
index.htmlin a browser (or serve it with any static file server). - Log in with Nostr or manually enter your public key.
- Enter your
nostr.jsonURL and default relay. - Copy the generated deployment prompt.
- Paste it into any AI assistant to deploy your Nostr CMS instance.
This is a standalone HTML page with no build step.
See the Nostr CMS repository for license details.