No Signup Required

Browse 50,000+ Real Stars

Explore our celestial catalog. Filter by constellation, brightness, or availability. Click any star to claim instantly.

Constellations

50,247 Stars Available

Showing all stars in our catalog

Instant Claiming

Found Your Perfect Star?

Click any star to claim it instantly. No account needed. Create an account later to access petting, achievements, and marketplace features.

.getElementById('star-background'); if (!background) return; // Create floating stars for (let i = 0; i < 200; i++) { const star = document.createElement('div'); star.className = 'star-particle'; const size = Math.random() * 3 + 1; const x = Math.random() * 100; const y = Math.random() * 100; const delay = Math.random() * 3; const duration = 2 + Math.random() * 2; star.style.width = `${size}px`; star.style.height = `${size}px`; star.style.left = `${x}%`; star.style.top = `${y}%`; star.style.animationDelay = `${delay}s`; star.style.animationDuration = `${duration}s`; star.style.boxShadow = `0 0 ${size * 2}px white`; background.appendChild(star); } } // Sample star data (in production, this would come from an API) const sampleStars = [ { id: 'HIP12345', name: 'Vega', constellation: 'Lyra', magnitude: 0.03, distance: '25 Light Years', status: 'available', type: 'rental', price: 'FREE', priceLabel: '10-Year Rental', isVisible: true, description: 'The brightest star in the Lyra constellation and the fifth-brightest star in the night sky.' }, { id: 'HIP65432', name: 'Polaris', constellation: 'Ursa Minor', magnitude: 1.98, distance: '433 Light Years', status: 'available', type: 'purchase', price: '$49.99', priceLabel: 'Lifetime Purchase', isVisible: true, description: 'The North Star, located very close to the north celestial pole.' }, { id: 'HIP78901', name: 'Sirius', constellation: 'Canis Major', magnitude: -1.46, distance: '8.6 Light Years', status: 'rented', type: 'rental', price: 'RENTED', priceLabel: 'Currently Rented', isVisible: true, description: 'The brightest star in the night sky, also known as the Dog Star.' }, { id: 'HIP23456', name: 'Betelgeuse', constellation: 'Orion', magnitude: 0.42, distance: '548 Light Years', status: 'available', type: 'purchase', price: '$79.99', priceLabel: 'Lifetime Purchase', isVisible: true, description: 'A red supergiant star marking Orion\'s shoulder, one of the largest stars visible.' }, { id: 'HIP34567', name: 'Rigel', constellation: 'Orion', magnitude: 0.18, distance: '860 Light Years', status: 'available', type: 'rental', price: 'FREE', priceLabel: '10-Year Rental', isVisible: true, description: 'The brightest star in the Orion constellation, a blue supergiant.' }, { id: 'HIP45678', name: 'Arcturus', constellation: 'Boötes', magnitude: -0.05, distance: '37 Light Years', status: 'available', type: 'purchase', price: '$59.99', priceLabel: 'Lifetime Purchase', isVisible: true, description: 'The brightest star in the northern celestial hemisphere.' }, { id: 'HIP56789', name: 'Altair', constellation: 'Aquila', magnitude: 0.76, distance: '17 Light Years', status: 'available', type: 'rental', price: 'FREE', priceLabel: '10-Year Rental', isVisible: true, description: 'One of the vertices of the Summer Triangle asterism.' }, { id: 'HIP67890', name: 'Aldebaran', constellation: 'Taurus', magnitude: 0.85, distance: '65 Light Years', status: 'available', type: 'purchase', price: '$39.99', priceLabel: 'Lifetime Purchase', isVisible: true, description: 'A red giant star, the brightest in the Taurus constellation.' } ]; // Current state let currentFilter = 'all'; let currentConstellation = 'all'; let currentSort = 'name'; let currentPage = 1; let itemsPerPage = 12; let currentView = 'grid'; // Initialize UI based on guest session function initGuestUI() { const guestBanner = document.getElementById('guest-mode-banner'); const guestIndicator = document.getElementById('guest-mode-indicator'); const cartIndicator = document.getElementById('guest-cart-indicator'); const cartCount = document.getElementById('cart-count'); if (window.guestSession) { const sessionInfo = window.guestSession.getSessionInfo(); // Show guest mode UI if (guestBanner) guestBanner.classList.remove('hidden'); if (guestIndicator) guestIndicator.classList.remove('hidden'); // Update cart indicator if (sessionInfo.cartCount > 0 && cartIndicator && cartCount) { cartIndicator.classList.remove('hidden'); cartCount.textContent = sessionInfo.cartCount > 9 ? '9+' : sessionInfo.cartCount.toString(); } // Show notification if there are pending claims if (sessionInfo.hasPendingClaims) { showPendingClaimsNotification(sessionInfo.pendingClaims); } } } // Show pending claims notification function showPendingClaimsNotification(count) { const notificationArea = document.getElementById('guest-notification-area'); if (!notificationArea) return; const notification = document.createElement('div'); notification.className = 'glass-card p-4 rounded-xl mb-4 animate-slideUp border border-accent-primary/30'; notification.innerHTML = `

