klyv-ui

Tab Coordinator

Component

About

A panel that elects a single leader among a page's open browser tabs using the Web Locks API (falling back to a localStorage heartbeat), and shows a live log of peer tabs and messages passed between them over BroadcastChannel.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Tab Coordinator to your project and fits it to your theme.

Code

How Tab Coordinator is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import TabCoordinator from "@/components/ui/tab-coordinator";

export default function TabCoordinatorDemo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-app p-6">
      <TabCoordinator label="Tabs on this page" className="w-full max-w-xl" />
    </div>
  );
}

More by klyv-ui

View all
  • Gantt Chart

    Gantt Chart

    68
  • Klyv Animated Beam

    Klyv Animated Beam

    55
  • Shader Canvas

    Shader Canvas

    54
  • Pareto Chart

    Pareto Chart

    48
  • Sunburst Chart

    Sunburst Chart

    28
  • Gooey Loader

    Gooey Loader

    26
  • Fluid Canvas

    Fluid Canvas

    26
  • Morphing Text

    Morphing Text

    23