← Public packages
@noah/mega-radio
MEGA Radio (the WAKE album) for members of the MEGA.dev Discord: sign in with Kody, verify with Discord, listen with repeat.
Files
/** HTML for the single MEGA Radio page. Runtime-free (no kody:* imports) so it renders the same everywhere. */
import { DISCORD_CLIENT_ID, GUILD_INVITE, GUILD_NAME, MEMBERSHIP_DAYS, SIGNUP_URL } from './config.ts'
import { CSS } from './styles.ts'
import type { Origins } from './origins.ts'
import { onRepeat, playsTip, type Plays } from './stats.ts'
import { nn, seedView, type View } from './tracks.ts'
export const esc = (s: unknown) => String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]!)
export type PageState =
| { kind: 'signed-out'; loginHref: string }
| {
kind: 'unverified'
username: string
logoutHref: string
/** last check said "not a member" */
notMember?: { discordName: string | null }
/** last membership has lapsed */
expired?: boolean
error?: string
}
| { kind: 'member'; username: string; logoutHref: string; discordName: string | null; expiresAt: string; radio?: View; art?: Record<number, string>; plays?: Record<number, Plays> }
/** Browser-tab icon (inline SVG favicon + apple-touch-icon), so no asset route is needed. */
const ICON_HEAD = `<link rel="icon" type="image/svg+xml" href="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCI+PHJlY3Qgd2lkdGg9IjY0IiBoZWlnaHQ9IjY0IiByeD0iMTQiIGZpbGw9IiNlNWI4NGIiLz48ZyBmaWxsPSJub25lIiBzdHJva2U9IiMwZTBmMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTE0IDU2TDI3IDMwTDMyIDUwTDM3IDMwTDUwIDU2IiBzdHJva2Utd2lkdGg9IjUiLz48cGF0aCBkPSJNMjQuNyAxMC45QTkuNSA5LjUgMCAwIDAgMjQuNyAyMy4xTTM5LjMgMTAuOUE5LjUgOS41IDAgMCAxIDM5LjM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+VevcaT2kMGOsQJUf2/9PLOybRYbaDfqusssoqq6yyyiqrrGJA/gO4QpFbuRPK3AAAAABJRU5ErkJggg==">`
/**
* Render the page shell.
*
* @param base - app base path (no trailing slash)
* @param body - inner HTML for `<main>`
* @param right - header-right HTML
* @returns a full HTML document
*/
function shell(base: string, body: string, right = ''): string {
return `<!doctype html><html lang="en" data-app-base="${esc(base)}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<title>MEGA Radio</title>${ICON_HEAD}<meta name="robots" content="noindex"><style>${CSS}</style>
<script src="${esc(base)}/player.js" defer></script><script src="${esc(base)}/move.js" defer></script></head>
<body><header><a class="home" href="${esc(base)}/">MEGA Radio</a><div class="header-actions">${right}</div></header><main>${body}</main></body></html>`
}
type Action = { label: string; href?: string; post?: string; ghost?: boolean; danger?: boolean; newTab?: boolean; opensDialog?: string }
/**
* One step card (title, one-line subtitle, full-width pill
* buttons, small centered fine print) in this page's own type. Every step and state uses it.
*
* @param id - id for the title (aria-labelledby)
* @param title - short title (rendered monospace uppercase)
* @param sub - one-line subtitle (HTML, already escaped)
* @param actions - buttons, first one is usually the primary pill
* @param fine - fine print (HTML, already escaped), optional
* @returns HTML
*/
function stepCard(id: string, title: string, sub: string, actions: Action[], fine = ''): string {
const buttons = actions
.map((a) => {
const cls = `pill ${a.danger ? 'danger' : a.ghost ? 'ghost' : 'kody'}`
if (a.opensDialog) return `<button type="button" class="${cls}" data-confirm-open="${esc(a.opensDialog)}" aria-haspopup="dialog" aria-controls="${esc(a.opensDialog)}">${esc(a.label)}</button>`
if (a.post) return `<form method="post" action="${esc(a.post)}"><button class="${cls}" type="submit">${esc(a.label)}</button></form>`
return `<a class="${cls}" href="${esc(a.href)}"${a.newTab ? ' target="_blank" rel="noopener"' : ''}>${esc(a.label)}</a>`
})
.join('')
return `<section class="signin" aria-labelledby="${id}"><h2 id="${id}">${esc(title)}</h2>${sub ? `<p class="muted signin-sub">${sub}</p>` : ''}
${buttons ? `<div class="signin-actions">${buttons}</div>` : ''}${fine ? `\n<p class="muted signin-fine">${fine}</p>` : ''}</section>`
}
/** Step 1: sign in with Kody. */
function signInCard(loginHref: string): string {
return stepCard(
'signin-title',
'Sign in to listen',
`Sign in, then confirm you're in the ${esc(GUILD_NAME)} Discord.`,
[{ label: 'Sign in with Kody', href: loginHref }, { label: 'Create a Free Account', href: SIGNUP_URL, ghost: true, newTab: true }],
`New accounts open Kody in a new tab; come back here and tap Sign in with Kody.<br>One Discord check unlocks the radio for ${MEMBERSHIP_DAYS} days.`,
)
}
const privacyFine = `We ask Discord once, keep only "member: yes/no" and your Discord name, and throw the token away.<br>A check is good for ${MEMBERSHIP_DAYS} days.`
/** Step 2: confirm Discord membership (first time, lapsed, not a member, or after an error). */
function discordCard(base: string, s: Extract<PageState, { kind: 'unverified' }>): string {
const start = `${base}/discord/start`
if (!DISCORD_CLIENT_ID) return stepCard('discord-title', 'Confirm your Discord', 'Discord sign-in is not set up yet (no Discord client ID).', [])
if (s.error) return stepCard('discord-title', 'Something went wrong', esc(s.error), [{ label: 'Check with Discord', href: start }], privacyFine)
if (s.notMember) {
const who = s.notMember.discordName ? ` <strong>${esc(s.notMember.discordName)}</strong>` : ''
return stepCard(
'discord-title',
'Not in the Discord yet',
`Your Discord account${who} isn't in the ${esc(GUILD_NAME)} server.`,
[{ label: `Join the ${GUILD_NAME} Discord`, href: GUILD_INVITE, newTab: true }, { label: 'Check again', href: start, ghost: true }],
`Join the server, then tap Check again.<br>${privacyFine}`,
)
}
if (s.expired) return stepCard('discord-title', 'Check your Discord again', `Your last check is more than ${MEMBERSHIP_DAYS} days old.`, [{ label: 'Check with Discord', href: start }], privacyFine)
return stepCard('discord-title', 'Confirm your Discord', `We'll check you're in the ${esc(GUILD_NAME)} Discord.`, [{ label: 'Check with Discord', href: start }], privacyFine)
}
const MONTHS = ['Jan.', 'Feb.', 'Mar.', 'Apr.', 'May', 'Jun.', 'Jul.', 'Aug.', 'Sep.', 'Oct.', 'Nov.', 'Dec.']
/**
* Format a date as "Nov. 27" in America/New_York ("May" has no period); the year is added only when it
* differs from the current year there ("Jan. 3, 2027").
*
* @param iso - an ISO timestamp
* @param now - the current time (for the year comparison)
* @returns the short date
*/
export function shortDate(iso: string, now = new Date()): string {
const parts = (d: Date) => {
const p = Object.fromEntries(new Intl.DateTimeFormat('en-US', { timeZone: 'America/New_York', year: 'numeric', month: 'numeric', day: 'numeric' }).formatToParts(d).map((x) => [x.type, x.value]))
return { y: Number(p.year), m: Number(p.month), d: Number(p.day) }
}
const t = parts(new Date(iso))
const base = `${MONTHS[t.m - 1]} ${t.d}`
return t.y === parts(now).y ? base : `${base}, ${t.y}`
}
/** Track list with players (members only). */
function trackList(base: string, radio: View, art: Record<number, string> = {}, plays: Record<number, Plays> = {}): string {
const items = radio.tracks
.map((t) => {
const n = nn(t.n)
if (!t.released) return `<li class="track locked"><span class="track-cover" aria-hidden="true"></span><span class="track-info"><span class="track-title">${n} · ${esc(t.title)}</span><span class="muted">opens ${esc(t.opens ?? 'soon')}</span></span></li>`
const src = `${base}/files/radio/${n}`
const p = plays[t.n] ?? { total: 0, mine: 0 }
const tip = playsTip(p)
const stat = `<span class="plays-wrap"><button type="button" class="plays" data-plays data-total="${p.total}" data-mine="${p.mine}" title="${esc(tip)}" aria-label="${esc(tip)}" aria-expanded="false" aria-controls="tip-${n}">▶ ${p.total}</button><span class="tip" id="tip-${n}" role="tooltip" hidden>${esc(tip)}</span></span><span class="on-repeat" data-on-repeat>${esc(onRepeat(p.mine))}</span>`
return `<li class="track" data-track data-n="${t.n}" data-src="${esc(src)}.mp3" data-cover="${esc(art[t.n] ?? `${src}.png`)}" data-title="${esc(t.title)}" data-length="${esc(t.length ?? '')}"><button type="button" class="track-play" data-play aria-label="Play ${n} · ${esc(t.title)}"><img class="track-cover" src="${esc(src)}.png" alt="" width="64" height="64" loading="lazy"><span class="track-state" aria-hidden="true">▶</span></button><span class="track-info"><button type="button" class="track-name" data-play><span class="track-title">${n} · ${esc(t.title)}</span><span class="eq" aria-hidden="true"><i></i><i></i><i></i></span></button><span class="muted track-meta">${t.length ? `${esc(t.length)} · ` : ''}${stat}</span></span></li>`
})
.join('')
const repeat = `<button type="button" class="icon-btn repeat-btn" data-repeat data-mode="off" aria-label="Repeat: off. Press for repeat all." title="Repeat: off"><svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true" focusable="false" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 2l4 4-4 4"/><path d="M3 11v-1a4 4 0 0 1 4-4h14"/><path d="M7 22l-4-4 4-4"/><path d="M21 13v1a4 4 0 0 1-4 4H3"/></svg><span class="repeat-badge" aria-hidden="true">1</span></button><span id="repeat-status" class="sr" aria-live="polite"></span>`
return `<h2>${esc(radio.album)}</h2><p class="muted"><a href="${esc(base)}/">MEGA Radio</a> · ${radio.tracks.filter((t) => t.released).length} of ${radio.tracks.length} tracks open</p><div class="now" id="now"><div class="now-title" id="now-title" aria-live="polite">Pick a track</div><audio id="radio-audio" controls playsinline webkit-playsinline preload="none" x-webkit-airplay="allow"></audio><div class="now-controls"><button type="button" class="icon-btn" data-prev aria-label="Previous track" title="Previous track"><svg class="fa" viewBox="0 0 320 512" width="14" height="16" aria-hidden="true" focusable="false" fill="currentColor"><!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc. --><path d="M267.5 440.6c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29l0-320c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4l-192 160L64 241 64 96c0-17.7-14.3-32-32-32S0 78.3 0 96L0 416c0 17.7 14.3 32 32 32s32-14.3 32-32l0-145 11.5 9.6 192 160z"/></svg></button><button type="button" class="icon-btn" data-next aria-label="Next track" title="Next track"><svg class="fa" viewBox="0 0 320 512" width="14" height="16" aria-hidden="true" focusable="false" fill="currentColor"><!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc. --><path d="M52.5 440.6c-9.5 7.9-22.8 9.7-34.1 4.4S0 428.4 0 416L0 96C0 83.6 7.2 72.3 18.4 67s24.5-3.6 34.1 4.4l192 160L256 241l0-145c0-17.7 14.3-32 32-32s32 14.3 32 32l0 320c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-145-11.5 9.6-192 160z"/></svg></button>${repeat}</div></div><ol class="tracks">${items}</ol>`
}
/**
* Destructive "forget my Discord check" step. The pill only opens a confirm dialog.
* The POST form is submitted by the dialog's Forget button; Cancel is the default (autofocus, and the dialog form's only submit button).
*
* @param base - app base path
* @returns the step card, dialog, and the inert POST form
*/
function forgetCard(base: string): string {
const card = stepCard(
'forget-title',
'Your Discord check',
'',
[{ label: 'Forget My Discord Check…', danger: true, opensDialog: 'forget-dialog' }],
`Forgetting removes your saved check; you'll need to check again to listen.`,
)
return `${card}<dialog id="forget-dialog" aria-labelledby="forget-dlg-title" aria-describedby="forget-dlg-body"><form method="dialog" class="alert"><div class="alert-copy"><h2 id="forget-dlg-title" class="alert-title">Forget Your Discord Check?</h2><p id="forget-dlg-body">Your saved check will be removed. You'll need to check again with Discord before you can listen.</p></div><div class="alert-actions"><button type="submit" class="alert-cancel" autofocus>Cancel</button><button type="submit" class="alert-forget" form="forget-post">Forget</button></div></form></dialog><form id="forget-post" method="post" action="${esc(base)}/forget"></form><script>(function(){var open=document.querySelector('[data-confirm-open]');var dlg=document.getElementById('forget-dialog');if(!open||!dlg||typeof dlg.showModal!=='function')return;open.addEventListener('click',function(){dlg.showModal();});})();</script>`
}
/**
* Render the page for the visitor's current state.
*
* @param base - app base path
* @param s - who is visiting and what we know about their membership
* @returns HTML
*/
export function renderPage(base: string, s: PageState, now = new Date()): string {
const intro = `<p class="muted intro">The WAKE album from the ${esc(GUILD_NAME)} course, for members of the <a href="${esc(GUILD_INVITE)}">${esc(GUILD_NAME)} Discord</a>.</p>`
if (s.kind === 'signed-out') {
return shell(base, `${intro}${signInCard(s.loginHref)}`)
}
const right = `<span class="muted who">${esc(s.username)}</span><a class="signout" href="${esc(s.logoutHref)}">Sign Out</a>`
if (s.kind === 'member') {
const memberIntro = `<p class="muted intro">The WAKE album from the ${esc(GUILD_NAME)} course, for members of the <a href="${esc(GUILD_INVITE)}">${esc(GUILD_NAME)} Discord</a>, which now includes you! You’re validated through ${esc(shortDate(s.expiresAt, now))}.</p>`
return shell(base, `${memberIntro}${trackList(base, s.radio ?? seedView(), s.art, s.plays)}${forgetCard(base)}`, right)
}
return shell(base, `${intro}${discordCard(base, s)}`, right)
}
/** Plain error page. */
export const errorPage = (base: string, message: string) => shell(base, stepCard('error-title', 'Something went wrong', esc(message), [{ label: 'Start again', href: `${base}/` }]))
/**
* Put the old/new origin pair on <html> for the move script (src/move.ts).
*
* @param html - a page from renderPage, errorPage or movePage
* @param o - the origin pair (src/origins.ts)
* @returns the page with data-old-origin, data-new-origin and data-old-base
*/
export function withOrigins(html: string, o: Origins): string {
return html.replace(/<html lang="en" /, `<html lang="en" data-old-origin="${esc(o.old)}" data-new-origin="${esc(o.new)}" data-old-base="${esc(o.oldBase)}" `)
}
/**
* The import page on the new address (opened by the old address's "Move my data" button, or directly to
* import a downloaded file). The script in src/move.ts does the work; it only imports on the new origin.
*
* @param base - app base path
* @returns HTML
*/
export function movePage(base: string): string {
return shell(
base,
`<section class="card move-page" data-move-page aria-labelledby="move-page-title"><h2 id="move-page-title">Bring your MEGA Radio data</h2>
<p class="muted">If you used MEGA Radio at the old address (noah.kody.run/mega-radio), your repeat setting can come with you. Use Move my data on the old address, or import the file it downloaded.</p>
<p class="muted move-status" data-move-status role="status" aria-live="polite"></p>
<div class="move-ask" data-move-ask hidden></div>
<div class="actions"><label class="pill ghost move-file">Import data<input type="file" accept="application/json,.json" data-move-file></label>
<a class="pill kody" data-move-home href="${esc(base)}/" hidden>Go to MEGA Radio</a></div></section>`,
)
}