REFRAME is a functional, startup-grade prototype built for MINDCODE 2026 (HealthTech Hackathon).
It helps people rewrite emotionally risky messages before sending, reducing escalation, stress, and misunderstanding across workplace and online messaging platforms.
Work and online communities now run on fast text interactions:
- Slack in deadline crunches
- Discord in high-emotion discussion channels
- Customer support tools under response-time pressure
In these moments, a message that is technically correct can still feel harsh, dismissive, or hostile.
Tone misunderstanding creates emotional strain and professional risk:
- ๐ anxiety from overthinking every message
- โก conflict from accidental escalation
- ๐ง cognitive load from constant emotional self-editing
- ๐ฅ burnout from repeated communication friction
REFRAME helps before send-time, not after damage. It suggests healthier wording that:
- preserves intent
- reduces emotional intensity
- improves clarity and social safety
Small daily improvements in language compound into healthier team dynamics and lower stress over time.
- Customer support pressure: agents responding quickly may write in ways perceived as cold or dismissive.
- Deadline conflicts: urgency can produce abrupt language that escalates team friction.
- Tone ambiguity: text lacks vocal cues, so intent is often misinterpreted.
These micro-escalations compound into larger outcomes: team distrust, emotional fatigue, and professional risk.
REFRAME does not replace therapy, human empathy, or judgment.
It adds a practical, always-available layer of communication support where stress actually happens: everyday messaging interfaces.
- โ๏ธ User drafts a message in a demo communication interface.
- ๐ Input is sanitized and processed through secure server-side API routes.
- ๐งญ AI detects emotional escalation risk (
low,medium,high). - ๐ช REFRAME generates tone-safe alternatives.
- ๐ Stress Reduction Meter reflects potential emotional impact improvement.
- ๐ Transparency features explain why suggestions are shown.
- โ User chooses whether to keep original or send a reframed version.
- Suggestions are assistive, not forced.
- Users remain in full control.
- UI communicates both confidence and limitations.
- ๐ช Inline tone rewriting directly in chat flow
- ๐จ Real-time escalation detection for risky language
- ๐ง Context-aware reframing that preserves original intent
- ๐ผ Slack-style workspace simulation
- ๐ฐ๏ธ Discord-style community simulation
- ๐ง Customer support portal simulation
- ๐ฑ Mobile Figma prototype entrypoint
- ๐ Server-only AI execution
- ๐งฑ Prompt injection defenses
- ๐งผ Input sanitization and controlled formatting
- โ Anonymous usage caps and abuse throttling
- ๐ Transparent non-clinical AI framing
- โ OpenAI integration active in current runtime
- ๐งญ Gemini fallback planned as roadmap failover
REFRAME is designed around preventative wellbeing, not treatment.
Potential impact areas:
- Reduced psychological stress: less emotional reactivity in high-pressure chat moments.
- Improved communication confidence: users learn safer phrasing patterns over time.
- Healthier workplace dynamics: fewer misunderstandings and lower escalation frequency.
- Lower cognitive load: AI-assisted phrasing reduces overthinking before sending.
- Escalation prevention: supports calmer communication loops early, before conflict deepens.
By improving everyday language habits, REFRAME aims to help teams and communities communicate with more emotional safety and resilience.
Explore REFRAME in realistic communication contexts:
- Web demos: interactive Slack-style, Discord-style, and support-style environments
- Mobile demo: opens an external Figma prototype experience
- ๐ Website Demo: REFRAME Web App
- ๐ฑ Mobile Prototype (Figma): Open Figma Mobile Demo
- Emotional risk classification output
- Suggested rewrites with intent preservation
- Stress meter response to wording changes
- Transparency panel explanations
REFRAME follows privacy-first health-technology principles:
- ๐ API keys remain server-side only
- ๐ซ No client-side key leakage
- ๐งฑ Prompt injection resistance via sanitization and controlled prompts
- ๐ฆ Rate limiting and cooldown safeguards
- ๐ค Anonymous usage restriction without mandatory sign-in
- ๐งพ Transparent AI boundaries (assistive, non-diagnostic)
git clone https://github.com/DhruvP2205/Reframe.git
cd Reframenpm installcp .env.example .env.localOPENAI_API_KEY=your_openai_api_key
GEMINI_API_KEY=your_gemini_api_key_optional
.env.examplecurrently includes OpenAI by default. Gemini is optional and roadmap-oriented.
npm run devOpen: http://localhost:3000
npm run lint
npm run buildreframe/
โโ src/
โ โโ app/
โ โ โโ api/analyze/ # Secure AI analysis endpoint
โ โ โโ demo/ # Demo hub + simulation pages
โ โ โโ about/ # Team / mission page
โ โ โโ settings/ # User preferences + controls
โ โ โโ layout.tsx
โ โ โโ page.tsx
โ โโ components/ # UI components (chat, carousel, meters)
โ โโ data/ # Demo conversation seed data
โ โโ lib/ # Shared helpers, prompts, env utilities
โ โโ server/ # Security, sanitization, rate limit logic
โ โโ types/ # Shared type contracts
โโ public/
โโ LICENSE
โโ README.md
To keep prototype behavior stable and fair:
- Rate limit per IP
- Cooldown between rapid requests
- Duplicate-message rejection
- Anonymous usage caps per visitor/session
These controls support both safety and infrastructure reliability.
- Prototype-first scope; not yet enterprise production software
- AI output can be imperfect and requires human review
- No emergency mental health escalation protocol
- Gemini fallback is not active in current runtime (roadmap only)
- ๐ Full OpenAI โ Gemini automatic failover
- ๐ฏ Personal tone profiles by team role/context
- ๐ Communication health analytics dashboards
- ๐ Multilingual reframing support
- ๐งฉ Native integrations for Slack/Discord/helpdesk platforms
Contributions are welcome and appreciated.
- Fork the repository
- Create a feature branch (
feat/your-feature-name) - Commit with clear, focused messages
- Run
npm run lintandnpm run build - Open a PR with context, rationale, and screenshots for UI changes
Please align contributions with REFRAMEโs privacy-first, ethical-AI mission.
This project is licensed under the MIT License.
See LICENSE for full terms.
Built by beTheNoob for MINDCODE 2026.
โถ๏ธ YouTube: https://www.youtube.com/@beTheNOOB- ๐ GitHub: https://github.com/DhruvP2205
- ๐ผ LinkedIn: https://www.linkedin.com/in/dhruv-prajapati-cybersecurity/
Reduce communication-driven mental stress through thoughtful, transparent, and responsible AI assistance.
