Inspiration
Data centers and cloud compute consume approximately 2% of the world's electricity—surpassing the commercial aviation industry. With the rapid explosion of AI training and 24/7 background web workloads, digital infrastructure emissions are skyrocketing.
While enterprises globally commit to Environmental, Social, and Governance (ESG) compliance under the EU Corporate Sustainability Due Diligence Directive (CSDDD) and GHG Protocol, cloud engineers and CTOs remain blind to their real-time Scope 2 and Scope 3 digital carbon emissions.
As Malaysian student innovators participating in the KULN Global Virtual Hackathon 2026, we wanted to address the hackathon's core theme of ESG Automation — "Data to Action". We asked ourselves: Why should ESG reporting just be static Excel spreadsheets? Can cloud server automation autonomously reschedule workloads when renewable power is surging?
This inspired GreenOps AI—an autonomous cloud carbon optimizer directly tailored for RunCloud managed server infrastructure.
What it does
GreenOps AI monitors connected cloud servers across global data center regions (Seoul, Frankfurt, N. Virginia, and London) and matches server CPU workloads with real-time regional power grid carbon intensities (gCO₂eq/kWh).
Key capabilities include:
- Real-time Digital Carbon Accounting: Calculates live power draw in Watts and instantaneous carbon emissions ($g\text{CO}_2\text{eq}/\text{hr}$) factoring in hardware TDP (Thermal Design Power) and data center PUE (Power Usage Effectiveness).
- Autonomous Green Shifter ("Data to Action"): Detects when servers in fossil-heavy regions (such as Seoul's coal-heavy grid at 418 gCO₂/kWh) are running non-critical background batch jobs. With one click, it reschedules heavy tasks (database snapshots, AI vector embeddings, web crawlers) to optimal clean renewable windows (e.g. 02:00 KST), instantly shaving 460.5g CO₂eq per cycle.
- RunCloud Webhook Dispatcher: Simulates authentic RunCloud API endpoints (
POST /api/v2/servers/.../cron) and outputs production-grade Linuxcrontabandsystemdreconfiguration scripts with tamper-evident audit IDs. - Google Gemini ESG Copilot: Powered by Google Gemini Flash via
@google/genai. Provides conversational root-cause diagnostics, multi-cloud migration simulations (e.g., migrating compute from Virginia to London's 72% wind grid), and GHG Scope 2 & 3 explanations with live telemetry context injection. - 1-Click Official ESG Audit Certificate: A pure vector
jsPDFexport engine that produces an official, cryptographically signed (SHA-256) Certificate of Digital Carbon Compliance rated AAA, ready for board meetings and ESG regulatory filings.
How we built it
We architected GreenOps AI using the latest modern cloud development standards:
- Framework: Next.js 16.4 (App Router) with Turbopack for sub-second build times and zero-config deployment.
- Frontend Runtime: React 19 with strictly typed TypeScript.
- Styling & UI: Tailwind CSS v4, PostCSS, Lucide Icons, and modern glassmorphism dark-mode aesthetics.
- ESG Mathematical Model: Strictly formulated according to the Greenhouse Gas (GHG) Protocol Corporate Standard (Scope 2 Location-Based & Market-Based methods).
- AI Intelligence: Google Gemini Flash integrated via
@google/genaiwith context-injection pipelines and 100% transparent API failover notices. - PDF Vector Engine: Client-side vector
jsPDFpipeline delivering crystal-clear, selectable A4 audit certificates immune to CSS color-parser quirks. - Cloud Platform: RunCloud API architecture specifications and webhook simulator.
Challenges we ran into
- Next.js 16 + Tailwind CSS v4 Compatibility: Tailwind v4 uses a modern CSS-first configuration and
@themedirectives without a traditionaltailwind.config.js. Integrating it with Turbopack and PostCSS required fine-tuning our PostCSS pipeline to ensure full utility class compilation. - Eliminating AI Hallucinations in ESG Contexts: In sustainability audits, honesty and traceability are paramount. When API rate limits or spikes occur, generic bots hallucinate answers. We engineered a transparent failover system: if live Gemini API encounters temporary high demand, the interface explicitly displays an amber API notice and serves verified, auditable RunCloud node telemetry instead of pretending the model answered.
- Canvas PDF Color Parsing: Modern browsers computed Tailwind v4 styles using CSS
lab()andoklch()color spaces, crashing traditionalhtml2canvasscreenshot tools. We solved this by developing a pure vectorjsPDFdrawing pipeline that constructs the certificate natively using standard RGB, ensuring instant, flawless downloads.
Accomplishments that we're proud of
- Building a full-stack, enterprise-grade application that bridges developer FinOps with corporate ESG compliance.
- Creating an end-to-end working automation loop: from reading regional coal vs. renewable energy mix to dispatching RunCloud webhooks and reconfiguring server crontabs.
- Achieving a 100% clean production build (
exit code 0) with zero TypeScript errors or ESLint warnings. - Engineering a feature that directly empowers sponsor RunCloud to become an industry pioneer in Green Cloud Management.
What we learned
- Deep practical knowledge of the GHG Protocol Scope 2 Guidance, understanding how data center PUE and dynamic regional grid emission factors dictate digital carbon intensity.
- How to leverage Google's latest
@google/genaiSDK with real-time telemetry prompt injection. - Advanced Next.js 16 Route Handlers and vector document generation for compliance reporting.
What's next for GreenOps AI
- Official RunCloud Marketplace Plugin: Packaging GreenOps AI into a native 1-click RunCloud sidecar agent.
- Kubernetes & Docker Autoscaler: Integrating KEDA (Kubernetes Event-driven Autoscaling) to throttle pod replicas during regional grid carbon spikes.
- Automated Renewable Energy Certificate (REC) Purchasing: Enabling 1-click carbon offset purchasing via smart contracts when emergency compute cannot be deferred.
Built With
- automation
- carbon-accounting
- cloud-computing
- csrd
- devops
- esg
- finops
- gemini-api
- ghg-protocol
- google-genai
- greenops
- jspdf
- next.js
- node.js
- react
- runcloud
- sustainability
- tailwind-css
- turbopack
- typescript
- webhooks