Rename to Cross Events Hub; add logo and favicon

Hope Events is now Cross Events. Protocol identifiers (hel1. tokens, CEH- keys)
are unchanged so existing installs keep working.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-27 13:38:52 +02:00
co-authored by Claude Opus 5.5
parent dcaa0b1dcf
commit a1e3f9214b
20 changed files with 76 additions and 36 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
# ─── Hope Events Hub — backend ────────────────────────────────────────────────
# ─── Cross Events Hub — backend ────────────────────────────────────────────────
PORT=5200
DATABASE_URL=postgresql://postgres:password@localhost:5432/events_hub
# Where the Hub's dashboard runs (CORS, links in alert emails)
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "events-hub-backend",
"version": "1.0.0",
"private": true,
"description": "Hope Events Hub — API for managing Hope Events installs, licences and heartbeats",
"description": "Cross Events Hub — API for managing Cross Events installs, licences and heartbeats",
"main": "src/index.js",
"engines": {
"node": ">=20"
+2 -2
View File
@@ -1,4 +1,4 @@
// Hope Events Hub — customers, licences, installs and their heartbeats.
// Cross Events Hub — customers, licences, installs and their heartbeats.
generator client {
provider = "prisma-client-js"
@@ -55,7 +55,7 @@ model Licence {
// Null = no end date.
expiresAt DateTime?
graceDays Int @default(14)
// Hope Events 2.0: monthly AI spend cap (in cents, rand). 0 = AI off.
// Cross Events 2.0: monthly AI spend cap (in cents, rand). 0 = AI off.
aiMonthlyCapCents Int @default(0)
notes String?
createdAt DateTime @default(now())
+2 -2
View File
@@ -5,7 +5,7 @@
* npm run generate-keys -- --force → replace it (every install then needs the new public key!)
*
* The private key stays on the Hub server only — back it up somewhere safe. The public key it
* prints goes into Hope Events (backend/src/hub/publicKey.js) so installs can check licences.
* prints goes into Cross Events (backend/src/hub/publicKey.js) so installs can check licences.
*/
const crypto = require('crypto');
@@ -26,5 +26,5 @@ fs.writeFileSync(file, privateKey.export({ type: 'pkcs8', format: 'pem' }), { mo
console.log(`Private key written to ${file} — keep it secret and back it up.`);
console.log('Set HUB_SIGNING_KEY_FILE to that path in .env.\n');
console.log('Public key (for Hope Events, backend/src/hub/publicKey.js):\n');
console.log('Public key (for Cross Events, backend/src/hub/publicKey.js):\n');
console.log(publicKey.export({ type: 'spki', format: 'pem' }));
+1 -1
View File
@@ -105,7 +105,7 @@ async function runAlerts(now = new Date()) {
if (newAlerts.length && settings.alert_email) {
await sendMail({
to: settings.alert_email,
subject: `Hope Events Hub: ${newAlerts.length} new alert${newAlerts.length === 1 ? '' : 's'}`,
subject: `Cross Events Hub: ${newAlerts.length} new alert${newAlerts.length === 1 ? '' : 's'}`,
text: `${newAlerts.join('\n')}\n\n${(process.env.FRONTEND_URL || '').replace(/\/$/, '')}/`,
}).catch(e => console.warn('[alerts] email failed:', e?.message));
}
+1 -1
View File
@@ -67,7 +67,7 @@ function verifyCode(secret, code, now = Date.now()) {
}
/** The otpauth:// link an authenticator app scans (as a QR code). */
function otpauthUrl(secret, account, issuer = 'Hope Events Hub') {
function otpauthUrl(secret, account, issuer = 'Cross Events Hub') {
return `otpauth://totp/${encodeURIComponent(issuer)}:${encodeURIComponent(account)}?secret=${secret}&issuer=${encodeURIComponent(issuer)}&algorithm=SHA1&digits=6&period=${STEP}`;
}