modscode JA

modscode / Gallery / deploy-deck

deploy-deck

Live deploy tracker for GitHub Actions and Deployments, Vercel, Cloudflare Pages and Workers, and Render: a stage pipeline above the prompt, a /deploys panel, toasts and a status line. Read-only.

Code you can checkTerminal + desktopPaneBandStatus lineToastBoxText

What it does

  • Draws a band above the prompt, a pane
  • Hooks prompt.submit, session.end, session.start
  • Keeps its own state between turns
  • Calls the network
  • Starts processes

Good points

  • Written in TypeScript
  • Has a desktop-specific branch
  • Handles errors
  • Writes no files

Code to start from

Two kinds: a starter modscode writes from the design above, and the lines of the mod's own code that draw it.

Starter (register.tsx)

register.tsx
import type { Register } from 'claude-code'

// Drawn like deploy-deck by mrjk05 (pane, band, status, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/mrjk05-deploy-deck/
// 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 band above the prompt; what else goes there is drawn under it
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    const { Box, Text } = $.ui.resolve(e)
    const label = '…'
    const elapsed = '…'
    const label2 = '…'
    const elapsed2 = '…'
    const label3 = '…'
    const elapsed3 = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="column">
          <Box flexDirection="row">
            <Text wrap="truncate">
              {label}
              {" "}
            </Text>
            <Text dimColor>
              {"  "}
              {elapsed}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text wrap="truncate">
              {label2}
              {" "}
            </Text>
            <Text dimColor>
              {"  "}
              {elapsed2}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text wrap="truncate">
              {label3}
              {" "}
            </Text>
            <Text dimColor>
              {"  "}
              {elapsed3}
            </Text>
          </Box>
        </Box>
        {await next(e)}
      </Box>
    )
  })

  // the pane: open it with $.ui.open({ id: 'my-pane', title: "Deploys" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text } = $.ui.resolve(e)
    const title = '…'
    const auth = '…'
    const error = '…'
    const head = '…'
    const facts = '…'
    const joinLinks = '…'
    const message = '…'
    const head2 = '…'
    const joinLinks2 = '…'
    const message2 = '…'
    const head3 = '…'
    const joinLinks3 = '…'
    const message3 = '…'
    const title2 = '…'
    const auth2 = '…'
    const error2 = '…'
    const head4 = '…'
    const joinLinks4 = '…'
    const message4 = '…'
    const head5 = '…'
    const joinLinks5 = '…'
    const message5 = '…'
    const head6 = '…'
    const joinLinks6 = '…'
    const message6 = '…'
    const title3 = '…'
    const auth3 = '…'
    const error3 = '…'
    const head7 = '…'
    const joinLinks7 = '…'
    const message7 = '…'
    const head8 = '…'
    const joinLinks8 = '…'
    const message8 = '…'
    const head9 = '…'
    const joinLinks9 = '…'
    const message9 = '…'
    return (
      <Box flexDirection="column" gap={1}>
        <Box flexDirection="row" justifyContent="space-between">
          <Text bold>
            Deploys
          </Text>
          <Text dimColor>
            stopped
          </Text>
        </Box>
        <Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
          <Box flexDirection="column">
            <Box flexDirection="row" justifyContent="space-between">
              <Text bold wrap="truncate">
                {title}
              </Text>
              <Text dimColor>
                {auth}
              </Text>
            </Box>
            <Text color="warning" wrap="wrap">
              {"⚠ "}
              {error}
            </Text>
            <Text dimColor>
              not read yet
            </Text>
            <Box flexDirection="column">
              <Text wrap="truncate">
                <Text>
                  {head}
                </Text>
                <Text>
                  {`  ${facts}`}
                </Text>
              </Text>
              <Text wrap="truncate">
                {"  "}
                {joinLinks}
                <Text dimColor>
                  {"  "}
                  {message}
                </Text>
              </Text>
            </Box>
            <Box flexDirection="column">
              <Text wrap="truncate">
                <Text>
                  {head2}
                </Text>
                <Text>
                  {`  ${facts}`}
                </Text>
              </Text>
              <Text wrap="truncate">
                {"  "}
                {joinLinks2}
                <Text dimColor>
                  {"  "}
                  {message2}
                </Text>
              </Text>
            </Box>
            <Box flexDirection="column">
              <Text wrap="truncate">
                <Text>
                  {head3}
                </Text>
                <Text>
                  {`  ${facts}`}
                </Text>
              </Text>
              <Text wrap="truncate">
                {"  "}
                {joinLinks3}
                <Text dimColor>
                  {"  "}
                  {message3}
                </Text>
              </Text>
            </Box>
          </Box>
        </Box>
        <Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
          <Box flexDirection="column">
            <Box flexDirection="row" justifyContent="space-between">
              <Text bold wrap="truncate">
                {title2}
              </Text>
              <Text dimColor>
                {auth2}
              </Text>
            </Box>
            <Text color="warning" wrap="wrap">
              {"⚠ "}
              {error2}
            </Text>
            <Text dimColor>
              not read yet
            </Text>
            <Box flexDirection="column">
              <Text wrap="truncate">
                <Text>
                  {head4}
                </Text>
                <Text>
                  {`  ${facts}`}
                </Text>
              </Text>
              <Text wrap="truncate">
                {"  "}
                {joinLinks4}
                <Text dimColor>
                  {"  "}
                  {message4}
                </Text>
              </Text>
            </Box>
            <Box flexDirection="column">
              <Text wrap="truncate">
                <Text>
                  {head5}
                </Text>
                <Text>
                  {`  ${facts}`}
                </Text>
              </Text>
              <Text wrap="truncate">
                {"  "}
                {joinLinks5}
                <Text dimColor>
                  {"  "}
                  {message5}
                </Text>
              </Text>
            </Box>
            <Box flexDirection="column">
              <Text wrap="truncate">
                <Text>
                  {head6}
                </Text>
                <Text>
                  {`  ${facts}`}
                </Text>
              </Text>
              <Text wrap="truncate">
                {"  "}
                {joinLinks6}
                <Text dimColor>
                  {"  "}
                  {message6}
                </Text>
              </Text>
            </Box>
          </Box>
        </Box>
        <Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
          <Box flexDirection="column">
            <Box flexDirection="row" justifyContent="space-between">
              <Text bold wrap="truncate">
                {title3}
              </Text>
              <Text dimColor>
                {auth3}
              </Text>
            </Box>
            <Text color="warning" wrap="wrap">
              {"⚠ "}
              {error3}
            </Text>
            <Text dimColor>
              not read yet
            </Text>
            <Box flexDirection="column">
              <Text wrap="truncate">
                <Text>
                  {head7}
                </Text>
                <Text>
                  {`  ${facts}`}
                </Text>
              </Text>
              <Text wrap="truncate">
                {"  "}
                {joinLinks7}
                <Text dimColor>
                  {"  "}
                  {message7}
                </Text>
              </Text>
            </Box>
            <Box flexDirection="column">
              <Text wrap="truncate">
                <Text>
                  {head8}
                </Text>
                <Text>
                  {`  ${facts}`}
                </Text>
              </Text>
              <Text wrap="truncate">
                {"  "}
                {joinLinks8}
                <Text dimColor>
                  {"  "}
                  {message8}
                </Text>
              </Text>
            </Box>
            <Box flexDirection="column">
              <Text wrap="truncate">
                <Text>
                  {head9}
                </Text>
                <Text>
                  {`  ${facts}`}
                </Text>
              </Text>
              <Text wrap="truncate">
                {"  "}
                {joinLinks9}
                <Text dimColor>
                  {"  "}
                  {message9}
                </Text>
              </Text>
            </Box>
          </Box>
        </Box>
        <Text dimColor wrap="truncate">
          /deploys refresh · add · remove · status
        </Text>
      </Box>
    )
  })
}

