lumesec

Live Visitors Map

Component

About

A live world map panel that drops incoming site visits onto a dotted map with a ring of light and an afterglow, alongside a scrolling feed and an online-now counter.

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

Code

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

Usage.tsx

"use client";

import GeoVisitors, { type VisitorEvent } from "@/components/ui/geo-visitors";

const visits: VisitorEvent[] = [
  {
    id: "v1",
    lat: 51.5072,
    lon: -0.1276,
    city: "London",
    label: "/pricing",
    time: Date.now() - 4_000,
  },
  {
    id: "v2",
    lat: 40.7128,
    lon: -74.006,
    city: "New York",
    label: "/docs",
    time: Date.now() - 15_000,
  },
  {
    id: "v3",
    lat: 35.6762,
    lon: 139.6503,
    city: "Tokyo",
    label: "/",
    time: Date.now() - 32_000,
  },
  {
    id: "v4",
    lat: -23.5505,
    lon: -46.6333,
    city: "São Paulo",
    label: "/blog",
    time: Date.now() - 58_000,
  },
  {
    id: "v5",
    lat: 1.3521,
    lon: 103.8198,
    city: "Singapore",
    label: "/changelog",
    time: Date.now() - 90_000,
  },
];

export default function GeoVisitorsCustomDemo() {
  return (
    <div className="flex w-full items-center justify-center p-6">
      <GeoVisitors
        events={visits}
        title="Visitors"
        onEventClick={(visit) => console.log(visit.label)}
      />
    </div>
  );
}

More by lumesec

View all
  • Geo Traceroute

    Geo Traceroute

    83
  • Date Picker

    Date Picker

    27
  • Rotary Dial

    Rotary Dial

    21
  • Region Picker

    Region Picker

    20
  • Effort Slider

    Effort Slider

    17
  • Pixel Toaster

    Pixel Toaster

    14
  • Connection Globe

    Connection Globe

    11
  • Pixel Select

    Pixel Select

    11