Project Info
Overview pranAI is a Chrome extension that helps users understand the environmental impact of their AI prompts. It estimates the energy and carbon cost of each request, suggests more efficient rewrites, and tracks total energy saved with real-world comparisons. Goal: Our goal: make sustainable AI use transparent, measurable, and fun.
Inspiration
As AI becomes part of daily life, few people realize the hidden energy cost behind every prompt. Research shows that running a large language model (LLM) query can use as much energy as charging a smartphone multiple times — and when millions of people use AI daily, that adds up to enormous carbon emissions. We wanted to answer one question: “What if people could see the impact of their AI usage — and actually do something about it?” That idea became pranAI: a lightweight, accessible tool that empowers users to make mindful choices while still enjoying the power of AI. Key Features Prompt Energy Estimation: Calculates approximate energy and CO₂ footprint for each AI request. Smart Rewrite Suggestions: Uses linguistic heuristics to produce a shorter, equally effective prompt. Impact Dashboard: Tracks energy saved over time and displays real-world equivalents Privacy First: All analysis runs locally; no data is collected or stored externally.
How we built it
pranAI is built as a Chrome extension using: Main Languages: HTML, CSS, JavaScript Extension Logic: Chrome Extension API (Manifest v3) Data Sources: Public LLM energy token usage and CO₂ equivalency datasets When a user submits a prompt: The extension captures the input text. We estimate token count and computational complexity. Using benchmark data, we approximate energy use We convert that energy into CO₂ equivalents and relatable comparisons The system then offers an optimized rewrite by simplifying sentence structure and removing redundancies.
Challenges we ran into
Balancing accuracy and usability: We wanted energy estimates that felt meaningful without overwhelming users with scientific detail. Prompt optimization: Generating cleaner prompt suggestions without changing meaning required nuanced linguistic logic. Browser limitations: Handling dynamic text fields in AI chat interfaces (like ChatGPT’s textbox) required creative DOM manipulation.
Accomplishments we're proud of
Built a fully functional Chrome extension in under 48 hours that integrates seamlessly with AI chat platforms. Translated complex energy data into clear, engaging insights through a user-friendly dashboard. Developed a working energy estimation model and prompt optimizer that reduced estimated energy use by up to 30%. Sparked awareness about sustainable AI and how everyday users can make a measurable impact.
What we learned
In this project, we discovered how small text changes can significantly affect AI computation costs while gaining hands on experience with Chrome Extension development. We learned to translate abstract data (like joules and emissions) into relatable remarks people actually care about. Most importantly, we learned that sustainability in AI isn’t just a hardware or data center problem — it’s also a user problem.
What's next
Add gamification — badges, leaderboards, and social challenges for sustainable AI users. Create an pranAI API for developers to integrate sustainability metrics into their own AI tools. Partner with carbon-offset organizations so virtual savings can create real-world environmental impact.
🌱 pranAI — Make Every Prompt Greener
pranAI is a Chrome extension that tracks the energy used by your AI prompts and helps you make them more efficient. It estimates the environmental cost of each request, suggests optimized rewrites, and visualizes your total energy savings through real-world comparisons.
Features
- Energy Calculator: Instantly estimates the energy and CO₂ footprint of every AI prompt.
- Smart Rewrite Suggestions: Recommends shorter, more efficient prompt alternatives that maintain intent and clarity.
- Impact Tracker: Visualizes your total energy saved with relatable metrics
- Real-Time Insights: Works within ChatGPT and other AI chat interfaces and displays counts as you type.
- Daily-Life Comparison Equates energy usage to common activities like charging devices and driving.
How It Works
pranAI uses published model energy benchmarks, obtained from a study by TRG DataCenters, to estimate power consumption per prompt. When you submit a query, it analyzes token length, model type, and processing complexity to calculate your estimated energy use. Then, it suggests a simpler, lower-energy version of your prompt without losing meaning.
All data stays local to your browser — no user information is collected or stored.
Getting Started
- Clone or download this repository.
- In Chrome, go to chrome://extensions → enable Developer Mode → Load unpacked.
- Select the project folder to install pranAI.
- Open ChatGPT (or another AI interface) and start prompting!
Next Steps
- Add integrations for other major AI platforms.
- Include energy analysis for uploading and generating images
- Implement a leaderboard and community challenges to gamify sustainability.
- Partner with carbon-offset organizations to link virtual savings to real-world impact.
Inspiration
AI’s carbon footprint is growing, but awareness hasn’t caught up. pranAI empowers users to understand and minimize their impact, making sustainability an effortless part of every AI interaction.
pranAI: cleaner prompts for a greener world :)
Analysis
View
Metric
- 7
- 6
- 1
Figures cover GitHub contributors during the hackathon window. A co-authored commit counts in full for each author, so per-member totals add up to more than the whole-team figures.
Technology
- CSSIn code
- HTMLIn code
- JavaScriptIn code
3 of 3 appear in the indexed code.
AI coding agents
No AI coding agent signals were found in this repository.
Detected from committed agent config files and commit authorship. Absence of a signal is not proof an agent was unused.
Codebase size
Source size
52 KB
Source files
8
Counts recognized source files only; vendored directories, binaries and lockfiles are excluded, so this is smaller than the repository on disk.
Repository
smrithi-0121/calhacks2025
14 files · 90 KB · @ f96a4dc
Structure
Interface
3 files · 21%Screens, components and styles rendered to the user.
Application logic
7 files · 50%Domain rules, services and shared utilities.
Supporting
Layers are inferred from where files sit in the tree, not from reading the code. A project that names its directories unconventionally will read oddly here — open the file browser to check anything the diagram implies.
Languages
- JavaScript80%
- CSS12%
- Markdown4%
- HTML4%
Share of indexed source by file size. Binary and vendored files are excluded.
This project’s features have not been analysed yet.
Export this project's context (description, README, evidence, key source files) to chat with an AI agent elsewhere.