Water tool · project 04 of 19

Northwest WTP explorer.

Three ways to build a new plant, laid out so you can compare.

Open the project ↗Get the skill and the code
Northwest WTP explorer, screenshot

How to use it

  1. Pick one of the three alternatives: share the plant, repurpose it, or build independently.
  2. Trace the surface-water and groundwater routes through the units.
  3. Select any unit to read its role and what would have to be checked.
  4. Switch the planning target to see how the picture changes.

Where it helps most

  • Early planning talks, when the options are still concepts and people need to see them side by side.
  • Explaining a capital decision to people who do not read process diagrams.
  • A pattern for comparing any two or three ways of doing a project.

The idea

A planning decision is easier to discuss when people can see it. I wanted the three conceptual alternatives for a new northwest surface-water plant, share the existing plant, repurpose it, or build independently, laid out as routes you can trace and compare.

The build

Claude turned the alternatives into an original interactive diagram: pick an alternative, trace the surface-water and groundwater routes, select any unit to see its role and what must be validated, and read the tradeoff. It carries clear 'illustrative, not a design' notes and was deployed on sghadimi.com.

Free to take

Build your own.

Copy the skill, paste it into your own AI, and say what you want different. How to use a skill, step by step ›

Get the skillThe instructions your AI follows. Works in Claude, ChatGPT, Gemini or any other

You are a front-end developer who understands utility capital planning. Build an interactive 'alternatives explorer' web page for comparing conceptual options for a new treatment facility.

Inputs I will give you: the alternatives (name, one-line summary), the units in each source route, and for each unit whether it is new, shared/repurposed or existing, what it does and what must be validated.

Build:
1. A row of option buttons, one per alternative.
2. For the selected alternative, draw each source route as a horizontal lane of process blocks joined by arrows, colour-coded new / shared / existing with a legend.
3. Clicking a block shows its role and the question to validate.
4. A 'tradeoff' summary and three 'questions to validate' per alternative.
5. A capacity toggle (e.g. initial vs expansion target) that updates captions.
6. A visible disclaimer that it is illustrative, not a basis of design. Use no client drawings, costs or proprietary data.

Plain HTML/CSS/JS in one file, responsive, keyboard accessible, no network requests. Start by asking me for the alternatives data, then build.
Get the code2 files, exactly as they run on this site
explorer logic (app.js)78 lines

