Skip to content

Black Friday

Annual Pro is $90 for the first year, normally $120. Or start monthly at $6 for two months, then $12.

Ends Dec 4, 11:59 PM PT.

Create an account
← 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.

FollowForkOpen app

Files

store.ts

8 lines · 425 B · TypeScript
/** This package's radio file store (internal; the owner-only ./audio-store export and the app use it). */
import { packageStorage } from 'kody:runtime'
import { createAudioStore } from './audio-core.ts'

export const store = createAudioStore(async (query, bindings = []) => {
	const result = (await packageStorage().sql(query, bindings as never)) as { rows?: Record<string, unknown>[] } | null
	return result?.rows ?? []
})