- Full grant strategy framework for renewable energy & green hydrogen - AI-powered grant studio, partner outreach, financial modeling - Umami analytics with data-performance tracking - Live Degelas metrics connected to solar.degelas.be - Trilingual (EN/FR/AR) with i18n support - Dockerized with Nginx frontend + Express API proxy
225 lines
9.5 KiB
TypeScript
225 lines
9.5 KiB
TypeScript
/**
|
||
* Serialises the Atlas Green Morocco framework data into a compact string
|
||
* that is injected as grounding context into every system prompt.
|
||
*
|
||
* Kept server-side only — never sent to the browser.
|
||
*/
|
||
|
||
const businessModels = [
|
||
{ name: "Hydrogen Production", capital: "Very high (€50M+)", recommended: "Later stage" },
|
||
{ name: "Equipment Manufacturing", capital: "Medium–high", recommended: "Strong" },
|
||
{ name: "Engineering + EPC Services",capital: "Medium", recommended: "Very strong" },
|
||
{ name: "Energy Software / AI", capital: "Low–medium", recommended: "Excellent" },
|
||
{ name: "Water + Desalination Tech", capital: "Medium", recommended: "Excellent" },
|
||
];
|
||
|
||
const opportunityCategories = [
|
||
{
|
||
letter: "A", title: "Energy Software Platform",
|
||
products: ["Renewable Asset Management Software", "Energy Trading Platform", "Industrial Decarbonisation SaaS"],
|
||
},
|
||
{
|
||
letter: "B", title: "Green Hydrogen Infrastructure Services",
|
||
products: ["Hydrogen Sensor Systems", "Smart Pipeline Systems", "Industrial Automation / SCADA", "EPC Consulting"],
|
||
},
|
||
{
|
||
letter: "C", title: "Water Desalination + Energy Integration",
|
||
products: ["Solar-Powered Desalination", "Smart Water Optimisation Software", "Mobile Desalination Units"],
|
||
},
|
||
{
|
||
letter: "D", title: "Component Manufacturing",
|
||
products: ["Solar Mounting Systems", "Cables & Connectors", "Battery Enclosures", "Hydrogen Storage Components"],
|
||
},
|
||
];
|
||
|
||
const zones = [
|
||
{ name: "Tangier Tech / Tangier Med", bestFor: "Logistics, manufacturing, export" },
|
||
{ name: "Kenitra Atlantic Zone", bestFor: "Automotive + industrial" },
|
||
{ name: "Midparc Casablanca", bestFor: "Aerospace + high-tech" },
|
||
{ name: "Casablanca Finance City", bestFor: "International services" },
|
||
{ name: "Dakhla (future)", bestFor: "Hydrogen + renewable megaprojects" },
|
||
];
|
||
|
||
const deploymentPhases = [
|
||
{ phase: "0", title: "Foundation & Strategy Validation", duration: "Weeks 1–4", criticality: "CRITICAL" },
|
||
{ phase: "1", title: "Legal Structure & Incorporation", duration: "Weeks 4–8", criticality: "CRITICAL" },
|
||
{ phase: "2", title: "Product & Market MVP", duration: "Weeks 8–20", criticality: "CRITICAL" },
|
||
{ phase: "3", title: "Revenue & Customer Traction", duration: "Weeks 20–32", criticality: "HIGH" },
|
||
{ phase: "4", title: "Scale & Market Expansion", duration: "Weeks 32–52", criticality: "HIGH" },
|
||
{ phase: "5", title: "Seed Funding & Institutional Validation", duration: "Weeks 48–72", criticality: "MEDIUM" },
|
||
{ phase: "6", title: "Product Scale & Infrastructure Build", duration: "Months 6–15", criticality: "HIGH" },
|
||
{ phase: "7", title: "Market Dominance & Expansion", duration: "Months 15–36", criticality: "MEDIUM" },
|
||
];
|
||
|
||
const grantPrograms = [
|
||
{
|
||
id: "iresen-innoboost",
|
||
name: "Green Inno-Boost 2.0",
|
||
provider: "IRESEN",
|
||
category: "MOROCCO",
|
||
amount: "Up to MAD 1.5M (~€150,000)",
|
||
trl: "TRL 6–8",
|
||
eligibility: [
|
||
"Moroccan early-stage startup or SME",
|
||
"Consortium with at least one Moroccan academic partner",
|
||
"Moroccan industrial partner encouraged",
|
||
],
|
||
applicationProcess:
|
||
"Annual two-stage call. Submit technical specs, commercialisation strategy, IP plan. Choose grant (1.5% royalty from Year 3) OR equity (up to 20% to IRESEN).",
|
||
keyConstraints: "Academic consortium mandatory. Project max 2 years.",
|
||
},
|
||
{
|
||
id: "iresen-innoproject",
|
||
name: "Green Inno-Project",
|
||
provider: "IRESEN",
|
||
category: "MOROCCO",
|
||
amount: "Up to €300,000",
|
||
trl: "TRL 3–6",
|
||
eligibility: [
|
||
"Consortium of private enterprise + Moroccan research lab",
|
||
"Alignment with Morocco national energy strategy",
|
||
],
|
||
applicationProcess: "Annual call. Detailed technical specs + co-financing structure required.",
|
||
keyConstraints: "Max 3-year project. 30% subsidy + 70% 0% loan structure.",
|
||
},
|
||
{
|
||
id: "tamwilcom-innovidea",
|
||
name: "Fonds Innov Invest (Innov Idea)",
|
||
provider: "TAMWILCOM",
|
||
category: "MOROCCO",
|
||
amount: "Up to MAD 100,000 (~€10,000)",
|
||
trl: "TRL 2–4",
|
||
eligibility: [
|
||
"Early-stage project under 2 years old",
|
||
"Must be in a TAMWILCOM-certified incubator",
|
||
],
|
||
applicationProcess: "Continuous via labeled incubators. Simple application.",
|
||
keyConstraints: "Incubator membership required.",
|
||
},
|
||
{
|
||
id: "marocpme-tatweer",
|
||
name: "Tatweer Green Growth",
|
||
provider: "Maroc PME",
|
||
category: "MOROCCO",
|
||
amount: "Up to 30% CAPEX subsidy",
|
||
trl: "TRL 8–9",
|
||
eligibility: [
|
||
"Registered Moroccan SME in industrial sector",
|
||
"Project reduces carbon footprints or establishes green manufacturing",
|
||
],
|
||
applicationProcess: "Submit industrial investment dossier to Maroc PME.",
|
||
keyConstraints: "Industrial/manufacturing focus only.",
|
||
},
|
||
{
|
||
id: "ebrd-geff",
|
||
name: "GEFF Plus (Green Economy Financing Facility)",
|
||
provider: "EBRD + EU + Green Climate Fund",
|
||
category: "EU",
|
||
amount: "10% EU cashback grant on qualifying investment",
|
||
trl: "TRL 7–9",
|
||
eligibility: [
|
||
"Private sector companies operating in Morocco",
|
||
"Investment in solar, energy efficiency, water recycling, circular economy",
|
||
],
|
||
applicationProcess:
|
||
"Apply via Moroccan partner banks (Crédit du Maroc, BCP, Bank of Africa). EBRD technical team evaluates. 10% cashback released after independent verification.",
|
||
keyConstraints: "Must invest via a partner bank. Verification audit required.",
|
||
},
|
||
{
|
||
id: "horizon-europe",
|
||
name: "Horizon Europe (Cluster 5 / LEAP-RE)",
|
||
provider: "European Commission",
|
||
category: "EU",
|
||
amount: "€500,000 to €5M+ per consortium",
|
||
trl: "TRL 4–8",
|
||
eligibility: [
|
||
"Consortium of 3+ independent legal entities from EU + associated countries (Morocco qualifies)",
|
||
"Targets clean-energy transitions, hydrogen, grid interoperability",
|
||
],
|
||
applicationProcess:
|
||
"Competitive multi-stage application via EU Funding & Tenders portal. Requires international consortium.",
|
||
keyConstraints: "Highly competitive. Lead entity ideally EU-registered.",
|
||
},
|
||
{
|
||
id: "afdb-sefa",
|
||
name: "SEFA Project Preparation Grants",
|
||
provider: "African Development Bank (AfDB)",
|
||
category: "AFRICA",
|
||
amount: "Cost-sharing grants up to $1M+",
|
||
trl: "TRL 6–8",
|
||
eligibility: [
|
||
"Private project developers targeting sustainable energy in Africa",
|
||
"Projects with planned capital investment $30M–$200M",
|
||
],
|
||
applicationProcess:
|
||
"Concept note originated or championed by AfDB staff. Screened by SEFA Secretariat.",
|
||
keyConstraints: "Large projects only. AfDB internal champion required.",
|
||
},
|
||
{
|
||
id: "aecf-react",
|
||
name: "AECF REACT Innovation Fund",
|
||
provider: "Africa Enterprise Challenge Fund",
|
||
category: "AFRICA",
|
||
amount: "$100,000 to $1.5M",
|
||
trl: "TRL 7–9",
|
||
eligibility: [
|
||
"Private for-profit companies commercialising clean energy solutions",
|
||
"Clear social/environmental impact with scalable distribution",
|
||
],
|
||
applicationProcess:
|
||
"Periodic competitive challenge windows. Requires matching co-funding.",
|
||
keyConstraints: "Co-funding required. Social impact metrics essential.",
|
||
},
|
||
];
|
||
|
||
export function buildFrameworkContext(): string {
|
||
return `
|
||
=== ATLAS GREEN MOROCCO — FRAMEWORK GROUNDING CONTEXT ===
|
||
|
||
CORE THESIS:
|
||
"Don't produce hydrogen. Enable the hydrogen economy."
|
||
Start with software, infrastructure services, desalination, or manufacturing.
|
||
Embed into the ecosystem. Then expand into ownership and assets.
|
||
|
||
BUSINESS MODELS (5):
|
||
${businessModels.map(m => `- ${m.name}: capital ${m.capital}, recommendation: ${m.recommended}`).join("\n")}
|
||
|
||
OPPORTUNITY CATEGORIES (A–D):
|
||
${opportunityCategories.map(o => `[${o.letter}] ${o.title}: ${o.products.join(", ")}`).join("\n")}
|
||
|
||
MOROCCAN FREE ZONES:
|
||
${zones.map(z => `- ${z.name}: ${z.bestFor}`).join("\n")}
|
||
|
||
DEPLOYMENT PHASES (0–7):
|
||
${deploymentPhases.map(p => `Phase ${p.phase} — ${p.title} (${p.duration}) [${p.criticality}]`).join("\n")}
|
||
|
||
GRANT PROGRAMS (8 total):
|
||
${grantPrograms.map(g =>
|
||
`[${g.category}] ${g.name} (${g.provider}): ${g.amount} | ${g.trl}
|
||
Eligibility: ${g.eligibility.join("; ")}
|
||
Process: ${g.applicationProcess}
|
||
Key constraints: ${g.keyConstraints}`
|
||
).join("\n\n")}
|
||
|
||
STRUCTURAL PILLARS:
|
||
- Pillar 01 — Company Structure: Morocco SARL/SAS (operations) + Foreign Holding (UAE/NL/LUX/EE for IP & fundraising)
|
||
- Pillar 02 — Funding Model: Start with services/software revenue → layer grants → raise equity only at traction
|
||
|
||
MVP PRINCIPLE (Build → Embed → Expand):
|
||
1. BUILD: Software platforms, monitoring systems, engineering services, industrial integration
|
||
2. EMBED: Renewable operators, industrial zones, utilities, export ecosystems
|
||
3. EXPAND: Asset ownership, infrastructure, hydrogen production, energy assets
|
||
|
||
DEGELAS LIVE METRICS (use these exact figures in all generated content — they are real, verified data):
|
||
- Active solar sites under forecast: dynamically injected at generation time
|
||
- Countries: 25
|
||
- Average forecast accuracy: dynamically injected
|
||
- Renewable capacity under management: dynamically injected
|
||
- tCO₂ avoided annually: dynamically injected
|
||
- Forecast horizon: 72 hours ahead
|
||
NOTE: When drafting grant applications or financial models, always reference these verified metrics rather than round estimates. They demonstrate proven traction.
|
||
|
||
=== END FRAMEWORK CONTEXT ===
|
||
`.trim();
|
||
}
|