<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Community Project Funding Assistant</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; background: #f9fafb; height: 100vh; display: flex; flex-direction: column; }
#loading { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; color: #6b7280; }
#loading .icon { font-size: 36px; margin-bottom: 16px; }
#loading .title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
#loading .msg { font-size: 13px; }
#chat { display: none; flex-direction: column; height: 100vh; background: #fff; }
#header { padding: 12px 16px; border-bottom: 1px solid #e5e7eb; font-weight: 700; font-size: 15px; flex-shrink: 0; }
#messages { flex: 1; overflow-y: auto; padding: 20px 16px; }
#empty { text-align: center; color: #9ca3af; margin-top: 80px; }
#empty .icon { font-size: 32px; margin-bottom: 8px; }
#empty .label { font-size: 14px; }
.bubble-wrap { display: flex; margin-bottom: 12px; }
.bubble-wrap.user { justify-content: flex-end; }
.bubble { max-width: 80%; padding: 10px 14px; line-height: 1.6; font-size: 14px; white-space: pre-wrap; word-wrap: break-word; }
.bubble.user { background: #1d4ed8; color: #fff; border-radius: 18px 18px 4px 18px; }
.bubble.assistant { background: #f3f4f6; color: #111; border-radius: 18px 18px 18px 4px; }
#inputbar { padding: 12px 16px; border-top: 1px solid #e5e7eb; display: flex; gap: 8px; flex-shrink: 0; }
#inputbar input { flex: 1; padding: 10px 16px; border-radius: 24px; border: 1px solid #d1d5db; font-size: 14px; outline: none; font-family: inherit; }
#inputbar button { padding: 10px 20px; background: #1d4ed8; color: #fff; border: none; border-radius: 24px; font-size: 14px; font-weight: 600; cursor: pointer; }
#inputbar button:disabled { background: #93c5fd; cursor: not-allowed; }
</style>
</head>
<body>
<div id="loading">
<div class="icon">⏳</div>
<div class="title">Loading sources…</div>
<div class="msg" id="loadingMsg">Starting up…</div>
</div>
<div id="chat">
<div id="header">📚 Community Project Funding Assistant</div>
<div id="messages">
<div id="empty">
<div class="icon">💬</div>
<div class="label">Ask anything about the sources</div>
</div>
</div>
<div id="inputbar">
<input type="text" id="userInput" placeholder="Ask a question…" />
<button id="sendBtn" onclick="send()">Send</button>
</div>
</div>
<script>
const PROXY_URL = "https://morelleschumerfunding.alattanzio.workers.dev";
const SCHUMER_PDF_URL = "https://www.schumer.senate.gov/imo/media/doc/fy2027_interim_cds_subcommittee_account_guidance.pdf";
const MORELLE_PDF_TEXT = `Community Project Funding Guide FY2027 - Congressman Joseph D. Morelle
CONTACT & APPLICATION INFORMATION:
Submit requests at https://morelle.house.gov/funding-opportunities/community-project-funding and email to morellecommunityprojectfunding@mail.house.gov.
Deadlines: March 6 (6pm ET) for Agriculture, Commerce/Justice/Science, Military Construction accounts. March 13 (6pm ET) for all other accounts.
APPLICATION CHECKLIST:
- Application form submitted through website
- Copy emailed to morellecommunityprojectfunding@mail.house.gov
- Supporting documents: evidence of community support, project budget, justification for use of public funds, answers to supplemental questions (if applicable), proof of non-profit status (if applicable)
OVERVIEW:
- Members can submit max 20 CPF requests
- Must satisfy House Appropriations Committee requirements
- Must include demonstrated community support (letters from elected officials, press articles, government resolutions, community development plan listings)
- No funds for for-profit recipients
- Matching funding required from state/local government (not required to be in-hand)
- Each project funded only for FY2027
- All requests must be publicly posted on Member's website within 20 days
DATA FROM PRIOR YEARS:
- FY26: All 15 Morelle requests funded, totaling $15+ million
- Data below is from FY2024 cycle for reference
- Majority Leadership has unilaterally cut Democratic member projects in last two cycles — request amounts you can realistically use
- FY2027 restrictions: 0.5% of discretionary spending cap; must tie to existing federal authorization law; museums/memorials/commemorative projects ineligible; nonprofit eligibility limited by account
ELIGIBLE ACCOUNTS:
AGRICULTURE SUBCOMMITTEE (FY24: $483.9M total, avg $1.22M, median $1M, 395 requests)
- Nonprofits NOT eligible (except fire stations)
- Must consult State Rural Development or Conservation office for eligibility
- Supplemental questions required (website, cost share, total project cost, phasing, eligibility, community benefits, prior federal funding, etc.)
Community Facilities Grants (FY24: $312M, avg $1.17M, median $1M, 266 requests)
- Purchase/construct/improve essential community facilities; equipment
- Must serve rural areas (≤20,000 residents per 7 CFR 3570.53)
- Nonprofits NOT eligible except fire stations
- Cost share on graduated scale (7 CFR 3570.63(b))
- Credit Elsewhere Test applies
- Cannot pay operating expenses, refinance debt, pay interest, build in non-rural areas, or fund commercial rental space
Distance Learning and Telemedicine Grants (FY24: $6.97M, avg $581K, median $418K, 12 requests)
- Audio/video equipment, broadband support, computer hardware, instructional programming
- 15% match required (non-federal)
- Rural areas ≤20,000 population
- Nonprofits NOT eligible for FY27
Rural Water and Waste Disposal Grants (FY24: $120M, avg $1.48M, median $1M, 81 requests)
- Drinking water, sewer, solid waste, stormwater infrastructure
- Rural areas and towns ≤10,000 population and Tribal lands
- 25% non-federal cost share required
- Nonprofits NOT eligible for FY27
Agricultural Research Service, Buildings and Facilities (FY24: $16.7M, avg $1.67M, median $1.1M, 10 requests)
- Must be ARS-owned or operated facilities
- Acquisition, construction, repair, improvement of facilities
- Universities seeking new facilities NOT eligible
Natural Resources Conservation Service, Conservation Operations (FY24: $18.75M, avg $1.04M, median $1M, 18 requests)
- Supports private landowners, conservation districts
- Reduce soil erosion, improve soil health, enhance water, wildlife habitat
- FY27: only state, local, Tribal organizations or conservation districts eligible
- Nonprofits NOT eligible; no land or fixed equipment purchase; must tie to agriculture/farmland
COMMERCE, JUSTICE, AND SCIENCE SUBCOMMITTEE (FY24: $595.5M total, avg $923K, median $900K, 645 requests)
DOJ Byrne Justice Assistance Grant (FY24: $213.2M, avg $743K, median $726K, 287 requests)
- Law enforcement, violent crime, prosecutions, criminal justice improvements, victims services
- Prohibited: security equipment to nongovernmental non-criminal justice entities; vehicles/vessels/aircraft; luxury items; real estate; most construction
- Chair will not support: drug paraphernalia distribution; anti-2nd Amendment initiatives; anti-law enforcement initiatives; large multi-year correctional construction
- Nonprofits may be eligible if closely aligned with Byrne JAG purposes
- Supplemental questions: nonprofit status, scalability, project location
COPS Technology and Equipment (FY24: $170.6M, avg $828K, median $750K, 206 requests)
- Technology and equipment for state/local/Tribal law enforcement
- Interoperable communications, criminal record technology, forensic technology
- Nonprofits NOT eligible
- Building construction/renovation NOT eligible
- Supplemental questions: law enforcement agency status, scalability, location
NIST Scientific and Technical Research (FY24: $118.5M, avg $1.46M, median $963K, 81 requests)
- Standards-related research and technology development
- STEM education, scientific research, American manufacturing support
- Building construction NOT eligible
- Only nonprofit colleges/universities eligible as nonprofits
- Supplemental questions: nonprofit status, scalability, location
NOAA Coastal Zone Management (FY24: $57M, avg $1.3M, median $963K, 44 requests)
- Protection, restoration, responsible development of coastal communities
- Must align with Coastal Zone Management Act of 1972
- Vehicles and building construction historically not funded
- Only nonprofit colleges/universities eligible as nonprofits
- Cost-share required by law
NASA Safety, Security, and Mission Services (FY24: $36.3M, avg $1.34M, median $963K, 27 requests)
- Science education, research, technology related to NASA's mission
- Building construction/renovation and Medical Research NOT eligible
- Only nonprofit colleges/universities eligible as nonprofits
ENERGY AND WATER DEVELOPMENT SUBCOMMITTEE (FY24: $1.76B total, avg $19.8M, median $2M, 89 requests)
Accounts: U.S. Army Corps of Engineers (Investigations, Construction, Mississippi River & Tributaries, O&M) and Bureau of Reclamation (Water and Related Resources)
- Only individually authorized projects or Corps Continuing Authorities Program projects
- Requests only for funding above President's budget request
- Funding must be realistically utilizable in FY27 (project "capability")
- Supplemental questions: official project name, authorization, Corps district, appropriations account, new start status, EI project status, Reclamation region, FY27 capability
Investigations FY24: $13.7M, avg $687K, median $625K, 20 requests
Construction FY24: $1.44B, avg $32.8M, median $2.9M, 44 requests
O&M FY24: $260.7M, avg $14.5M, median $4.45M, 18 requests
HOMELAND SECURITY SUBCOMMITTEE (FY24: $181.2M total, avg $1.47M, median $1.38M, 123 requests)
Two FEMA programs: Pre-Disaster Mitigation (PDM) and Emergency Operations Center (EOC)
Cost-share: 75% federal / 25% non-federal (small impoverished communities may get 90% federal for PDM)
Pre-Disaster Mitigation (FY24: $115.6M, avg $1.83M, median $1.38M, 63 requests)
- Long-term risk reduction from natural hazards (floods, wildfires)
- State/Territorial Administrative Agency or Tribal government must administer grant
- Must include letter from State/Territorial agency confirming eligibility
- Must align with state/local hazard mitigation plans
- Benefit-Cost Analysis (BCA) of 1.0 or greater required
- Cannot include: dredging waterways, emergency vehicles/equipment
- Many detailed supplemental questions required
Emergency Operations Center (FY24: $65.6M, avg $1.09M, median $637K, 60 requests)
- Improve emergency management/preparedness capabilities
- Flexible, sustainable, secure, interoperable EOCs
- State/Territorial agency must administer grant; letter required
- Cannot include: personnel costs, replacement radios, generators for shelters, portable equipment
- Supplemental questions: eligibility confirmation, cost share, EOC definition compliance, multipurpose facility limitations
INTERIOR AND ENVIRONMENT SUBCOMMITTEE (FY24: $880.4M total, avg $1.15M, median $960K, 767 requests)
EPA State and Tribal Assistance Grants (STAG):
Clean Water SRF (FY24: $470.1M, avg $1.15M, median $960K, 410 requests)
Drinking Water SRF (FY24: $410.3M, avg $1.15M, median $960K, 357 requests)
- Local wastewater and drinking water infrastructure
- Minimum 20% cost share required (cannot use other federal funds for match, except SRF assistance)
- Public entities preferred; nonprofits considered very limitedly (must have inherently governmental function)
- Projects on state Intended Use Plans (IUPs) viewed favorably
NOT eligible (Clean Water): land (with exceptions), O&M costs, non-municipal point source control, acid rain drainage, ambient water monitoring, flood control (unless managing stormwater), privately owned sewer pipes
NOT eligible (Drinking Water): dams, O&M costs, water rights (with exceptions), most reservoirs, lab monitoring fees, fire protection projects, systems lacking capability, future growth projects
ELIGIBLE (Clean Water): wastewater treatment plants, collector/interceptor sewers, public sewer pipe rehab, stormwater management, CSO/SSO control, infiltration correction, water security, septic tank remediation, water reuse, nonpoint source pollution control
ELIGIBLE (Drinking Water): compliance with primary drinking water regs, water source rehab/development, treatment/storage/distribution facility upgrades, water consolidation, project planning/design
Supplemental questions: SRF type, IUP listing, match availability, prior federal funds, CWA/SDWA compliance
LABOR, HEALTH AND HUMAN SERVICES, AND EDUCATION SUBCOMMITTEE
*Account not offered in FY24/25/26 — no historical data*
HRSA-Wide Activities and Program Support:
- Health Facilities Construction and Equipment only
- Limited-scope construction, renovation, or capital equipment for health/mental health/substance use disorder facilities, health professional training, or medical research
- Equipment only requests permissible (useful life >1 year, unit cost ≥$5,000 generally)
- NOT eligible: expendable supplies, land purchase, existing building purchase, salaries, operating costs, previously completed work, general feasibility studies, software licenses/operating fees
- Cannot sub-grant to other organizations
Eligible recipients: state/local/Tribal governments; nonprofit rural health clinics, FQHCs, Critical Access Hospitals, rural hospitals
NOT eligible: entities performing/promoting abortions; embryonic stem cell research entities; entities facilitating gender transition interventions
Supplemental questions: eligible recipient affirmation, community benefits, prior federal funding, EIN, budget breakdown, entity website, other funding sources, awareness of other Member requests
MILITARY CONSTRUCTION, VETERANS AFFAIRS SUBCOMMITTEE (FY24: $294.6M total, avg $12.3M, median $7.1M, 24 requests)
- Must be on Unfunded Requirements/Priorities List (UFR/UPL) submitted to Congress or have existing NDAA authorization
- Must have ≥35% design completed (some exceptions for design funding)
- Must be obligatable in FY27
- Must be submitted to House Armed Services Committee for FY27 NDAA
- Must have DD Form 1391
- Committee prioritizes requests below $55 million
Eligible active components: Army, Navy/Marine Corps, Air Force/Space Force, Defense-Wide Agencies
Eligible reserve components: Army/Air National Guard, Army/Navy/Air Force Reserve (some National Guard projects require state match)
Sources: UFR/UPLs (FY26 lists used), NDAAs, Lab Military Construction report (Section 2806, PL 115-91)
Supplemental questions: service branch, project title, amount requested, construction/design type, location, NDAA authorization, UFR/UPL listing, DD Form 1391, state match (Guard), design completion %, obligation timeline, HASC submission
TRANSPORTATION, HOUSING AND URBAN DEVELOPMENT SUBCOMMITTEE (FY24: $3.96B total, avg $1.49M, median $1M, 2661 requests)
Transit Infrastructure Projects (FY24: $130.8M, avg $1.03M, median $850K, 127 requests)
- Public transportation capital projects (chapter 53, title 49 USC)
- Must be transit capital projects or project-specific planning/design
- Sponsored by designated recipients, states, local government, Indian tribes
- NOT eligible: administrative activities, general operating expenses, sections 5303/5304/5305 activities, CIG program projects
- Supplemental questions: name, recipient, description, total cost, NEPA status, matching funds, reduced scope plans, DOT discretionary program plans, federal funding history, construction status, timeline, STIP/TIP listing
Highway Infrastructure Projects (FY24: $1.2B, avg $2.26M, median $1M, 533 requests)
- Capital projects under title 23 USC (Section 133(b))
- Non-federal cost share on sliding scale
- Public or Tribal entities only
- NOT eligible: administrative activities, general operating expenses, sections 134/135 activities
- Supplemental questions: name, description, project type, phasing, federal funding history, matching funds, STIP/TIP listing
Airport Improvement Program (FY24: $303.9M, avg $3.41M, median $2.5M, 89 requests)
- AIP eligible per 49 USC 47100 et seq.
- Must be in FAA's NPIAS
- Large/medium primary hubs: 75% federal (80% noise programs); small/reliever/GA airports: 90-95% federal
- Supplemental questions: airport name, project description, AIP eligibility assurances, benefits, amount/total cost, timeline, matching funds, prior FAA grant application
Port Infrastructure Development Program (FY24: $69.7M, avg $3.17M, median $2.5M, 22 requests)
- Projects under 46 USC 54301
- No for-profit recipients
- Statutory non-federal match required (exceptions for small/rural ports)
- Supplemental questions: name, description, small/rural port status, phasing, MARAD discussions, federal funding history, matching funds
Consolidated Rail Infrastructure and Safety Improvements/CRISI (FY24: $28.9M, avg $1.6M, median $990K, 18 requests)
- Rail capital projects under 49 USC 22907
- Must primarily benefit intercity passenger or freight rail
- Public or Tribal entities only
- NOT eligible: administrative/operating expenses, rail research, workforce activities
- Supplemental questions: name, recipient, project type (from list of 11 eligible types), description, amount/cost, matching funds, reduced funding plans, federal funding history, construction status, timeline, state rail plan listing, grade crossing action plan
HUD Community Development Fund/Economic Development Initiative (FY24: $2.22B, avg $1.19M, median $850K, 1872 requests)
- Economic and community development activities
- Eligible recipients: states, territories, Tribal governments, counties, cities/towns/local governments, public colleges/universities (including HBCUs and TCUs)
- Must meet one of: 42 USC 5305(a)(1) land/site acquisition; 5305(a)(2) public works construction; 5305(a)(4) demolition/rehabilitation; 5305(a)(5) barrier removal for elderly/disabled
- Typical eligible projects: water/sewer infrastructure, local roads, streetscape improvements, housing rehab/construction, economic development (workforce centers, manufacturing incubators), food banks, youth/senior centers, community centers
- NOT eligible: museums, commemoratives, memorials, swimming pools, water parks, golf courses, healthcare facilities, entertainment venues, research/planning only, buildings for general conduct of government
- Requires TIN/EIN and Unique Entity Identifier (UEI) from SAM.gov
- NEPA environmental review required before construction
- Buy America Preference applies
- Soft costs can begin after enactment; hard costs only after environmental review
- Supplemental questions: name, description, consolidated plan listing, amount/cost, community partners, federal grant experience, prior subcommittee submission, community benefit description, TIN/EIN, UEI, ZIP code, existing HUD CPF grants status
FREQUENTLY ASKED QUESTIONS:
- What is CPF? Spending for specific entity/purpose requested by Member of Congress; must meet federal program objective
- Deadline: March 6 (Ag, CJS, MilCon) and March 13 (all others) at 6pm ET — strictly enforced
- Public disclosure: required within 20 days of submission to committee
- Max requests: 20 per Member across all accounts
- Cannot use for: debt service, recurring expenses, reimbursement, projects without community value
- Bricks and mortar: generally no (exceptions: HUD EDI, Military Construction)
- Submit to both House and Senate representatives if matching accounts exist
- Request amount: what you can realistically spend in the fiscal year; no minimum
- No guarantee of full funding or multi-year funding
- Letters of support: strongly recommended, more is better
- Timeline: House bills typically late spring; Senate late spring/summer; conference committee early fall
- Disbursement: after bill signed, apply to relevant agency; process varies by department (weeks to months)
- Generally one-time funding; no guarantee of future year support
- 501(c)(3) eligibility varies by account
- FY2027 = Federal Fiscal Year beginning October 1, 2026
- Period of availability varies (1, 2, or 5 years depending on project type)
- 0.5% of discretionary spending cap on all CPF
- In-kind matches: allowed by some programs; varies by agency/program law
- Capital projects: eligible in certain cases per this guide
- Cannot use for payroll or operating expenses
OTHER FEDERAL FUNDING RESOURCES:
- Grants.gov: search/apply for competitive grants from 26 federal agencies
- SAM.gov: official site for federal awards management
- GovLoans.gov: federal loans information
- Benefits.gov: government benefits eligibility
- USA.gov: official US Government information`;
const WEB_URL_1 = "https://morelle.house.gov/funding-opportunities/community-project-funding";
const WEB_URL_2 = "https://www.schumer.senate.gov/services/congressionally-directed-spending";
let sysPrompt = "";
let history = [];
function setLoadingMsg(msg) {
document.getElementById("loadingMsg").textContent = msg;
}
async function fetchUrl(url) {
try {
const r = await fetch(`https://api.allorigins.win/get?url=${encodeURIComponent(url)}`);
const d = await r.json();
return d.contents.replace(/<[^>]+>/g, " ").replace(/\s+/g, " ").trim().slice(0, 15000);
} catch {
return "[Could not fetch — may be blocked by CORS]";
}
}
async function callClaude(system, messages, maxTok = 1000) {
const r = await fetch(PROXY_URL, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ model: "claude-sonnet-4-20250514", max_tokens: maxTok, system, messages })
});
const d = await r.json();
if (d.error) throw new Error(d.error.message);
return d.content[0].text;
}
async function compressPdf(url, label) {
return callClaude(
"You are a precise document summarizer. Create dense, fact-rich knowledge bases from documents.",
[{
role: "user",
content: [
{ type: "document", source: { type: "url", url } },
{ type: "text", text: `Create a thorough, dense knowledge base from this PDF. Preserve ALL key facts, figures, data, names, dates, definitions, eligibility requirements, deadlines, and conclusions. Be comprehensive — this will be the sole reference for answering user questions.\n\nLabel the output:\n=== KNOWLEDGE BASE: ${label} ===` }
]
}],
4000
);
}
async function loadSources() {
try {
setLoadingMsg("Fetching web pages…");
const [web1, web2] = await Promise.all([fetchUrl(WEB_URL_1), fetchUrl(WEB_URL_2)]);
setLoadingMsg("Reading Schumer PDF… (may take ~20 seconds)");
const schumerKnowledge = await compressPdf(SCHUMER_PDF_URL, "Schumer CDS Guidance");
sysPrompt = `You are a research assistant for the Community Project Funding Assistant. You ONLY answer questions using the four sources below. If a question cannot be answered from the sources, respond: "That topic isn't covered in the provided sources — I can only answer questions based on them."
=== KNOWLEDGE BASE: Morelle CPF Guide FY2027 ===
${MORELLE_PDF_TEXT}
${schumerKnowledge}
=== WEB SOURCE 1: ${WEB_URL_1} ===
${web1}
=== WEB SOURCE 2: ${WEB_URL_2} ===
${web2}
RULES:
- Answer ONLY from the sources above
- Never use outside knowledge or training data
- Note which source information comes from
- If a topic is only partially covered, share what the sources say and note the gap`;
document.getElementById("loading").style.display = "none";
document.getElementById("chat").style.display = "flex";
document.getElementById("userInput").focus();
} catch (e) {
setLoadingMsg("⚠️ Error loading sources: " + e.message);
}
}
function addBubble(role, text) {
const empty = document.getElementById("empty");
if (empty) empty.remove();
const msgs = document.getElementById("messages");
const wrap = document.createElement("div");
wrap.className = "bubble-wrap " + role;
const bubble = document.createElement("div");
bubble.className = "bubble " + role;
bubble.textContent = text;
wrap.appendChild(bubble);
msgs.appendChild(wrap);
msgs.scrollTop = msgs.scrollHeight;
return bubble;
}
async function send() {
const input = document.getElementById("userInput");
const btn = document.getElementById("sendBtn");
const q = input.value.trim();
if (!q) return;
input.value = "";
btn.disabled = true;
addBubble("user", q);
history.push({ role: "user", content: q });
const thinking = addBubble("assistant", "Thinking…");
try {
const reply = await callClaude(sysPrompt, history);
thinking.textContent = reply;
history.push({ role: "assistant", content: reply });
} catch (e) {
thinking.textContent = "⚠️ Error: " + e.message;
}
btn.disabled = false;
input.focus();
}
document.getElementById("userInput").addEventListener("keydown", e => {
if (e.key === "Enter" && !e.shiftKey) send();
});
loadSources();
</script>
</body>
</html>