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); }
Impact Report

Scrapp B-Impact Report 2024

March 28, 2025

Now that we're mission-locked, we're energized to scale our impact and provide zero-waste resources to individuals, communities, and businesses across all socioeconomic backgrounds. The wider adoption of Scrapp's software, the better we can care for our community, and the more people will start their zero-waste journey. We're proud to be contributing to a regenerative economy through our B-Corp certification. Rather than seeing certification as just a badge, we view it as a framework that pushes us to continuously improve and integrate sustainable practices across our operations. Thank you for supporting us on this journey. Together, we're proving that purpose and profit can truly work hand in hand.

Our strategy moving forward is simple yet powerful: deliver as much value as possible, to as many people as possible, while using resources as efficiently as possible.

Key Takeaways

  • Framework for Improvement: The B-Corp assessment provides a clear roadmap for companies to measure and improve their social and environmental impact. For us at Scrapp, it highlighted opportunities in our Workers and Community sections that we're excited to address.
  • Transparency and Accountability: Certification requires rigorous verification and regular recertification, holding businesses accountable to their commitments. This transparency builds trust with customers and partners.
  • Progress Over Perfection: No company is perfect, but the certification process encourages continuous improvement.
Download Report Now