The mod's own code

Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.

mods/deploy-deck/hooks/register.tsx lines 505–570 · Band
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    const feeds = await read($, feedsAtom)
    const finished = await read($, finishedAtom)
    const now = await read($, nowAtom)
    const shown = cfg.band && !e.props.hasSurvey ? bandDeploys(feeds, finished, now) : []
    const below = await next(e)
    if (shown.length === 0) return below

    const { Box, Text } = $.ui.resolve(e)
    const width = Math.max(10, e.props.bodyColumns)
    const room = Math.max(1, e.props.maxRows - (drawsNothing(below) ? 0 : 1))
    const visible = shown.length > room ? shown.slice(0, Math.max(0, room - 1)) : shown
    const hidden = shown.length - visible.length
    const styled = (run: Run) => (
      <Text color={run.color} dimColor={run.dim} bold={run.bold}>
        {run.text}
      </Text>
    )

    const rows = visible.map(deploy => {
      const elapsed = formatElapsed(elapsedOf(deploy, now))
      const label = deployLabel(deploy)
      const full = pipeline(deploy, false)
      const compact = pipeline(deploy, true)
      const fullLen = runsText(full).length
      const word = stageWord(deploy)
      let runs: Run[]
      if (width >= fullLen + elapsed.length + 14) runs = full
      else if (width >= runsText(compact).length + word.length + elapsed.length + 12) {
        runs = [...compact, { text: ` ${word}`, color: stageColor(deploy.stage), bold: true }]
      } else runs = [{ text: `${stageGlyph(deploy.stage)} ${word}`, color: stageColor(deploy.stage), bold: true }]
      const used = runsText(runs).length + elapsed.length + 2
      const labelRoom = Math.max(0, width - used - 1)
      return (
        <Box key={`band:${deploy.key}`} flexDirection="row">
          <Text bold={isActive(deploy, now)} dimColor={!isActive(deploy, now)} wrap="truncate">
            {truncate(label, labelRoom).padEnd(labelRoom)}{' '}
          </Text>
          {runs.map(styled)}
          <Text dimColor>
            {'  '}
            {elapsed}
          </Text>
        </Box>
      )
    })
    if (hidden > 0) {
      rows.push(
        <Text key="band:more" dimColor>
          {truncate(`+${hidden} more · /${COMMAND}`, width)}
        </Text>,
      )
    }
    const mine = (
      <Box key="deploy-deck" flexDirection="column">
        {rows}
      </Box>
    )
    if (drawsNothing(below)) return mine
    return (
      <Box flexDirection="column">
        {mine}
        {below}
      </Box>
    )
  })
