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); }
FOR PROCUREMENT TEAMS

Stop paying twice for the same waste

You pay suppliers for materials, so why pay again to dispose of their waste too?

Speak with the team
A hand holding a coffee cup with metrics overlayed.

Save money on your waste streams

Today’s real challenge is not knowing where waste is coming from to begin with. To overcome this challenge, procurement teams must:

1. Understand the waste entering their premises.
2. Create policies to prioritize sustainable procurement.
3. Track material flows to optimize accordingly.

Scrapp helps procurement teams realize the value of upstream waste, to unlock downstream savings - at scale.

Procurement teams see:

A graphic of a down arrow with a % symbol on it.
30% reduction in cost

of purchased goods onsite

A graphic of a stack of paper and a pen drawing a signature on it.
Tailored procurement policies

based on Scrapp's data

A graphic of 2 cogs with a line between them.
Zero intrusion

to existing workflows

See which suppliers are costing you extra in disposal fees

Factor in waste costs when choosing vendors and get contract terms that back it up

Learn more about Scrapp for Business →

Once recycling metric from Scrapp's web portal.

Avoid costly compliance surprises

Spot high-risk suppliers before you sign

Learn more about Scrapp for Brands & Retailers →

Turn waste costs into budget savings

Choose suppliers whose materials can be given a second life, not just thrown away

We saved 30% off a manufacturer's waste bill →

Two widgets from Scrapp's web portal showing sustainable packaging suppliers.
A purchase order with core numbers highlighted on it.

Support sustainability teams without extra admin

Give them the data they need - with zero extra effort

Learn more about Scrapp for Business →

NEWSLETTER

Stay in the loop

Join our community newsletter to get updates and submit feedback

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Scrapp Web Portal Platform