Changesets · Branches · Tags · Compare
| Changeset | d8798376fb4d928bf2cb55363eb8bed4b42afe85ae3f1e7ce2dff9df9e902645 |
|---|---|
| Author | Gemini CLI <gemini@example.com> · 2026-05-28 20:21 -04:00 |
| Committer | Gemini CLI <gemini@example.com> · 2026-05-28 20:21 -04:00 |
| Parents | 1224e2ca50b7 |
11 files changed
modified package-lock.json +0 −0
Not shown: the file is larger than the hub shows, or this page holds as much as it shows. View the file.
modified package.json +1 −0
| @@ -26,6 +26,7 @@ | ||
| 26 | 26 | }, |
| 27 | 27 | "devDependencies": { |
| 28 | 28 | "@tailwindcss/postcss": "^4", |
| 29 | + "@types/google-libphonenumber": "^7.4.30", | |
| 29 | 30 | "@types/node": "^20", |
| 30 | 31 | "@types/react": "^19", |
| 31 | 32 | "@types/react-dom": "^19", |
modified src/app/api/maritime/route.ts +0 −110
| @@ -108,116 +108,6 @@ | ||
| 108 | 108 | } catch (e) { |
| 109 | 109 | globalForAis.isAisConnecting = false; |
| 110 | 110 | return; |
| 111 | -import { NextResponse } from 'next/server'; | |
| 112 | -import WebSocket from 'ws'; | |
| 113 | - | |
| 114 | -/** | |
| 115 | - * OSIRIS — Maritime Intelligence | |
| 116 | - * Real-time AIS vessel tracking via aisstream.io + Static global ports. | |
| 117 | - */ | |
| 118 | - | |
| 119 | -const PORTS = [ | |
| 120 | - // ── Top Container Ports ── | |
| 121 | - { name: 'Shanghai', country: 'CN', lat: 31.23, lng: 121.47, type: 'container', volume: '47.3M TEU', rank: 1 }, | |
| 122 | - { name: 'Singapore', country: 'SG', lat: 1.26, lng: 103.84, type: 'container', volume: '37.2M TEU', rank: 2 }, | |
| 123 | - { name: 'Ningbo-Zhoushan', country: 'CN', lat: 29.87, lng: 121.55, type: 'container', volume: '33.3M TEU', rank: 3 }, | |
| 124 | - { name: 'Shenzhen', country: 'CN', lat: 22.54, lng: 114.05, type: 'container', volume: '30.0M TEU', rank: 4 }, | |
| 125 | - { name: 'Guangzhou', country: 'CN', lat: 23.08, lng: 113.32, type: 'container', volume: '24.2M TEU', rank: 5 }, | |
| 126 | - { name: 'Busan', country: 'KR', lat: 35.10, lng: 129.04, type: 'container', volume: '22.7M TEU', rank: 6 }, | |
| 127 | - { name: 'Qingdao', country: 'CN', lat: 36.07, lng: 120.38, type: 'container', volume: '22.0M TEU', rank: 7 }, | |
| 128 | - { name: 'Rotterdam', country: 'NL', lat: 51.90, lng: 4.50, type: 'container', volume: '14.5M TEU', rank: 8 }, | |
| 129 | - { name: 'Tokyo', country: 'JP', lat: 35.61, lng: 139.79, type: 'container', volume: '4.5M TEU' }, | |
| 130 | - { name: 'Yokohama', country: 'JP', lat: 35.45, lng: 139.66, type: 'container', volume: '2.9M TEU' }, | |
| 131 | - { name: 'Kobe', country: 'JP', lat: 34.67, lng: 135.21, type: 'container', volume: '2.8M TEU' }, | |
| 132 | - { name: 'Nagoya', country: 'JP', lat: 35.08, lng: 136.87, type: 'container', volume: '2.6M TEU' }, | |
| 133 | - { name: 'Osaka', country: 'JP', lat: 34.63, lng: 135.41, type: 'container', volume: '2.1M TEU' }, | |
| 134 | - { name: 'Hakata (Fukuoka)', country: 'JP', lat: 33.60, lng: 130.40, type: 'container', volume: '0.9M TEU' }, | |
| 135 | - { name: 'Kitakyushu', country: 'JP', lat: 33.91, lng: 130.93, type: 'container', volume: '0.5M TEU' }, | |
| 136 | - { name: 'Shimizu', country: 'JP', lat: 35.00, lng: 138.50, type: 'container', volume: '0.5M TEU' }, | |
| 137 | - { name: 'Tomakomai', country: 'JP', lat: 42.63, lng: 141.63, type: 'container', volume: '0.4M TEU' }, | |
| 138 | - { name: 'Niigata', country: 'JP', lat: 37.95, lng: 139.06, type: 'container', volume: '0.2M TEU' }, | |
| 139 | - { name: 'Sendai', country: 'JP', lat: 38.27, lng: 141.02, type: 'container', volume: '0.2M TEU' }, | |
| 140 | - { name: 'Mizushima', country: 'JP', lat: 34.50, lng: 133.72, type: 'energy', volume: 'Industrial' }, | |
| 141 | - { name: 'Yokkaichi', country: 'JP', lat: 34.95, lng: 136.65, type: 'energy', volume: 'Industrial' }, | |
| 142 | - { name: 'Dubai (Jebel Ali)', country: 'AE', lat: 25.01, lng: 55.06, type: 'container', volume: '14.0M TEU', rank: 9 }, | |
| 143 | - { name: 'Port Klang', country: 'MY', lat: 2.99, lng: 101.39, type: 'container', volume: '13.2M TEU', rank: 10 }, | |
| 144 | - { name: 'Antwerp', country: 'BE', lat: 51.30, lng: 4.40, type: 'container', volume: '12.0M TEU', rank: 11 }, | |
| 145 | - { name: 'Xiamen', country: 'CN', lat: 24.48, lng: 118.09, type: 'container', volume: '11.4M TEU', rank: 12 }, | |
| 146 | - { name: 'Hamburg', country: 'DE', lat: 53.55, lng: 9.97, type: 'container', volume: '8.7M TEU', rank: 14 }, | |
| 147 | - { name: 'Los Angeles', country: 'US', lat: 33.74, lng: -118.27, type: 'container', volume: '9.9M TEU', rank: 13 }, | |
| 148 | - { name: 'Long Beach', country: 'US', lat: 33.75, lng: -118.19, type: 'container', volume: '8.0M TEU', rank: 15 }, | |
| 149 | - { name: 'Tanjung Pelepas', country: 'MY', lat: 1.36, lng: 103.55, type: 'container', volume: '9.8M TEU', rank: 16 }, | |
| 150 | - { name: 'Savannah', country: 'US', lat: 32.08, lng: -81.09, type: 'container', volume: '5.6M TEU', rank: 20 }, | |
| 151 | - { name: 'Felixstowe', country: 'GB', lat: 51.96, lng: 1.35, type: 'container', volume: '3.8M TEU', rank: 25 }, | |
| 152 | - { name: 'Santos', country: 'BR', lat: -23.95, lng: -46.31, type: 'container', volume: '4.2M TEU', rank: 22 }, | |
| 153 | - { name: 'Colombo', country: 'LK', lat: 6.94, lng: 79.84, type: 'container', volume: '7.2M TEU', rank: 17 }, | |
| 154 | - | |
| 155 | - // ── Energy/Oil Ports ── | |
| 156 | - { name: 'Ras Tanura', country: 'SA', lat: 26.64, lng: 50.16, type: 'energy', volume: '6.5M bpd' }, | |
| 157 | - { name: 'Fujairah', country: 'AE', lat: 25.14, lng: 56.35, type: 'energy', volume: '3.5M bpd' }, | |
| 158 | - { name: 'Novorossiysk', country: 'RU', lat: 44.72, lng: 37.77, type: 'energy', volume: '2.8M bpd' }, | |
| 159 | - { name: 'Houston Ship Channel', country: 'US', lat: 29.73, lng: -95.27, type: 'energy', volume: '2.5M bpd' }, | |
| 160 | - { name: 'Kharg Island', country: 'IR', lat: 29.24, lng: 50.33, type: 'energy', volume: '2.0M bpd' }, | |
| 161 | - { name: 'Primorsk', country: 'RU', lat: 60.35, lng: 28.70, type: 'energy', volume: '1.6M bpd' }, | |
| 162 | - | |
| 163 | - // ── Major Naval Bases ── | |
| 164 | - { name: 'Norfolk Naval Station', country: 'US', lat: 36.95, lng: -76.33, type: 'naval', fleet: 'US Atlantic Fleet' }, | |
| 165 | - { name: 'San Diego Naval Base', country: 'US', lat: 32.69, lng: -117.15, type: 'naval', fleet: 'US Pacific Fleet' }, | |
| 166 | - { name: 'Pearl Harbor', country: 'US', lat: 21.35, lng: -157.97, type: 'naval', fleet: 'US Pacific Fleet' }, | |
| 167 | - { name: 'Yokosuka', country: 'JP', lat: 35.28, lng: 139.67, type: 'naval', fleet: 'US 7th Fleet' }, | |
| 168 | - { name: 'Severomorsk', country: 'RU', lat: 69.07, lng: 33.42, type: 'naval', fleet: 'Russian Northern Fleet' }, | |
| 169 | - { name: 'Tartus', country: 'SY', lat: 34.89, lng: 35.89, type: 'naval', fleet: 'Russian Mediterranean' }, | |
| 170 | - { name: 'Zhanjiang', country: 'CN', lat: 21.20, lng: 110.39, type: 'naval', fleet: 'PLA Navy South Sea Fleet' }, | |
| 171 | - { name: 'Qingdao Naval', country: 'CN', lat: 36.09, lng: 120.43, type: 'naval', fleet: 'PLA Navy North Sea Fleet' }, | |
| 172 | - { name: 'Portsmouth', country: 'GB', lat: 50.80, lng: -1.11, type: 'naval', fleet: 'Royal Navy' }, | |
| 173 | - { name: 'Toulon', country: 'FR', lat: 43.12, lng: 5.93, type: 'naval', fleet: 'French Navy Mediterranean' }, | |
| 174 | - { name: 'Changi Naval Base', country: 'SG', lat: 1.33, lng: 104.01, type: 'naval', fleet: 'Republic of Singapore Navy' }, | |
| 175 | - { name: 'Visakhapatnam', country: 'IN', lat: 17.69, lng: 83.30, type: 'naval', fleet: 'Indian Navy Eastern Command' }, | |
| 176 | - { name: 'Mumbai Naval', country: 'IN', lat: 18.93, lng: 72.84, type: 'naval', fleet: 'Indian Navy Western Command' }, | |
| 177 | -]; | |
| 178 | - | |
| 179 | -const CHOKEPOINTS = [ | |
| 180 | - { name: 'Strait of Hormuz', lat: 26.57, lng: 56.25, traffic: '21M bpd oil', risk: 'HIGH' }, | |
| 181 | - { name: 'Strait of Malacca', lat: 2.50, lng: 101.50, traffic: '16M bpd oil', risk: 'MODERATE' }, | |
| 182 | - { name: 'Suez Canal', lat: 30.43, lng: 32.34, traffic: '12% world trade', risk: 'ELEVATED' }, | |
| 183 | - { name: 'Bab el-Mandeb', lat: 12.58, lng: 43.33, traffic: '6.2M bpd oil', risk: 'CRITICAL' }, | |
| 184 | - { name: 'Panama Canal', lat: 9.08, lng: -79.68, traffic: '5% world trade', risk: 'LOW' }, | |
| 185 | - { name: 'Turkish Straits', lat: 41.12, lng: 29.07, traffic: '3M bpd oil', risk: 'MODERATE' }, | |
| 186 | - { name: 'Danish Straits', lat: 55.70, lng: 12.60, traffic: '3.2M bpd oil', risk: 'LOW' }, | |
| 187 | - { name: 'Cape of Good Hope', lat: -34.36, lng: 18.47, traffic: 'Alt route Suez', risk: 'LOW' }, | |
| 188 | - { name: 'Taiwan Strait', lat: 24.00, lng: 119.00, traffic: '88% large ships', risk: 'ELEVATED' }, | |
| 189 | - { name: 'Lombok Strait', lat: -8.47, lng: 115.72, traffic: 'Alt Malacca', risk: 'LOW' }, | |
| 190 | -]; | |
| 191 | - | |
| 192 | -// --- Global AIS Stream Client (In-Memory Cache) --- | |
| 193 | -// Note: In a true serverless environment, this state would reset per invocation. | |
| 194 | -// For Next.js dev server or Node.js Docker container, this will persist. | |
| 195 | - | |
| 196 | -const globalForAis = globalThis as unknown as { | |
| 197 | - shipsCache: Map<number, any>; | |
| 198 | - isAisConnecting: boolean; | |
| 199 | -}; | |
| 200 | - | |
| 201 | -if (!globalForAis.shipsCache) { | |
| 202 | - globalForAis.shipsCache = new Map(); | |
| 203 | - globalForAis.isAisConnecting = false; | |
| 204 | -} | |
| 205 | - | |
| 206 | -const shipsCache = globalForAis.shipsCache; | |
| 207 | - | |
| 208 | -function connectAisStream() { | |
| 209 | - if (globalForAis.isAisConnecting) return; | |
| 210 | - const apiKey = process.env.AIS_API_KEY; | |
| 211 | - if (!apiKey) return; | |
| 212 | - | |
| 213 | - globalForAis.isAisConnecting = true; | |
| 214 | - let ws: WebSocket; | |
| 215 | - | |
| 216 | - try { | |
| 217 | - ws = new WebSocket("wss://stream.aisstream.io/v0/stream"); | |
| 218 | - } catch (e) { | |
| 219 | - globalForAis.isAisConnecting = false; | |
| 220 | - return; | |
| 221 | 111 | } |
| 222 | 112 | |
| 223 | 113 | ws.on("open", () => { |
modified src/app/api/osint/crypto/route.ts +10 −3
| @@ -6,8 +6,8 @@ | ||
| 6 | 6 | // (free, no key for either). Cross-checks the OFAC SDN sanctioned crypto |
| 7 | 7 | // address lists and flags hits with the source so the UI can warn the user. |
| 8 | 8 | |
| 9 | -const BTC_RE = /^([13][a-km-zA-HJ-NP-Z1-9]{25,34}|bc1[ac-hj-np-z02-9]{11,87})$/; | |
| 10 | -const ETH_RE = /^0x[a-fA-F0-9]{40}$/; | |
| 9 | +const BTC_RE = /^[a-zA-Z0-9]{25,90}$/; | |
| 10 | +const ETH_RE = /^0x[a-fA-F0-9]{40}$/i; | |
| 11 | 11 | |
| 12 | 12 | type Chain = 'BTC' | 'ETH'; |
| 13 | 13 | |
| @@ -128,13 +128,20 @@ | ||
| 128 | 128 | |
| 129 | 129 | export async function GET(req: Request) { |
| 130 | 130 | const { searchParams } = new URL(req.url); |
| 131 | - const address = (searchParams.get('address') || '').trim(); | |
| 131 | + let address = (searchParams.get('address') || '').trim(); | |
| 132 | 132 | const chainParam = (searchParams.get('chain') || 'auto').toUpperCase(); |
| 133 | 133 | |
| 134 | 134 | if (!address) { |
| 135 | 135 | return NextResponse.json({ error: 'Missing address parameter' }, { status: 400 }); |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | + // Robust cleaning | |
| 139 | + address = address.replace(/^(ethereum|bitcoin|bitcoincash):/i, ''); | |
| 140 | + address = address.replace(/\s+/g, ''); | |
| 141 | + if (/^[a-fA-F0-9]{40}$/.test(address)) { | |
| 142 | + address = '0x' + address; | |
| 143 | + } | |
| 144 | + | |
| 138 | 145 | const clientIp = getClientIp(req); |
| 139 | 146 | if (isRateLimited(clientIp, 20, 60_000)) { |
| 140 | 147 | return NextResponse.json({ error: 'Rate limit exceeded' }, { status: 429 }); |
added src/app/api/osint/github/route.ts +39 −0
| @@ -0,0 +1,39 @@ | ||
| 1 | +import { NextResponse } from 'next/server'; | |
| 2 | + | |
| 3 | +export async function GET(req: Request) { | |
| 4 | + const { searchParams } = new URL(req.url); | |
| 5 | + const username = searchParams.get('user'); | |
| 6 | + | |
| 7 | + if (!username) return NextResponse.json({ error: 'Missing username parameter' }, { status: 400 }); | |
| 8 | + | |
| 9 | + try { | |
| 10 | + const [userRes, reposRes] = await Promise.all([ | |
| 11 | + fetch(`https://api.github.com/users/${encodeURIComponent(username)}`, { headers: { 'User-Agent': 'OSIRIS-Recon' } }), | |
| 12 | + fetch(`https://api.github.com/users/${encodeURIComponent(username)}/repos?sort=updated&per_page=5`, { headers: { 'User-Agent': 'OSIRIS-Recon' } }) | |
| 13 | + ]); | |
| 14 | + | |
| 15 | + if (userRes.status === 404) return NextResponse.json({ error: 'User not found' }, { status: 404 }); | |
| 16 | + if (!userRes.ok) throw new Error(`GitHub API HTTP ${userRes.status}`); | |
| 17 | + | |
| 18 | + const userData = await userRes.json(); | |
| 19 | + const reposData = reposRes.ok ? await reposRes.json() : []; | |
| 20 | + | |
| 21 | + return NextResponse.json({ | |
| 22 | + username: userData.login, | |
| 23 | + name: userData.name, | |
| 24 | + company: userData.company, | |
| 25 | + blog: userData.blog, | |
| 26 | + location: userData.location, | |
| 27 | + email: userData.email, | |
| 28 | + bio: userData.bio, | |
| 29 | + twitter: userData.twitter_username, | |
| 30 | + public_repos: userData.public_repos, | |
| 31 | + followers: userData.followers, | |
| 32 | + created_at: userData.created_at, | |
| 33 | + avatar_url: userData.avatar_url, | |
| 34 | + recent_repos: Array.isArray(reposData) ? reposData.map((r: any) => ({ name: r.name, language: r.language, updated: r.updated_at })) : [] | |
| 35 | + }); | |
| 36 | + } catch (error: any) { | |
| 37 | + return NextResponse.json({ error: 'GitHub lookup failed', detail: error.message }, { status: 502 }); | |
| 38 | + } | |
| 39 | +} |
added src/app/api/osint/leaks/route.ts +29 −0
| @@ -0,0 +1,29 @@ | ||
| 1 | +import { NextResponse } from 'next/server'; | |
| 2 | + | |
| 3 | +export async function GET(req: Request) { | |
| 4 | + const { searchParams } = new URL(req.url); | |
| 5 | + const email = searchParams.get('email'); | |
| 6 | + | |
| 7 | + if (!email) return NextResponse.json({ error: 'Missing email parameter' }, { status: 400 }); | |
| 8 | + | |
| 9 | + try { | |
| 10 | + const res = await fetch(`https://api.xposedornot.com/v1/check-email/${encodeURIComponent(email)}`, { | |
| 11 | + headers: { 'Accept': 'application/json' } | |
| 12 | + }); | |
| 13 | + | |
| 14 | + if (res.status === 404) { | |
| 15 | + return NextResponse.json({ email, breached: false, breaches: [] }); | |
| 16 | + } | |
| 17 | + | |
| 18 | + if (!res.ok) throw new Error(`XposedOrNot API HTTP ${res.status}`); | |
| 19 | + | |
| 20 | + const data = await res.json(); | |
| 21 | + return NextResponse.json({ | |
| 22 | + email, | |
| 23 | + breached: true, | |
| 24 | + breaches: data.breaches?.[0] || [] | |
| 25 | + }); | |
| 26 | + } catch (error: any) { | |
| 27 | + return NextResponse.json({ error: 'Leak lookup failed', detail: error.message }, { status: 502 }); | |
| 28 | + } | |
| 29 | +} |
added src/app/api/osint/mac/route.ts +38 −0
| @@ -0,0 +1,38 @@ | ||
| 1 | +import { NextResponse } from 'next/server'; | |
| 2 | + | |
| 3 | +export async function GET(req: Request) { | |
| 4 | + const { searchParams } = new URL(req.url); | |
| 5 | + const mac = searchParams.get('mac'); | |
| 6 | + | |
| 7 | + if (!mac) { | |
| 8 | + return NextResponse.json({ error: 'Missing MAC parameter' }, { status: 400 }); | |
| 9 | + } | |
| 10 | + | |
| 11 | + // Clean the MAC address format to allow varied inputs | |
| 12 | + const cleanMac = mac.trim().toUpperCase().replace(/[^A-F0-9:-]/g, ''); | |
| 13 | + | |
| 14 | + try { | |
| 15 | + const res = await fetch(`https://macvendors.co/api/${encodeURIComponent(cleanMac)}`, { | |
| 16 | + signal: AbortSignal.timeout(8000), | |
| 17 | + headers: { 'Accept': 'application/json' } | |
| 18 | + }); | |
| 19 | + | |
| 20 | + if (!res.ok) { | |
| 21 | + throw new Error(`MacVendors API HTTP ${res.status}`); | |
| 22 | + } | |
| 23 | + | |
| 24 | + const data = await res.json(); | |
| 25 | + if (data && data.result && data.result.company) { | |
| 26 | + return NextResponse.json({ | |
| 27 | + mac: cleanMac, | |
| 28 | + vendor: data.result.company, | |
| 29 | + address: data.result.address, | |
| 30 | + prefix: data.result.mac_prefix | |
| 31 | + }); | |
| 32 | + } else { | |
| 33 | + return NextResponse.json({ mac: cleanMac, vendor: 'Not Found' }); | |
| 34 | + } | |
| 35 | + } catch (error: any) { | |
| 36 | + return NextResponse.json({ error: 'MAC lookup failed', detail: error.message }, { status: 502 }); | |
| 37 | + } | |
| 38 | +} |
added src/app/api/osint/phone/route.ts +79 −0
| @@ -0,0 +1,79 @@ | ||
| 1 | +import { NextResponse } from 'next/server'; | |
| 2 | + | |
| 3 | +const COUNTRY_CODES: Record<string, string> = { | |
| 4 | + '1': 'US/Canada', '44': 'United Kingdom', '61': 'Australia', '81': 'Japan', '86': 'China', | |
| 5 | + '49': 'Germany', '33': 'France', '7': 'Russia/Kazakhstan', '55': 'Brazil', '91': 'India', | |
| 6 | + '27': 'South Africa', '82': 'South Korea', '34': 'Spain', '39': 'Italy', '52': 'Mexico', | |
| 7 | + '31': 'Netherlands', '46': 'Sweden', '41': 'Switzerland', '48': 'Poland', '43': 'Austria', | |
| 8 | + '32': 'Belgium', '45': 'Denmark', '358': 'Finland', '47': 'Norway', '353': 'Ireland', | |
| 9 | + '64': 'New Zealand', '65': 'Singapore', '60': 'Malaysia', '62': 'Indonesia', '63': 'Philippines', | |
| 10 | + '66': 'Thailand', '84': 'Vietnam', '92': 'Pakistan', '880': 'Bangladesh', '94': 'Sri Lanka', | |
| 11 | + '98': 'Iran', '90': 'Turkey', '972': 'Israel', '966': 'Saudi Arabia', '971': 'UAE', | |
| 12 | + '20': 'Egypt', '234': 'Nigeria', '254': 'Kenya', '255': 'Tanzania', '256': 'Uganda', | |
| 13 | + '212': 'Morocco', '213': 'Algeria', '216': 'Tunisia', '218': 'Libya', '221': 'Senegal', | |
| 14 | + '225': 'Ivory Coast', '233': 'Ghana', '237': 'Cameroon', '244': 'Angola', '258': 'Mozambique', | |
| 15 | + '260': 'Zambia', '263': 'Zimbabwe', '264': 'Namibia', '267': 'Botswana', '268': 'Eswatini', | |
| 16 | + '54': 'Argentina', '56': 'Chile', '57': 'Colombia', '58': 'Venezuela', '51': 'Peru', | |
| 17 | + '591': 'Bolivia', '593': 'Ecuador', '595': 'Paraguay', '598': 'Uruguay', '53': 'Cuba', | |
| 18 | + '501': 'Belize', '502': 'Guatemala', '503': 'El Salvador', '504': 'Honduras', '505': 'Nicaragua', | |
| 19 | + '506': 'Costa Rica', '507': 'Panama', '509': 'Haiti', '1809': 'Dominican Republic', '1829': 'Dominican Republic', | |
| 20 | + '1849': 'Dominican Republic', '1787': 'Puerto Rico', '1939': 'Puerto Rico', '1876': 'Jamaica', | |
| 21 | + '380': 'Ukraine', '375': 'Belarus', '370': 'Lithuania', '371': 'Latvia', '372': 'Estonia' | |
| 22 | +}; | |
| 23 | + | |
| 24 | +export async function GET(req: Request) { | |
| 25 | + const { searchParams } = new URL(req.url); | |
| 26 | + const number = searchParams.get('number'); | |
| 27 | + | |
| 28 | + if (!number) { | |
| 29 | + return NextResponse.json({ error: 'Missing phone number parameter' }, { status: 400 }); | |
| 30 | + } | |
| 31 | + | |
| 32 | + // Pure JS parsing to avoid Turbopack NPM caching issues on live servers | |
| 33 | + let cleanNumber = number.replace(/[^\d+]/g, ''); | |
| 34 | + | |
| 35 | + // Default assumptions if + is missing | |
| 36 | + if (!cleanNumber.startsWith('+') && cleanNumber.length > 10) { | |
| 37 | + cleanNumber = '+' + cleanNumber.replace(/^00/, ''); | |
| 38 | + } else if (!cleanNumber.startsWith('+') && cleanNumber.length === 10) { | |
| 39 | + cleanNumber = '+1' + cleanNumber; // Assume US format for 10 digits | |
| 40 | + } | |
| 41 | + | |
| 42 | + let cc = ''; | |
| 43 | + let national = cleanNumber.replace('+', ''); | |
| 44 | + | |
| 45 | + if (cleanNumber.startsWith('+')) { | |
| 46 | + const withoutPlus = cleanNumber.substring(1); | |
| 47 | + // Try 4, 3, 2, 1 digit country codes | |
| 48 | + for (let i = 4; i >= 1; i--) { | |
| 49 | + const prefix = withoutPlus.substring(0, i); | |
| 50 | + if (COUNTRY_CODES[prefix]) { | |
| 51 | + cc = prefix; | |
| 52 | + national = withoutPlus.substring(i); | |
| 53 | + break; | |
| 54 | + } | |
| 55 | + } | |
| 56 | + } | |
| 57 | + | |
| 58 | + // Simulate Line Type heuristically | |
| 59 | + const firstDigit = national.charAt(0); | |
| 60 | + let lineType = 'LANDLINE'; | |
| 61 | + if (cc === '1' && national.length === 10) { | |
| 62 | + lineType = 'MOBILE_OR_LANDLINE'; | |
| 63 | + } else if (firstDigit === '7' || firstDigit === '8' || firstDigit === '9') { | |
| 64 | + lineType = 'MOBILE'; // Common in Europe/Asia | |
| 65 | + } | |
| 66 | + | |
| 67 | + const region = cc ? COUNTRY_CODES[cc] : 'Unknown Region'; | |
| 68 | + | |
| 69 | + return NextResponse.json({ | |
| 70 | + query: number, | |
| 71 | + valid: cleanNumber.length >= 7, | |
| 72 | + number: cleanNumber.startsWith('+') ? cleanNumber : `+${cleanNumber}`, | |
| 73 | + international: cleanNumber.startsWith('+') ? `${cleanNumber.substring(0, cc.length+1)} ${national}` : cleanNumber, | |
| 74 | + national: national, | |
| 75 | + country_code: cc ? `+${cc}` : 'Unknown', | |
| 76 | + region: region, | |
| 77 | + line_type: lineType | |
| 78 | + }); | |
| 79 | +} |
added src/app/api/osint/shodan/route.ts +37 −0
| @@ -0,0 +1,37 @@ | ||
| 1 | +import { NextResponse } from 'next/server'; | |
| 2 | + | |
| 3 | +export async function GET(req: Request) { | |
| 4 | + const { searchParams } = new URL(req.url); | |
| 5 | + const ip = searchParams.get('ip'); | |
| 6 | + | |
| 7 | + if (!ip) { | |
| 8 | + return NextResponse.json({ error: 'Missing IP parameter' }, { status: 400 }); | |
| 9 | + } | |
| 10 | + | |
| 11 | + try { | |
| 12 | + const res = await fetch(`https://internetdb.shodan.io/${encodeURIComponent(ip)}`, { | |
| 13 | + signal: AbortSignal.timeout(8000), | |
| 14 | + }); | |
| 15 | + | |
| 16 | + if (res.status === 404) { | |
| 17 | + return NextResponse.json({ | |
| 18 | + ip, | |
| 19 | + status: 'No Shodan InternetDB records found', | |
| 20 | + ports: [], | |
| 21 | + cpes: [], | |
| 22 | + hostnames: [], | |
| 23 | + tags: [], | |
| 24 | + vulns: [] | |
| 25 | + }); | |
| 26 | + } | |
| 27 | + | |
| 28 | + if (!res.ok) { | |
| 29 | + throw new Error(`Shodan HTTP ${res.status}`); | |
| 30 | + } | |
| 31 | + | |
| 32 | + const data = await res.json(); | |
| 33 | + return NextResponse.json(data); | |
| 34 | + } catch (error: any) { | |
| 35 | + return NextResponse.json({ error: 'Shodan lookup failed', detail: error.message }, { status: 502 }); | |
| 36 | + } | |
| 37 | +} |
modified src/components/LiveAlerts.tsx +1 −1
| @@ -114,7 +114,7 @@ | ||
| 114 | 114 | initial={{ opacity: 0, x: 20 }} |
| 115 | 115 | animate={{ opacity: 1, x: 0 }} |
| 116 | 116 | transition={{ delay: 0.5, duration: 0.6 }} |
| 117 | - className={`glass-panel flex flex-col overflow-hidden pointer-events-auto resize-y min-h-[200px] transition-all duration-300 ${maximized ? 'fixed inset-4 z-[9999] bg-[#0a0a09]/95 backdrop-blur-3xl' : ''}`} | |
| 117 | + className={`glass-panel flex flex-col overflow-hidden pointer-events-auto shrink-0 resize-y min-h-[200px] transition-all duration-300 ${maximized ? 'fixed inset-4 z-[9999] bg-[#0a0a09]/95 backdrop-blur-3xl' : ''}`} | |
| 118 | 118 | > |
| 119 | 119 | <button |
| 120 | 120 | onClick={() => setExpanded(!expanded)} |
modified src/components/OsintPanel.tsx +151 −26
| @@ -7,7 +7,7 @@ | ||
| 7 | 7 | ChevronDown, ChevronUp, Loader2, AlertTriangle, Server, |
| 8 | 8 | Wifi, Lock, MapPin, Bug, Code, Layers, Network, Fingerprint, |
| 9 | 9 | CheckCircle, XCircle, Clock, ExternalLink, Crosshair, |
| 10 | - Maximize2, Minimize2, Gavel, Bitcoin | |
| 10 | + Maximize2, Minimize2, Gavel, Bitcoin, Phone, Terminal, ShieldAlert | |
| 11 | 11 | } from 'lucide-react'; |
| 12 | 12 | |
| 13 | 13 | const TABS = [ |
| @@ -21,8 +21,13 @@ | ||
| 21 | 21 | { id: 'headers', label: 'HEADERS', icon: Code, placeholder: 'URL to inspect', color: '#87CEEB' }, |
| 22 | 22 | { id: 'ssl', label: 'SSL/TLS', icon: Shield, placeholder: 'Domain name', color: '#76FF03' }, |
| 23 | 23 | { id: 'subdomains', label: 'SUBDOMAINS', icon: Layers, placeholder: 'Domain to enumerate', color: '#00BCD4' }, |
| 24 | - { id: 'tech', label: 'TECH DETECT', icon: Fingerprint, placeholder: 'URL to fingerprint', color: '#9C27B0' }, | |
| 25 | - { id: 'sanctions', label: 'SANCTIONS', icon: Gavel, placeholder: 'Person / org / vessel name', color: '#FF1744' }, | |
| 24 | + { id: 'tech', label: 'TECH DETECT', icon: Code, placeholder: 'URL to fingerprint', color: '#9C27B0' }, | |
| 25 | + { id: 'shodan', label: 'SHODAN IOT', icon: Network, placeholder: 'IP address', color: '#FF3D3D' }, | |
| 26 | + { id: 'bgp', label: 'BGP ROUTE', icon: Globe, placeholder: 'IP or ASN', color: '#00E5FF' }, | |
| 27 | + { id: 'mac', label: 'MAC ADDR', icon: Fingerprint, placeholder: 'MAC address', color: '#FFD700' }, | |
| 28 | + { id: 'phone', label: 'PHONE INTEL', icon: Phone, placeholder: 'Phone number (e.g. +1...)', color: '#FF9500' }, | |
| 29 | + { id: 'leaks', label: 'DATA LEAKS', icon: ShieldAlert, placeholder: 'Email address', color: '#E040FB' }, | |
| 30 | + { id: 'github', label: 'GITHUB RECON', icon: Terminal, placeholder: 'GitHub username', color: '#87CEEB' }, | |
| 26 | 31 | { id: 'crypto', label: 'CRYPTO TRACE', icon: Bitcoin, placeholder: 'BTC or ETH address', color: '#F7931A' }, |
| 27 | 32 | { id: 'sweep', label: 'IP SWEEP', icon: Crosshair, placeholder: 'Enter IP address (e.g. 8.8.8.8)', color: '#FF3D3D' }, |
| 28 | 33 | ]; |
| @@ -103,13 +108,18 @@ | ||
| 103 | 108 | case 'certs': url = `/api/osint/certs?domain=${encodeURIComponent(query)}`; break; |
| 104 | 109 | case 'whois': url = `/api/osint/whois?domain=${encodeURIComponent(query)}`; break; |
| 105 | 110 | case 'threats': url = `/api/osint/threats?query=${encodeURIComponent(query)}`; break; |
| 111 | + case 'bgp': url = `/api/osint/bgp?query=${encodeURIComponent(query)}`; break; | |
| 112 | + case 'mac': url = `/api/osint/mac?mac=${encodeURIComponent(query)}`; break; | |
| 113 | + case 'phone': url = `/api/osint/phone?number=${encodeURIComponent(query)}`; break; | |
| 114 | + case 'leaks': url = `/api/osint/leaks?email=${encodeURIComponent(query)}`; break; | |
| 115 | + case 'crypto': url = `/api/osint/crypto?address=${encodeURIComponent(query)}`; break; | |
| 116 | + case 'github': url = `/api/osint/github?user=${encodeURIComponent(query)}`; break; | |
| 106 | 117 | case 'scanner': url = `/api/scanner?target=${encodeURIComponent(query)}&type=${scanType}`; break; |
| 107 | 118 | case 'headers': url = `/api/scanner?target=${encodeURIComponent(query)}&type=headers`; break; |
| 108 | 119 | case 'ssl': url = `/api/scanner?target=${encodeURIComponent(query)}&type=ssl`; break; |
| 109 | 120 | case 'subdomains': url = `/api/scanner?target=${encodeURIComponent(query)}&type=subdomains`; break; |
| 110 | 121 | case 'tech': url = `/api/scanner?target=${encodeURIComponent(query)}&type=tech`; break; |
| 111 | - case 'sanctions': url = `/api/osint/sanctions?query=${encodeURIComponent(query)}`; break; | |
| 112 | - case 'crypto': url = `/api/osint/crypto?address=${encodeURIComponent(query)}`; break; | |
| 122 | + case 'shodan': url = `/api/osint/shodan?ip=${encodeURIComponent(query)}`; break; | |
| 113 | 123 | } |
| 114 | 124 | const res = await fetch(url); |
| 115 | 125 | const data = await res.json(); |
| @@ -118,7 +128,7 @@ | ||
| 118 | 128 | setHistory(prev => [{ tab: activeTab, query, time: new Date().toLocaleTimeString() }, ...prev.slice(0, 9)]); |
| 119 | 129 | |
| 120 | 130 | // Geolocate the target in the background |
| 121 | - if (activeTab !== 'sweep' && activeTab !== 'vuln' && activeTab !== 'sanctions' && activeTab !== 'crypto') { | |
| 131 | + if (activeTab !== 'sweep' && activeTab !== 'vuln' && activeTab !== 'crypto' && activeTab !== 'mac' && activeTab !== 'bgp' && activeTab !== 'github' && activeTab !== 'leaks' && activeTab !== 'phone') { | |
| 122 | 132 | fetch(`/api/osint/ip?ip=${encodeURIComponent(query)}`) |
| 123 | 133 | .then(r => r.json()) |
| 124 | 134 | .then(locData => { |
| @@ -317,29 +327,144 @@ | ||
| 317 | 327 | ); |
| 318 | 328 | } |
| 319 | 329 | |
| 320 | - // ── SANCTIONS ── | |
| 321 | - if (activeTab === 'sanctions') { | |
| 322 | - const matches = Array.isArray(r.matches) ? r.matches : []; | |
| 330 | + // ── SHODAN ── | |
| 331 | + if (activeTab === 'shodan') { | |
| 323 | 332 | return ( |
| 324 | 333 | <div> |
| 325 | - <SectionHeader title="OFAC SDN SEARCH" icon={Gavel} color="#FF1744" /> | |
| 326 | - <ResultRow label="Query" value={r.query || query} color="#FF1744" /> | |
| 327 | - <ResultRow label="Source" value={r.source} /> | |
| 328 | - <ResultRow label="Matches" value={r.total ?? matches.length} color={matches.length ? '#FF1744' : '#00E676'} /> | |
| 329 | - {matches.slice(0, 20).map((m: any) => ( | |
| 330 | - <div key={m.id} className="mt-2 p-2 rounded border border-red-500/30 bg-red-500/5"> | |
| 331 | - <div className="flex items-center justify-between mb-1"> | |
| 332 | - <span className="text-[10px] font-mono font-bold text-red-400 break-all">{m.name}</span> | |
| 333 | - <span className="text-[8px] font-mono uppercase tracking-wider text-[var(--text-muted)] ml-2 flex-shrink-0">{m.schema}</span> | |
| 334 | + <SectionHeader title="SHODAN IOT INTELLIGENCE" icon={Network} color="#FF3D3D" /> | |
| 335 | + <ResultRow label="Target IP" value={r.ip || query} color="#FF3D3D" /> | |
| 336 | + {r.hostnames?.length > 0 && <ResultRow label="Hostnames" value={r.hostnames.join(', ')} />} | |
| 337 | + {r.ports?.length > 0 && <ResultRow label="Open Ports" value={r.ports.join(', ')} color="#00E5FF" />} | |
| 338 | + {r.tags?.length > 0 && <ResultRow label="Tags" value={r.tags.join(', ')} color="#FF9500" />} | |
| 339 | + {r.vulns?.length > 0 && ( | |
| 340 | + <div className="mt-2 p-2 border border-red-500/30 bg-red-500/10 rounded"> | |
| 341 | + <span className="text-[10px] font-mono text-red-400 font-bold mb-1 block">VULNERABILITIES ({r.vulns.length})</span> | |
| 342 | + <div className="flex flex-wrap gap-1"> | |
| 343 | + {r.vulns.slice(0, 10).map((v: string) => ( | |
| 344 | + <a key={v} href={`https://nvd.nist.gov/vuln/detail/${v}`} target="_blank" rel="noreferrer" className="text-[9px] font-mono px-1.5 py-0.5 rounded bg-[#1A1A18] text-[#8A8880] hover:text-[#FF3D3D]">{v}</a> | |
| 345 | + ))} | |
| 346 | + {r.vulns.length > 10 && <span className="text-[9px] font-mono text-[#8A8880]">+{r.vulns.length - 10} more</span>} | |
| 347 | + </div> | |
| 348 | + </div> | |
| 349 | + )} | |
| 350 | + {renderFallbackExcluding(['ip','hostnames','ports','tags','vulns','cpes'])} | |
| 351 | + </div> | |
| 352 | + ); | |
| 353 | + } | |
| 354 | + | |
| 355 | + // ── BGP ── | |
| 356 | + if (activeTab === 'bgp') { | |
| 357 | + return ( | |
| 358 | + <div> | |
| 359 | + <SectionHeader title="BGP ROUTING INTELLIGENCE" icon={Globe} color="#00E5FF" /> | |
| 360 | + <ResultRow label="Query" value={r.query} color="#00E5FF" /> | |
| 361 | + {r.type === 'ip' && r.ip && ( | |
| 362 | + <> | |
| 363 | + {r.ip.prefixes?.map((p: any, i: number) => ( | |
| 364 | + <div key={i} className="mt-2 p-2 border border-[#00E5FF]/20 bg-[#00E5FF]/5 rounded"> | |
| 365 | + <ResultRow label="ASN" value={`AS${p.asn.asn} - ${p.asn.name}`} color="#00E5FF" /> | |
| 366 | + <ResultRow label="Prefix" value={p.prefix} /> | |
| 367 | + <ResultRow label="Country" value={p.asn.country_code} /> | |
| 368 | + <ResultRow label="Description" value={p.asn.description} /> | |
| 369 | + </div> | |
| 370 | + ))} | |
| 371 | + </> | |
| 372 | + )} | |
| 373 | + {r.type === 'asn' && r.asn && ( | |
| 374 | + <div className="mt-2 p-2 border border-[#00E5FF]/20 bg-[#00E5FF]/5 rounded"> | |
| 375 | + <ResultRow label="ASN" value={`AS${r.asn.asn}`} color="#00E5FF" /> | |
| 376 | + <ResultRow label="Name" value={r.asn.name} /> | |
| 377 | + <ResultRow label="Description" value={r.asn.description} /> | |
| 378 | + <ResultRow label="Country" value={r.asn.country_code} /> | |
| 379 | + {r.prefixes && <ResultRow label="Prefixes" value={`IPv4: ${r.prefixes.total_v4} | IPv6: ${r.prefixes.total_v6}`} />} | |
| 380 | + {r.peers && <ResultRow label="Peers" value={r.peers.total} />} | |
| 381 | + </div> | |
| 382 | + )} | |
| 383 | + {renderFallbackExcluding(['query', 'type', 'ip', 'asn', 'prefixes', 'peers', 'timestamp'])} | |
| 384 | + </div> | |
| 385 | + ); | |
| 386 | + } | |
| 387 | + | |
| 388 | + // ── MAC ── | |
| 389 | + if (activeTab === 'mac') { | |
| 390 | + return ( | |
| 391 | + <div> | |
| 392 | + <SectionHeader title="MAC VENDOR LOOKUP" icon={Fingerprint} color="#FFD700" /> | |
| 393 | + <ResultRow label="MAC Address" value={r.mac} color="#FFD700" /> | |
| 394 | + <ResultRow label="Vendor" value={r.vendor} color={r.vendor === 'Not Found' ? '#FF3D3D' : '#00E676'} /> | |
| 395 | + </div> | |
| 396 | + ); | |
| 397 | + } | |
| 398 | + | |
| 399 | + // ── PHONE ── | |
| 400 | + if (activeTab === 'phone') { | |
| 401 | + return ( | |
| 402 | + <div> | |
| 403 | + <SectionHeader title="PHONE INTELLIGENCE" icon={Phone} color="#FF9500" /> | |
| 404 | + <ResultRow label="Query" value={r.query} color="#FF9500" /> | |
| 405 | + <ResultRow label="Valid" value={r.valid ? 'YES' : 'NO'} color={r.valid ? '#00E676' : '#FF3D3D'} /> | |
| 406 | + {r.valid && ( | |
| 407 | + <> | |
| 408 | + <ResultRow label="E.164 Format" value={r.number} /> | |
| 409 | + <ResultRow label="Intl Format" value={r.international} /> | |
| 410 | + <ResultRow label="Nat Format" value={r.national} /> | |
| 411 | + <ResultRow label="Country" value={`${r.region} (${r.country_code})`} /> | |
| 412 | + <ResultRow label="Line Type" value={r.line_type} color={r.line_type === 'MOBILE' ? '#00E5FF' : r.line_type === 'VOIP' ? '#FF9500' : undefined} /> | |
| 413 | + </> | |
| 414 | + )} | |
| 415 | + </div> | |
| 416 | + ); | |
| 417 | + } | |
| 418 | + | |
| 419 | + // ── GITHUB ── | |
| 420 | + if (activeTab === 'github') { | |
| 421 | + return ( | |
| 422 | + <div> | |
| 423 | + <SectionHeader title="GITHUB RECON" icon={Terminal} color="#87CEEB" /> | |
| 424 | + <div className="flex items-center gap-3 mb-2"> | |
| 425 | + {r.avatar_url && <img src={r.avatar_url} alt="avatar" className="w-10 h-10 rounded-full border border-[#87CEEB]/30" />} | |
| 426 | + <div> | |
| 427 | + <div className="text-[12px] font-mono font-bold text-[#87CEEB]">{r.name || r.username}</div> | |
| 428 | + <div className="text-[9px] font-mono text-[var(--text-muted)]">@{r.username} • {r.followers} followers</div> | |
| 429 | + </div> | |
| 430 | + </div> | |
| 431 | + <ResultRow label="Company" value={r.company} /> | |
| 432 | + <ResultRow label="Location" value={r.location} /> | |
| 433 | + <ResultRow label="Email" value={r.email} color="#00E676" /> | |
| 434 | + <ResultRow label="Twitter" value={r.twitter} color="#448AFF" /> | |
| 435 | + <ResultRow label="Website" value={r.blog} /> | |
| 436 | + <ResultRow label="Bio" value={r.bio} /> | |
| 437 | + {r.recent_repos?.length > 0 && ( | |
| 438 | + <div className="mt-2 p-2 border border-[#87CEEB]/20 bg-[#87CEEB]/5 rounded"> | |
| 439 | + <span className="text-[9px] font-mono text-[#87CEEB] block mb-1">RECENT REPOS</span> | |
| 440 | + {r.recent_repos.map((repo: any, i: number) => ( | |
| 441 | + <div key={i} className="flex justify-between text-[9px] font-mono mb-0.5"> | |
| 442 | + <span className="text-[#E8E6E0]">{repo.name}</span> | |
| 443 | + <span className="text-[var(--text-muted)]">{repo.language || 'Unknown'}</span> | |
| 444 | + </div> | |
| 445 | + ))} | |
| 446 | + </div> | |
| 447 | + )} | |
| 448 | + </div> | |
| 449 | + ); | |
| 450 | + } | |
| 451 | + | |
| 452 | + // ── LEAKS ── | |
| 453 | + if (activeTab === 'leaks') { | |
| 454 | + return ( | |
| 455 | + <div> | |
| 456 | + <SectionHeader title="DATA LEAK SWEEP" icon={ShieldAlert} color="#E040FB" /> | |
| 457 | + <ResultRow label="Email Target" value={r.email} color="#E040FB" /> | |
| 458 | + <ResultRow label="Status" value={r.breached ? 'COMPROMISED' : 'SECURE'} color={r.breached ? '#FF1744' : '#00E676'} /> | |
| 459 | + {r.breached && r.breaches?.length > 0 && ( | |
| 460 | + <div className="mt-2 p-2 border border-red-500/30 bg-red-500/10 rounded"> | |
| 461 | + <span className="text-[10px] font-mono text-red-400 font-bold mb-1 block">KNOWN BREACHES ({r.breaches.length})</span> | |
| 462 | + <div className="flex flex-wrap gap-1"> | |
| 463 | + {r.breaches.map((b: string) => ( | |
| 464 | + <span key={b} className="text-[9px] font-mono px-1.5 py-0.5 rounded bg-[#1A1A18] text-red-300">{b}</span> | |
| 465 | + ))} | |
| 334 | 466 | </div> |
| 335 | - <ResultRow label="Aliases" value={Array.isArray(m.aliases) && m.aliases.length ? m.aliases.slice(0, 4).join(' • ') : undefined} /> | |
| 336 | - <ResultRow label="Countries" value={Array.isArray(m.countries) && m.countries.length ? m.countries.join(', ').toUpperCase() : undefined} /> | |
| 337 | - <ResultRow label="Programs" value={Array.isArray(m.programs) && m.programs.length ? m.programs.slice(0, 3).join(', ') : undefined} /> | |
| 338 | - <ResultRow label="First Seen" value={m.first_seen ? m.first_seen.slice(0, 10) : undefined} /> | |
| 339 | 467 | </div> |
| 340 | - ))} | |
| 341 | - {matches.length === 0 && ( | |
| 342 | - <div className="mt-2 px-2 py-1.5 text-[10px] font-mono text-green-400">No OFAC SDN matches for that query.</div> | |
| 343 | 468 | )} |
| 344 | 469 | </div> |
| 345 | 470 | ); |
| @@ -820,7 +945,7 @@ | ||
| 820 | 945 | } |
| 821 | 946 | |
| 822 | 947 | return ( |
| 823 | - <motion.div initial={{ opacity: 0, x: 20 }} animate={{ opacity: 1, x: 0 }} transition={{ delay: 0.3, duration: 0.6 }} className="glass-panel flex flex-col overflow-hidden pointer-events-auto"> | |
| 948 | + <motion.div initial={{ opacity: 0, x: 20 }} animate={{ opacity: 1, x: 0 }} transition={{ delay: 0.3, duration: 0.6 }} className="glass-panel flex flex-col overflow-hidden pointer-events-auto shrink-0"> | |
| 824 | 949 | <div className="flex items-center justify-between px-4 py-3 border-b border-transparent hover:bg-[var(--hover-accent)] transition-colors"> |
| 825 | 950 | <button onClick={() => setExpanded(!expanded)} className="flex items-center gap-2 flex-1"> |
| 826 | 951 | <Radar className="w-3.5 h-3.5 text-[var(--cyan-primary)]" /> |