${count} Pending Claim${count > 1 ? 's' : ''}

Create an account to secure your stars

`; notificationArea.appendChild(notification); // Auto-remove after 10 seconds setTimeout(() => { if (notification.parentNode) { notification.remove(); } }, 10000); } // Show guest cart function showGuestCart() { if (!window.guestSession) return; const cart = window.guestSession.getCart(); // Create cart modal const modal = document.createElement('div'); modal.className = 'fixed inset-0 bg-black/70 backdrop-blur-sm z-50 flex items-center justify-center p-4'; modal.innerHTML = `

Your Star Cart

${cart.length === 0 ? `

Your cart is empty

` : `
${cart.map(item => `

${item.name}

${item.constellation}

${item.price === 0 ? 'FREE' : `$${item.price}`}
`).join('')}
`; cartContent.innerHTML = html; } // Initialize cart display updateCartDisplay(); // Handle checkout window.checkoutItem = function(starId) { const star = cart.find(item => item.id === starId); if (star) { localStorage.setItem('selected_star', JSON.stringify(star)); window.location.href = '/name-a-star.html'; } }; // Handle remove from cart window.removeFromCart = function(starId) { cart = cart.filter(item => item.id !== starId); localStorage.setItem('star_cart', JSON.stringify(cart)); updateCartDisplay(); }; // Handle clear cart window.clearCart = function() { cart = []; localStorage.setItem('star_cart', JSON.stringify(cart)); updateCartDisplay(); }; // Handle checkout all window.checkoutAll = function() { if (cart.length > 0) { localStorage.setItem('multi_star_cart', JSON.stringify(cart)); window.location.href = '/name-a-star.html?multi=true'; } }; } // Initialize star background function createStarBackground() { const background = document.getElementById('star-background'); if (!background) return; // Clear existing stars background.innerHTML = ''; // Create floating stars for (let i = 0; i < 100; i++) { const star = document.createElement('div'); star.className = 'star-particle'; const size = Math.random() * 3 + 1; const x = Math.random() * 100; const y = Math.random() * 100; const delay = Math.random() * 3; const duration = 2 + Math.random() * 2; star.style.width = `${size}px`; star.style.height = `${size}px`; star.style.left = `${x}%`; star.style.top = `${y}%`; star.style.animationDelay = `${delay}s`; star.style.animationDuration = `${duration}s`; star.style.boxShadow = `0 0 ${size * 2}px white`; background.appendChild(star); } } // Initialize everything when DOM is loaded document.addEventListener('DOMContentLoaded', () => { createStarBackground(); // Add scroll animations const observerOptions = { threshold: 0.1, rootMargin: '0px 0px -50px 0px' }; const observer = new IntersectionObserver((entries) => { entries.forEach(entry => { if (entry.isIntersecting) { entry.target.classList.add('fade-in'); } }); }, observerOptions); // Observe all sections document.querySelectorAll('section').forEach(section => { observer.observe(section); }); // Initialize star browser if (window.starBrowser) { window.starBrowser.init(); } });