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); }
Special Project

2023: A Year in Plastic

February 28, 2025

The 2023: A Year’s Worth of Plastic report has been generated by The Hive Principle alongside the Scrapp team to shed light on how much plastic is generated in a single household, where it goes after it leaves home, and what can be reduced at the household level to ensure we can achieve our targets of zero-waste and minimize the impact the production and management of plastic have on the planet. In a time where plastic has come under public scrutiny from organizations ranging from media outlets to environmental non-profits and even everyday people, we felt it would be timely to release a report on how much can be done at the household level and how much is up to the industry to improve, and how much everyone together can have an impact. The report has been designed to help organizations of any size and shape to learn more about the impact plastic could have and share knowledge that can help reduce the educational barrier that persists from a myriad of viewpoints. By democratizing the access, strategies, and understanding of the challenges around plastics - the next leaders of organizations can start to understand the value of the resources we have at our disposal and eradicate the afterthought that ‘waste’ has become. The expectation of this report is not that everyone needs to be perfect; the point is we are all in this together, and we need everyone to do their small part.

Do we have any conclusions? We still remain in a state of shock. What are we going to change? Many, many things.

Key Takeaways

  • Learn how much plastic the average American family produces in 1 year
  • Discover real ways to reduce your plastic footprint
  • Understand the amount that we rely on plastics in our everyday lives
Download Report Now