Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. 🫖 Status page with uptime monitoring & API monitoring as code 🫖 openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
8.2 kB · 385 lines
TypeScript
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386export const regions = [ { code: "ams", location: "Amsterdam, Netherlands", flag: "🇳🇱", continent: "Europe", provider: "Fly", }, { code: "arn", location: "Stockholm, Sweden", flag: "🇸🇪", continent: "Europe", provider: "Fly", }, { code: "atl", location: "Atlanta, Georgia, USA", flag: "🇺🇸", continent: "North America", provider: "Fly", }, { code: "bog", location: "Bogotá, Colombia", flag: "🇨🇴", continent: "South America", provider: "Fly", }, { code: "bom", location: "Mumbai, India", flag: "🇮🇳", continent: "Asia", provider: "Fly", }, { code: "bos", location: "Boston, Massachusetts, USA", flag: "🇺🇸", continent: "North America", provider: "Fly", }, { code: "cdg", location: "Paris, France", flag: "🇫🇷", continent: "Europe", provider: "Fly", }, { code: "den", location: "Denver, Colorado, USA", flag: "🇺🇸", continent: "North America", provider: "Fly", }, { code: "dfw", location: "Dallas, Texas, USA", flag: "🇺🇸", continent: "North America", provider: "Fly", }, { code: "ewr", location: "Secaucus, New Jersey, USA", flag: "🇺🇸", continent: "North America", provider: "Fly", }, { code: "eze", location: "Ezeiza, Argentina", flag: "🇦🇷", continent: "South America", provider: "Fly", }, { code: "fra", location: "Frankfurt, Germany", flag: "🇩🇪", continent: "Europe", provider: "Fly", }, { code: "gdl", location: "Guadalajara, Mexico", flag: "🇲🇽", continent: "North America", provider: "Fly", }, { code: "gig", location: "Rio de Janeiro, Brazil", flag: "🇧🇷", continent: "South America", provider: "Fly", }, { code: "gru", location: "Sao Paulo, Brazil", flag: "🇧🇷", continent: "South America", provider: "Fly", }, { code: "hkg", location: "Hong Kong, Hong Kong", flag: "🇭🇰", continent: "Asia", provider: "Fly", }, { code: "iad", location: "Ashburn, Virginia, USA", flag: "🇺🇸", continent: "North America", provider: "Fly", }, { code: "jnb", location: "Johannesburg, South Africa", flag: "🇿🇦", continent: "Africa", }, { code: "lax", location: "Los Angeles, California, USA", flag: "🇺🇸", continent: "North America", provider: "Fly", }, { code: "lhr", location: "London, United Kingdom", flag: "🇬🇧", continent: "Europe", provider: "Fly", }, { code: "mad", location: "Madrid, Spain", flag: "🇪🇸", continent: "Europe", }, { code: "mia", location: "Miami, Florida, USA", flag: "🇺🇸", continent: "North America", provider: "Fly", }, { code: "nrt", location: "Tokyo, Japan", flag: "🇯🇵", continent: "Asia", provider: "Fly", }, { code: "ord", location: "Chicago, Illinois, USA", flag: "🇺🇸", continent: "North America", }, { code: "otp", location: "Bucharest, Romania", flag: "🇷🇴", continent: "Europe", provider: "Fly", }, { code: "phx", location: "Phoenix, Arizona, USA", flag: "🇺🇸", continent: "North America", provider: "Fly", }, { code: "qro", location: "Querétaro, Mexico", flag: "🇲🇽", continent: "North America", provider: "Fly", }, { code: "scl", location: "Santiago, Chile", flag: "🇨🇱", continent: "South America", provider: "Fly", }, { code: "sjc", location: "San Jose, California, USA", flag: "🇺🇸", continent: "North America", provider: "Fly", }, { code: "sea", location: "Seattle, Washington, USA", flag: "🇺🇸", continent: "North America", provider: "Fly", }, { code: "sin", location: "Singapore, Singapore", flag: "🇸🇬", continent: "Asia", provider: "Fly", }, { code: "syd", location: "Sydney, Australia", flag: "🇦🇺", continent: "Oceania", provider: "Fly", }, { code: "waw", location: "Warsaw, Poland", flag: "🇵🇱", continent: "Europe", provider: "Fly", }, { code: "yul", location: "Montreal, Canada", flag: "🇨🇦", continent: "North America", provider: "Fly", }, { code: "yyz", location: "Toronto, Canada", flag: "🇨🇦", continent: "North America", provider: "Fly", }, { code: "koyeb_fra", location: "Frankfurt, Germany", flag: "🇩🇪", continent: "Europe", provider: "koyeb", }, { code: "koyeb_par", location: "Paris, France", flag: "🇫🇷", continent: "Europe", provider: "koyeb", }, { code: "koyeb_sfo", location: "San Francisco, USA", flag: "🇺🇸", continent: "North America", provider: "koyeb", }, { code: "koyeb_sin", location: "Singapore, Singapore", flag: "🇸🇬", continent: "Asia", provider: "koyeb", }, { code: "koyeb_tyo", location: "Tokyo, Japan", flag: "🇯🇵", continent: "Asia", provider: "koyeb", }, { code: "koyeb_was", location: "Washington, USA", flag: "🇺🇸", continent: "North America", provider: "koyeb", }, { code: "railway_us-west2", location: "California, USA", flag: "🇺🇸", continent: "North America", provider: "railway", }, { code: "railway_us-east4-eqdc4a", location: "Virginia, USA", flag: "🇺🇸", continent: "North America", provider: "railway", }, { code: "railway_europe-west4-drams3a", location: "Amsterdam, Netherlands", flag: "🇳🇱", continent: "Europe", provider: "railway", }, { code: "railway_asia-southeast1-eqsg3a", location: "Singapore, Singapore", flag: "🇸🇬", continent: "Asia", provider: "railway", },] as const;
export type Region = (typeof regions)[number]["code"];
export const groupedRegions = regions.reduce( (acc, region) => { const continent = region.continent; if (!acc[continent]) { acc[continent] = []; } acc[continent].push(region.code); return acc; }, {} as Record<string, Region[]>,);
export const regionColors = { ams: "hsl(217.2 91.2% 59.8%)", arn: "hsl(238.7 83.5% 66.7%)", atl: "hsl(258.3 89.5% 66.3%)", bog: "hsl(270.7 91% 65.1%)", bom: "hsl(292.2 84.1% 60.6%)", bos: "hsl(330.4 81.2% 60.4%)", cdg: "hsl(349.7 89.2% 60.2%)", den: "hsl(215.4 16.3% 46.9%)", dfw: "hsl(220 8.9% 46.1%)", ewr: "hsl(240 3.8% 46.1%)", eze: "hsl(0 0% 45.1%)", fra: "hsl(25 5.3% 44.7%)", gdl: "hsl(0 84.2% 60.2%)", gig: "hsl(24.6 95% 53.1%)", gru: "hsl(37.7 92.1% 50.2%)", hkg: "hsl(45.4 93.4% 47.5%)", iad: "hsl(83.7 80.5% 44.3%)", jnb: "hsl(142.1 70.6% 45.3%)", lax: "hsl(160.1 84.1% 39.4%)", lhr: "hsl(173.4 80.4% 40%)", mad: "hsl(188.7 94.5% 42.7%)", mia: "hsl(198.6 88.7% 48.4%)", nrt: "hsl(217.2 91.2% 59.8%)", ord: "hsl(238.7 83.5% 66.7%)", otp: "hsl(258.3 89.5% 66.3%)", phx: "hsl(270.7 91% 65.1%)", qro: "hsl(292.2 84.1% 60.6%)", scl: "hsl(330.4 81.2% 60.4%)", sjc: "hsl(349.7 89.2% 60.2%)", sea: "hsl(215.4 16.3% 46.9%)", sin: "hsl(220 8.9% 46.1%)", syd: "hsl(240 3.8% 46.1%)", waw: "hsl(0 0% 45.1%)", yul: "hsl(25 5.3% 44.7%)", yyz: "hsl(0 84.2% 60.2%)",
koyeb_fra: "hsl(25 5.3% 44.7%)", koyeb_par: "hsl(25 5.3% 44.7%)", koyeb_sin: "hsl(25 5.3% 44.7%)", koyeb_sfo: "hsl(0 0% 45.1%)", koyeb_tyo: "hsl(0 0% 45.1%)", koyeb_was: "hsl(0 0% 45.1%)",
"railway_asia-southeast1-eqsg3a": "hsl(0 0% 45.1%)", "railway_europe-west4-drams3a": "hsl(0 0% 45.1%)", "railway_us-east4-eqdc4a": "hsl(0 0% 45.1%)", "railway_us-west2": "hsl(0 0% 45.1%)",} satisfies Record<Region, string>;
export function getRegionColor(region: string) { if (region in regionColors) { return regionColors[region as keyof typeof regionColors]; } return "hsl(0 0% 45.1%)";}