Archipelago — open-source initial import

This commit is contained in:
Archipelago
2026-08-12 10:55:50 +00:00
commit b67e1527a2
2068 changed files with 472303 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
import type { Place } from '@aiui/core/types/content'
export const mockPlaces: Place[] = [
{ id: 'p1', name: 'Bitcoin Tower', address: 'Zug, Switzerland', lat: 47.1661, lng: 8.5155, category: 'Landmark', description: 'Heart of Crypto Valley, home to numerous Bitcoin companies.', rating: 4.5, photoUrl: 'https://images.unsplash.com/photo-1527668752968-14dc70a27c95?w=600&h=400&fit=crop', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=47.1661&mlon=8.5155' }] },
{ id: 'p2', name: 'El Zonte (Bitcoin Beach)', address: 'El Zonte, La Libertad, El Salvador', lat: 13.4967, lng: -89.3894, category: 'Beach', description: 'The birthplace of Bitcoin adoption in El Salvador.', rating: 4.7, photoUrl: 'https://upload.wikimedia.org/wikipedia/commons/8/88/El_Zonte_%2801.2011%29_-_panoramio.jpg', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=13.4967&mlon=-89.3894' }] },
{ id: 'p3', name: 'Shibuya Crossing', address: 'Shibuya, Tokyo, Japan', lat: 35.6595, lng: 139.7004, category: 'Landmark', description: 'The world\'s busiest pedestrian crossing.', rating: 4.6, photoUrl: 'https://images.unsplash.com/photo-1542051841857-5f90071e7989?w=600&h=400&fit=crop', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=35.6595&mlon=139.7004' }] },
{ id: 'p4', name: 'CERN', address: 'Meyrin, Geneva, Switzerland', lat: 46.2335, lng: 6.0553, category: 'Science', description: 'European Organization for Nuclear Research, birthplace of the World Wide Web.', rating: 4.8, photoUrl: 'https://images.unsplash.com/photo-1581092160607-ee22621dd758?w=600&h=400&fit=crop', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=46.2335&mlon=6.0553' }] },
{ id: 'p5', name: 'Akihabara', address: 'Akihabara, Tokyo, Japan', lat: 35.6984, lng: 139.7731, category: 'District', description: 'Tokyo\'s electronics and anime district.', rating: 4.4, photoUrl: 'https://images.unsplash.com/photo-1480796927426-f609979314bd?w=600&h=400&fit=crop', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=35.6984&mlon=139.7731' }] },
{ id: 'p6', name: 'Hacker Dojo', address: 'San Jose, CA, USA', lat: 37.3506, lng: -121.9550, category: 'Hackerspace', description: 'Community space for hackers and makers in Silicon Valley.', rating: 4.3, photoUrl: 'https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=600&h=400&fit=crop', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=37.3506&mlon=-121.9550' }] },
{ id: 'p7', name: 'Machu Picchu', address: 'Cusco Region, Peru', lat: -13.1631, lng: -72.5450, category: 'Archaeological', description: '15th-century Inca citadel set high in the Andes Mountains.', rating: 4.9, photoUrl: 'https://images.unsplash.com/photo-1587595431973-160d0d94add1?w=600&h=400&fit=crop', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=-13.1631&mlon=-72.5450' }] },
{ id: 'p8', name: 'Reykjavik', address: 'Reykjavik, Iceland', lat: 64.1466, lng: -21.9426, category: 'City', description: 'World\'s northernmost capital, known for geothermal energy and bitcoin mining.', rating: 4.6, photoUrl: 'https://images.unsplash.com/photo-1504829857797-ddff29c27927?w=600&h=400&fit=crop', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=64.1466&mlon=-21.9426' }] },
{ id: 'p9', name: 'MIT Media Lab', address: 'Cambridge, MA, USA', lat: 42.3601, lng: -71.0879, category: 'Research', description: 'Research laboratory at MIT known for unconventional technology research.', rating: 4.7, photoUrl: 'https://images.unsplash.com/photo-1564981797816-1043664bf78d?w=600&h=400&fit=crop', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=42.3601&mlon=-71.0879' }] },
{ id: 'p10', name: 'Svalbard Global Seed Vault', address: 'Longyearbyen, Svalbard, Norway', lat: 78.2355, lng: 15.4942, category: 'Science', description: 'Secure seed bank storing duplicates of seeds from crop collections worldwide.', rating: 4.8, photoUrl: 'https://images.unsplash.com/photo-1530122037265-a5f1f91d3b99?w=600&h=400&fit=crop', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=78.2355&mlon=15.4942' }] },
{ id: 'p11', name: 'Room 77', address: 'Graefestraße, Berlin, Germany', lat: 52.4912, lng: 13.4188, category: 'Restaurant', description: 'One of the first bars in the world to accept Bitcoin (now closed, historic).', rating: 4.2, photoUrl: 'https://images.unsplash.com/photo-1560840067-ddcaeb7831d2?w=600&h=400&fit=crop', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=52.4912&mlon=13.4188' }] },
{ id: 'p12', name: 'Antigua Bitcoin Beach', address: 'Antigua, Guatemala', lat: 14.5586, lng: -90.7295, category: 'Town', description: 'Growing Bitcoin circular economy in historic colonial town.', rating: 4.5, photoUrl: 'https://images.unsplash.com/photo-1604961666760-81e04cc67d47?w=600&h=400&fit=crop', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=14.5586&mlon=-90.7295' }] },
{ id: 'p13', name: 'Bletchley Park', address: 'Milton Keynes, UK', lat: 51.9977, lng: -0.7417, category: 'Museum', description: 'Historic site of WWII codebreaking, where Turing and team cracked Enigma.', rating: 4.7, photoUrl: 'https://upload.wikimedia.org/wikipedia/commons/4/43/Bletchley_Park_Mansion.jpg', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=51.9977&mlon=-0.7417' }] },
{ id: 'p14', name: 'La Sagrada Familia', address: 'Barcelona, Spain', lat: 41.4036, lng: 2.1744, category: 'Architecture', description: 'Antoni Gaudí\'s unfinished masterpiece basilica.', rating: 4.8, photoUrl: 'https://images.unsplash.com/photo-1583779457711-ab081e71d8ee?w=600&h=400&fit=crop', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=41.4036&mlon=2.1744' }] },
{ id: 'p15', name: 'The Internet Archive', address: 'San Francisco, CA, USA', lat: 37.7823, lng: -122.4714, category: 'Library', description: 'Non-profit digital library offering free access to archived web pages and media.', rating: 4.6, photoUrl: 'https://images.unsplash.com/photo-1521587760476-6c12a4b040da?w=600&h=400&fit=crop', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=37.7823&mlon=-122.4714' }] },
{ id: 'p16', name: 'Madeira Bitcoin Island', address: 'Funchal, Madeira, Portugal', lat: 32.6669, lng: -16.9241, category: 'Island', description: 'Portuguese island adopting Bitcoin as part of its economic strategy.', rating: 4.4, photoUrl: 'https://images.unsplash.com/photo-1555881400-74d7acaacd8b?w=600&h=400&fit=crop', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=32.6669&mlon=-16.9241' }] },
{ id: 'p17', name: 'Kowloon Walled City Park', address: 'Kowloon, Hong Kong', lat: 22.3315, lng: 114.1889, category: 'Park', description: 'Memorial park on the site of the former Kowloon Walled City.', rating: 4.3, photoUrl: 'https://images.unsplash.com/photo-1536599018102-9f803c140fc1?w=600&h=400&fit=crop', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=22.3315&mlon=114.1889' }] },
{ id: 'p18', name: 'Bitcoin Lake', address: 'Panajachel, Guatemala', lat: 14.7403, lng: -91.1594, category: 'Lake', description: 'Lake Atitlán community promoting Bitcoin circular economy.', rating: 4.5, photoUrl: 'https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=600&h=400&fit=crop', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=14.7403&mlon=-91.1594' }] },
{ id: 'p19', name: 'Taipei 101', address: 'Xinyi District, Taipei, Taiwan', lat: 25.0340, lng: 121.5645, category: 'Skyscraper', description: 'Former world\'s tallest building, now a tech hub landmark.', rating: 4.7, photoUrl: 'https://images.unsplash.com/photo-1508269099219-5ed600647a49?w=600&h=400&fit=crop', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=25.0340&mlon=121.5645' }] },
{ id: 'p20', name: 'Chiang Mai Old City', address: 'Chiang Mai, Thailand', lat: 18.7883, lng: 98.9853, category: 'District', description: 'Popular digital nomad hub with growing Bitcoin acceptance.', rating: 4.6, photoUrl: 'https://images.unsplash.com/photo-1512553983966-3e77e4713e00?w=600&h=400&fit=crop', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=18.7883&mlon=98.9853' }] },
{ id: 'p21', name: 'Nostr Café', address: 'Prague, Czech Republic', lat: 50.0755, lng: 14.4378, category: 'Café', description: 'Crypto-friendly café in the heart of Prague\'s bitcoin community.', rating: 4.4, photoUrl: 'https://images.unsplash.com/photo-1554118811-1e0d58224f24?w=600&h=400&fit=crop', sources: [{ type: 'osm', name: 'OpenStreetMap', url: 'https://www.openstreetmap.org/?mlat=50.0755&mlon=14.4378' }] },
]
export function searchPlaces(query: string): Place[] {
const q = query.toLowerCase()
return mockPlaces.filter(
(p) =>
p.name.toLowerCase().includes(q) ||
(p.address ?? '').toLowerCase().includes(q) ||
(p.category ?? '').toLowerCase().includes(q) ||
(p.description?.toLowerCase().includes(q) ?? false)
)
}