File size: 26,383 Bytes
6309f01
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0182870
 
 
 
 
 
 
 
 
 
 
 
 
 
1652e81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6309f01
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0182870
 
 
 
 
 
1652e81
 
 
6309f01
 
 
 
 
 
 
 
 
 
 
 
 
 
1652e81
 
 
 
 
 
 
 
 
 
6309f01
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1652e81
6309f01
 
 
1652e81
6309f01
1652e81
 
 
6309f01
 
 
1652e81
6309f01
1652e81
 
 
6309f01
 
 
1652e81
6309f01
1652e81
 
 
6309f01
 
 
 
 
 
 
 
 
 
 
 
1652e81
6309f01
 
 
1652e81
6309f01
 
 
0182870
6309f01
1652e81
6309f01
1652e81
6309f01
 
 
 
 
 
 
 
1652e81
0182870
6309f01
1652e81
6309f01
1652e81
 
 
 
 
 
6309f01
 
 
 
1652e81
6309f01
1652e81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6309f01
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1652e81
 
 
 
 
 
 
 
 
 
 
 
6309f01
 
 
1652e81
6309f01
 
 
1652e81
6309f01
 
 
 
 
 
 
 
 
 
 
 
 
 
1652e81
 
 
6309f01
 
 
 
 
 
 
 
 
0182870
6309f01
 
0182870
 
 
6309f01
 
 
 
0182870
 
 
 
 
 
6309f01
 
 
0182870
6309f01
0182870
6309f01
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1652e81
 
6309f01
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Replit App Directory</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .card-item {
            animation: fadeIn 0.3s ease-out forwards;
            opacity: 0;
        }
        
        .card-item:nth-child(1) { animation-delay: 0.1s; }
        .card-item:nth-child(2) { animation-delay: 0.2s; }
        .card-item:nth-child(3) { animation-delay: 0.3s; }
        .card-item:nth-child(4) { animation-delay: 0.4s; }
        .card-item:nth-child(5) { animation-delay: 0.5s; }
        .card-item:nth-child(6) { animation-delay: 0.6s; }
        .card-item:nth-child(7) { animation-delay: 0.7s; }
        .card-item:nth-child(8) { animation-delay: 0.8s; }
        .card-item:nth-child(9) { animation-delay: 0.9s; }
        .card-item:nth-child(10) { animation-delay: 1s; }
        
        .glow {
            box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
        }
        
        .loading-spinner {
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top: 3px solid #3b82f6;
            width: 20px;
            height: 20px;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .toggle-bg:after {
            content: '';
            @apply absolute top-0.5 left-0.5 bg-white border border-gray-300 rounded-full h-5 w-5 transition shadow-sm;
        }
        
        input:checked + .toggle-bg:after {
            transform: translateX(100%);
            @apply border-white;
        }
        
        input:checked + .toggle-bg {
            @apply bg-blue-600 border-blue-600;
        }
        
        .status-indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
            margin-right: 5px;
        }
        
        .status-online {
            background-color: #10B981;
            box-shadow: 0 0 5px #10B981;
        }
        
        .status-offline {
            background-color: #EF4444;
        }
        
        .status-checking {
            background-color: #F59E0B;
            animation: pulse 1.5s infinite;
        }
        
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }
    </style>
