modscode JA

modscode / Gallery / tablero

tablero

/tablero: ventas de Tiendanube + tráfico de Google Analytics + Meta Ads en un panel, con MER y conversión, sin gastar tokens

Code you can checkTerminal + desktopPaneBoxButtonText

What it does

  • Draws a pane
  • Adds /tablero
  • Hooks session.start, ui.close

Good points

  • No network calls
  • Starts no processes
  • Written in TypeScript
  • Handles errors

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 tablero by Growth Lab (pane), as modscode read it from the mod's code:
// https://modscode.com/gallery/matecocidocontortafritas-tablero/
// 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: "Tablero" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const fecha = '…'
    const actualizado = '…'
    const plata = '…'
    const delta = '…'
    const numero = '…'
    const delta2 = '…'
    const plata2 = '…'
    const delta3 = '…'
    const plata3 = '…'
    const delta4 = '…'
    const numero2 = '…'
    const delta5 = '…'
    const numero3 = '…'
    const delta6 = '…'
    const numero4 = '…'
    const delta7 = '…'
    const decimal = '…'
    const delta8 = '…'
    const duracion = '…'
    const delta9 = '…'
    const numero5 = '…'
    const delta10 = '…'
    const delta11 = '…'
    const map = '…'
    const cuenta = '…'
    const plata4 = '…'
    const delta12 = '…'
    const numero6 = '…'
    const delta13 = '…'
    const delta14 = '…'
    const numero7 = '…'
    const delta15 = '…'
    const numero8 = '…'
    const delta16 = '…'
    const delta17 = '…'
    const delta18 = '…'
    return (
      <Box flexDirection="column">
        <Text dimColor>
          Hoy
          {` ${fecha}`}
          {" · vs ayer completo"}
          {` · actualizado ${actualizado}`}
        </Text>
        <Box flexDirection="column" marginTop={1}>
          <Text bold color="green">
            VENTAS · Tiendanube
          </Text>
          <Text dimColor>
            Cargando…
          </Text>
          <Text>
            {"Cobrado         "}
            {" "}
            <Text bold>
              {plata}
            </Text>
            <Text dimColor>
              {" "}
              {delta}
            </Text>
          </Text>
          <Text>
            {"Pedidos         "}
            {" "}
            <Text bold>
              {numero}
            </Text>
            <Text dimColor>
              {" "}
              {delta2}
            </Text>
          </Text>
          <Text>
            {"Ticket          "}
            {" "}
            <Text bold>
              {plata2}
            </Text>
            <Text dimColor>
              {" "}
              {delta3}
            </Text>
          </Text>
          <Text>
            {"Pendiente       "}
            {" "}
            <Text bold>
              {plata3}
            </Text>
            <Text dimColor>
              {" "}
              {delta4}
            </Text>
          </Text>
        </Box>
        <Box flexDirection="column" marginTop={1}>
          <Text bold color="cyan">
            TRÁFICO · Analytics
          </Text>
          <Text dimColor>
            Cargando…
          </Text>
          <Text>
            {"Sesiones        "}
            {" "}
            <Text bold>
              {numero2}
            </Text>
            <Text dimColor>
              {" "}
              {delta5}
            </Text>
          </Text>
          <Text>
            {"Usuarios        "}
            {" "}
            <Text bold>
              {numero3}
            </Text>
            <Text dimColor>
              {" "}
              {delta6}
            </Text>
          </Text>
          <Text>
            {"Usuarios nuevos "}
            {" "}
            <Text bold>
              {numero4}
            </Text>
            <Text dimColor>
              {" "}
              {delta7}
            </Text>
          </Text>
          <Text>
            Sesiones/usuario
            {" "}
            <Text bold>
              {decimal}
            </Text>
            <Text dimColor>
              {" "}
              {delta8}
            </Text>
          </Text>
          <Text>
            {"Tiempo medio    "}
            {" "}
            <Text bold>
              {duracion}
            </Text>
            <Text dimColor>
              {" "}
              {delta9}
            </Text>
          </Text>
          <Text>
            {"Vistas producto "}
            {" "}
            <Text bold>
              {numero5}
            </Text>
            <Text dimColor>
              {" "}
              {delta10}
            </Text>
          </Text>
          <Text>
            {"Conversión      "}
            {" "}
            <Text bold>
              {`${decimal}%`}
            </Text>
            <Text dimColor>
              {" "}
              {delta11}
            </Text>
          </Text>
          <Text dimColor wrap="wrap">
            {map}
          </Text>
        </Box>
        <Box flexDirection="column" marginTop={1}>
          <Text bold color="magenta">
            META ADS
            {` · ${cuenta}`}
          </Text>
          <Text dimColor>
            Cargando…
          </Text>
          <Text>
            {"Inversión       "}
            {" "}
            <Text bold>
              {plata4}
            </Text>
            <Text dimColor>
              {" "}
              {delta12}
            </Text>
          </Text>
          <Text>
            {"Impresiones     "}
            {" "}
            <Text bold>
              {numero6}
            </Text>
            <Text dimColor>
              {" "}
              {delta13}
            </Text>
          </Text>
          <Text>
            {"CTR             "}
            {" "}
            <Text bold>
              {`${decimal}%`}
            </Text>
            <Text dimColor>
              {" "}
              {delta14}
            </Text>
          </Text>
          <Text>
            {"Vistas producto "}
            {" "}
            <Text bold>
              {numero7}
            </Text>
            <Text dimColor>
              {" "}
              {delta15}
            </Text>
          </Text>
          <Text>
            {"Compras         "}
            {" "}
            <Text bold>
              {numero8}
            </Text>
            <Text dimColor>
              {" "}
              {delta16}
            </Text>
          </Text>
          <Text>
            {"ROAS Meta       "}
            {" "}
            <Text bold>
              {`${decimal}x`}
            </Text>
            <Text dimColor>
              {" "}
              {delta17}
            </Text>
          </Text>
          <Text>
            {"MER             "}
            {" "}
            <Text bold>
              {`${decimal}x`}
            </Text>
            <Text dimColor>
              {" "}
              {delta18}
            </Text>
          </Text>
          <Text dimColor>
            MER = cobrado en Tiendanube ÷ inversión en Meta
          </Text>
        </Box>
        <Box marginTop={1}>
          <Button label="Actualizar" hotkey="r" />
        </Box>
      </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.

plugins/tablero/hooks/register.tsx lines 435–519 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const t = await read($, datos)

    const estado = (f: Fuente<unknown> | undefined) =>
      !f || (f.status === 'loading' && !f.data)
        ? <Text dimColor>Cargando…</Text>
        : f.status === 'error'
          ? <Text color="red" wrap="wrap">{f.error}</Text>
          : null

    const fila = (label: string, valor: string, p?: Par) => (
      <Text>
        {label.padEnd(16)} <Text bold>{valor}</Text>
        {p ? <Text dimColor> {delta(p)}</Text> : ''}
      </Text>
    )

    const v = t?.ventas.data
    const tr = t?.trafico.data
    const m = t?.meta.data
    const ticket = v && v.pedidos.actual > 0 ? v.cobrado.actual / v.pedidos.actual : 0
    const conversion = v && tr && tr.sesiones.actual > 0 ? (v.pedidos.actual / tr.sesiones.actual) * 100 : undefined
    const ctr = (clicks: number, impresiones: number) => (impresiones > 0 ? (clicks / impresiones) * 100 : 0)
    const ctrPar = m && { actual: ctr(m.clicks.actual, m.impresiones.actual), anterior: ctr(m.clicks.anterior, m.impresiones.anterior) }
    const mer = v && m && m.inversion.actual > 0 ? v.cobrado.actual / m.inversion.actual : undefined
    const roasMeta = m && m.inversion.actual > 0 ? m.ingresosMeta.actual / m.inversion.actual : undefined
    const cuenta = config.metaNombre || config.metaAccount

    return (
      <Box flexDirection="column">
        <Text dimColor>
          Hoy{t ? ` ${t.fecha}` : ''} · vs ayer completo{t?.actualizado ? ` · actualizado ${t.actualizado}` : ''}
        </Text>

        <Box flexDirection="column" marginTop={1}>
          <Text bold color="green">VENTAS · Tiendanube</Text>
          {estado(t?.ventas)}
          {v && fila('Cobrado', plata(v.cobrado.actual), v.cobrado)}
          {v && fila('Pedidos', numero(v.pedidos.actual), v.pedidos)}
          {v && fila('Ticket', plata(ticket))}
          {v && v.pendiente.actual > 0 && fila('Pendiente', plata(v.pendiente.actual))}
        </Box>

        <Box flexDirection="column" marginTop={1}>
          <Text bold color="cyan">TRÁFICO · Analytics</Text>
          {estado(t?.trafico)}
          {tr && fila('Sesiones', numero(tr.sesiones.actual), tr.sesiones)}
          {tr && fila('Usuarios', numero(tr.usuarios.actual), tr.usuarios)}
          {tr && fila('Usuarios nuevos', numero(tr.nuevos.actual), tr.nuevos)}
          {tr && fila('Sesiones/usuario', decimal(tr.sesionesPorUsuario.actual, 2), tr.sesionesPorUsuario)}
          {tr && fila('Tiempo medio', duracion(tr.duracionMedia.actual), tr.duracionMedia)}
          {tr && fila('Vistas producto', numero(tr.vistasProducto.actual), tr.vistasProducto)}
          {conversion !== undefined && fila('Conversión', `${decimal(conversion, 2)}%`)}
          {tr && tr.canales.length > 0 && (
            <Text dimColor wrap="wrap">
              {tr.canales.map(c => `${c.canal} ${numero(c.sesiones)}`).join(' · ')}
            </Text>
          )}
        </Box>

        <Box flexDirection="column" marginTop={1}>
          <Text bold color="magenta">META ADS{cuenta ? ` · ${cuenta}` : ''}</Text>
          {estado(t?.meta)}
          {m && fila('Inversión', plata(m.inversion.actual), m.inversion)}
          {m && fila('Impresiones', numero(m.impresiones.actual), m.impresiones)}
          {ctrPar && fila('CTR', `${decimal(ctrPar.actual, 2)}%`, ctrPar)}
          {m && fila('Vistas producto', numero(m.vistasProducto.actual), m.vistasProducto)}
          {m && fila('Compras', numero(m.compras.actual), m.compras)}
          {roasMeta !== undefined && fila('ROAS Meta', `${decimal(roasMeta)}x`)}
          {mer !== undefined && fila('MER', `${decimal(mer)}x`)}
          {mer !== undefined && <Text dimColor>MER = cobrado en Tiendanube ÷ inversión en Meta</Text>}
        </Box>

        <Box marginTop={1}>
          <Button
            key="refresh"
            label="Actualizar"
            hotkey="r"
            onPress={() => refresh($, 'The user pressed "Actualizar" on the Tablero pane to reload today\'s sales, traffic and Meta Ads.')}
          />
        </Box>
      </Box>
    )
  })
Licence text (MIT)
MIT License

Copyright (c) 2026 Growth Lab

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

nothing found

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 c247038450fc 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.plugins/tablero/hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.1 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, the same in both
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.no network
ProgramsWhether every program it starts is named in the code and is not a shell, an interpreter or a network tool.starts no programs
Reads and sendsWhether it both reads files or environment variables and reaches the network.reaches no 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 matecocidocontortafritas/growth-lab-mods
/plugin install tablero@growth-lab-mods

This installs the marketplace's latest commit, which may not be the one read here (c247038450fc). 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 "matecocidocontortafritas-tablero" with its code and make me a pane like it

Search them from Claude: the MCP connector

Similar designs