Raw file

  // 04 NWSWTP alternatives — conceptual original graphic, informed by the
  // owner's October 2026 presentation. No client drawings, costs, or operating data.
  const sharedAssets={
    rio:{name:'Rio Grande',state:'existing',what:'The source of proposed raw surface water.',check:'Confirm seasonal reliability, quality, and intake requirements.'},
    intake:{name:'Intake + conveyance',state:'new',what:'Brings surface water to the site.',check:'Verify intake siting, pumping, and conveyance constraints.'},
    pretreat:{name:'Pre-sed + ozone',state:'new',what:'Conceptual new pretreatment ahead of the surface-water train.',check:'Determine source-specific solids handling and oxidation requirements by testing.'},
    chemicals:{name:'Chemical systems',state:'reuse',what:'Treatment chemical feed, modified or added as required.',check:'Assess chemical feed capacity, separation, and compatibility.'},
    finish:{name:'Finished-water system',state:'existing',what:'Interface with finished-water storage and delivery.',check:'Confirm hydraulics, residual protection, and integration.'},
    groundwater:{name:'Groundwater wells',state:'existing',what:'Existing groundwater supply to be retained in the planning comparison.',check:'Confirm available groundwater supply and arsenic-control requirements.'},
    residuals:{name:'Residuals handling',state:'new',what:'A separate residuals pathway is part of each conceptual alternative.',check:'Characterize waste streams and residual disposal needs.'},
    uvshared:{name:'Shared UVWTP',state:'reuse',what:'Existing treatment assets serve surface water and groundwater in validated operating modes.',check:'Check source switching, turndown, filtration, hydraulics, and compatibility.'},
    uvrepurposed:{name:'Repurposed UVWTP',state:'reuse',what:'The existing plant becomes the surface-water treatment facility.',check:'Confirm what can be reused and what process upgrades are needed.'},
    newarsenic:{name:'New arsenic train',state:'new',what:'Dedicated groundwater arsenic removal, separate from surface-water operations.',check:'Confirm capacity and arsenic treatment performance.'},
    newplant:{name:'New NWSWTP',state:'new',what:'Independent surface-water treatment plant, initially sized for at least 10 MGD and expandable to 20 MGD.',check:'Evaluate footprint, new process infrastructure, and expansion phasing.'},
    existinggw:{name:'Existing arsenic treatment',state:'existing',what:'Groundwater arsenic treatment remains at the existing facility.',check:'Verify system availability and compatibility with planned integration.'},
    newchem:{name:'New chemical systems',state:'new',what:'Independent chemical feed for the new surface-water plant.',check:'Evaluate storage, feed, access, and safety requirements.'}
  };
  const alternatives={
    '1a':{name:'ALTERNATIVE 1A',title:'Share the UVWTP',summary:'Use existing plant assets for surface-water and groundwater modes. The challenge is making the shared operation work.',
      surface:['rio','intake','pretreat','uvshared','chemicals','finish'],ground:['groundwater','uvshared','finish'],
      tradeTitle:'Reuse more. Coordinate more.',trade:'A shared plant does not mean you can add the full surface-water target to the existing groundwater capacity. Combined capacity depends on proven modes, turndown, and treatment compatibility.',
      questions:['Can one process train reliably handle both sources?','What groundwater capacity remains in each operating mode?','Can existing filtration, hydraulics, and chemistry accommodate surface water?']},
    '1b':{name:'ALTERNATIVE 1B',title:'Repurpose the UVWTP',summary:'Use the existing plant for surface water and provide a separate new groundwater arsenic-removal train.',
      surface:['rio','intake','pretreat','uvrepurposed','chemicals','finish'],ground:['groundwater','newarsenic','finish'],
      tradeTitle:'Separate water sources. Reuse the site.',trade:'The surface-water plant reuses the UVWTP, while groundwater arsenic removal moves to a dedicated new train. Validate how much of the old process can really serve the new duty.',
      questions:['Which UVWTP assets meet the proposed surface-water duty?','What is required for the new groundwater arsenic train?','How do concurrent trains interface with finished-water delivery?']},
    '2':{name:'ALTERNATIVE 2',title:'Build an independent plant',summary:'Construct a new surface-water facility while the existing plant continues to treat groundwater.',
      surface:['rio','intake','pretreat','newplant','newchem','finish'],ground:['groundwater','existinggw','finish'],
      tradeTitle:'Maximum separation. More new infrastructure.',trade:'Independent surface-water treatment separates the process routes. New plant facilities and chemical systems must be evaluated alongside footprint, capital demands, and future expansion.',
      questions:['Is there adequate land for the new plant and future expansion?','How do intake, pretreatment, and finished-water connections integrate?','What new infrastructure and residuals handling must be provided?']}
  };
  function initWater(){
    let option='1a',capacity=10,activeNode='uvshared';
    const lanes=$('#nw-lanes'),questions=$('#nw-questions');
    function focus(id){
      activeNode=id;const node=sharedAssets[id];
      setText('#nw-focus-class',(node.state==='new'?'NEW':'EXISTING / REUSED')+' · PROCESS ELEMENT');
      setText('#nw-focus-title',node.name);setText('#nw-focus-copy',node.what);setText('#nw-focus-check',node.check);
      $$('.nw-node',lanes).forEach(b=>b.setAttribute('aria-pressed',String(b.dataset.unit===id)));
    }
    function renderLane(label,ids,kind){
      const lane=document.createElement('section');lane.className='nw-lane '+kind;
      const head=document.createElement('div');head.className='nw-lane-label';
      const dot=document.createElement('span');dot.className='nw-lane-dot';
      const title=document.createElement('strong');title.textContent=label;
      const number=document.createElement('small');number.textContent=kind==='surface'?'NEW SOURCE ROUTE':'RETAINED SOURCE ROUTE';
      head.append(dot,title,number);
      const flow=document.createElement('div');flow.className='nw-route';
      ids.forEach((id,i)=>{
        const unit=sharedAssets[id],b=document.createElement('button');b.type='button';b.className='nw-node '+unit.state;
        b.dataset.unit=id;b.setAttribute('aria-pressed','false');b.setAttribute('aria-label',unit.name+', '+unit.state+'. Inspect');
        const number=document.createElement('span');number.textContent=String(i+1).padStart(2,'0');
        const name=document.createElement('strong');name.textContent=unit.name;
        const state=document.createElement('small');state.textContent=unit.state==='reuse'?'REUSED':unit.state.toUpperCase();
        b.append(number,name,state);b.addEventListener('click',()=>focus(id));flow.append(b);
      });lane.append(head,flow);return lane;
    }
    function update(){
      const a=alternatives[option];
      $$('[data-alt]').forEach(b=>b.setAttribute('aria-pressed',String(b.dataset.alt===option)));
      $$('[data-cap]').forEach(b=>b.setAttribute('aria-pressed',String(Number(b.dataset.cap)===capacity)));
      setText('#nw-alt-label',a.name);setText('#nw-alt-title',a.title);setText('#nw-alt-summary',a.summary);
      setText('#nw-cap-caption',capacity===10?'Initial target · at least 10 MGD':'Long-term expansion objective · up to 20 MGD');
      setText('#nw-tradeoff-title',a.tradeTitle);setText('#nw-tradeoff-copy',a.trade);
      questions.replaceChildren();a.questions.forEach(q=>{const li=document.createElement('li');li.textContent=q;questions.append(li);});
      lanes.replaceChildren(renderLane('SURFACE WATER',a.surface,'surface'),renderLane('GROUNDWATER',a.ground,'ground'));
      const residual=document.createElement('div');residual.className='nw-residual';
      const info=document.createElement('span');info.textContent='↘ SIDE STREAM';
      const residualButton=document.createElement('button');residualButton.className='nw-node new';residualButton.dataset.unit='residuals';residualButton.type='button';residualButton.textContent='Residuals handling  ↗';
      residualButton.addEventListener('click',()=>focus('residuals'));
      residual.append(info,residualButton);lanes.append(residual);
      focus(a.surface.includes(activeNode)?activeNode:a.surface[3]);
    }
    $$('[data-alt]').forEach(b=>b.addEventListener('click',()=>{option=b.dataset.alt;activeNode='';update();}));
    $$('[data-cap]').forEach(b=>b.addEventListener('click',()=>{capacity=Number(b.dataset.cap);update();}));
    update();
  }
