MoodFlip is a web application built with Svelte and Vite that helps users reframe negative situations into more positive perspectives. The app provides a simple interface where users can:
- Input a challenging situation
- Receive AI-generated alternative viewpoints
- Share their reframed perspectives
- View their history of mood flips
This project has been developed entirely using browser-based development environments:
- Started with bolt.new for initial setup and development
- Continued development using StackBlitz
- Currently using GitHub Codespaces for ongoing development
This demonstrates the power of modern cloud development environments, allowing full-featured development work directly in the browser without any local setup.
- Frontend Framework: Svelte
- Build Tool: Vite
- Styling: CSS with component-scoped styles
- Development: Browser-based IDEs (bolt.new, StackBlitz, GitHub Codespaces)
- Situation Input: Users can describe challenging situations they want to reframe
- Response Cards: Displays AI-generated alternative perspectives
- Share Functionality: Easy sharing of reframed situations
- History Tracking: View past mood flips and their reframes
- Clone the repository
- Install dependencies:
npm install- Start the development server:
npm run devsrc/
├── lib/
│ ├── components/
│ │ ├── FlipHistory.svelte
│ │ ├── ResponseCard.svelte
│ │ ├── ShareButtons.svelte
│ │ └── SituationInput.svelte
│ ├── styles/
│ │ └── MoodFlip.css
│ ├── Counter.svelte
│ └── MoodFlip.svelte
├── App.svelte
└── main.js