// OurWorld Circle and Library Data new_circle() .title("Ourworld") .description("Creating a better world.") .ws_url("ws://localhost:9000/ws") .add_circle("ws://localhost:9001/ws") .add_circle("ws://localhost:9002/ws") .add_circle("ws://localhost:9003/ws") .add_circle("ws://localhost:9004/ws") .add_circle("ws://localhost:9005/ws") .add_circle("ws://localhost:8096/ws") .logo("🌍") .save_circle(); let circle = get_circle(); print("--- Creating OurWorld Library ---"); // === IMAGES === print("Creating images..."); let nature1 = save_image(new_image() .title("Mountain Sunrise") .description("Breathtaking sunrise over mountain peaks") .url("https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=800") .width(800).height(600)); let nature2 = save_image(new_image() .title("Ocean Waves") .description("Powerful ocean waves crashing on rocks") .url("https://images.unsplash.com/photo-1505142468610-359e7d316be0?w=800") .width(800).height(600)); let nature3 = save_image(new_image() .title("Forest Path") .description("Peaceful path through ancient forest") .url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=800") .width(800).height(600)); let tech1 = save_image(new_image() .title("Solar Panels") .description("Modern solar panel installation") .url("https://images.unsplash.com/photo-1509391366360-2e959784a276?w=800") .width(800).height(600)); let tech2 = save_image(new_image() .title("Wind Turbines") .description("Wind turbines generating clean energy") .url("https://images.unsplash.com/photo-1466611653911-95081537e5b7?w=800") .width(800).height(600)); let space1 = save_image(new_image() .title("Earth from Space") .description("Our beautiful planet from orbit") .url("https://images.unsplash.com/photo-1446776877081-d282a0f896e2?w=800") .width(800).height(600)); let space2 = save_image(new_image() .title("Galaxy Spiral") .description("Stunning spiral galaxy in deep space") .url("https://images.unsplash.com/photo-1502134249126-9f3755a50d78?w=800") .width(800).height(600)); let city1 = save_image(new_image() .title("Smart City") .description("Futuristic smart city at night") .url("https://images.unsplash.com/photo-1480714378408-67cf0d13bc1f?w=800") .width(800).height(600)); // === PDFs === print("Creating PDFs..."); let pdf1 = save_pdf(new_pdf() .title("Climate Action Report 2024") .description("Comprehensive analysis of global climate initiatives") .url("https://www.ipcc.ch/site/assets/uploads/2018/02/ipcc_wg3_ar5_summary-for-policymakers.pdf") .page_count(42)); let pdf2 = save_pdf(new_pdf() .title("Sustainable Development Goals") .description("UN SDG implementation guide") .url("https://sdgs.un.org/sites/default/files/publications/21252030%20Agenda%20for%20Sustainable%20Development%20web.pdf") .page_count(35)); let pdf3 = save_pdf(new_pdf() .title("Renewable Energy Handbook") .description("Technical guide to renewable energy systems") .url("https://www.irena.org/-/media/Files/IRENA/Agency/Publication/2019/Oct/IRENA_Renewable-Energy-Statistics-2019.pdf") .page_count(280)); let pdf4 = save_pdf(new_pdf() .title("Blockchain for Good") .description("How blockchain technology can solve global challenges") .url("https://www.weforum.org/whitepapers/blockchain-beyond-the-hype") .page_count(24)); let pdf5 = save_pdf(new_pdf() .title("Future of Work Report") .description("Analysis of changing work patterns and remote collaboration") .url("https://www.mckinsey.com/featured-insights/future-of-work") .page_count(156)); // === MARKDOWN DOCUMENTS === print("Creating markdown documents..."); let md1 = save_markdown(new_markdown() .title("OurWorld Mission Statement") .description("Our vision for a better world") .content("# OurWorld Mission\n\n## Vision\nTo create a more sustainable, equitable, and connected world through technology and collaboration.\n\n## Values\n- **Sustainability**: Every decision considers environmental impact\n- **Inclusivity**: Technology that serves everyone\n- **Transparency**: Open source and open governance\n- **Innovation**: Pushing boundaries for positive change\n\n## Goals\n1. Reduce global carbon footprint by 50% by 2030\n2. Provide internet access to 1 billion underserved people\n3. Create 10 million green jobs worldwide\n4. Establish 1000 sustainable communities")); let md2 = save_markdown(new_markdown() .title("Getting Started Guide") .description("How to join the OurWorld movement") .content("# Getting Started with OurWorld\n\n## Welcome!\nThank you for joining our mission to create a better world.\n\n## First Steps\n1. **Explore**: Browse our projects and initiatives\n2. **Connect**: Join our community forums\n3. **Contribute**: Find ways to get involved\n4. **Learn**: Access our educational resources\n\n## Ways to Contribute\n- **Developers**: Contribute to open source projects\n- **Activists**: Organize local initiatives\n- **Educators**: Share knowledge and skills\n- **Investors**: Support sustainable ventures\n\n## Resources\n- [Community Forum](https://forum.ourworld.tf)\n- [Developer Portal](https://dev.ourworld.tf)\n- [Learning Hub](https://learn.ourworld.tf)")); let md3 = save_markdown(new_markdown() .title("Technology Roadmap 2024") .description("Our technical development plans") .content("# Technology Roadmap 2024\n\n## Q1 Objectives\n- Launch decentralized identity system\n- Deploy carbon tracking blockchain\n- Release mobile app v2.0\n\n## Q2 Objectives\n- Implement AI-powered resource optimization\n- Launch peer-to-peer energy trading platform\n- Deploy IoT sensor network\n\n## Q3 Objectives\n- Release virtual collaboration spaces\n- Launch digital twin cities pilot\n- Implement quantum-safe encryption\n\n## Q4 Objectives\n- Deploy autonomous governance systems\n- Launch global impact measurement platform\n- Release AR/VR sustainability training")); let md4 = save_markdown(new_markdown() .title("Community Guidelines") .description("How we work together") .content("# Community Guidelines\n\n## Our Principles\n- **Respect**: Treat everyone with dignity\n- **Collaboration**: Work together towards common goals\n- **Constructive**: Focus on solutions, not problems\n- **Inclusive**: Welcome diverse perspectives\n\n## Communication Standards\n- Use clear, respectful language\n- Listen actively to others\n- Provide constructive feedback\n- Share knowledge freely\n\n## Conflict Resolution\n1. Address issues directly and respectfully\n2. Seek to understand different viewpoints\n3. Involve mediators when needed\n4. Focus on solutions that benefit everyone")); let investor = new_contact() .name("Example Investor") .save_contact(); let investors = new_group() .name("Investors") .description("A group for example inverstors of ourworld"); investors.add_contact(investor.id) .save_group(); // === BOOKS === print("Creating books..."); let sustainability_book = save_book(new_book() .title("Sustainability Handbook") .description("Complete guide to sustainable living and practices") .add_page("# Introduction to Sustainability\n\nSustainability is about meeting our present needs without compromising the ability of future generations to meet their own needs.\n\n## Key Principles\n- Environmental stewardship\n- Social equity\n- Economic viability\n\n## Why It Matters\nOur planet faces unprecedented challenges from climate change, resource depletion, and environmental degradation.") .add_page("# Energy Efficiency\n\n## Home Energy Savings\n- LED lighting reduces energy consumption by 75%\n- Smart thermostats can save 10-15% on heating/cooling\n- Energy-efficient appliances make a significant difference\n\n## Renewable Energy\n- Solar panels: Clean electricity from sunlight\n- Wind power: Harnessing natural wind currents\n- Hydroelectric: Using water flow for energy\n\n## Transportation\n- Electric vehicles reduce emissions\n- Public transit decreases individual carbon footprint\n- Cycling and walking for short distances") .add_page("# Waste Reduction\n\n## The 5 R's\n1. **Refuse**: Say no to unnecessary items\n2. **Reduce**: Use less of what you need\n3. **Reuse**: Find new purposes for items\n4. **Recycle**: Process materials into new products\n5. **Rot**: Compost organic waste\n\n## Practical Tips\n- Use reusable bags and containers\n- Buy products with minimal packaging\n- Repair instead of replacing\n- Donate items you no longer need") .add_page("# Sustainable Food\n\n## Local and Seasonal\n- Support local farmers and reduce transport emissions\n- Eat seasonal produce for better nutrition and taste\n- Visit farmers markets and join CSAs\n\n## Plant-Based Options\n- Reduce meat consumption for environmental benefits\n- Explore diverse plant proteins\n- Grow your own herbs and vegetables\n\n## Food Waste Prevention\n- Plan meals and make shopping lists\n- Store food properly to extend freshness\n- Use leftovers creatively") .add_toc_entry(new_toc_entry().title("Introduction to Sustainability").page(0)) .add_toc_entry(new_toc_entry().title("Energy Efficiency").page(1)) .add_toc_entry(new_toc_entry().title("Waste Reduction").page(2)) .add_toc_entry(new_toc_entry().title("Sustainable Food").page(3))); let tech_guide_book = save_book(new_book() .title("Green Technology Guide") .description("Understanding and implementing green technologies") .add_page("# Green Technology Overview\n\nGreen technology, also known as clean technology, refers to the use of science and technology to create products and services that are environmentally friendly.\n\n## Categories\n- Renewable energy systems\n- Energy efficiency technologies\n- Pollution prevention and cleanup\n- Sustainable materials and manufacturing\n\n## Benefits\n- Reduced environmental impact\n- Lower operating costs\n- Improved public health\n- Economic opportunities") .add_page("# Solar Technology\n\n## How Solar Works\nSolar panels convert sunlight directly into electricity using photovoltaic cells.\n\n## Types of Solar Systems\n- **Grid-tied**: Connected to the electrical grid\n- **Off-grid**: Standalone systems with battery storage\n- **Hybrid**: Combination of grid-tied and battery backup\n\n## Installation Considerations\n- Roof orientation and shading\n- Local climate and sun exposure\n- Energy consumption patterns\n- Available incentives and rebates") .add_page("# Smart Home Technology\n\n## Automation Benefits\n- Optimized energy usage\n- Enhanced comfort and convenience\n- Remote monitoring and control\n- Predictive maintenance\n\n## Key Technologies\n- Smart thermostats\n- Automated lighting systems\n- Energy monitoring devices\n- Smart appliances\n- Home energy management systems") .add_toc_entry(new_toc_entry().title("Green Technology Overview").page(0)) .add_toc_entry(new_toc_entry().title("Solar Technology").page(1)) .add_toc_entry(new_toc_entry().title("Smart Home Technology").page(2))); let community_book = save_book(new_book() .title("Building Communities") .description("Guide to creating sustainable and inclusive communities") .add_page("# Community Building Fundamentals\n\n## What Makes a Strong Community?\n- Shared values and vision\n- Open communication channels\n- Mutual support and cooperation\n- Inclusive decision-making processes\n\n## Benefits of Strong Communities\n- Enhanced quality of life\n- Economic resilience\n- Social cohesion\n- Environmental stewardship") .add_page("# Governance and Leadership\n\n## Collaborative Leadership\n- Distributed decision-making\n- Transparent processes\n- Accountability mechanisms\n- Conflict resolution systems\n\n## Community Engagement\n- Regular town halls and meetings\n- Digital participation platforms\n- Volunteer coordination\n- Feedback and improvement cycles") .add_toc_entry(new_toc_entry().title("Community Building Fundamentals").page(0)) .add_toc_entry(new_toc_entry().title("Governance and Leadership").page(1))); // === SLIDES === print("Creating slides..."); let climate_slides = save_slides(new_slides() .title("Climate Change Awareness") .description("Visual presentation on climate change impacts and solutions") .add_slide("https://images.unsplash.com/photo-1569163139394-de4e4f43e4e3?w=1200", "Global Temperature Rise") .add_slide("https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=1200", "Melting Ice Caps") .add_slide("https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1200", "Extreme Weather Events") .add_slide("https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?w=1200", "Renewable Energy Solutions") .add_slide("https://images.unsplash.com/photo-1497436072909-f5e4be1dffea?w=1200", "Sustainable Transportation")); let innovation_slides = save_slides(new_slides() .title("Innovation Showcase") .description("Cutting-edge technologies for a sustainable future") .add_slide("https://images.unsplash.com/photo-1518709268805-4e9042af2176?w=1200", "AI and Machine Learning") .add_slide("https://images.unsplash.com/photo-1639322537228-f710d846310a?w=1200", "Blockchain Technology") .add_slide("https://images.unsplash.com/photo-1581092160562-40aa08e78837?w=1200", "IoT and Smart Cities") .add_slide("https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?w=1200", "Quantum Computing") .add_slide("https://images.unsplash.com/photo-1581092162384-8987c1d64718?w=1200", "Biotechnology Advances")); let nature_slides = save_slides(new_slides() .title("Biodiversity Gallery") .description("Celebrating Earth's incredible biodiversity") .add_slide("https://images.unsplash.com/photo-1564349683136-77e08dba1ef7?w=1200", "Tropical Rainforest") .add_slide("https://images.unsplash.com/photo-1559827260-dc66d52bef19?w=1200", "Coral Reef Ecosystem") .add_slide("https://images.unsplash.com/photo-1551698618-1dfe5d97d256?w=1200", "Arctic Wildlife") .add_slide("https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1200", "Mountain Ecosystems")); // === COLLECTIONS === print("Creating collections..."); let nature_collection = save_collection(new_collection() .title("Nature & Environment") .description("Beautiful images and resources about our natural world") .add_image(nature1.id) .add_image(nature2.id) .add_image(nature3.id) .add_pdf(pdf1.id) .add_markdown(md1.id) .add_book(sustainability_book.id) .add_slides(nature_slides.id)); let technology_collection = save_collection(new_collection() .title("Sustainable Technology") .description("Innovations driving positive change") .add_image(tech1.id) .add_image(tech2.id) .add_pdf(pdf3.id) .add_pdf(pdf4.id) .add_markdown(md3.id) .add_book(tech_guide_book.id) .add_slides(innovation_slides.id)); let space_collection = save_collection(new_collection() .title("Space & Cosmos") .description("Exploring the universe and our place in it") .add_image(space1.id) .add_image(space2.id) .add_pdf(pdf2.id) .add_markdown(md2.id)); let community_collection = save_collection(new_collection() .title("Community & Collaboration") .description("Building better communities together") .add_image(city1.id) .add_pdf(pdf5.id) .add_markdown(md4.id) .add_book(community_book.id)); let climate_collection = save_collection(new_collection() .title("Climate Action") .description("Understanding and addressing climate change") .add_slides(climate_slides.id) .add_pdf(pdf1.id) .add_markdown(md1.id)); print("✅ OurWorld library created successfully!"); print("📚 Collections: 5"); print("🖼️ Images: 8"); print("📄 PDFs: 5"); print("📝 Markdown docs: 4"); print("📖 Books: 3"); print("🎞️ Slide shows: 3");