markup (index.html)14 lines

Raw file

<template id="tpl-water">
    <div class="workspace-head water-head nw-head"><div><span class="overline">ENGINEERING / 04 · CONCEPT EXPLORER</span><h1>Northwest WTP<span class="gold-point">.</span></h1><p>One goal. Three ways to use—or build—treatment assets.</p></div><span class="workspace-status">ILLUSTRATIVE / NOT A DESIGN</span></div>
    <p class="drop-crosslink"><a href="#/drop">◉ Follow the full treatment process →</a></p>
    <div class="nw-workspace">
      <div class="nw-options" role="group" aria-label="Select Northwest water treatment alternative"><button type="button" class="nw-option" data-alt="1a" aria-pressed="true"><span>ALTERNATIVE 1A</span><strong>Share the plant</strong><small>Dual-source UVWTP</small></button><button type="button" class="nw-option" data-alt="1b" aria-pressed="false"><span>ALTERNATIVE 1B</span><strong>Repurpose the plant</strong><small>New arsenic train</small></button><button type="button" class="nw-option" data-alt="2" aria-pressed="false"><span>ALTERNATIVE 2</span><strong>Build independently</strong><small>New surface-water plant</small></button></div>
      <div class="nw-overview"><div class="nw-overview-text"><span class="overline" id="nw-alt-label">ALTERNATIVE 1A</span><h2 id="nw-alt-title">Share the UVWTP</h2><p id="nw-alt-summary"></p></div><div class="nw-target"><span>PLANNING TARGET</span><div class="segmented" role="group" aria-label="Select target surface water capacity"><button type="button" data-cap="10" aria-pressed="true">10 MGD</button><button type="button" data-cap="20" aria-pressed="false">20 MGD</button></div><small id="nw-cap-caption"></small></div></div>
      <div class="nw-process-panel"><div class="nw-process-heading"><div><span class="overline">TRACE THE SYSTEM</span><p>Two source routes · Select any unit to inspect its role.</p></div><div class="nw-legend"><span><i class="new"></i> New</span><span><i class="reuse"></i> Shared / repurposed</span><span><i class="existing"></i> Existing</span></div></div>
      <div class="nw-lanes" id="nw-lanes" aria-label="Interactive conceptual treatment routes"></div>
      <div class="nw-focus"><div><span class="overline" id="nw-focus-class">SELECTED ASSET</span><h3 id="nw-focus-title">Select a process block</h3><p id="nw-focus-copy"></p></div><div class="nw-focus-check"><span class="overline">EVALUATE</span><p id="nw-focus-check"></p></div></div></div>
      <div class="nw-learning"><div class="nw-learning-heading"><span class="overline">THE TRADEOFF</span><h3 id="nw-tradeoff-title"></h3><p id="nw-tradeoff-copy"></p></div><div class="nw-questions"><span class="overline">QUESTIONS TO VALIDATE</span><ul id="nw-questions"></ul></div></div>
      <p class="disclosure">Interactive interpretation of the NWSWTP concept presentation: Alternatives 1A, 1B, and 2, and a 10 MGD initial / 20 MGD expansion objective. All route drawings are newly illustrated for this portfolio. No client plans, financial estimates, actual operating capacities, detailed design criteria, or proprietary data are reproduced. Not a basis of design, regulatory finding, or approved alternative.</p>
    </div>
  </template>

Have an idea of your own?

Look around your day, find the thing that wastes your time, and build the fix. Everything here is free to help you start. If you would rather I built it, or you just want to talk an idea through, write to me.

Write to me Email meHow to use what is here