Arham Khan

Realtime Visitors

Dashboards

About

A visitor activity chart with a live status indicator and country breakdown. A Studio Blocks block (arhamkhnz/studio-blocks, MIT) built on base-ui shadcn primitives.

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

Code

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

Usage.tsx

"use client"

import { Chart02, type VisitorCountry } from "@/components/ui/studioblocks-chart-02"

const defaultActivity = [
  0, 6, 12, 20, 12, 0, 6, 6, 0, 4, 0, 20, 15, 4, 6, 0, 4, 12, 20, 0, 4, 20, 12, 0, 6, 6, 0, 20, 0, 4,
].map((visitors, index) => ({ minute: index + 1, visitors }));
const defaultCountries: VisitorCountry[] = [
  { code: "US", name: "United States", visitors: 14 },
  { code: "GB", name: "United Kingdom", visitors: 4 },
  { code: "CA", name: "Canada", visitors: 3 },
  { code: "IN", name: "India", visitors: 3 },
];

export default function Example() {
  return (
    <div className="w-full max-w-lg">
      <Chart02 activity={defaultActivity} countries={defaultCountries} />
    </div>
  );
}

Dependencies

More by Arham Khan

View all
  • Radial Menu

    Radial Menu

    535
  • Radial Intro

    Radial Intro

    281
  • Playful Todolist

    Playful Todolist

    174
  • Spring Element

    Spring Element

    138
  • Recent Invoices

    Recent Invoices

  • Developer Workspace Sidebar

    Developer Workspace Sidebar

  • Workspace Sidebar

    Workspace Sidebar

  • Upcoming Renewals

    Upcoming Renewals

More in Dashboards

View all
  • Fernly — Project Management Dashboard with Kanban

    Fernly — Project Management Dashboard with Kanban

    754
  • Analytics Dashboard

    Analytics Dashboard

    82
  • Creator Dashboard

    Creator Dashboard

    216
  • Insights Dashboard

    Insights Dashboard

    44
  • Corbel — Sales Analytics Dashboard

    Corbel — Sales Analytics Dashboard

    458
  • serf dashboard

    serf dashboard

    144
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.7K
  • Halden — CRM Dashboard with Sales Pipeline

    Halden — CRM Dashboard with Sales Pipeline

    66