Provides analytical insights for retail locations, including competition levels and opportunity tiers. Use this to power dashboard widgets that evaluate business site viability.
// Source: https://github.com/nitrocloudofficial/nitrostack | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
"use client";
import { useEffect, useState } from "react";
import { useWidgetSDK } from "@nitrostack/widgets";
import {
isAnalyzeResponse,
loadStoredAnalysis,
type AnalyzeResponse,
type ZoneScore,
} from "../lib/api";
import type { Zone } from "../types/analysis";
export type CompetitionLevel = "Low" | "Medium" | "High";
export type OpportunityTier = "high" | "medium" | "low";
export interface ZoneAnalysis {
zone: Zone;
rank: number;
competitionLevel: CompetitionLevel;
trafficScore: number;
/** Null when WorldPop was unavailable; the UI shows "Unavailabl
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key