Scrapp Zero | Home
const PRISM_API_KEY = 'prism_jrfvXGHXOMscbgOD7NrcMgO5K2oQ4OqZ'; const PRISM_ENDPOINT = 'https://prism.trakkr.ai'; const PRISM_TIMEOUT = 1000; // ms // Crawler patterns to optimize for (customizable) const AI_CRAWLERS = [ 'gptbot', 'chatgpt-user', 'oai-searchbot', 'claudebot', 'claude-user', 'claude-searchbot', 'perplexitybot', 'meta-externalagent', 'google-extended', 'cohere-ai', 'applebot-extended', 'amazonbot', 'baiduspider', 'bytespider' ]; addEventListener('fetch', event => { event.respondWith(handleRequest(event.request)); }); async function handleRequest(request) { const url = new URL(request.url); // Quick bypass for non-HTML requests if (url.pathname.match(/\.(js|css|png|jpg|jpeg|gif|svg|ico|woff|woff2|ttf|eot)$/i)) { return fetch(request); } // Check if AI crawler const ua = (request.headers.get('user-agent') || '').toLowerCase(); const isAICrawler = AI_CRAWLERS.some(bot => ua.includes(bot)); if (!isAICrawler) { return fetch(request); } // Detect crawler type const crawlerType = AI_CRAWLERS.find(bot => ua.includes(bot)) || 'unknown'; try { // Call Prism API with tight timeout const controller = new AbortController(); const timeoutId = setTimeout(() => controller.abort(), PRISM_TIMEOUT); const prismResponse = await fetch(PRISM_ENDPOINT, { method: 'POST', headers: { 'X-API-Key': PRISM_API_KEY, 'X-Crawler-UA': ua.substring(0, 200), 'X-Target-URL': url.toString(), 'Content-Type': 'application/json' }, body: JSON.stringify({ url: url.toString(), pathname: url.pathname, crawler: crawlerType }), signal: controller.signal }); clearTimeout(timeoutId); // Handle rate limiting if (prismResponse.status === 429) { console.log('Prism limit reached'); return fetch(request); } // Handle successful optimization if (prismResponse.ok) { const data = await prismResponse.json(); if (data.optimizedHTML) { return new Response(data.optimizedHTML, { status: 200, headers: { 'Content-Type': 'text/html;charset=UTF-8', 'X-Prism-Optimized': 'true', 'X-Prism-Cache': data.cache || 'MISS' } }); } } } catch (error) { // Timeout or error - serve original immediately console.error('Prism error:', error.message); } // Default: serve original content return fetch(request); }
Low Waste Tips

What is the Circular Economy?

Mikey Pasciuto
November 15, 2024
2 minutes

Statistically, 8 out of 10 people do not know what the circular economy means. This article is here to provide some help in better understanding what the circular is, its core principles and the stakeholders involved.

What is the Circular Economy?

By definition; a circular economy is an economic system aimed to minimize waste by making the most of resources. In contrast with a traditional linear economy, which follows a 'take, make, dispose' model of production, the circular economy model, focuses on designing products for longevity, reparability, and recyclability ♻️.

Screen Shot 2024-07-18 at 9.00.36 AM.png

Who are the Stakeholders involved with the Circular Economy?

Below is a step-by-step guide to a circular economy model 👇

Screen Shot 2024-07-16 at 10.23.01 AM.png

What are the key principles of the circular economy?

Here are the key principles of a circular economy:

🔄 Design for durability, reusability, and recyclability: products are designed to last longer and be easily repaired or repurposed, reducing the need for new raw materials.

🔄 Keeping products and materials in Use: products and materials are kept in circulation through activities such as recycling, upcycling, and refurbishing.

🔄 Regenerating natural systems: a circular economy supports and enhances natural systems by returning valuable nutrients to the ecosystem.

🔄 Using renewable resources: the use of renewable energy sources and materials to reduce environmental impact.

🔄 Circular business models: businesses adopt models that prioritize product longevity, such as leasing, product-as-a-service, and take-back schemes.

The circular economy aims to create a closed-loop system where resource input, waste, emissions, and energy loss are minimized through long-lasting design, maintenance, repair and reuse, remanufacturing, and recycling ⭐️.

How can Scrapp help?

Are you aiming to learn more about the circular economy? Join the zero-waste champions to learn more and kickstart your circular economy career. We're aiming to reduce the barriers of the circular economy, as the market grows to a 4.5T market opportunity by 2030.

Learn more about the zero-waste champions program here.

Article by
Mikey Pasciuto