</head>
<body class="bg-gradient-to-br from-gray-900 to-gray-800 min-h-screen text-white">
    <div class="container mx-auto px-4 py-12">
        <!-- Header -->
        <header class="mb-12 text-center">
            <h1 class="text-4xl md:text-5xl font-bold mb-4 bg-clip-text text-transparent bg-gradient-to-r from-blue-400 to-purple-500">
                Replit App Directory
            </h1>
            <p class="text-gray-400 max-w-2xl mx-auto">
                Discover and explore all active *.replit.app webpages in one place
            </p>
        </header>
        
        <!-- Main Card -->
        <div class="bg-gray-800 rounded-2xl shadow-2xl overflow-hidden transition-all duration-300 hover:glow">
            <!-- Card Header -->
            <div class="bg-gray-700 px-6 py-4 border-b border-gray-600 flex flex-col md:flex-row justify-between items-center gap-4">
                <div class="flex items-center">
                    <i class="fas fa-globe text-blue-400 mr-3 text-xl"></i>
                    <h2 class="text-xl font-semibold">Live Replit Apps</h2>
                    <span id="app-count" class="ml-2 px-2 py-1 bg-blue-500 rounded-full text-xs font-bold">0</span>
                </div>
                
                <div class="flex flex-col sm:flex-row gap-3 w-full md:w-auto">
                    <div class="relative flex-grow">
                        <input type="text" id="search-input" placeholder="Search apps..." 
                               class="w-full bg-gray-600 text-white px-4 py-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
                        <i class="fas fa-search absolute right-3 top-3 text-gray-400"></i>
                    </div>
                    
                    <div class="flex gap-2">
                        <select id="sort-select" class="bg-gray-600 text-white px-3 py-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
                            <option value="name-asc">Name (A-Z)</option>
                            <option value="name-desc">Name (Z-A)</option>
                            <option value="date-new">Newest First</option>
                            <option value="date-old">Oldest First</option>
                            <option value="popular">Most Popular</option>
                        </select>
                        
                        <label class="relative inline-flex items-center cursor-pointer">
                            <input type="checkbox" id="online-only-toggle" class="sr-only peer" checked>
                            <div class="toggle-bg w-11 h-6 bg-gray-600 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-800 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600"></div>
                            <span class="ml-2 text-sm font-medium text-gray-300">Online Only</span>
                        </label>
                        
                        <button id="refresh-btn" class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-lg transition-colors flex items-center">
                            <i class="fas fa-sync-alt mr-2"></i>
                            <span>Refresh</span>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- Card Body -->
            <div class="h-[600px] overflow-y-auto">
                <!-- Loading State -->
                <div id="loading-state" class="flex flex-col items-center justify-center h-full">
                    <div class="loading-spinner mb-4"></div>
                    <p>Scanning for Replit apps...</p>
                    <p class="text-gray-400 text-sm mt-2">This may take a few moments</p>
                </div>
                
                <!-- Error State -->
                <div id="error-state" class="hidden flex-col items-center justify-center h-full p-8 text-center">
                    <i class="fas fa-exclamation-triangle text-5xl text-red-500 mb-4"></i>
                    <h3 class="text-xl font-semibold mb-2">Connection Error</h3>
                    <p class="text-gray-400 max-w-md mb-4">We couldn't connect to the Replit scanning service. Please check your connection and try again.</p>
                    <button id="retry-btn" class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-lg transition-colors">
                        Retry Connection
                    </button>
                </div>
                
                <!-- Empty State -->
                <div id="empty-state" class="hidden flex-col items-center justify-center h-full p-8 text-center">
                    <i class="fas fa-folder-open text-5xl text-gray-500 mb-4"></i>
                    <h3 class="text-xl font-semibold mb-2">No Replit apps found</h3>
                    <p class="text-gray-400 max-w-md">We couldn't find any active *.replit.app domains. Try refreshing or check your connection.</p>
                </div>
                
                <!-- App List -->
                <div id="app-list" class="hidden grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 p-6">
                    <!-- App items will be inserted here by JavaScript -->
                </div>
            </div>
            
            <!-- Card Footer -->
            <div class="bg-gray-700 px-6 py-3 border-t border-gray-600 flex justify-between items-center text-sm text-gray-400">
                <div>
                    <span id="last-updated">Last updated: Never</span>
                </div>
                <div>
                    <span id="stats">0 apps • 0 online</span>
                </div>
            </div>
        </div>
        
        <!-- Info Section -->
        <div class="mt-12 bg-gray-800 rounded-xl p-6 max-w-4xl mx-auto">
            <h3 class="text-xl font-semibold mb-4 flex items-center">
                <i class="fas fa-info-circle text-blue-400 mr-2"></i> About This Directory
            </h3>
            <p class="text-gray-300 mb-4">
                This page actively scans for and lists active *.replit.app domains. Each refresh performs a new scan of the internet to discover recently published Replit apps.
            </p>
            <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                <div class="bg-gray-700 p-4 rounded-lg">
                    <h4 class="font-medium mb-2 text-blue-400"><i class="fas fa-satellite-dish mr-2"></i>Active Scanning</h4>
                    <ul class="text-sm text-gray-300 space-y-1">
                        <li>• Scans for new apps on each refresh</li>
                        <li>• Verifies app availability in real-time</li>
                        <li>• Updates status every 5 minutes</li>
                    </ul>
                </div>
                <div class="bg-gray-700 p-4 rounded-lg">
                    <h4 class="font-medium mb-2 text-blue-400"><i class="fas fa-filter mr-2"></i>Advanced Filtering</h4>
                    <ul class="text-sm text-gray-300 space-y-1">
                        <li>• Filter by online status</li>
                        <li>• Search by name or technology</li>
                        <li>• Sort by various attributes</li>
                    </ul>
                </div>
                <div class="bg-gray-700 p-4 rounded-lg">
                    <h4 class="font-medium mb-2 text-blue-400"><i class="fas fa-bolt mr-2"></i>Real-time Status</h4>
                    <ul class="text-sm text-gray-300 space-y-1">
                        <li>• Live status indicators</li>
                        <li>• Automatic offline detection</li>
                        <li>• Detailed app information</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // DOM elements
            const appList = document.getElementById('app-list');
            const loadingState = document.getElementById('loading-state');
            const emptyState = document.getElementById('empty-state');
            const errorState = document.getElementById('error-state');
            const searchInput = document.getElementById('search-input');
            const sortSelect = document.getElementById('sort-select');
            const refreshBtn = document.getElementById('refresh-btn');
            const retryBtn = document.getElementById('retry-btn');
            const appCount = document.getElementById('app-count');
            const lastUpdated = document.getElementById('last-updated');
            const stats = document.getElementById('stats');
            const onlineOnlyToggle = document.getElementById('online-only-toggle');
            
            // App data
            let apps = [];
            let isScanning = false;
            
            // Initialize
            loadApps();
            
            // Event listeners
            searchInput.addEventListener('input', filterApps);
            sortSelect.addEventListener('change', sortApps);
            refreshBtn.addEventListener('click', loadApps);
            retryBtn.addEventListener('click', loadApps);
            onlineOnlyToggle.addEventListener('change', filterApps);
            
            // Load apps with active scanning simulation
            function loadApps() {
                if (isScanning) return;
                
                isScanning = true;
                refreshBtn.disabled = true;
                refreshBtn.innerHTML = '<i class="fas fa-sync-alt animate-spin mr-2"></i><span>Scanning...</span>';
                
                // Show loading state
                loadingState.classList.remove('hidden');
                appList.classList.add('hidden');
                emptyState.classList.add('hidden');
                errorState.classList.add('hidden');
                
                // Simulate API call to scan for Replit apps
                // In a real implementation, this would be an actual API call to your backend service
                // that scans for *.replit.app domains and checks their status
                simulateActiveScan()
                    .then(newApps => {
                        apps = newApps;
                        filterApps();
                        updateStats();
                        
                        // Update timestamp
                        const now = new Date();
                        lastUpdated.textContent = `Last updated: ${now.toLocaleString()}`;
                        
                        // Hide loading state
                        loadingState.classList.add('hidden');
                    })
                    .catch(error => {
                        console.error('Scan failed:', error);
                        loadingState.classList.add('hidden');
                        errorState.classList.remove('hidden');
                    })
                    .finally(() => {
                        isScanning = false;
                        refreshBtn.disabled = false;
                        refreshBtn.innerHTML = '<i class="fas fa-sync-alt mr-2"></i><span>Refresh</span>';
                    });
            }
            
            // Simulate an active scan of Replit apps
            // This is a mock implementation - in reality you would need a backend service
            // that actually scans for *.replit.app domains and checks their status
            function simulateActiveScan() {
                return new Promise((resolve, reject) => {
                    // Simulate network delay
                    setTimeout(() => {
                        // Random chance to simulate failure
                        if (Math.random() < 0.1) {
                            reject(new Error('Network error'));
                            return;
                        }
                        
                        // Generate new mock data with some variations
                        const baseCount = 15 + Math.floor(Math.random() * 10); // 15-25 apps
                        const newApps = generateMockApps(baseCount);
                        
                        // Simulate that some apps from previous scan might be offline now
                        if (apps.length > 0) {
                            // Carry over some existing apps with possible status changes
                            const carryOverCount = Math.min(5, apps.length);
                            const shuffled = [...apps].sort(() => 0.5 - Math.random());
                            
                            for (let i = 0; i < carryOverCount; i++) {
                                const existingApp = {...shuffled[i]};
                                // 30% chance status changed
                                if (Math.random() < 0.3) {
                                    existingApp.status = existingApp.status === 'online' ? 'offline' : 'online';
                                }
                                // Update visits
                                existingApp.visits += Math.floor(Math.random() * 100);
                                newApps.push(existingApp);
                            }
                        }
                        
                        // Add some completely new apps (simulating newly discovered ones)
                        const newAppCount = 3 + Math.floor(Math.random() * 5);
                        const completelyNewApps = generateMockApps(newAppCount);
                        
                        // Mark them as "new" for UI purposes
                        completelyNewApps.forEach(app => {
                            app.isNew = true;
                            // New apps are more likely to be online
                            app.status = Math.random() < 0.8 ? 'online' : 'offline';
                        });
                        
                        resolve([...newApps, ...completelyNewApps]);
                    }, 2000); // Simulate 2 second scan time
                });
            }
            
            // Render apps to the DOM
            function renderApps(appsToRender) {
                if (appsToRender.length === 0) {
                    emptyState.classList.remove('hidden');
                    appList.classList.add('hidden');
                    return;
                }
                
                emptyState.classList.add('hidden');
                appList.classList.remove('hidden');
                
                // Clear existing apps
                appList.innerHTML = '';
                
                // Add new apps
                appsToRender.forEach((app, index) => {
                    const appItem = document.createElement('div');
                    appItem.className = `card-item bg-gray-700 rounded-xl p-4 hover:bg-gray-600 transition-colors cursor-pointer ${app.isNew ? 'border-l-4 border-blue-500' : ''}`;
                    
                    // Status indicator with animation for checking state
                    let statusIndicator = '';
                    if (app.status === 'checking') {
                        statusIndicator = '<span class="status-indicator status-checking"></span>Checking...';
                    } else if (app.status === 'online') {
                        statusIndicator = '<span class="status-indicator status-online"></span>Online';
                    } else {
                        statusIndicator = '<span class="status-indicator status-offline"></span>Offline';
                    }
                    
                    appItem.innerHTML = `
                        <div class="flex justify-between items-start mb-3">
                            <div>
                                <h3 class="font-medium truncate">${app.name} ${app.isNew ? '<span class="text-xs bg-blue-500 text-white px-1.5 py-0.5 rounded ml-1">NEW</span>' : ''}</h3>
                                <p class="text-xs text-gray-400 truncate">${app.url}</p>
                            </div>
                            <span class="px-2 py-1 text-xs rounded-full ${app.status === 'online' ? 'bg-green-900 text-green-300' : 'bg-red-900 text-red-300'}">
                                ${statusIndicator}
                            </span>
                        </div>
                        <div class="flex items-center text-sm text-gray-400 mb-2">
                            <i class="fas ${getTechIcon(app.tech)} mr-2 ${getTechColor(app.tech)}"></i>
                            <span>${app.tech}</span>
                        </div>
                        <div class="flex justify-between text-xs text-gray-500">
                            <span>Created: ${app.created}</span>
                            <span>Visits: ${app.visits.toLocaleString()}</span>
                        </div>
                    `;
                    
                    // Add click event to open the app
                    appItem.addEventListener('click', () => {
                        if (app.status === 'online') {
                            window.open(app.url, '_blank');
                        }
                    });
                    
                    appList.appendChild(appItem);
                });
                
                // Update app count
                appCount.textContent = appsToRender.length;
            }
            
            // Filter apps based on search input and online toggle
            function filterApps() {
                const searchTerm = searchInput.value.toLowerCase();
                const showOnlyOnline = onlineOnlyToggle.checked;
                
                let filteredApps = apps.filter(app => 
                    app.name.toLowerCase().includes(searchTerm) || 
                    app.url.toLowerCase().includes(searchTerm) ||
                    app.tech.toLowerCase().includes(searchTerm)
                );
                
                if (showOnlyOnline) {
                    filteredApps = filteredApps.filter(app => app.status === 'online');
                }
                
                sortApps(filteredApps);
            }
            
            // Sort apps based on selected option
            function sortApps(appsToSort = apps) {
                const sortValue = sortSelect.value;
                let sortedApps = [...appsToSort];
                
                switch(sortValue) {
                    case 'name-asc':
                        sortedApps.sort((a, b) => a.name.localeCompare(b.name));
                        break;
                    case 'name-desc':
                        sortedApps.sort((a, b) => b.name.localeCompare(a.name));
                        break;
                    case 'date-new':
                        sortedApps.sort((a, b) => new Date(b.createdDate) - new Date(a.createdDate));
                        break;
                    case 'date-old':
                        sortedApps.sort((a, b) => new Date(a.createdDate) - new Date(b.createdDate));
                        break;
                    case 'popular':
                        sortedApps.sort((a, b) => b.visits - a.visits);
                        break;
                }
                
                renderApps(sortedApps);
            }
            
            // Update statistics
            function updateStats() {
                const onlineCount = apps.filter(app => app.status === 'online').length;
                stats.textContent = `${apps.length} apps • ${onlineCount} online`;
            }
            
            // Helper function to get tech icon
            function getTechIcon(tech) {
                const techMap = {
                    'HTML': 'fa-html5',
                    'JavaScript': 'fa-js',
                    'Python': 'fa-python',
                    'React': 'fa-react',
                    'Node.js': 'fa-node',
                    'PHP': 'fa-php',
                    'Ruby': 'fa-gem',
                    'Java': 'fa-java',
                    'C++': 'fa-file-code',
                    'Other': 'fa-code'
                };
                
                return techMap[tech] || 'fa-code';
            }
            
            // Helper function to get tech color
            function getTechColor(tech) {
                const colorMap = {
                    'HTML': 'text-orange-500',
                    'JavaScript': 'text-yellow-400',
                    'Python': 'text-blue-400',
                    'React': 'text-blue-500',
                    'Node.js': 'text-green-500',
                    'PHP': 'text-purple-500',
                    'Ruby': 'text-red-500',
                    'Java': 'text-red-400',
                    'C++': 'text-blue-300',
                    'Other': 'text-gray-400'
                };
                
                return colorMap[tech] || 'text-gray-400';
            }
            
            // Generate mock apps for demonstration
            function generateMockApps(count) {
                const techs = ['HTML', 'JavaScript', 'Python', 'React', 'Node.js', 'PHP', 'Ruby', 'Java', 'C++'];
                const statuses = ['online', 'offline'];
                const mockApps = [];
                
                for (let i = 0; i < count; i++) {
                    const tech = techs[Math.floor(Math.random() * techs.length)];
                    const status = statuses[Math.floor(Math.random() * statuses.length)];
                    const name = `App-${Math.random().toString(36).substring(2, 8)}`;
                    const url = `https://${name.toLowerCase()}.replit.app`;
                    
                    // Random date in the last 6 months
                    const createdDate = new Date();
                    createdDate.setMonth(createdDate.getMonth() - Math.floor(Math.random() * 6));
                    const created = createdDate.toLocaleDateString();
                    
                    mockApps.push({
                        name,
                        url,
                        tech,
                        status,
                        created,
                        createdDate,
                        visits: Math.floor(Math.random() * 10000),
                        isNew: false
                    });
                }
                
                return mockApps;
            }
            
            // Auto-refresh every 5 minutes
            setInterval(loadApps, 5 * 60 * 1000);
        });
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=MarcRyan/replit-app-directory" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>