{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "portfolio-v4",
  "title": "Portfolio v4",
  "description": "Bash-style terminal portfolio for a fullstack developer — Jon Doe filler career. Type about, work, resume, or help. New projects only (shadcn init --template next).",
  "dependencies": [
    "geist",
    "next-themes"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/new-york/templates/portfolio-v4/app/layout.tsx",
      "content": "import type { Metadata, Viewport } from \"next\"\nimport { GeistMono } from \"geist/font/mono\"\nimport type { ReactNode } from \"react\"\n\nimport { ThemeProvider } from \"../components/theme-provider\"\n\nimport \"./globals.css\"\n\nexport const metadata: Metadata = {\n  title: \"Jon Doe\",\n  description:\n    \"Fullstack developer — type about, work, resume, or help in the terminal.\",\n}\n\nexport const viewport: Viewport = {\n  width: \"device-width\",\n  initialScale: 1,\n  viewportFit: \"cover\",\n  interactiveWidget: \"resizes-content\",\n}\n\nexport default function RootLayout({ children }: { children: ReactNode }) {\n  return (\n    <html\n      lang=\"en\"\n      className={`${GeistMono.variable} h-full antialiased`}\n      suppressHydrationWarning\n    >\n      <body className={`${GeistMono.variable} m-0 min-h-full overflow-x-hidden p-0 font-mono antialiased`}>\n        <ThemeProvider>{children}</ThemeProvider>\n      </body>\n    </html>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/layout.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v4/app/page.tsx",
      "content": "import { Terminal } from \"../components/terminal\"\n\nexport default function HomePage() {\n  return <Terminal />\n}\n",
      "type": "registry:page",
      "target": "app/page.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v4/components/terminal.tsx",
      "content": "\"use client\"\n\nimport {\n  useEffect,\n  useEffectEvent,\n  useRef,\n  useState,\n  type FormEvent,\n  type KeyboardEvent,\n} from \"react\"\n\nimport {\n  capScrollback,\n  getPromptPrefix,\n  getWelcomeLines,\n  pushCommand,\n  runCommand,\n  type TerminalLine,\n} from \"../lib/commands\"\nimport { TerminalLineView } from \"./terminal-line\"\n\nimport \"../styles/terminal.css\"\n\ntype HistoryEntry = {\n  id: number\n  kind: \"output\" | \"input\"\n  lines: TerminalLine[]\n}\n\nfunction estimateCols(width: number): number {\n  // 15px Geist Mono ≈ 9px/ch; subtract 32px for the 16px side padding\n  const available = Math.max(0, width - 32)\n  return Math.max(20, Math.floor(available / 9))\n}\n\nexport function Terminal() {\n  const rootRef = useRef<HTMLDivElement>(null)\n  const inputRef = useRef<HTMLInputElement>(null)\n  const idRef = useRef(0)\n\n  const [entries, setEntries] = useState<HistoryEntry[]>([])\n  const [input, setInput] = useState(\"\")\n  const [commandHistory, setCommandHistory] = useState<string[]>([])\n  const [historyIndex, setHistoryIndex] = useState<number | null>(null)\n  const [draft, setDraft] = useState(\"\")\n  const [booted, setBooted] = useState(false)\n\n  const nextId = () => {\n    idRef.current += 1\n    return idRef.current\n  }\n\n  const scrollToBottom = useEffectEvent(() => {\n    window.scrollTo(0, document.body.scrollHeight)\n  })\n\n  const boot = useEffectEvent(() => {\n    const width = rootRef.current?.clientWidth ?? window.innerWidth\n    const lines = getWelcomeLines(estimateCols(width))\n    setEntries([{ id: nextId(), kind: \"output\", lines }])\n    setBooted(true)\n  })\n\n  useEffect(() => {\n    boot()\n  }, [])\n\n  useEffect(() => {\n    if (!booted) return\n    // Keep the welcome banner (jondoe title) pinned to the top on load and\n    // after `clear`; only chase the bottom once there's command output.\n    if (entries.length <= 1) return\n    scrollToBottom()\n  }, [entries, booted])\n\n  useEffect(() => {\n    if (!booted) return\n    // Preview iframes that steal focus scroll the parent catalog to this\n    // section. Only autofocus when this template is the top-level page.\n    try {\n      if (window.self !== window.top) return\n    } catch {\n      return\n    }\n    inputRef.current?.focus({ preventScroll: true })\n  }, [booted])\n\n  function focusInput() {\n    inputRef.current?.focus({ preventScroll: true })\n  }\n\n  function resetScreen() {\n    const width = rootRef.current?.clientWidth ?? window.innerWidth\n    setEntries([\n      {\n        id: nextId(),\n        kind: \"output\",\n        lines: getWelcomeLines(estimateCols(width)),\n      },\n    ])\n    setInput(\"\")\n    setHistoryIndex(null)\n    setDraft(\"\")\n  }\n\n  function submitCommand(raw: string) {\n    const trimmed = raw.trim()\n    const prompt = getPromptPrefix()\n\n    if (!trimmed) {\n      setEntries((prev) => [\n        ...prev,\n        {\n          id: nextId(),\n          kind: \"input\",\n          lines: [\n            {\n              segments: [\n                { type: \"text\", value: prompt, tone: \"default\" },\n                { type: \"text\", value: \"\", tone: \"default\" },\n              ],\n            },\n          ],\n        },\n      ])\n      setInput(\"\")\n      setHistoryIndex(null)\n      setDraft(\"\")\n      return\n    }\n\n    const echo: HistoryEntry = {\n      id: nextId(),\n      kind: \"input\",\n      lines: [\n        {\n          segments: [\n            { type: \"text\", value: prompt, tone: \"default\" },\n            { type: \"text\", value: trimmed, tone: \"default\" },\n          ],\n        },\n      ],\n    }\n\n    setCommandHistory((prev) => pushCommand(prev, trimmed))\n    setHistoryIndex(null)\n    setDraft(\"\")\n    setInput(\"\")\n\n    const result = runCommand(\n      trimmed,\n      estimateCols(rootRef.current?.clientWidth ?? window.innerWidth)\n    )\n\n    if (result.kind === \"clear\") {\n      resetScreen()\n      return\n    }\n\n    setEntries((prev) =>\n      capScrollback([\n        ...prev,\n        echo,\n        ...(result.lines.length > 0\n          ? [{ id: nextId(), kind: \"output\" as const, lines: result.lines }]\n          : []),\n      ])\n    )\n  }\n\n  function onSubmit(event: FormEvent) {\n    event.preventDefault()\n    submitCommand(input)\n  }\n\n  function onKeyDown(event: KeyboardEvent<HTMLInputElement>) {\n    if (event.key === \"l\" && event.ctrlKey) {\n      event.preventDefault()\n      resetScreen()\n      return\n    }\n\n    if (event.key === \"c\" && event.ctrlKey) {\n      event.preventDefault()\n      setInput(\"\")\n      setHistoryIndex(null)\n      setDraft(\"\")\n      return\n    }\n\n    if (event.key === \"ArrowUp\") {\n      event.preventDefault()\n      if (commandHistory.length === 0) return\n      if (historyIndex === null) {\n        setDraft(input)\n        const index = commandHistory.length - 1\n        setHistoryIndex(index)\n        setInput(commandHistory[index] ?? \"\")\n        return\n      }\n      if (historyIndex > 0) {\n        const index = historyIndex - 1\n        setHistoryIndex(index)\n        setInput(commandHistory[index] ?? \"\")\n      }\n      return\n    }\n\n    if (event.key === \"ArrowDown\") {\n      event.preventDefault()\n      if (historyIndex === null) return\n      if (historyIndex < commandHistory.length - 1) {\n        const index = historyIndex + 1\n        setHistoryIndex(index)\n        setInput(commandHistory[index] ?? \"\")\n        return\n      }\n      setHistoryIndex(null)\n      setInput(draft)\n    }\n  }\n\n  const prompt = getPromptPrefix()\n\n  return (\n    <div ref={rootRef} className=\"pt-root\" onClick={focusInput}>\n      <div className=\"pt-output\">\n        {entries.map((entry) => (\n          <div key={entry.id}>\n            {entry.lines.map((line, index) => (\n              <TerminalLineView key={`${entry.id}-${index}`} line={line} />\n            ))}\n          </div>\n        ))}\n\n        <form\n          onSubmit={onSubmit}\n          className=\"pt-line flex items-baseline\"\n          aria-label=\"Terminal command\"\n        >\n          <span className=\"shrink-0\">{prompt}</span>\n          <div className=\"relative min-w-0 flex-1\">\n            <input\n              ref={inputRef}\n              value={input}\n              onChange={(event) => {\n                setInput(event.target.value)\n                setHistoryIndex(null)\n              }}\n              onKeyDown={onKeyDown}\n              spellCheck={false}\n              autoCapitalize=\"off\"\n              autoComplete=\"off\"\n              autoCorrect=\"off\"\n              aria-label=\"Command\"\n              className=\"w-full bg-transparent text-[inherit] caret-transparent outline-none\"\n            />\n            <span\n              className=\"pt-cursor blink pointer-events-none absolute top-0\"\n              style={{ left: `${input.length}ch` }}\n              aria-hidden\n            />\n          </div>\n        </form>\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/terminal.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v4/components/terminal-line.tsx",
      "content": "import { memo } from \"react\"\n\nimport type { LineSegment, TerminalLine } from \"../lib/commands\"\n\nfunction segmentClass(tone: LineSegment[\"tone\"]): string {\n  switch (tone) {\n    case \"bold\":\n      return \"pt-bold\"\n    case \"dim\":\n      return \"pt-dim\"\n    case \"cyan\":\n      return \"pt-cyan\"\n    case \"error\":\n      return \"pt-error\"\n    case \"default\":\n    case undefined:\n      return \"\"\n    default: {\n      const _exhaustive: never = tone\n      return _exhaustive\n    }\n  }\n}\n\nconst SegmentView = memo(function SegmentView({\n  segment,\n}: {\n  segment: LineSegment\n}) {\n  const className = segmentClass(segment.tone)\n\n  if (segment.type === \"link\") {\n    return (\n      <a\n        href={segment.href}\n        target={segment.href.startsWith(\"mailto:\") ? undefined : \"_blank\"}\n        rel={\n          segment.href.startsWith(\"mailto:\") ? undefined : \"noreferrer noopener\"\n        }\n        className={`pt-link ${className}`.trim()}\n      >\n        {segment.value}\n      </a>\n    )\n  }\n\n  if (!className) {\n    return <>{segment.value}</>\n  }\n\n  return <span className={className}>{segment.value}</span>\n})\n\nexport const TerminalLineView = memo(function TerminalLineView({\n  line,\n}: {\n  line: TerminalLine\n}) {\n  const empty =\n    line.segments.length === 0 ||\n    line.segments.every((s) => s.type === \"text\" && s.value === \"\")\n\n  if (empty) {\n    return <div className=\"pt-line\" aria-hidden />\n  }\n\n  return (\n    <div className=\"pt-line\">\n      {line.segments.map((segment, index) => (\n        <SegmentView\n          key={`${segment.type}-${index}-${segment.value}`}\n          segment={segment}\n        />\n      ))}\n    </div>\n  )\n})\n",
      "type": "registry:component",
      "target": "components/terminal-line.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v4/components/theme-provider.tsx",
      "content": "\"use client\"\n\nimport { ThemeProvider as NextThemesProvider } from \"next-themes\"\nimport type { ReactNode } from \"react\"\n\nexport function ThemeProvider({ children }: { children: ReactNode }) {\n  return (\n    <NextThemesProvider\n      attribute=\"class\"\n      defaultTheme=\"system\"\n      enableSystem\n      disableTransitionOnChange\n    >\n      {children}\n    </NextThemesProvider>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/theme-provider.tsx"
    },
    {
      "path": "registry/new-york/templates/portfolio-v4/lib/ascii.ts",
      "content": "/** FIGlet-style banner — show only when the terminal is wide enough. */\nexport const ASCII_ART = [\n  \"     _             ____             \",\n  \"    | | ___  _ __ |  _ \\\\  ___   ___ \",\n  \" _  | |/ _ \\\\| '_ \\\\| | | |/ _ \\\\ / _ \\\\\",\n  \"| |_| | (_) | | | | |_| | (_) |  __/\",\n  \" \\\\___/ \\\\___/|_| |_|____/ \\\\___/ \\\\___|\",\n] as const\n\n/** Skip the banner below this column count. */\nexport const ASCII_MIN_COLS = 43\n\nexport function shouldShowAscii(cols: number): boolean {\n  return cols >= ASCII_MIN_COLS\n}\n",
      "type": "registry:lib",
      "target": "lib/ascii.ts"
    },
    {
      "path": "registry/new-york/templates/portfolio-v4/lib/commands.ts",
      "content": "import { ASCII_ART, shouldShowAscii } from \"./ascii\"\nimport { portfolio } from \"./portfolio\"\n\nexport type LineTone = \"default\" | \"dim\" | \"bold\" | \"cyan\" | \"error\"\n\nexport type LineSegment =\n  | { type: \"text\"; value: string; tone?: LineTone }\n  | { type: \"link\"; value: string; href: string; tone?: LineTone }\n\nexport type TerminalLine = {\n  segments: LineSegment[]\n}\n\nexport type CommandResult =\n  | { kind: \"output\"; lines: TerminalLine[] }\n  | { kind: \"clear\" }\n\n/** Shown on the welcome banner. */\nconst COMMON_COMMANDS = [\"about\", \"work\", \"projects\", \"resume\", \"help\"] as const\n\n/** Discoverable via `ls` (and runnable) — not listed under Commands:. */\nconst EXTRA_COMMANDS = [\"destinations\", \"events\"] as const\n\nconst UTILITY_COMMANDS = [\"ls\", \"clear\"] as const\n\nconst COMMANDS = [\n  ...COMMON_COMMANDS,\n  ...EXTRA_COMMANDS,\n  ...UTILITY_COMMANDS,\n] as const\n\ntype CommandName = (typeof COMMANDS)[number]\n\n/** Everything `ls` lists — like a home directory of portfolio entries. */\nconst LS_ENTRIES = [\n  \"about\",\n  \"destinations\",\n  \"events\",\n  \"help\",\n  \"projects\",\n  \"resume\",\n  \"work\",\n] as const\n\nfunction text(value: string, tone: LineTone = \"default\"): TerminalLine {\n  return { segments: [{ type: \"text\", value, tone }] }\n}\n\nfunction blank(): TerminalLine {\n  return { segments: [{ type: \"text\", value: \"\", tone: \"default\" }] }\n}\n\n/** Equal gaps between names (navbar-style), wrapping when the row fills. */\nfunction equalGapListing(names: readonly string[], cols: number): TerminalLine[] {\n  const gap = \"    \"\n  const gapLen = gap.length\n  const lines: TerminalLine[] = []\n  let row: string[] = []\n  let rowLen = 0\n\n  const flush = () => {\n    if (row.length === 0) return\n    const segments: LineSegment[] = []\n    row.forEach((name, index) => {\n      if (index > 0) {\n        segments.push({ type: \"text\", value: gap, tone: \"default\" })\n      }\n      segments.push({ type: \"text\", value: name, tone: \"cyan\" })\n    })\n    lines.push({ segments })\n    row = []\n    rowLen = 0\n  }\n\n  for (const name of names) {\n    const nextLen = row.length === 0 ? name.length : rowLen + gapLen + name.length\n    if (row.length > 0 && nextLen > Math.max(cols, 24)) {\n      flush()\n    }\n    row.push(name)\n    rowLen = row.length === 1 ? name.length : rowLen + gapLen + name.length\n  }\n  flush()\n\n  return lines\n}\n\nfunction parseInput(raw: string): { name: string; args: string[] } {\n  const parts = raw.trim().split(/\\s+/).filter(Boolean)\n  const head = parts[0] ?? \"\"\n  return {\n    name: head.replace(/^\\//, \"\").toLowerCase(),\n    args: parts.slice(1),\n  }\n}\n\nfunction isCommandName(value: string): value is CommandName {\n  return (COMMANDS as readonly string[]).includes(value)\n}\n\nexport function getWelcomeLines(cols: number): TerminalLine[] {\n  const lines: TerminalLine[] = [blank()]\n\n  if (shouldShowAscii(cols)) {\n    for (const row of ASCII_ART) {\n      lines.push(text(row))\n    }\n  } else {\n    lines.push(text(portfolio.name, \"bold\"))\n    lines.push(text(\"=======\"))\n  }\n\n  lines.push(blank())\n  lines.push(text(portfolio.tagline, \"bold\"))\n  lines.push(blank())\n\n  const commonSegments: LineSegment[] = [\n    { type: \"text\", value: \"Commands: \", tone: \"dim\" },\n  ]\n  COMMON_COMMANDS.forEach((cmd, index) => {\n    commonSegments.push({ type: \"text\", value: cmd, tone: \"cyan\" })\n    if (index < COMMON_COMMANDS.length - 1) {\n      commonSegments.push({ type: \"text\", value: \", \", tone: \"dim\" })\n    }\n  })\n  lines.push({ segments: commonSegments })\n\n  lines.push({\n    segments: [\n      { type: \"text\", value: \"Try: \", tone: \"dim\" },\n      { type: \"text\", value: \"ls\", tone: \"cyan\" },\n    ],\n  })\n  lines.push(blank())\n\n  return lines\n}\n\nfunction aboutLines(): TerminalLine[] {\n  const lines: TerminalLine[] = [\n    text(`${portfolio.name} — ${portfolio.title}`, \"bold\"),\n    text(portfolio.location, \"dim\"),\n    blank(),\n    text(portfolio.about.summary),\n    blank(),\n  ]\n\n  for (const paragraph of portfolio.about.details) {\n    lines.push(text(paragraph))\n  }\n\n  lines.push(blank())\n  lines.push(text(\"Hobbies\", \"bold\"))\n  for (const hobby of portfolio.about.hobbies) {\n    lines.push(text(`  · ${hobby}`, \"dim\"))\n  }\n\n  lines.push(blank())\n  lines.push({\n    segments: [\n      { type: \"text\", value: \"Find me on \", tone: \"default\" },\n      ...portfolio.socials.flatMap((social, index) => {\n        const parts: LineSegment[] = [\n          { type: \"link\", value: social.label, href: social.href, tone: \"cyan\" },\n        ]\n        if (index < portfolio.socials.length - 1) {\n          parts.push({ type: \"text\", value: \", \", tone: \"default\" })\n        }\n        return parts\n      }),\n      { type: \"text\", value: \", or \", tone: \"default\" },\n      {\n        type: \"link\",\n        value: portfolio.email,\n        href: `mailto:${portfolio.email}`,\n        tone: \"cyan\",\n      },\n      { type: \"text\", value: \".\", tone: \"default\" },\n    ],\n  })\n\n  return lines\n}\n\nfunction renderJob(job: (typeof portfolio.experience)[number]): TerminalLine[] {\n  return [\n    {\n      segments: [\n        { type: \"text\", value: job.role, tone: \"bold\" },\n        { type: \"text\", value: \" · \", tone: \"dim\" },\n        { type: \"link\", value: job.company, href: job.href, tone: \"cyan\" },\n      ],\n    },\n    text(job.dates, \"dim\"),\n    text(job.description),\n  ]\n}\n\nfunction workLines(): TerminalLine[] {\n  const lines: TerminalLine[] = [text(\"Work\", \"bold\"), blank()]\n\n  portfolio.experience.forEach((job, index) => {\n    lines.push(...renderJob(job))\n    if (index < portfolio.experience.length - 1) {\n      lines.push(blank())\n    }\n  })\n\n  lines.push(blank())\n  lines.push(text(\"Internships\", \"bold\"))\n  lines.push(blank())\n\n  portfolio.internships.forEach((job, index) => {\n    lines.push(...renderJob(job))\n    if (index < portfolio.internships.length - 1) {\n      lines.push(blank())\n    }\n  })\n\n  return lines\n}\n\nfunction projectsLines(): TerminalLine[] {\n  const lines: TerminalLine[] = [text(\"Projects\", \"bold\"), blank()]\n\n  portfolio.projects.forEach((project, index) => {\n    const number = String(index + 1).padStart(2, \"0\")\n    lines.push({\n      segments: [\n        { type: \"text\", value: `${number}  `, tone: \"dim\" },\n        { type: \"link\", value: project.name, href: project.href, tone: \"cyan\" },\n      ],\n    })\n    lines.push(text(`    ${project.description}`, \"dim\"))\n    if (index < portfolio.projects.length - 1) {\n      lines.push(blank())\n    }\n  })\n\n  return lines\n}\n\nfunction resumeLines(): TerminalLine[] {\n  const lines: TerminalLine[] = [\n    text(`${portfolio.name}`, \"bold\"),\n    text(`${portfolio.title} · ${portfolio.location}`, \"dim\"),\n    {\n      segments: [\n        {\n          type: \"link\",\n          value: portfolio.email,\n          href: `mailto:${portfolio.email}`,\n          tone: \"cyan\",\n        },\n      ],\n    },\n    blank(),\n    text(portfolio.about.summary),\n    blank(),\n    text(\"Experience\", \"bold\"),\n    blank(),\n  ]\n\n  for (const job of portfolio.experience) {\n    lines.push({\n      segments: [\n        { type: \"text\", value: `${job.role}, `, tone: \"default\" },\n        { type: \"link\", value: job.company, href: job.href, tone: \"cyan\" },\n      ],\n    })\n    lines.push(text(`  ${job.dates}`, \"dim\"))\n    lines.push(text(`  ${job.description}`, \"dim\"))\n    lines.push(blank())\n  }\n\n  lines.push(text(\"Internships\", \"bold\"))\n  lines.push(blank())\n\n  for (const job of portfolio.internships) {\n    lines.push({\n      segments: [\n        { type: \"text\", value: `${job.role}, `, tone: \"default\" },\n        { type: \"link\", value: job.company, href: job.href, tone: \"cyan\" },\n      ],\n    })\n    lines.push(text(`  ${job.dates}`, \"dim\"))\n    lines.push(text(`  ${job.description}`, \"dim\"))\n    lines.push(blank())\n  }\n\n  lines.push(text(\"Skills\", \"bold\"))\n  lines.push(blank())\n\n  for (const group of portfolio.skills) {\n    lines.push({\n      segments: [\n        { type: \"text\", value: group.label, tone: \"cyan\" },\n        { type: \"text\", value: ` — ${group.description}`, tone: \"dim\" },\n      ],\n    })\n    lines.push(text(`  ${group.items.join(\", \")}`))\n    lines.push(blank())\n  }\n\n  lines.push(text(\"Education\", \"bold\"))\n  lines.push(blank())\n\n  for (const school of portfolio.education) {\n    lines.push({\n      segments: [\n        { type: \"link\", value: school.school, href: school.href, tone: \"cyan\" },\n        { type: \"text\", value: ` — ${school.detail}`, tone: \"default\" },\n      ],\n    })\n    lines.push(text(`  ${school.dates}`, \"dim\"))\n    lines.push(blank())\n  }\n\n  lines.push(text(\"Certificates\", \"bold\"))\n  lines.push(blank())\n\n  for (const cert of portfolio.certificates) {\n    lines.push({\n      segments: [\n        { type: \"link\", value: cert.name, href: cert.href, tone: \"cyan\" },\n      ],\n    })\n    lines.push(text(`  ${cert.issuer} · ${cert.year}`, \"dim\"))\n    lines.push(blank())\n  }\n\n  if (lines.at(-1)?.segments.every((s) => s.type === \"text\" && s.value === \"\")) {\n    lines.pop()\n  }\n\n  return lines\n}\n\nfunction destinationsLines(): TerminalLine[] {\n  const lines: TerminalLine[] = [text(\"Destinations\", \"bold\"), blank()]\n\n  portfolio.destinations.forEach((spot, index) => {\n    lines.push({\n      segments: [\n        { type: \"text\", value: spot.place, tone: \"cyan\" },\n        { type: \"text\", value: `  ${spot.year}`, tone: \"dim\" },\n      ],\n    })\n    lines.push(text(`  ${spot.note}`))\n    if (index < portfolio.destinations.length - 1) {\n      lines.push(blank())\n    }\n  })\n\n  return lines\n}\n\nfunction eventsLines(): TerminalLine[] {\n  const lines: TerminalLine[] = [text(\"Events\", \"bold\"), blank()]\n\n  portfolio.events.forEach((event, index) => {\n    lines.push(text(event.name, \"cyan\"))\n    lines.push(text(`  ${event.where}`, \"dim\"))\n    if (index < portfolio.events.length - 1) {\n      lines.push(blank())\n    }\n  })\n\n  return lines\n}\n\nfunction helpLines(): TerminalLine[] {\n  return [\n    text(\"Available commands\", \"bold\"),\n    blank(),\n    {\n      segments: [\n        { type: \"text\", value: \"  about         \", tone: \"cyan\" },\n        { type: \"text\", value: \"Who I am, hobbies, links\", tone: \"dim\" },\n      ],\n    },\n    {\n      segments: [\n        { type: \"text\", value: \"  work          \", tone: \"cyan\" },\n        { type: \"text\", value: \"Jobs — title, company, what I did\", tone: \"dim\" },\n      ],\n    },\n    {\n      segments: [\n        { type: \"text\", value: \"  projects      \", tone: \"cyan\" },\n        { type: \"text\", value: \"Things I've shipped on the side\", tone: \"dim\" },\n      ],\n    },\n    {\n      segments: [\n        { type: \"text\", value: \"  resume        \", tone: \"cyan\" },\n        { type: \"text\", value: \"Full résumé — experience, skills, school, certs\", tone: \"dim\" },\n      ],\n    },\n    {\n      segments: [\n        { type: \"text\", value: \"  ls            \", tone: \"cyan\" },\n        { type: \"text\", value: \"List everything in this portfolio\", tone: \"dim\" },\n      ],\n    },\n    {\n      segments: [\n        { type: \"text\", value: \"  help          \", tone: \"cyan\" },\n        { type: \"text\", value: \"Show this list\", tone: \"dim\" },\n      ],\n    },\n    {\n      segments: [\n        { type: \"text\", value: \"  clear         \", tone: \"cyan\" },\n        { type: \"text\", value: \"Clear the screen (or Ctrl+L)\", tone: \"dim\" },\n      ],\n    },\n    blank(),\n    text(\"Also on disk (try ls):\", \"dim\"),\n    {\n      segments: [\n        { type: \"text\", value: \"  destinations  \", tone: \"cyan\" },\n        { type: \"text\", value: \"Places I've been\", tone: \"dim\" },\n      ],\n    },\n    {\n      segments: [\n        { type: \"text\", value: \"  events        \", tone: \"cyan\" },\n        { type: \"text\", value: \"Conferences & meetups\", tone: \"dim\" },\n      ],\n    },\n  ]\n}\n\nexport function runCommand(raw: string, cols = 80): CommandResult {\n  const { name } = parseInput(raw)\n\n  if (!name) {\n    return { kind: \"output\", lines: [] }\n  }\n\n  if (!isCommandName(name)) {\n    return {\n      kind: \"output\",\n      lines: [\n        text(`bash: ${name}: command not found`, \"error\"),\n        {\n          segments: [\n            { type: \"text\", value: \"Type \", tone: \"dim\" },\n            { type: \"text\", value: \"ls\", tone: \"cyan\" },\n            { type: \"text\", value: \" or \", tone: \"dim\" },\n            { type: \"text\", value: \"help\", tone: \"cyan\" },\n            { type: \"text\", value: \".\", tone: \"dim\" },\n          ],\n        },\n      ],\n    }\n  }\n\n  switch (name) {\n    case \"clear\":\n      return { kind: \"clear\" }\n    case \"ls\":\n      return { kind: \"output\", lines: equalGapListing(LS_ENTRIES, cols) }\n    case \"about\":\n      return { kind: \"output\", lines: aboutLines() }\n    case \"work\":\n      return { kind: \"output\", lines: workLines() }\n    case \"projects\":\n      return { kind: \"output\", lines: projectsLines() }\n    case \"resume\":\n      return { kind: \"output\", lines: resumeLines() }\n    case \"destinations\":\n      return { kind: \"output\", lines: destinationsLines() }\n    case \"events\":\n      return { kind: \"output\", lines: eventsLines() }\n    case \"help\":\n      return { kind: \"output\", lines: helpLines() }\n    default: {\n      const _exhaustive: never = name\n      return _exhaustive\n    }\n  }\n}\n\nexport function getPromptPrefix(): string {\n  return \"$ \"\n}\n\n/** Max commands kept for ArrowUp/ArrowDown recall. */\nexport const MAX_COMMAND_HISTORY = 100\n\n/**\n * Max output/input entry groups kept in the rendered scrollback. Older groups\n * fall off the top. Large enough that running every command once still shows\n * full output; bounded so a long session can't grow the DOM without limit.\n */\nexport const MAX_SCROLLBACK_ENTRIES = 60\n\n/** Append `value`, keeping only the newest `MAX_COMMAND_HISTORY`. */\nexport function pushCommand(history: string[], value: string): string[] {\n  const next = [...history, value]\n  return next.length > MAX_COMMAND_HISTORY\n    ? next.slice(-MAX_COMMAND_HISTORY)\n    : next\n}\n\n/** Keep only the newest `MAX_SCROLLBACK_ENTRIES` entry groups. */\nexport function capScrollback<T>(entries: T[]): T[] {\n  return entries.length > MAX_SCROLLBACK_ENTRIES\n    ? entries.slice(-MAX_SCROLLBACK_ENTRIES)\n    : entries\n}\n",
      "type": "registry:lib",
      "target": "lib/commands.ts"
    },
    {
      "path": "registry/new-york/templates/portfolio-v4/lib/portfolio.ts",
      "content": "export type SocialLink = {\n  label: string\n  href: string\n}\n\nexport type Project = {\n  name: string\n  href: string\n  description: string\n}\n\nexport type ExperienceItem = {\n  role: string\n  company: string\n  href: string\n  dates: string\n  description: string\n}\n\nexport type EducationItem = {\n  school: string\n  href: string\n  detail: string\n  dates: string\n}\n\nexport type Certificate = {\n  name: string\n  issuer: string\n  href: string\n  year: string\n}\n\nexport type SkillGroup = {\n  label: string\n  description: string\n  items: string[]\n}\n\nexport type Destination = {\n  place: string\n  year: string\n  note: string\n}\n\nexport type GlobalEvent = {\n  name: string\n  where: string\n}\n\nexport const portfolio = {\n  name: \"Jon Doe\",\n  title: \"Fullstack Developer\",\n  promptUser: \"jon@portfolio\",\n  location: \"Portland, Oregon\",\n  email: \"jon@example.com\",\n  tagline: \"Welcome to my portfolio. Type a command to look around.\",\n  about: {\n    summary:\n      \"Hey — I'm Jon. Fullstack developer from Portland, building for AI infrastructure startups and teams shipping real tools with real users.\",\n    details: [\n      \"I keep my stack simple, ship in pieces I can trust, and leave software that's easy to maintain.\",\n      \"Outside of work I'm usually cooking the same five meals on repeat, easing back into running after a bad knee, or finishing one more book for the shelf.\",\n    ],\n    hobbies: [\n      \"Cooking on repeat\",\n      \"Slow-return running\",\n      \"Reading (and finishing) books\",\n      \"Conferences & build nights\",\n      \"Travel when I can steal the time\",\n    ],\n  },\n  socials: [\n    { label: \"X\", href: \"https://x.com/\" },\n    { label: \"LinkedIn\", href: \"https://www.linkedin.com/\" },\n    { label: \"GitHub\", href: \"https://github.com/\" },\n  ] satisfies SocialLink[],\n  experience: [\n    {\n      role: \"Senior Full Stack Engineer\",\n      company: \"Cortexa Labs\",\n      href: \"https://www.linkedin.com/\",\n      dates: \"2024 — Present\",\n      description:\n        \"Cortexa Labs builds AI infrastructure so teams can train, serve, and ship models in production.\",\n    },\n    {\n      role: \"Full Stack Engineer\",\n      company: \"Latentworks\",\n      href: \"https://www.linkedin.com/\",\n      dates: \"2021 — 2024\",\n      description:\n        \"Latentworks makes tools for machine learning teams — from experiment tracking to deployment pipelines.\",\n    },\n    {\n      role: \"Software Engineer\",\n      company: \"Synapse Foundry\",\n      href: \"https://www.linkedin.com/\",\n      dates: \"2018 — 2021\",\n      description:\n        \"Synapse Foundry is an early-stage platform helping startups turn prototypes into real products.\",\n    },\n    {\n      role: \"Junior Developer\",\n      company: \"NeuralArc\",\n      href: \"https://www.linkedin.com/\",\n      dates: \"2015 — 2018\",\n      description:\n        \"NeuralArc develops software for applied AI research and the teams putting models into practice.\",\n    },\n  ] satisfies ExperienceItem[],\n  internships: [\n    {\n      role: \"Software Engineering Intern\",\n      company: \"Cascade Systems\",\n      href: \"https://www.linkedin.com/\",\n      dates: \"Summer 2014\",\n      description:\n        \"Cascade Systems builds developer tools for teams shipping cloud-native web applications.\",\n    },\n    {\n      role: \"Software Engineering Intern\",\n      company: \"Northline Soft\",\n      href: \"https://www.linkedin.com/\",\n      dates: \"Summer 2013\",\n      description:\n        \"Northline Soft creates internal platforms that help mid-size companies modernize legacy software.\",\n    },\n  ] satisfies ExperienceItem[],\n  projects: [\n    {\n      name: \"Panfry\",\n      href: \"https://github.com/\",\n      description: \"A small recipe box for the meals I actually cook on repeat.\",\n    },\n    {\n      name: \"Longmile\",\n      href: \"https://github.com/\",\n      description: \"Tracks my slow, patient return to running after a bad knee.\",\n    },\n    {\n      name: \"Spinebox\",\n      href: \"https://github.com/\",\n      description: \"A shelf for the books I have actually finished this year.\",\n    },\n    {\n      name: \"Coinwell\",\n      href: \"https://github.com/\",\n      description: \"A simple, honest look at where my money actually goes.\",\n    },\n  ] satisfies Project[],\n  skills: [\n    {\n      label: \"Frontend\",\n      description: \"User Interface Development\",\n      items: [\n        \"Next.js\",\n        \"shadcn/ui\",\n        \"Tailwind CSS\",\n        \"WebGL\",\n        \"Motion\",\n        \"GSAP\",\n        \"magic-ui\",\n        \"Next View Transitions\",\n        \"coss\",\n        \"spline\",\n        \"nuqs\",\n        \"Figma\",\n      ],\n    },\n    {\n      label: \"Backend\",\n      description: \"Server-side Development\",\n      items: [\n        \"Vercel\",\n        \"Neon\",\n        \"Drizzle\",\n        \"Prisma\",\n        \"Cloudflare R2\",\n        \"Linux\",\n        \"Vercel Blob\",\n        \"Upstash\",\n        \"ngrok\",\n        \"uploadthing\",\n        \"Supabase\",\n      ],\n    },\n    {\n      label: \"Dev Tools\",\n      description: \"Productivity & Workflow\",\n      items: [\n        \"Cursor\",\n        \"v0\",\n        \"Git\",\n        \"GitHub\",\n        \"Vercel\",\n        \"VSCode\",\n        \"Notion\",\n        \"Swift\",\n        \"DaVinci Resolve\",\n        \"Affinity\",\n      ],\n    },\n    {\n      label: \"APIs\",\n      description: \"Integration & Connectivity\",\n      items: [\n        \"Better Auth\",\n        \"Arcjet\",\n        \"Vercel AI SDK\",\n        \"DeepSeek\",\n        \"NextAuth\",\n        \"xAI\",\n        \"Resend\",\n        \"Claude\",\n        \"GPT\",\n        \"Clerk\",\n        \"polar.sh\",\n        \"Stripe\",\n      ],\n    },\n  ] satisfies SkillGroup[],\n  education: [\n    {\n      school: \"Georgia Tech\",\n      href: \"https://omscs.gatech.edu/\",\n      detail: \"M.S. Computer Science (OMSCS)\",\n      dates: \"2017 — 2019\",\n    },\n    {\n      school: \"University of Washington\",\n      href: \"https://www.cs.washington.edu/\",\n      detail: \"B.S. Computer Science\",\n      dates: \"2010 — 2014\",\n    },\n  ] satisfies EducationItem[],\n  certificates: [\n    {\n      name: \"AWS Certified Developer — Associate\",\n      issuer: \"Amazon Web Services\",\n      href: \"https://aws.amazon.com/certification/\",\n      year: \"2023\",\n    },\n    {\n      name: \"Professional Scrum Master I (PSM I)\",\n      issuer: \"Scrum.org\",\n      href: \"https://www.scrum.org/\",\n      year: \"2021\",\n    },\n    {\n      name: \"Meta Front-End Developer Certificate\",\n      issuer: \"Meta / Coursera\",\n      href: \"https://www.coursera.org/\",\n      year: \"2020\",\n    },\n  ] satisfies Certificate[],\n  destinations: [\n    {\n      place: \"Japan\",\n      year: \"2014\",\n      note: \"Tokyo\",\n    },\n    {\n      place: \"Italy\",\n      year: \"2019\",\n      note: \"Rome\",\n    },\n    {\n      place: \"Greece\",\n      year: \"2023\",\n      note: \"Athens\",\n    },\n  ] satisfies Destination[],\n  events: [\n    {\n      name: \"Vercel Ship 2024\",\n      where: \"New York · May 23, 2024\",\n    },\n    {\n      name: \"CES 2025 — NVIDIA keynote\",\n      where: \"Las Vegas · Jan 6, 2025\",\n    },\n    {\n      name: \"Vercel Ship 2025\",\n      where: \"New York · June 25, 2025\",\n    },\n    {\n      name: \"Compile 26\",\n      where: \"Fort Mason, San Francisco · Jun 22, 2026\",\n    },\n    {\n      name: \"Grok Bot Founder Build Night\",\n      where: \"Cursor HQ, San Francisco · Aug 20, 2026\",\n    },\n    {\n      name: \"Cursor Conversations London\",\n      where: \"Central London · Sep 15, 2026\",\n    },\n    {\n      name: \"Vercel Ship 2026\",\n      where: \"Palace of Fine Arts, San Francisco · Oct 15, 2026\",\n    },\n  ] satisfies GlobalEvent[],\n} as const\n",
      "type": "registry:lib",
      "target": "lib/portfolio.ts"
    },
    {
      "path": "registry/new-york/templates/portfolio-v4/styles/terminal.css",
      "content": "/* Portfolio v4 terminal — cyan accent from vercel-docs-theme */\n\n.pt-root {\n  /* Light */\n  --pt-bg: #fff;\n  --pt-fg: #171717;\n  --pt-cursor: #000;\n  --pt-cyan: #0070f3;\n  --pt-bright-cyan: #3291ff;\n  --pt-bright-black: #6b7280;\n  --pt-red: #cd0000;\n\n  box-sizing: border-box;\n  position: relative;\n  min-height: 100dvh;\n  max-width: 100%;\n  margin: 0;\n  padding-top: env(safe-area-inset-top, 0px);\n  padding-right: 16px;\n  padding-bottom: calc(50vh + env(safe-area-inset-bottom, 0px));\n  padding-left: 16px;\n  overflow-x: hidden;\n  overflow-wrap: break-word;\n  background-color: var(--pt-bg);\n  color: var(--pt-fg);\n  font-family: var(--font-geist-mono), \"Geist Mono\", \"SF Mono\", Menlo, monospace;\n  font-size: 15px;\n  line-height: 1.2;\n  letter-spacing: 0;\n  outline: none;\n}\n\n.dark .pt-root,\nhtml.dark .pt-root {\n  /* Dark */\n  --pt-bg: #000;\n  --pt-fg: #eeeeee;\n  --pt-cursor: #fff;\n  --pt-cyan: #47a8ff;\n  --pt-bright-cyan: #79c0ff;\n  --pt-bright-black: #a0a0a0;\n  --pt-red: #ff0000;\n}\n\n@media (prefers-color-scheme: dark) {\n  :root:not(.light) .pt-root {\n    --pt-bg: #000;\n    --pt-fg: #eeeeee;\n    --pt-cursor: #fff;\n    --pt-cyan: #47a8ff;\n    --pt-bright-cyan: #79c0ff;\n    --pt-bright-black: #a0a0a0;\n    --pt-red: #ff0000;\n  }\n}\n\n.pt-root ::selection {\n  background: color-mix(in srgb, var(--pt-cyan) 35%, transparent);\n  color: var(--pt-fg);\n}\n\n.pt-line {\n  white-space: pre-wrap;\n  word-break: break-all;\n  min-height: 1.2em;\n}\n\n.pt-bold {\n  font-weight: bold;\n}\n\n.pt-dim {\n  opacity: 0.6;\n}\n\n.pt-cyan {\n  color: var(--pt-cyan);\n}\n\n.pt-error {\n  color: var(--pt-red);\n}\n\n.pt-link {\n  color: var(--pt-cyan);\n  text-decoration: underline;\n  cursor: pointer;\n}\n\n.pt-link:hover {\n  color: var(--pt-bright-cyan);\n}\n\n.pt-cursor {\n  display: inline-block;\n  width: 0.6em;\n  height: 1.2em;\n  margin-left: 0;\n  vertical-align: text-bottom;\n  background-color: var(--pt-cursor);\n  pointer-events: none;\n  opacity: 1;\n}\n\n.pt-cursor.blink {\n  animation: pt-blink 1s step-end infinite;\n}\n\n@keyframes pt-blink {\n  0%,\n  100% {\n    opacity: 1;\n  }\n  50% {\n    opacity: 0;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .pt-cursor.blink {\n    animation: none;\n    opacity: 1;\n  }\n}\n",
      "type": "registry:file",
      "target": "styles/terminal.css"
    }
  ],
  "docs": "New Next.js project only (same flow as https://ui.shadcn.com/create):\n  npx shadcn@latest init --template next -y \"https://uiception.com/r/portfolio-v4.json\"\n\nThis scaffolds Next.js + shadcn, then installs the terminal portfolio.\n\nEdit name, bio, projects, experience, and education in lib/portfolio.ts. Common commands: about, work, projects, resume, help. Also on disk (via ls): destinations, events. Colors use the uiception cyan palette (see styles/terminal.css) — aligned with app/vercel-docs-theme.css.",
  "categories": [
    "template",
    "portfolio"
  ],
  "type": "registry:block"
}