mods/deploy-deck/hooks/register.tsx lines 574–685 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const { Box, Text, Link } = $.ui.resolve(e)
    const targets = await read($, targetsAtom)
    const feeds = await read($, feedsAtom)
    const now = await read($, nowAtom)
    const interval = await read($, intervalAtom)
    const width = Math.max(20, e.props.bodyColumns)
    const isDesktop = e.surface === 'desktop'
    const inner = isDesktop ? width - 4 : width

    const header = (
      <Box flexDirection="row" justifyContent="space-between">
        <Text bold>Deploys</Text>
        <Text dimColor>{truncate(`${interval === 0 ? 'stopped' : `every ${Math.round(interval / 1000)}s`}`, Math.max(0, width - 9))}</Text>
      </Box>
    )
    if (isUnconfigured(targets, cfg)) {
      return (
        <Box flexDirection="column" gap={1}>
          {header}
          <Text wrap="wrap">{targets.length === 0 ? 'No deploy targets found in this repo.' : 'No credentials for the detected targets.'}</Text>
          <Text wrap="wrap" dimColor>
            {setupText().replace(/`/g, '')}
          </Text>
        </Box>
      )
    }
    const groups = targets.map(target =>
      group({ key: `group:${targetKey(target)}`, target, feed: feeds[targetKey(target)], now, inner, isDesktop }),
    )
    return (
      <Box flexDirection="column" gap={1}>
        {header}
        {groups}
        <Text dimColor wrap="truncate">
          {truncate(`/${COMMAND} refresh · add · remove · status`, width)}
        </Text>
      </Box>
    )

    function group(props: { key: string; target: DeployDeckTarget; feed: DeployDeckFeed | undefined; now: number; inner: number; isDesktop: boolean }) {
      const { target, feed } = props
      const provider = PROVIDER_OF[target.kind]
      const kind = target.kind.startsWith('cloudflare-') ? ` (${target.kind.slice(11)})` : ''
      const auth = feed === undefined ? '' : authLabel(feed.auth, provider)
      const title = `${provider} · ${target.id}${kind}`
      const body = (
        <Box flexDirection="column">
          <Box flexDirection="row" justifyContent="space-between">
            <Text bold wrap="truncate">
              {truncate(title, Math.max(4, props.inner - auth.length - 1))}
            </Text>
            <Text dimColor>{auth}</Text>
          </Box>
          {feed?.error !== undefined && (
            <Text color="warning" wrap="wrap">
              ⚠ {feed.error}
            </Text>
          )}
          {(feed === undefined || feed.deploys.length === 0) && feed?.error === undefined && (
            <Text dimColor>{feed?.checkedAt === undefined ? 'not read yet' : 'no deploys'}</Text>
          )}
          {(feed?.deploys ?? []).slice(0, 3).map(deploy => deployRow(deploy, props.now, props.inner))}
        </Box>
      )
      return props.isDesktop ? (
        <Box key={props.key} flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
          {body}
        </Box>
      ) : (
        <Box key={props.key} flexDirection="column">
          {body}
        </Box>
      )
    }

    function deployRow(deploy: DeployDeckDeploy, at: number, room: number): RenderElement {
      const age = isTerminal(deploy.stage)
        ? formatAge(at - (deploy.finishedAt ?? deploy.startedAt))
        : formatElapsed(elapsedOf(deploy, at))
      const head = `${stageGlyph(deploy.stage)} ${stageWord(deploy)}`
      const facts = [deploy.env, versionLabel(deploy), deploy.branch, age].filter(
        (part): part is string => part !== undefined && part !== '',
      )
      const rest = truncate(`  ${facts.join(' · ')}`, Math.max(0, room - head.length))
      const links: RenderElement[] = []
      if (deploy.url !== undefined) links.push(<Link key={`url:${deploy.key}`} href={deploy.url} label="open" />)
      if (deploy.logsUrl !== undefined) links.push(<Link key={`logs:${deploy.key}`} href={deploy.logsUrl} label="logs" />)
      return (
        <Box key={`row:${deploy.key}`} flexDirection="column">
          <Text wrap="truncate">
            <Text color={stageColor(deploy.stage)} bold={!isTerminal(deploy.stage)}>
              {head}
            </Text>
            <Text dimColor={isTerminal(deploy.stage)}>{rest}</Text>
          </Text>
          {(deploy.message !== undefined || links.length > 0) && (
            <Text wrap="truncate">
              {'  '}
              {joinLinks(links)}
              {deploy.message !== undefined && (
                <Text dimColor>
                  {links.length > 0 ? '  ' : ''}
                  {truncate(deploy.message, Math.max(0, room - 4 - links.length * 7))}
                </Text>
              )}
            </Text>
          )}
        </Box>
      )
    }
  })
Licence text (MIT)
MIT License

Copyright (c) 2026 modemon contributors

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.

What its code calls

networkruns programsreads filesremembers

The design, read from code

Drawn from the mod's source at the commit read, not from a run: a list is drawn three times, a condition takes its first branch that draws in the desktop app, and a value only the run time knows is shown as a made-up sample (dotted underline) or left out. Colours and type are this site's.

What its code shows

Read from the source at commit c14f77ca2a38 on 2026-10-06. 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 readEvery module hooks/hooks.json names was read.mods/deploy-deck/hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.9 files parsed
All its code is in the modEvery import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod
ReadableNo 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 openNetwork 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 drawsThe 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, with its own branch for the desktop
Install lineWhether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.listed in its repository's .claude-plugin/marketplace.json: installs from there
Programs on WindowsWhether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks
NetworkWhether every fetch names its https host in the code.mods/deploy-deck/hooks/register.tsx:197 fetch(url)
ProgramsWhether every program it starts is named in the code and is not a shell, an interpreter or a network tool.mods/deploy-deck/hooks/register.tsx:198 a program named at run time
Reads and sendsWhether it both reads files or environment variables and reaches the network.reads files and reaches the network
Keys in the sourceWhether the source holds what looks like an API key or a private key.no keys in the source
LicenceAn 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

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 the code below (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.

Its repository is its marketplace. Add that marketplace (in the terminal with these commands, or in the desktop app's plugin settings) and install the mod from it:

/plugin marketplace add mrjk05/modemon
/plugin install deploy-deck@modemon

This installs the marketplace's latest commit, which may not be the one read here (c14f77ca2a38). Compare them before you install.

Ask Claude about it

With the modscode connector added, Claude can read this design, what its code reaches and its code, and build on them. Ask it like this:

Read the modscode design "mrjk05-deploy-deck" with its code and make me a pane like it

Search them from Claude: the MCP connector

Similar designs