ModsCode / Claude Code Mods / Ranking / jukebox7
jukebox7
Plays music from YouTube when asked in plain words, audio only through a hidden VLC, with a small control pane
What it does
- Draws a pane, the status line, toasts
- Adds /music
- Hooks prompt.submit, session.end, session.start, state.set
- Keeps its own state between turns
- Starts processes
Good points
- No network calls
- Written in TypeScript
- Has a desktop-specific branch
- Handles errors
Code to start from
A starter ModsCode writes from the drawing it read, and the mod's own lines that draw, where there are any.
Starter (register.tsx)
import type { Register } from 'claude-code'
// Drawn like jukebox7 by KTCrisis (pane, status, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/ktcrisis-jukebox7/
// Written by ModsCode from that reading, not copied from the mod: use it as you like.
// Each value below stands for one the mod works out at run time; put in your own.
export const register: Register = on => {
// the pane: open it with $.ui.open({ id: 'my-pane', title: "jukebox7" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Input } = $.ui.resolve(e)
const title = '…'
const done = '…'
const left = '…'
const time = '…'
const where = '…'
const level = '…'
const label = '…'
const key = '…'
const name = '…'
const value = '…'
const PICK_KEYS = '…'
const text = '…'
const text2 = '…'
const text3 = '…'
const text4 = '…'
const text5 = '…'
const text6 = '…'
const text7 = '…'
const text8 = '…'
const text9 = '…'
return (
<Box flexDirection="column" width="100%" backgroundColor="#000000">
<Box flexDirection="column" borderStyle="round" backgroundColor="#000000" paddingX={1}>
<Text backgroundColor="#000000">
{"■ "}
{title}
</Text>
<Text backgroundColor="#000000">
<Text>
{done}
</Text>
<Text dimColor>
{left}
</Text>
<Text dimColor>
{` ${time} ${where} vol ${level}%`}
</Text>
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={2} backgroundColor="#000000">
<Button label="pause" hotkey="p" plain />
<Button label="next" hotkey="n" plain />
<Button label="similar" hotkey="r" plain />
<Button label="stop" hotkey="s" plain dimColor />
<Button label="vol−" hotkey="d" plain dimColor />
<Button label="vol+" hotkey="u" plain dimColor />
</Box>
<Box flexDirection="row" flexWrap="wrap" columnGap={2} backgroundColor="#000000">
<Button label={`${label}`} hotkey={`${key}`} plain dimColor />
<Button label={`${label}`} hotkey={`${key}`} plain dimColor />
<Button label={`${label}`} hotkey={`${key}`} plain dimColor />
<Button label={`${name}'s pick`} hotkey="a" plain />
<Button label="close search" hotkey="f" plain />
</Box>
<Box flexDirection="column" backgroundColor="#000000">
<Input label="find: " placeholder="ctrl+x tab, a search, Enter" submitLabel="find" autoFocus />
<Button label={`${value}`} hotkey={`${PICK_KEYS}`} plain />
<Button label={`${value}`} hotkey={`${PICK_KEYS}`} plain />
<Button label={`${value}`} hotkey={`${PICK_KEYS}`} plain />
</Box>
</Box>
<Box flexDirection="column" flexGrow={1} paddingX={1} backgroundColor="#000000">
<Text backgroundColor="#000000">
<Text color="#e8fff4">
{text}
</Text>
<Text color="#e8fff4">
{text2}
</Text>
<Text color="#e8fff4">
{text3}
</Text>
</Text>
<Text backgroundColor="#000000">
<Text color="#e8fff4">
{text4}
</Text>
<Text color="#e8fff4">
{text5}
</Text>
<Text color="#e8fff4">
{text6}
</Text>
</Text>
<Text backgroundColor="#000000">
<Text color="#e8fff4">
{text7}
</Text>
<Text color="#e8fff4">
{text8}
</Text>
<Text color="#e8fff4">
{text9}
</Text>
</Text>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const name = '…'
const artist = '…'
await $.ui.status(`music: looking for ${name}, ${artist}…`)
await $.ui.toast(`music: a song is already on its way`)
await $.ui.toast(`music: VLC did not answer, try again`)
return next(e)
})
}
The mod's own code
Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.
jukebox7/hooks/register.tsx lines 858–1017 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const { Box, Text, Button, Input } = $.ui.resolve(e)
const p = await read($, player)
const level = await read($, volume)
const now = p.tracks[p.index]
const { value: avatar } = await $.state.get(onDuty)
const { value: onAir } = await $.state.get(onStation)
const station = onAir !== undefined && onAir.artists.length > 0 ? onAir : undefined
const isTerminal = e.surface === 'terminal'
// The border and the play glyph take three columns on the terminal.
const width = Math.max(10, (e.props.bodyColumns ?? 40) - (isTerminal ? 5 : 2))
const title = now === undefined ? 'Nothing plays.' : now.title.length > width ? `${now.title.slice(0, width - 1)}…` : now.title
const where = p.genre === null || p.genre === undefined ? `${p.index + 1}/${p.tracks.length}` : (GENRES.some(g => g.label === p.genre) ? p.genre : (onAir?.name || p.genre))
// A list, not a fragment: the terminal lays a fragment out as a column of
// its own, which stacked the controls one per row and cut off `u: vol+`.
const controls = [
<Button key="toggle" label={p.isPlaying ? 'pause' : 'play'} hotkey="p" plain onPress={() => void toggle($)} />,
<Button key="next" label="next" hotkey="n" plain onPress={() => void once($, () => skip($, 1))} />,
<Button key="similar" label="similar" hotkey="r" plain onPress={() => void once($, () => playSimilar($))} />,
<Button key="stop" label="stop" hotkey="s" plain dimColor onPress={() => void stop($)} />,
<Button key="quieter" label="vol−" hotkey="d" plain dimColor onPress={() => void louder($, -VOLUME_STEP)} />,
<Button key="louder" label="vol+" hotkey="u" plain dimColor onPress={() => void louder($, VOLUME_STEP)} />,
]
const f = await read($, found)
const isSearching = await read($, searching)
const fit = (t: string, room: number): string => (t.length > room ? `${t.slice(0, room - 1)}…` : t)
const reopen = (open: boolean, results: number) => void $.ui.open({ id: PANE, title: 'jukebox7', rows: paneRows(open, results) })
const finder = (
<Button
key="find"
label={isSearching ? 'close search' : 'find'}
hotkey="f"
plain
dimColor={!isSearching}
onPress={() => {
void (async () => {
await update($, searching, () => !isSearching)
reopen(!isSearching, f.tracks.length)
})()
}}
/>
)
const search = isSearching ? (
<Box flexDirection="column" backgroundColor={isTerminal ? BLACK : undefined}>
<Input
key="query"
label="find: "
placeholder={f.query === '' ? 'ctrl+x tab, a search, Enter' : f.query}
submitLabel="find"
autoFocus
onSubmit={value => {
const query = value.replace(/\s+/g, ' ').trim()
if (query === '' || isFinding) return
void (async () => {
const pending = find($, query)
$.ui.invalidate('ui.render')
const tracks = await pending
reopen(true, tracks?.length ?? 1)
$.ui.invalidate('ui.render')
})()
}}
/>
{isFinding ? (
<Text dimColor>searching…</Text>
) : f.query !== '' && f.tracks.length === 0 ? (
<Text dimColor>{`nothing found for "${f.query}"`}</Text>
) : (
f.tracks.slice(0, PICK_KEYS.length).map((t, i) => (
<Button
key={`pick-${t.id}`}
label={fit(`${t.title}${t.seconds === null ? '' : ` (${clock(t.seconds)})`}`, width - 3)}
hotkey={PICK_KEYS[i]}
plain
dimColor={now?.id !== t.id}
onPress={() => void once($, () => pick($, i))}
/>
))
)}
</Box>
) : null
const stations = (
<Box flexDirection="row" flexWrap="wrap" columnGap={2} backgroundColor={isTerminal ? BLACK : undefined}>
{GENRES.map(g => (
<Button key={g.label} label={g.label} hotkey={g.key} plain dimColor onPress={() => void once($, () => playGenre($, g.label))} />
))}
{station !== undefined && avatar !== undefined && (
<Button key="avatar" label={`${station.name}'s pick`} hotkey="a" plain onPress={() => void once($, () => playGenre($, avatar))} />
)}
{isTerminal && finder}
</Box>
)
if (!isTerminal) {
return (
<Box flexDirection="column">
<Text dimColor={now === undefined || !p.isPlaying}>{title}</Text>
{now !== undefined && (
<Box flexDirection="row" gap={2}>
<Text dimColor>
{p.isPlaying ? 'playing' : 'paused'} {where} · vol {level}%
</Text>
{controls}
</Box>
)}
{stations}
{finder}
{search}
</Box>
)
}
// The terminal: black, framed and lit in the color of the avatar on duty.
const { value: color } = await $.state.get(tint)
const accent = typeof color === 'string' && color !== '' ? color : PHOSPHOR
const bar = progress(p, await $.clock.now(), now?.seconds ?? null)
const rows = e.props.scroll?.bodyRows ?? 0
// The frame, the title, the bar, the controls and the stations; the rain
// takes what is left of the pane's height.
// The controls and the stations wrap inside the frame (border and padding:
// four columns); each row they take comes out of the rain.
const inner = Math.max(10, (e.props.bodyColumns ?? 40) - 4)
const controlRows = now === undefined ? 0 : buttonRows([p.isPlaying ? 'pause' : 'play', 'next', 'similar', 'stop', 'vol−', 'vol+'], inner)
const stationRows = buttonRows(
[...GENRES.map(g => g.label), ...(station !== undefined ? [`${station.name}'s pick`] : []), isSearching ? 'close search' : 'find'],
inner,
)
// The field, then a result a row (or the one line saying why there are none).
const searchRows = isSearching ? 1 + (isFinding || f.tracks.length === 0 ? (f.query === '' && !isFinding ? 0 : 1) : Math.min(f.tracks.length, PICK_KEYS.length)) : 0
// The frame's two borders, the title, the bar when something plays.
const rainRows = Math.max(0, rows - 3 - (now === undefined ? 0 : 1) - controlRows - stationRows - searchRows)
const rainColumns = Math.max(0, (e.props.bodyColumns ?? 40) - 2)
return (
<Box flexDirection="column" width="100%" height={rows > 0 ? rows : undefined} backgroundColor={BLACK}>
<Box flexDirection="column" borderStyle="round" borderColor={accent} backgroundColor={BLACK} paddingX={1}>
<Text color={accent} backgroundColor={BLACK} dimColor={now === undefined || !p.isPlaying}>
{now === undefined ? '■ ' : p.isPlaying ? '▶ ' : '❚❚ '}
{title}
</Text>
{now !== undefined && (
<Text backgroundColor={BLACK}>
<Text color={accent}>{bar.done}</Text>
<Text dimColor>{bar.left}</Text>
<Text dimColor>{` ${bar.time} ${where} vol ${level}%`}</Text>
</Text>
)}
{now !== undefined && (
<Box flexDirection="row" flexWrap="wrap" columnGap={2} backgroundColor={BLACK}>
{controls}
</Box>
)}
{stations}
{search}
</Box>
<Box flexDirection="column" flexGrow={1} paddingX={1} backgroundColor={BLACK}>
{rain(rainColumns, rainRows, frame).map((runs, r) => (
<Text key={String(r)} backgroundColor={BLACK}>
{runs.map((run, i) => (
<Text key={String(i)} color={run.level === 2 ? '#e8fff4' : accent} dimColor={run.level === 1}>Licence text (MIT)
MIT License Copyright (c) 2026 Marc Verchiani Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
How to build this: Pane (panel), Rewrite the prompt
What its code calls
runs programsdrives Clauderemembers
What its code shows
Read from the source at commit 88f476754ae4 on 2026-10-11. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.
| Decides the listing: code you can check | |
|---|---|
| Entry read | Every module hooks/hooks.json names was read.jukebox7/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.2 files parsed |
| All its code is in the mod | Every import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod |
| Readable | No minified lines, no eval or new Function, no import of a computed path, no encoded blobs.no minified code, no eval, no encoded blobs |
| Calls in the open | Network and programs are reached as $.http.fetch and $.process.run in place, never passed around.every call outside goes through $ in the open |
| For you to weigh before installing | |
| Where it draws | The terminal, the desktop app, both, or nothing (hooks only: a guard or a prompt rewriter), as its code says. Shown, never a reason to leave a mod out.draws in the terminal and the desktop app, the same in both |
| Install line | Whether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.its repository's .claude-plugin/marketplace.json does not list it: no marketplace line to give; the page shows how to try the commit read |
| Programs on Windows | Whether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).jukebox7/hooks/register.tsx:641 kill (not on Windows) |
| Network | Whether every fetch names its https host in the code.no network |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.jukebox7/hooks/register.tsx:361 a program named at run time; jukebox7/hooks/register.tsx:362 a program named at run time; jukebox7/hooks/register.tsx:364 a program named at run time; jukebox7/hooks/register.tsx:371 a program named at run time; jukebox7/hooks/register.tsx:398 a program named at run time |
| Reads and sends | Whether it both reads something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reaches nothing outside |
| Keys in the source | Whether the source holds what looks like an API key or a private key.no keys in the source |
| Licence | An open licence (MIT, Apache-2.0, BSD, ISC, Unlicense, 0BSD, CC0) with its text lets ModsCode show its code; otherwise the code is linked.MIT |
| Settings hooks | Hooks declared in hooks/hooks.json or plugin.json beside the module: a command (a shell when it has no args), an HTTP request, an MCP tool or a model prompt at an event. They run outside $.no settings hooks: its function hooks alone |
| Servers it ships | MCP servers (a program, or a URL; a headersHelper is a shell command; a .mcpb bundle is unpacked at run time), LSP servers, monitors (a shell command for the whole session) and bin/ (on the PATH of the Bash tool).ships no MCP or LSP server, no monitor, no bin/ |
| Skills, commands, agents | What its Markdown declares beyond text: allowed-tools granted for the turn, hooks added when a skill is invoked, a command run before Claude reads the skill.no skills, commands, agents or workflows |
| Tools and MCP | Whether every tool it calls through $.tool.call and $.mcp.call is named in the code, and none is a shell (Bash through the tool runs a shell without $.process).calls no tool, MCP server or command |
| Asks of the model | Completions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.adds command music, model.complete |
| Events it hooks | By what a hook there can do: gates (refuse a tool call, a prompt, a setting, another plugin), shapes (what the model reads: the system prompt, tool descriptions, each request), reads (your input, the events of the settings hooks, every event with *), and the rest.gates: prompt.submit, command.run (music) · also: state.set, session.start, session.end, ui.render (Pane) · timers: clock.every |
| Reads, by name | The environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.reads no files, environment variables, settings or transcript |
| Writes, by name | The files and environment variables it names, and whether it changes settings, the prompt box, the clipboard, the conversation (a row the model reads) or another session.writes no files, environment variables, settings or conversation rows |
This is a reading of the code text, not a security review: it does not run the mod, and it cannot see what a program the mod starts does. The check before installing is yours. How mods are chosen
Install it
Check it yourself before you install it. Mods run unsandboxed, with your permissions, and ModsCode does not vouch for what this code does. Read its code (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.
Its repository's .claude-plugin/marketplace.json does not list it, so there is no marketplace line to give.
Try the commit ModsCode read
No marketplace needed. In a terminal, clone the repository, check out the commit read, validate the mod, and load it for one session:
git clone https://github.com/KTCrisis/flux7-modsgit -C flux7-mods checkout 88f476754ae4cc1d42a11180e01f8262d9057527claude plugin validate flux7-mods/jukebox7claude --plugin-dir flux7-mods/jukebox7The validate line lists the events the mod hooks and what it asks Claude Code to do, without running it. The last line loads the mod for this session only and writes nothing to your settings. If the author has rewritten history, the commit may no longer exist.
Ask Claude about it
With the ModsCode connector added, Claude can read this mod's code and what it reaches, and build on them. Ask it like this:
Read the ModsCode mod "ktcrisis-jukebox7" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- code-modernizationAnthropic★ 37,653
- great-ctoAlexander Velikiy★ 103
- agent-discoverkeshrath★ 7
- context-keeperMichael Goldenberg★ 6
- guardrailsMichael Goldenberg★ 6
- roadraven-hudShuffzord★ 6
More from this repository
Badge for your README
If this is your mod, paste this into your README. It links to this page.
[](https://modscode.com/claude-mods/mods/ktcrisis-jukebox7/)